修改报工记录页面按钮重复点击的问题

master
LAPTOP-R6EHHS26\86155 8 months ago
parent 6e55177872
commit 51d9b2e0cd

@ -472,7 +472,7 @@
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<el-button type="primary" @click="cancel" v-if="optType == 'view'"></el-button> <el-button type="primary" @click="cancel" v-if="optType == 'view'"></el-button>
<el-button type="primary" @click="submitConsume" v-else> </el-button> <el-button :disabled="loading" type="primary" @click="submitConsume" v-else> </el-button>
<el-button @click="cancel"> </el-button> <el-button @click="cancel"> </el-button>
</div> </div>
</el-dialog> </el-dialog>
@ -1362,7 +1362,7 @@ export default {
this.sConsumeRows = selection; this.sConsumeRows = selection;
}, },
submitConsume() { submitConsume() {
// this.loading = true; this.loading = true;
this.pConsumeRows = this.pConsumeRows.concat( this.pConsumeRows = this.pConsumeRows.concat(
this.mergedArray.filter( this.mergedArray.filter(
(obj2) => (obj2) =>

Loading…
Cancel
Save