8b653a1d by xiaomiao

--no commit message

1 parent 4b43d29a
......@@ -58,7 +58,7 @@
</el-form>
</div>
<div class="submit_button" v-if="ableOperation">
<el-button type="primary" @click="onSubmit()">保存</el-button>
<el-button type="primary" :disabled="shows" @click="onSubmit()">保存</el-button>
</div>
</div>
<!-- <el-empty v-if="isNoData" description="暂无数据"></el-empty> -->
......@@ -87,6 +87,7 @@ export default {
falg1: false,
jdmc: "",
indexdqlc: 0,
shows:false
};
},
......@@ -128,7 +129,6 @@ export default {
* @author: renchao
*/
getShList() {
let that = this;
this.$startLoading();
var formdata = new FormData();
formdata.append("bsmBusiness", this.propsParam.bsmBusiness);
......@@ -138,6 +138,10 @@ export default {
this.$endLoading();
if (res.code === 200 && res.result) {
this.tableData = res.result;
if(this.shows){
this.shows=false
}
var index = this.tableData.findIndex(
(item) => item.jddm === this.$parent.dqhj
);
......@@ -179,6 +183,7 @@ export default {
* @author: renchao
*/
onSubmit() {
this.shows=true
this.tableData.forEach((item, index) => {
item["bsmBusiness"] = this.propsParam.bsmBusiness;
item["czjg"] = "1";
......@@ -187,6 +192,7 @@ export default {
if (res.code === 200) {
this.$message.success("保存成功");
this.refresh += 1;
this.getShList();
} else {
this.$message.error(res.message);
}
......