优化bug
This commit is contained in:
parent
b047696597
commit
e5a06b8233
@ -127,7 +127,7 @@ function editClic(data:any){
|
|||||||
window.open('/#/dvsCanvas?dvId=' +data.id, '_blank');
|
window.open('/#/dvsCanvas?dvId=' +data.id, '_blank');
|
||||||
// window.open('/#/dvCanvas?dvId=' + "1097641013486424064", '_blank');
|
// window.open('/#/dvCanvas?dvId=' + "1097641013486424064", '_blank');
|
||||||
}
|
}
|
||||||
function addTreeChildNode(event:any,level:any,pid:any){ // // 添加子节点
|
function addTreeChildNode(event:any,level:any,data:any){ // // 添加子节点
|
||||||
let element = document.getElementById("drag_main_area")
|
let element = document.getElementById("drag_main_area")
|
||||||
if(element !=null){
|
if(element !=null){
|
||||||
const x = event.clientX; // 水平坐标(相对于元素边界)
|
const x = event.clientX; // 水平坐标(相对于元素边界)
|
||||||
@ -138,11 +138,11 @@ function addTreeChildNode(event:any,level:any,pid:any){ // // 添加子节点
|
|||||||
popupType.value = 1
|
popupType.value = 1
|
||||||
dataInfo.value={
|
dataInfo.value={
|
||||||
appId:projectInfo.value.id,
|
appId:projectInfo.value.id,
|
||||||
pid: pid,
|
pid: data.id,
|
||||||
level: level,
|
level: level,
|
||||||
nodeType: "",
|
nodeType: "",
|
||||||
name:'',
|
name:'',
|
||||||
type:''
|
type:data.type
|
||||||
}
|
}
|
||||||
isTreeDrag.value = true
|
isTreeDrag.value = true
|
||||||
}
|
}
|
||||||
@ -251,7 +251,7 @@ function delTreeClic(){ // 删除
|
|||||||
<div style="
|
<div style="
|
||||||
width: 20px;
|
width: 20px;
|
||||||
height: 24px;">
|
height: 24px;">
|
||||||
<img v-if="data.nodeType == '01'" src="@/assets/newimg/icon/add.png" alt="" style="width: 14px;height: 13px;" @click.stop="addTreeChildNode($event, Number(data.level)+1,data.id)">
|
<img v-if="data.nodeType == '01'" src="@/assets/newimg/icon/add.png" alt="" style="width: 14px;height: 13px;" @click.stop="addTreeChildNode($event, Number(data.level)+1,data)">
|
||||||
<img v-if="data.nodeType == '02'" src="@/assets/newimg/icon/bianji.png" alt="" style="width: 14px;height: 13px;" @click.stop="editClic(data)">
|
<img v-if="data.nodeType == '02'" src="@/assets/newimg/icon/bianji.png" alt="" style="width: 14px;height: 13px;" @click.stop="editClic(data)">
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user