优化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('/#/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")
|
||||
if(element !=null){
|
||||
const x = event.clientX; // 水平坐标(相对于元素边界)
|
||||
@ -138,11 +138,11 @@ function addTreeChildNode(event:any,level:any,pid:any){ // // 添加子节点
|
||||
popupType.value = 1
|
||||
dataInfo.value={
|
||||
appId:projectInfo.value.id,
|
||||
pid: pid,
|
||||
pid: data.id,
|
||||
level: level,
|
||||
nodeType: "",
|
||||
name:'',
|
||||
type:''
|
||||
type:data.type
|
||||
}
|
||||
isTreeDrag.value = true
|
||||
}
|
||||
@ -251,7 +251,7 @@ function delTreeClic(){ // 删除
|
||||
<div style="
|
||||
width: 20px;
|
||||
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)">
|
||||
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user