|
@@ -42,6 +42,9 @@
|
|
|
<el-link :underline="false">
|
|
|
<i class="el-icon-sort" @click="sortpai(data,node)" v-if="node.level != 1" title="调整排序"></i>
|
|
|
</el-link>
|
|
|
+ <el-link :underline="false">
|
|
|
+ <i class="el-icon-upload" style="margin-left:2px;" @click="syncNodeTableHandle(data,node)" title="同步元素表单"></i>
|
|
|
+ </el-link>
|
|
|
</span>
|
|
|
<!-- <el-dropdown
|
|
|
@click="command=>{setLeftType(command,data)}"
|
|
@@ -118,6 +121,9 @@
|
|
|
<el-link :underline="false">
|
|
|
<i class="el-icon-sort" @click="sortpai(data,node)" v-if="node.level != 1" title="调整排序"></i>
|
|
|
</el-link>
|
|
|
+ <el-link :underline="false">
|
|
|
+ <i class="el-icon-upload" style="margin-left:2px;" @click="syncNodeTableHandle(data,node)" title="同步元素表单"></i>
|
|
|
+ </el-link>
|
|
|
</span>
|
|
|
<!-- <el-dropdown
|
|
|
@click="command=>{setLeftType(command,data)}"
|
|
@@ -1397,7 +1403,7 @@ import {
|
|
|
saveElement, remove as removeElement, updateBatchElements, getTemplate,
|
|
|
importWbsElement
|
|
|
} from "@/api/manager/wbsformelement";
|
|
|
-import { getLazytree, getDetail, update, findNodeTableByCondition as selectByNodeTable, removeTableByCondition as removeTableById, removePrivateTreeNode, wbsTreePrivateTableSort ,privateSubmitFullName,syncNodeParam} from "@/api/manager/wbsprivate";
|
|
|
+import { getLazytree, getDetail, update, findNodeTableByCondition as selectByNodeTable, removeTableByCondition as removeTableById, removePrivateTreeNode, wbsTreePrivateTableSort ,privateSubmitFullName,syncNodeParam,syncNodeTable} from "@/api/manager/wbsprivate";
|
|
|
import { findProjectTree as getAlltree } from "@/api/manager/projectinfo";
|
|
|
import { getList as getAttchFromOriginalName } from "@/api/resource/attach";
|
|
|
import { getDictionary } from "@/api/system/dict";
|
|
@@ -2784,6 +2790,33 @@ export default {
|
|
|
this.aliasVisible = false;
|
|
|
})
|
|
|
}
|
|
|
+ },
|
|
|
+
|
|
|
+ syncNodeTableHandle(data){
|
|
|
+ this.$confirm('是否同步节点【'+data.title+'】?', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning'
|
|
|
+ }).then(() => {
|
|
|
+ let notify = this.$notify({
|
|
|
+ title: '提示',
|
|
|
+ message: '节点数据同步中...',
|
|
|
+ duration: 0
|
|
|
+ });
|
|
|
+ syncNodeTable(data.primaryKeyId).then(()=>{
|
|
|
+ this.$message({
|
|
|
+ type: 'success',
|
|
|
+ message: '同步成功',
|
|
|
+ })
|
|
|
+ }).catch(()=>{
|
|
|
+ this.$message({
|
|
|
+ type: "error",
|
|
|
+ message: "同步失败"
|
|
|
+ })
|
|
|
+ }).finally(()=>{
|
|
|
+ notify.close();
|
|
|
+ })
|
|
|
+ })
|
|
|
}
|
|
|
|
|
|
},
|