最新
This commit is contained in:
@ -765,21 +765,21 @@ export default {
|
||||
},
|
||||
// 添加文本框
|
||||
addTextBox(position) {
|
||||
this.$sendChanel("textTetlie", "标注");
|
||||
this.$changeComponentShow(".textModelBox", true);
|
||||
this.$recvChanel("textModelContent", (data) => {
|
||||
console.log(data.text);
|
||||
// this.$sendChanel("textTetlie", "标注");
|
||||
// this.$changeComponentShow(".textModelBox", true);
|
||||
// this.$recvChanel("textModelContent", (data) => {
|
||||
// console.log(data.text);
|
||||
let that = this;
|
||||
let source_id = that.$md5(new Date().getTime() + "文本框");
|
||||
let textBox = {
|
||||
id: source_id,
|
||||
position: position,
|
||||
text: data.text,
|
||||
text: '',
|
||||
show: true,
|
||||
};
|
||||
let DbOption = {
|
||||
source_id,
|
||||
source_name: data.text,
|
||||
source_name: '文本框',
|
||||
source_type: "textBox",
|
||||
p_id: findParentId(that.treeObj),
|
||||
};
|
||||
@ -791,7 +791,7 @@ export default {
|
||||
cusAddNodes(that.$parent.treeObj, DbOption.p_id, [node]);
|
||||
}
|
||||
});
|
||||
})
|
||||
// })
|
||||
},
|
||||
|
||||
// 获取当前得node
|
||||
|
||||
Reference in New Issue
Block a user