修复批量删除还款记录bug,删除成功后,clearSelection清除表格选择

master
yujialong 3 years ago
parent 106a61e2a9
commit df30a39d2e
  1. 10
      src/components/page/afterLoan/afterInsurance.vue

@ -474,7 +474,7 @@
</div>
</div>
<el-table :data="repaymentData" stripe header-align="center" class="mat20" @selection-change="hisSelectionChange" :row-key="getRowKeys" :key="1">
<el-table ref="repaymentTable" :data="repaymentData" stripe header-align="center" class="mat20" @selection-change="hisSelectionChange" :row-key="getRowKeys" :key="1">
<el-table-column type="selection" width="55" align="center" :reserve-selection="true"></el-table-column>
<el-table-column type="index" width="100" label="序号" align="center"></el-table-column>
<el-table-column prop="repaymentDate" label="应还款日" align="center"></el-table-column>
@ -562,8 +562,8 @@
</div>
<div v-for="(item, index) in organizationArrs" :key="index" class="organization-row">
<div class="left">{{index+1}}</div>
<el-input v-focus class="center" style="border:0" @blur="item.groupName=$event.target.value" v-if="!item.edit" :value="item.groupName"></el-input>
<el-input class="center" disabled style="border:0" v-if="item.edit" :value="item.groupName"></el-input>
<input v-focus class="center" style="border:0" @blur="item.groupName=$event.target.value" v-if="!item.edit" :value="item.groupName"></input>
<input class="center" disabled style="border:0" v-if="item.edit" :value="item.groupName"></input>
<div class="handle df">
<el-button @click="blurOrganization(item,index)" v-if="!item.edit" type="text">保存</el-button>
<el-button @click="editOrangization(item,index)" v-if="item.edit" type="text">编辑</el-button>
@ -1254,6 +1254,7 @@ export default {
// console.log('')
// /
//
let has = false
const form1 = new Promise((resolve,reject)=>{
this.$refs['refGuaranteeForm'].validate((valid) => {
if (valid) {
@ -1319,7 +1320,7 @@ export default {
}
that.repaymentForm.totalRepayment = that.totalRepayment
that.repaymentForm.overdueDays = that.overdueDays
Promise.all([updateRepayment(that.repaymentForm),editInsurance(param)]).then((res1,res2)=>{
Promise.all([editInsurance(param),updateRepayment(that.repaymentForm)]).then((res1,res2)=>{
that.$message.success("编辑成功!");
that.loanStatus = 3
that.$store.commit("loanStatusData", { loanStatus: 3 });
@ -1447,6 +1448,7 @@ export default {
.then(() => {
delRepayment(delIds).then(res=>{
this.hisMultipleSelection = [];
this.$refs.repaymentTable.clearSelection();
this.$message.success('删除成功');
this.statisticsSearch()
}).catch(err=>{

Loading…
Cancel
Save