提交loading
This commit is contained in:
@@ -118,9 +118,10 @@
|
||||
<el-button @click="cancel" class="endbutton1" round>
|
||||
<span>取 消</span>
|
||||
</el-button>
|
||||
<el-button v-if="isSecretaryRole" @click="submitMediation" :disabled="this.recordArrMediate.length <= 0 && mediationData.mediationMethod == '1'"
|
||||
class="endbutton1" type="primary" round>
|
||||
<span>提 交</span>
|
||||
<el-button v-if="isSecretaryRole" :loading="loadingSubmit" @click="submitMediation"
|
||||
:disabled="this.recordArrMediate.length <= 0 && mediationData.mediationMethod == '1'" class="endbutton1"
|
||||
type="primary" round>
|
||||
提 交
|
||||
</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
@@ -169,6 +170,7 @@ export default {
|
||||
fileList: [],
|
||||
attachList: [],
|
||||
isSecretaryRole: true,
|
||||
loadingSubmit: false
|
||||
};
|
||||
},
|
||||
watch: {
|
||||
@@ -290,16 +292,19 @@ export default {
|
||||
this.$modal.msgSuccess("成功");
|
||||
this.$emit("cancelMediation");
|
||||
this.$emit("getList", this.queryParams);
|
||||
this.loadingSubmit = false;
|
||||
});
|
||||
},
|
||||
cancel() {
|
||||
this.$emit("cancelMediation");
|
||||
},
|
||||
|
||||
submitMediation: _.debounce(function() {
|
||||
|
||||
submitMediation() {
|
||||
if (this.fileList.length < 1 && !this.mediationType && this.mediationData.mediationMethod == "2") {
|
||||
this.$modal.msgError("请上传调解书");
|
||||
return
|
||||
} else {
|
||||
this.loadingSubmit = true;
|
||||
}
|
||||
let mediationVal = {}
|
||||
if (this.codes == 200) {
|
||||
@@ -318,7 +323,7 @@ export default {
|
||||
}
|
||||
}
|
||||
this.mediationFn(mediationVal);
|
||||
},5000),
|
||||
},
|
||||
resultsMediation() {
|
||||
|
||||
}
|
||||
|
||||
+1
-1
@@ -12,7 +12,7 @@ const name = process.env.VUE_APP_TITLE || '调解系统' // 网页标题
|
||||
const port = process.env.port || process.env.npm_config_port || 80 // 端口
|
||||
|
||||
// const API = 'http://121.40.189.20:9001' //生产
|
||||
const API = 'http://121.40.189.20:6001' //测试
|
||||
const API = 'http://121.40.189.20:7001' //测试
|
||||
// const API = 'http://192.168.3.18:6001' //B
|
||||
// const API = 'http://172.16.0.237:6001' //Q
|
||||
// const API = 'http://172.16.1.43:6001' //w
|
||||
|
||||
Reference in New Issue
Block a user