|
@@ -265,12 +265,23 @@
|
|
|
>同步节点参数</el-button
|
|
|
>
|
|
|
<el-button
|
|
|
+ style="margin-top:10px"
|
|
|
class="el-btn-purple"
|
|
|
type="primary"
|
|
|
size="medium"
|
|
|
icon="el-icon-upload"
|
|
|
@click="independent"
|
|
|
>独立表单库</el-button
|
|
|
+ >
|
|
|
+ <el-button
|
|
|
+ :loading="syncElectricLoad"
|
|
|
+ style="margin-top:10px"
|
|
|
+ class="el-btn-purple"
|
|
|
+ type="primary"
|
|
|
+ size="medium"
|
|
|
+ icon="el-icon-upload"
|
|
|
+ @click="syncElectric"
|
|
|
+ >同步电签默认信息</el-button
|
|
|
>
|
|
|
</div>
|
|
|
<template v-if="leftType == 5">
|
|
@@ -1634,6 +1645,7 @@ import {
|
|
|
wbsTreePrivateTableSort,
|
|
|
privateSubmitFullName,
|
|
|
syncNodeParam,
|
|
|
+ syncProjecteVisa,
|
|
|
syncNodeTable,
|
|
|
syncNodeinfo,
|
|
|
tabTypeLazyTree,
|
|
@@ -1848,6 +1860,7 @@ export default {
|
|
|
}, //传参
|
|
|
|
|
|
syncBtnLoad: false,
|
|
|
+ syncElectricLoad:false,
|
|
|
|
|
|
showType: 1,
|
|
|
typeTreeData: [],
|
|
@@ -3366,7 +3379,6 @@ export default {
|
|
|
|
|
|
getTypeTreeDetail() {},
|
|
|
independent(){
|
|
|
- console.log('独立表单库');
|
|
|
this.$router.push({
|
|
|
path: '/project/independent',
|
|
|
query: { pid: this.projectid,wbsid:this.$route.query.wbsid }
|
|
@@ -3374,6 +3386,26 @@ export default {
|
|
|
|
|
|
});
|
|
|
},
|
|
|
+ syncElectric(){
|
|
|
+ console.log('同步电签默认信息');
|
|
|
+ this.$confirm("是否同步电签默认信息?", "提示", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning",
|
|
|
+ }).then(() => {
|
|
|
+ this.syncElectricLoad = true;
|
|
|
+ syncProjecteVisa(this.projectid)
|
|
|
+ .then(() => {
|
|
|
+ this.$message({
|
|
|
+ type: "success",
|
|
|
+ message: "同步成功!",
|
|
|
+ });
|
|
|
+ })
|
|
|
+ .finally(() => {
|
|
|
+ this.syncElectricLoad = false;
|
|
|
+ });
|
|
|
+ });
|
|
|
+ },
|
|
|
|
|
|
|
|
|
//节点参数 关联元素
|