Преглед изворни кода

增加同步电签默认信息接口

duy пре 2 година
родитељ
комит
6adc2e0676
2 измењених фајлова са 43 додато и 2 уклоњено
  1. 10 1
      src/api/manager/wbsprivate.js
  2. 33 1
      src/views/manager/projectinfo/tree.vue

+ 10 - 1
src/api/manager/wbsprivate.js

@@ -111,7 +111,16 @@ export const syncNodeParam = (projectId) => {
     }
   })
 }
-
+//同步电签默认信息
+export const syncProjecteVisa = (projectId) => {
+  return request({
+    url: '/api/blade-manager/wbsPrivate/sync-project-eVisa',
+    method: 'post',
+    params: {
+      projectId
+    }
+  })
+}
 export const syncNodeTable = (primaryKeyId) => {
   return request({
     url: '/api/blade-manager/wbsPrivate/sync-node-table',

+ 33 - 1
src/views/manager/projectinfo/tree.vue

@@ -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;
+          });
+      });
+    },
 
 
     //节点参数 关联元素