hanchaobo 2 lat temu
rodzic
commit
42806a93bf

+ 11
- 6
src/views/caseManagement/components/mediation.vue Wyświetl plik

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

+ 1
- 1
vue.config.js Wyświetl plik

12
 const port = process.env.port || process.env.npm_config_port || 80 // 端口
12
 const port = process.env.port || process.env.npm_config_port || 80 // 端口
13
 
13
 
14
 // const API = 'http://121.40.189.20:9001'  //生产
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
 // const API = 'http://192.168.3.18:6001'  //B
16
 // const API = 'http://192.168.3.18:6001'  //B
17
 // const API = 'http://172.16.0.237:6001' //Q
17
 // const API = 'http://172.16.0.237:6001' //Q
18
 // const API = 'http://172.16.1.43:6001' //w
18
 // const API = 'http://172.16.1.43:6001' //w