|
@@ -85,25 +85,34 @@
|
|
|
node.parent.label === '我的模型'
|
|
|
"
|
|
|
>
|
|
|
- <el-checkbox v-model="node.checked">{{
|
|
|
- node.label
|
|
|
- }}</el-checkbox>
|
|
|
- <span style="position: relative; left: 30px">
|
|
|
- <el-button
|
|
|
- v-if="node.parent.label === '我的模型'"
|
|
|
- size="small"
|
|
|
- type="text"
|
|
|
- icon="el-icon-edit"
|
|
|
- @click="handleUpdate(node)"
|
|
|
- ></el-button>
|
|
|
- <el-button
|
|
|
- v-if="node.parent.label === '我的模型'"
|
|
|
- size="small"
|
|
|
- type="text"
|
|
|
- icon="el-icon-delete"
|
|
|
- @click="handleDelete(node)"
|
|
|
- ></el-button>
|
|
|
- </span>
|
|
|
+ <el-checkbox v-model="node.checked" style="position: relative"
|
|
|
+ >{{ node.label
|
|
|
+ }}<span
|
|
|
+ ><el-button
|
|
|
+ size="normal"
|
|
|
+ type="text"
|
|
|
+ icon="el-icon-location"
|
|
|
+ @click="locateEvent(node)"
|
|
|
+ style="position: absolute; right: -30px; top: -12px;"
|
|
|
+ ></el-button
|
|
|
+ ></span>
|
|
|
+ <span style="position: absolute;right: -85px;top: -8px;">
|
|
|
+ <el-button
|
|
|
+ v-if="node.parent.label === '我的模型'"
|
|
|
+ size="small"
|
|
|
+ type="text"
|
|
|
+ icon="el-icon-edit"
|
|
|
+ @click="handleUpdate(node)"
|
|
|
+ ></el-button>
|
|
|
+ <el-button
|
|
|
+ v-if="node.parent.label === '我的模型'"
|
|
|
+ size="small"
|
|
|
+ type="text"
|
|
|
+ icon="el-icon-delete"
|
|
|
+ @click="handleDelete(node)"
|
|
|
+ ></el-button>
|
|
|
+ </span>
|
|
|
+ </el-checkbox>
|
|
|
</template>
|
|
|
<template v-else>
|
|
|
<div
|
|
@@ -463,6 +472,9 @@ export default {
|
|
|
if (!value) return true;
|
|
|
return data.label.indexOf(value) !== -1;
|
|
|
},
|
|
|
+ locateEvent(node) {
|
|
|
+ console.log(node, "目前的节点");
|
|
|
+ },
|
|
|
handleUpdate(node) {
|
|
|
// console.log(node.data.data, "涉及的图层");
|
|
|
// console.log(node.data.label);
|
|
@@ -779,13 +791,13 @@ export default {
|
|
|
&-pin-btn {
|
|
|
width: 30px;
|
|
|
height: 30px;
|
|
|
- background: url("../assets/image/pin_gray.png") no-repeat center;
|
|
|
+ background: url("../assets/image/panel_unlock.png") no-repeat center;
|
|
|
position: absolute;
|
|
|
- top: 3px;
|
|
|
+ top: 0;
|
|
|
right: 3px;
|
|
|
cursor: pointer;
|
|
|
&.lock-style {
|
|
|
- background: url("../assets/image/pin_blue.png") no-repeat center;
|
|
|
+ background: url("../assets/image/panel_lock.png") no-repeat center;
|
|
|
}
|
|
|
}
|
|
|
&-input {
|
|
@@ -887,13 +899,13 @@ export default {
|
|
|
& > div {
|
|
|
width: 30px;
|
|
|
height: 30px;
|
|
|
- background: url("../assets/image/pin_gray.png") no-repeat center;
|
|
|
+ background: url("../assets/image/panel_unlock.png") no-repeat center;
|
|
|
position: absolute;
|
|
|
- top: 3px;
|
|
|
- right: 3px;
|
|
|
+ top: 0;
|
|
|
+ left: 3px;
|
|
|
cursor: pointer;
|
|
|
&.lock-style {
|
|
|
- background: url("../assets/image/pin_blue.png") no-repeat center;
|
|
|
+ background: url("../assets/image/panel_lock.png") no-repeat center;
|
|
|
}
|
|
|
}
|
|
|
}
|