master
fanluyan 1 year ago
parent 1089b05d2d
commit d95d0ece14

@ -11,9 +11,13 @@
<el-button type="primary" @click="savePointer"></el-button>
</h3>
<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
>{{ item.text }}
>{{ item.text }}{{ index }}
<el-select
size="mini"
v-model="item.type"
@ -108,18 +112,22 @@ export default {
//
labelMarkArrs: [],
hostName: "",
selectIndex: -1,
};
},
created() {
EventBus.$on("currentNodeData", (value) => {
//console.log(value); // value
this.currentNodeData = value;
this.selectIndex = -1;
});
EventBus.$on("perentNode", (value) => {
//console.log(value); // value
this.parentdata = value;
this.selectIndex = -1;
});
EventBus.$on("labelMark", (value) => {
this.selectIndex = -1;
//console.log(value); // value
this.labelMarkArrs = value;
console.log(this.labelMarkArrs);
@ -481,7 +489,12 @@ export default {
//
this.curObj.index = this.getEventIndex(this.curObj.x, this.curObj.y);
console.log("落点矩形", this.curObj.index);
console.log("我是上面的数组", this.recArrs);
console.log(
"我是上面的数组点击的哪一个",
this.recArrs[this.curObj.index]
);
this.selectIndex = this.curObj.index;
// TODO...
if (this.curObj.isRightClick) {
} else {
@ -823,6 +836,9 @@ export default {
display: flex;
align-items: center;
//height: 32px;
.bgClass {
background-color: aqua;
}
p {
line-height: 32px;
// height: 32px;

Loading…
Cancel
Save