695593266@qq.com 10 mesi fa
parent
commit
efe7a24a78
2 ha cambiato i file con 31 aggiunte e 12 eliminazioni
  1. 29 10
      src/components/processSubmitDialog/processSubmitDialog.vue
  2. 2 2
      vue.config.js

+ 29 - 10
src/components/processSubmitDialog/processSubmitDialog.vue

@@ -429,11 +429,18 @@
           text: '提交中',
           background: 'rgba(0, 0, 0, 0.7)'
         });
-        await processInstanceCreateAPI(this.form);
-        this.$message('提交审核成功');
-        this.loading.close();
-        this.$emit('reload');
-        this.cancel();
+        await processInstanceCreateAPI(this.form)
+          .then((res) => {
+            console.lof(res, 'res');
+            this.$message('提交审核成功');
+            this.loading.close();
+            this.$emit('reload');
+            this.cancel();
+          })
+          .catch((err) => {
+            this.loading.close();
+            console.error(err, 'err');
+          });
       },
       async submit1() {
         this.loading = this.$loading({
@@ -446,12 +453,24 @@
           approvalStatus: this.approvalStatus,
           ...this.form
         };
-        await this[this.apiFunName](params);
+        await this[this.apiFunName](params)
+          .then((res) => {
+            console.lof(res, 'res');
+            this.$message('提交审核成功');
+            this.loading.close();
+            this.$emit('reload');
+            this.cancel();
+          })
+          .catch((err) => {
+            console.error(err, 'err');
+            this.loading.close();
+            // this.$message.error(err.message || '提交审核失败');
+          });
         //await processInstanceUpdateStatusAPI(params);
-        this.$message('提交发布成功');
-        this.loading.close();
-        this.$emit('reload');
-        this.cancel();
+        // this.$message('提交发布成功');
+        // this.loading.close();
+        // this.$emit('reload');
+        // this.cancel();
       },
       cancel() {
         this.$emit('update:processSubmitDialogFlag', false);

+ 2 - 2
vue.config.js

@@ -35,8 +35,8 @@ module.exports = {
         // target: 'http://192.168.1.105:18086',
         // target: 'http://192.168.1.158:18086',
         // target: 'http://192.168.1.176:18086',
-        // target: 'http://192.168.1.251:18086',
-        target: 'http://192.168.1.125:18086',
+        target: 'http://192.168.1.251:18086',
+        // target: 'http://192.168.1.125:18086',
         // target: 'http://192.168.1.116:18086',
         // target: 'http://192.168.1.251:18186',
         // target: 'http://192.168.1.251:18087',