|
@@ -2345,7 +2345,9 @@ export default {
|
|
// }
|
|
// }
|
|
|
|
|
|
// });
|
|
// });
|
|
- getAlltree(this.projectid, this.id, this.curTreeData.primaryKeyId).then((res) => {
|
|
|
|
|
|
+ let pid=this.curTreeData.primaryKeyId?this.curTreeData.primaryKeyId:this.curTreeData.pKeyId
|
|
|
|
+
|
|
|
|
+ getAlltree(this.projectid, this.id, pid).then((res) => {
|
|
this.testTreeLoad = false;
|
|
this.testTreeLoad = false;
|
|
console.log(res.data.data,'data');
|
|
console.log(res.data.data,'data');
|
|
this.testTreeData=res.data.data
|
|
this.testTreeData=res.data.data
|
|
@@ -3370,7 +3372,7 @@ export default {
|
|
},
|
|
},
|
|
|
|
|
|
syncInfoHandle(item) {
|
|
syncInfoHandle(item) {
|
|
- if(this.curTreeData.primaryKeyId){
|
|
|
|
|
|
+ if(this.curTreeData.primaryKeyId||this.curTreeData.pKeyId){
|
|
this.$confirm("是否同步节点参数?", "提示", {
|
|
this.$confirm("是否同步节点参数?", "提示", {
|
|
confirmButtonText: "确定",
|
|
confirmButtonText: "确定",
|
|
cancelButtonText: "取消",
|
|
cancelButtonText: "取消",
|
|
@@ -3382,7 +3384,8 @@ export default {
|
|
ele.load=true
|
|
ele.load=true
|
|
}
|
|
}
|
|
})
|
|
})
|
|
- syncNodeParam(this.projectid,this.curTreeData.primaryKeyId)
|
|
|
|
|
|
+ let pid=this.curTreeData.primaryKeyId?this.curTreeData.primaryKeyId:this.curTreeData.pKeyId
|
|
|
|
+ syncNodeParam(this.projectid,pid)
|
|
.then(() => {
|
|
.then(() => {
|
|
this.$message({
|
|
this.$message({
|
|
type: "success",
|
|
type: "success",
|
|
@@ -3569,7 +3572,7 @@ export default {
|
|
});
|
|
});
|
|
},
|
|
},
|
|
syncElectric(item){
|
|
syncElectric(item){
|
|
- if(this.curTreeData.primaryKeyId){
|
|
|
|
|
|
+ if(this.curTreeData.primaryKeyId||this.curTreeData.pKeyId){
|
|
console.log('同步电签默认信息');
|
|
console.log('同步电签默认信息');
|
|
this.$confirm("是否同步电签默认信息?", "提示", {
|
|
this.$confirm("是否同步电签默认信息?", "提示", {
|
|
confirmButtonText: "确定",
|
|
confirmButtonText: "确定",
|
|
@@ -3582,8 +3585,8 @@ export default {
|
|
ele.load=true
|
|
ele.load=true
|
|
}
|
|
}
|
|
})
|
|
})
|
|
-
|
|
|
|
- syncProjecteVisa(this.projectid,this.curTreeData.primaryKeyId)
|
|
|
|
|
|
+ let pid=this.curTreeData.primaryKeyId?this.curTreeData.primaryKeyId:this.curTreeData.pKeyId
|
|
|
|
+ syncProjecteVisa(this.projectid,pid)
|
|
.then(() => {
|
|
.then(() => {
|
|
this.$message({
|
|
this.$message({
|
|
type: "success",
|
|
type: "success",
|
|
@@ -3629,8 +3632,8 @@ export default {
|
|
tolinkEle(row){
|
|
tolinkEle(row){
|
|
this.curLinkEleTable = row;
|
|
this.curLinkEleTable = row;
|
|
this.linkCheckVisible = true;
|
|
this.linkCheckVisible = true;
|
|
-
|
|
|
|
- selectFormElements(row.id,{type:3,nodeId:this.curTreeData.primaryKeyId}).then((res) => {
|
|
|
|
|
|
+ let pid=this.curTreeData.primaryKeyId?this.curTreeData.primaryKeyId:this.curTreeData.pKeyId
|
|
|
|
+ selectFormElements(row.id,{type:3,nodeId:pid}).then((res) => {
|
|
res.data.data.forEach((ele)=>{
|
|
res.data.data.forEach((ele)=>{
|
|
ele.checked = false;
|
|
ele.checked = false;
|
|
ele.show = true;
|
|
ele.show = true;
|