|
@@ -2027,7 +2027,7 @@
|
|
|
fit="contain"></el-image>
|
|
|
<div class="mt-14">同步中</div>
|
|
|
<div class="mt-14">
|
|
|
- 同步数量*** 剩余数量***
|
|
|
+ 同步数量{{ syncListData.nodeNum }} 剩余数量{{ syncListData.nodeNumEnd }}
|
|
|
</div>
|
|
|
<div class="mt-14">
|
|
|
<el-button type="primary" @click="syncListDialog=false">好的,我已知晓</el-button>
|
|
@@ -2551,6 +2551,10 @@ export default {
|
|
|
saveTableSyncLoad:false,
|
|
|
checkRow:null,
|
|
|
syncListDialog:false,
|
|
|
+ syncListData:{
|
|
|
+ nodeNum:'',//同步节点数量
|
|
|
+ nodeNumEnd:''//已同步数量
|
|
|
+ }
|
|
|
|
|
|
};
|
|
|
},
|
|
@@ -4200,6 +4204,7 @@ export default {
|
|
|
|
|
|
async syncNodeTableHandle(data) {
|
|
|
console.log('后管数据同步',data);
|
|
|
+ this.curTreeData=data
|
|
|
await this.getNodeStatusData()
|
|
|
if(this.syncListDialog){
|
|
|
return
|
|
@@ -4251,6 +4256,7 @@ export default {
|
|
|
//同步元素表单排序到合同段
|
|
|
async syncSortHandle(data) {
|
|
|
console.log('同步到合同');
|
|
|
+ this.curTreeData=data
|
|
|
await this.getNodeStatusData()
|
|
|
if(this.syncListDialog){
|
|
|
return
|
|
@@ -4951,6 +4957,7 @@ export default {
|
|
|
if(res.data.code==200){
|
|
|
this.$message.success(res.data.msg)
|
|
|
this.closeProSyncTag()
|
|
|
+ this.getNodeStatusData()
|
|
|
|
|
|
}else{
|
|
|
this.$message.error(res.data.msg)
|
|
@@ -4983,9 +4990,6 @@ export default {
|
|
|
if(this.syncListDialog){
|
|
|
return
|
|
|
}
|
|
|
- // this.$message('click on item ' + command);
|
|
|
- console.log(row,'row');
|
|
|
- console.log(command,'command');
|
|
|
this.checkRow=row
|
|
|
if(command==='a'){
|
|
|
this.$confirm("当前表单配置将同步到项目下所有相同表单,请谨慎同步!!!!!!", "表单同步提醒", {
|
|
@@ -4995,7 +4999,7 @@ export default {
|
|
|
}).then(() => {
|
|
|
addSync({
|
|
|
projectId:this.projectid,
|
|
|
- range:command.name==='3',
|
|
|
+ range:'3',
|
|
|
nodeId:row.pkeyId,
|
|
|
nodeName:this.curTreeData.title,
|
|
|
|
|
@@ -5072,15 +5076,33 @@ export default {
|
|
|
},
|
|
|
refreshData(){
|
|
|
console.log('刷新数据');
|
|
|
+ this.getNodeStatusData()
|
|
|
|
|
|
},
|
|
|
getNodeStatusData(){
|
|
|
getNodeStatus({ id:this.curTreeData.primaryKeyId}).then((res) => {
|
|
|
+
|
|
|
if(res.data.code==200){
|
|
|
- if(res.data===true)
|
|
|
+ if(res.data.data){
|
|
|
+
|
|
|
+ this.syncListData.nodeNum=res.data.data.nodeNum
|
|
|
+ this.syncListData.nodeNumEnd=res.data.data.nodeNumEnd
|
|
|
this.syncListDialog=true
|
|
|
+ }else{
|
|
|
+
|
|
|
+ this.syncListData={
|
|
|
+ nodeNum:'',//同步节点数量
|
|
|
+ nodeNumEnd:''//已同步数量
|
|
|
+ }
|
|
|
+ this.syncListDialog=false
|
|
|
+ }
|
|
|
+
|
|
|
}else{
|
|
|
this.syncListDialog=false
|
|
|
+ this.syncListData={
|
|
|
+ nodeNum:'',//同步节点数量
|
|
|
+ nodeNumEnd:''//已同步数量
|
|
|
+ }
|
|
|
this.$message.error(res.data.msg)
|
|
|
}
|
|
|
});
|