master
fanluyan 1 year ago
parent 1089b05d2d
commit d95d0ece14

@ -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;

Loading…
Cancel
Save