修复还款记录-编辑,discernEdit状态管理存错bug

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

@ -562,8 +562,8 @@
</div>
<div v-for="(item, index) in organizationArrs" :key="index" class="organization-row">
<div class="left">{{index+1}}</div>
<input v-focus class="center" style="border:0" @blur="item.groupName=$event.target.value" v-if="!item.edit" :value="item.groupName"></el-input>
<input class="center" disabled style="border:0" v-if="item.edit" :value="item.groupName"></el-input>
<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>
<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>
@ -1489,13 +1489,13 @@ export default {
this.$store.commit('setNewOrOld','oldLoans')//
//
type==='编辑'?this.$store.commit('discernEdit',false):this.$store.commit('discernEdit',false)
type==='编辑'?this.$store.commit('discernEdit',true):this.$store.commit('discernEdit',false)
if (type==='查看') {
this.$store.commit('disabledAll',true)
}else{
this.$store.commit('disabledAll',false)
}
this.$store.commit("loanbackStatusData", { loanbackStatus: type });
},
//

Loading…
Cancel
Save