fix:自动选中查询的行

This commit is contained in:
shijing 2025-09-28 15:51:34 +08:00
parent dd2d9466c3
commit c67bb938de
1 changed files with 7 additions and 0 deletions

View File

@ -22,6 +22,7 @@
<el-input v-if="multipleSet" v-model="wprInputText" @change="wprinputChange" style="width:200px;position: relative;left: 308px;"></el-input>
<sc-form-table
hideDelete
ref="mlogbwTable"
id="mlogbwlist"
v-model="mlogbwlist"
placeholder="暂无数据"
@ -29,6 +30,7 @@
:addTemplate="addTemplate"
:tableHeight="tableHeight"
:canMultiple = "canMultiple"
row-key="id"
@selectChange="selectChange"
@selectAllChange="selectAllChange"
@add="rowAdd"
@ -487,6 +489,7 @@ export default {
selectChange(rows){
let that = this;
that.selectWprList = rows;
console.log('selectChangerows',rows);
},
selectAllChange(datas){
let that = this;
@ -899,6 +902,10 @@ export default {
that.mlogbwlist.splice(index,1);
that.wprInputText = "";
that.mlogbwlist.unshift(obj);
that.$nextTick(() => {
that.$refs.mlogbwTable.setCurrentRows(obj); //
})
if(that.setForm.cd_req_addr!==null&&that.setForm.cd_req_addr!==""&&that.setForm.cd_req_addr!==undefined){
//cd_req_addr,
that.getEqData(0);