Procházet zdrojové kódy

Merge branch 'hcb' of SH-Arbitrate/Mediation-Frontend into dev

hanchaobo před 2 roky
rodič
revize
7b17d986f3
2 změnil soubory, kde provedl 12 přidání a 7 odebrání
  1. 11
    6
      src/views/caseManagement/components/mediation.vue
  2. 1
    1
      vue.config.js

+ 11
- 6
src/views/caseManagement/components/mediation.vue Zobrazit soubor

@@ -118,9 +118,10 @@
118 118
         <el-button @click="cancel" class="endbutton1" round>
119 119
           <span>取 消</span>
120 120
         </el-button>
121
-        <el-button v-if="isSecretaryRole" @click="submitMediation" :disabled="this.recordArrMediate.length <= 0 && mediationData.mediationMethod == '1'"
122
-          class="endbutton1" type="primary" round>
123
-          <span>提 交</span>
121
+        <el-button v-if="isSecretaryRole" :loading="loadingSubmit" @click="submitMediation"
122
+          :disabled="this.recordArrMediate.length <= 0 && mediationData.mediationMethod == '1'" class="endbutton1"
123
+          type="primary" round>
124
+          提 交
124 125
         </el-button>
125 126
       </div>
126 127
     </el-dialog>
@@ -169,6 +170,7 @@ export default {
169 170
       fileList: [],
170 171
       attachList: [],
171 172
       isSecretaryRole: true,
173
+      loadingSubmit: false
172 174
     };
173 175
   },
174 176
   watch: {
@@ -290,16 +292,19 @@ export default {
290 292
         this.$modal.msgSuccess("成功");
291 293
         this.$emit("cancelMediation");
292 294
         this.$emit("getList", this.queryParams);
295
+        this.loadingSubmit = false;
293 296
       });
294 297
     },
295 298
     cancel() {
296 299
       this.$emit("cancelMediation");
297 300
     },
298
-    
299
-    submitMediation: _.debounce(function() {
301
+
302
+    submitMediation() {
300 303
       if (this.fileList.length < 1 && !this.mediationType && this.mediationData.mediationMethod == "2") {
301 304
         this.$modal.msgError("请上传调解书");
302 305
         return
306
+      } else {
307
+        this.loadingSubmit = true;
303 308
       }
304 309
       let mediationVal = {}
305 310
       if (this.codes == 200) {
@@ -318,7 +323,7 @@ export default {
318 323
         }
319 324
       }
320 325
       this.mediationFn(mediationVal);
321
-    },5000),
326
+    },
322 327
     resultsMediation() {
323 328
 
324 329
     }

+ 1
- 1
vue.config.js Zobrazit soubor

@@ -12,7 +12,7 @@ const name = process.env.VUE_APP_TITLE || '调解系统' // 网页标题
12 12
 const port = process.env.port || process.env.npm_config_port || 80 // 端口
13 13
 
14 14
 // const API = 'http://121.40.189.20:9001'  //生产
15
-const API = 'http://121.40.189.20:6001'  //测试
15
+const API = 'http://121.40.189.20:7001'  //测试
16 16
 // const API = 'http://192.168.3.18:6001'  //B
17 17
 // const API = 'http://172.16.0.237:6001' //Q
18 18
 // const API = 'http://172.16.1.43:6001' //w