szw 1 år sedan
förälder
incheckning
6b0ca81c4b

+ 8 - 0
src/api/bpm/model.js

@@ -63,3 +63,11 @@ export function syncProcessModelToTenant(tenantId) {
     method: 'POST'
   })
 }
+
+export function syncProcessModelXml() {
+  return request({
+    url: '/bpm/model/syncProcessModelXml',
+    method: 'POST'
+  })
+}
+

+ 5 - 4
src/views/bpm/model/index.vue

@@ -63,16 +63,16 @@
           >新建流程</el-button
         >
       </el-col>
-      <!-- <el-col :span="1.5">
+      <el-col :span="1.5">
         <el-button
           type="primary"
           plain
           icon="el-icon-plus"
           size="mini"
           @click="syncProcessModel"
-          >同步流程</el-button
+          >同步流程模型</el-button
         >
-      </el-col> -->
+      </el-col>
       <el-col :span="1.5">
         <el-button
           type="info"
@@ -503,6 +503,7 @@ import {
   createModel,
   updateModel,
   syncProcessModelToTenant,
+  syncProcessModelXml,
 } from "@/api/bpm/model";
 import { DICT_TYPE, getDictDatas } from "@/utils/dict";
 import { getForm, getSimpleForms } from "@/api/bpm/form";
@@ -621,7 +622,7 @@ export default {
   },
   methods: {
     syncProcessModel() {
-      syncProcessModelToTenant(177).then((res) => {
+      syncProcessModelXml().then((res) => {
         this.$modal.msgSuccess("同步成功");
       });
     },

+ 0 - 2
src/views/components/register/registrationPackage.vue

@@ -350,13 +350,11 @@ export default {
     submitAll() {
       if (!this.form.packageId) {
         this.$message.error("请先选择选购的套餐");
-
         return false;
       } else {
         this.changeMask();
         this.$refs["form"].validate((valid) => {
           if (valid) {
-            console.log("======================", this.form);
             tenantRegister(this.form).then((res) => {
               this.$modal.msgSuccess("新增成功");
               this.changeMask();