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