|
@@ -2034,7 +2034,7 @@
|
|
<el-button type="primary" @click="syncListDialog=false">好的,我已知晓</el-button>
|
|
<el-button type="primary" @click="syncListDialog=false">好的,我已知晓</el-button>
|
|
</div>
|
|
</div>
|
|
<div class="mt-14">
|
|
<div class="mt-14">
|
|
- <el-link type="primary">刷新数据</el-link>
|
|
|
|
|
|
+ <el-link type="primary" @click="refreshData" v-loading="refreshLoading">刷新数据</el-link>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
@@ -2552,6 +2552,7 @@ export default {
|
|
saveTableSyncLoad:false,
|
|
saveTableSyncLoad:false,
|
|
checkRow:null,
|
|
checkRow:null,
|
|
syncListDialog:false,
|
|
syncListDialog:false,
|
|
|
|
+ refreshLoading:false,
|
|
syncListData:{
|
|
syncListData:{
|
|
nodeNum:'',//同步节点数量
|
|
nodeNum:'',//同步节点数量
|
|
nodeNumEnd:''//已同步数量
|
|
nodeNumEnd:''//已同步数量
|
|
@@ -4844,6 +4845,8 @@ export default {
|
|
});
|
|
});
|
|
},
|
|
},
|
|
handleCheckChange1(data){
|
|
handleCheckChange1(data){
|
|
|
|
+ console.log(data,'data1111111111');
|
|
|
|
+
|
|
getNodeStatus({ id:data.primaryKeyId}).then((res) => {
|
|
getNodeStatus({ id:data.primaryKeyId}).then((res) => {
|
|
if(res.data.code==200){
|
|
if(res.data.code==200){
|
|
if(res.data.data){
|
|
if(res.data.data){
|
|
@@ -4953,7 +4956,7 @@ export default {
|
|
}else{
|
|
}else{
|
|
this.syncForm.nodeId=this.curTreeData.primaryKeyId
|
|
this.syncForm.nodeId=this.curTreeData.primaryKeyId
|
|
}
|
|
}
|
|
- await this.getNodeStatusData()
|
|
|
|
|
|
+ // await this.getNodeStatusData()
|
|
if(this.syncListDialog){
|
|
if(this.syncListDialog){
|
|
return
|
|
return
|
|
}
|
|
}
|
|
@@ -4977,18 +4980,30 @@ export default {
|
|
contractRange:this.syncForm.contractRange.join(',')
|
|
contractRange:this.syncForm.contractRange.join(',')
|
|
}
|
|
}
|
|
).then((res) => {
|
|
).then((res) => {
|
|
|
|
+ console.log(res,'res');
|
|
|
|
+
|
|
this.saveProTagLoading=false
|
|
this.saveProTagLoading=false
|
|
if(res.data.code==200){
|
|
if(res.data.code==200){
|
|
this.$message.success(res.data.msg)
|
|
this.$message.success(res.data.msg)
|
|
- this.getNodeStatusData()
|
|
|
|
|
|
+ //this.getNodeStatusData()
|
|
|
|
+ console.log(res.data,'res.data');
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ this.syncListData.nodeNum=res.data.data.nodeNum
|
|
|
|
+ this.syncListData.nodeNumEnd=res.data.nodeNumEnd
|
|
|
|
+
|
|
|
|
+ this.syncListDialog=true
|
|
this.closeProSyncTag()
|
|
this.closeProSyncTag()
|
|
|
|
|
|
|
|
|
|
}else{
|
|
}else{
|
|
this.$message.error(res.data.msg)
|
|
this.$message.error(res.data.msg)
|
|
|
|
+ this.saveProTagLoading=false
|
|
|
|
+
|
|
|
|
+
|
|
}
|
|
}
|
|
})
|
|
})
|
|
- this.saveProTagLoading=false
|
|
|
|
|
|
+
|
|
},
|
|
},
|
|
handleCheckAllChange(val) {
|
|
handleCheckAllChange(val) {
|
|
this.syncForm.type = val ? this.typeOptions.map(item => item.dictKey) : [];
|
|
this.syncForm.type = val ? this.typeOptions.map(item => item.dictKey) : [];
|
|
@@ -5099,9 +5114,13 @@ export default {
|
|
// this.syncForm.formIds=arr.join(',')
|
|
// this.syncForm.formIds=arr.join(',')
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- refreshData(){
|
|
|
|
|
|
+ async refreshData(){
|
|
console.log('刷新数据');
|
|
console.log('刷新数据');
|
|
- this.getNodeStatusData()
|
|
|
|
|
|
+ this.refreshLoading=true
|
|
|
|
+
|
|
|
|
+ await this.getNodeStatusData()
|
|
|
|
+ this.syncListDialog=true
|
|
|
|
+ this.refreshLoading=false
|
|
|
|
|
|
},
|
|
},
|
|
getNodeStatusData(){
|
|
getNodeStatusData(){
|