|
|
@ -11,9 +11,13 @@
|
|
|
|
<el-button type="primary" @click="savePointer">保存</el-button>
|
|
|
|
<el-button type="primary" @click="savePointer">保存</el-button>
|
|
|
|
</h3>
|
|
|
|
</h3>
|
|
|
|
<div class="picRow">
|
|
|
|
<div class="picRow">
|
|
|
|
<p v-for="(item, index) in recArrs" :key="index">
|
|
|
|
<p
|
|
|
|
|
|
|
|
v-for="(item, index) in recArrs"
|
|
|
|
|
|
|
|
:key="index"
|
|
|
|
|
|
|
|
:class="index == selectIndex ? 'bgClass' : ''"
|
|
|
|
|
|
|
|
>
|
|
|
|
<span
|
|
|
|
<span
|
|
|
|
>{{ item.text }}:
|
|
|
|
>{{ item.text }}{{ index }}:
|
|
|
|
<el-select
|
|
|
|
<el-select
|
|
|
|
size="mini"
|
|
|
|
size="mini"
|
|
|
|
v-model="item.type"
|
|
|
|
v-model="item.type"
|
|
|
@ -108,18 +112,22 @@ export default {
|
|
|
|
//获取的矩形数据
|
|
|
|
//获取的矩形数据
|
|
|
|
labelMarkArrs: [],
|
|
|
|
labelMarkArrs: [],
|
|
|
|
hostName: "",
|
|
|
|
hostName: "",
|
|
|
|
|
|
|
|
selectIndex: -1,
|
|
|
|
};
|
|
|
|
};
|
|
|
|
},
|
|
|
|
},
|
|
|
|
created() {
|
|
|
|
created() {
|
|
|
|
EventBus.$on("currentNodeData", (value) => {
|
|
|
|
EventBus.$on("currentNodeData", (value) => {
|
|
|
|
//console.log(value); // 输出 value
|
|
|
|
//console.log(value); // 输出 value
|
|
|
|
this.currentNodeData = value;
|
|
|
|
this.currentNodeData = value;
|
|
|
|
|
|
|
|
this.selectIndex = -1;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
EventBus.$on("perentNode", (value) => {
|
|
|
|
EventBus.$on("perentNode", (value) => {
|
|
|
|
//console.log(value); // 输出 value
|
|
|
|
//console.log(value); // 输出 value
|
|
|
|
this.parentdata = value;
|
|
|
|
this.parentdata = value;
|
|
|
|
|
|
|
|
this.selectIndex = -1;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
EventBus.$on("labelMark", (value) => {
|
|
|
|
EventBus.$on("labelMark", (value) => {
|
|
|
|
|
|
|
|
this.selectIndex = -1;
|
|
|
|
//console.log(value); // 输出 value
|
|
|
|
//console.log(value); // 输出 value
|
|
|
|
this.labelMarkArrs = value;
|
|
|
|
this.labelMarkArrs = value;
|
|
|
|
console.log(this.labelMarkArrs);
|
|
|
|
console.log(this.labelMarkArrs);
|
|
|
@ -481,7 +489,12 @@ export default {
|
|
|
|
//得到落点所在框的序数
|
|
|
|
//得到落点所在框的序数
|
|
|
|
this.curObj.index = this.getEventIndex(this.curObj.x, this.curObj.y);
|
|
|
|
this.curObj.index = this.getEventIndex(this.curObj.x, this.curObj.y);
|
|
|
|
console.log("落点矩形", this.curObj.index);
|
|
|
|
console.log("落点矩形", this.curObj.index);
|
|
|
|
|
|
|
|
console.log("我是上面的数组", this.recArrs);
|
|
|
|
|
|
|
|
console.log(
|
|
|
|
|
|
|
|
"我是上面的数组点击的哪一个",
|
|
|
|
|
|
|
|
this.recArrs[this.curObj.index]
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
this.selectIndex = this.curObj.index;
|
|
|
|
// 如果是鼠标右键 TODO...
|
|
|
|
// 如果是鼠标右键 TODO...
|
|
|
|
if (this.curObj.isRightClick) {
|
|
|
|
if (this.curObj.isRightClick) {
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
@ -823,6 +836,9 @@ export default {
|
|
|
|
display: flex;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
align-items: center;
|
|
|
|
//height: 32px;
|
|
|
|
//height: 32px;
|
|
|
|
|
|
|
|
.bgClass {
|
|
|
|
|
|
|
|
background-color: aqua;
|
|
|
|
|
|
|
|
}
|
|
|
|
p {
|
|
|
|
p {
|
|
|
|
line-height: 32px;
|
|
|
|
line-height: 32px;
|
|
|
|
// height: 32px;
|
|
|
|
// height: 32px;
|
|
|
|