fix:自动选中查询的行
This commit is contained in:
parent
dd2d9466c3
commit
c67bb938de
|
@ -22,6 +22,7 @@
|
||||||
<el-input v-if="multipleSet" v-model="wprInputText" @change="wprinputChange" style="width:200px;position: relative;left: 308px;"></el-input>
|
<el-input v-if="multipleSet" v-model="wprInputText" @change="wprinputChange" style="width:200px;position: relative;left: 308px;"></el-input>
|
||||||
<sc-form-table
|
<sc-form-table
|
||||||
hideDelete
|
hideDelete
|
||||||
|
ref="mlogbwTable"
|
||||||
id="mlogbwlist"
|
id="mlogbwlist"
|
||||||
v-model="mlogbwlist"
|
v-model="mlogbwlist"
|
||||||
placeholder="暂无数据"
|
placeholder="暂无数据"
|
||||||
|
@ -29,6 +30,7 @@
|
||||||
:addTemplate="addTemplate"
|
:addTemplate="addTemplate"
|
||||||
:tableHeight="tableHeight"
|
:tableHeight="tableHeight"
|
||||||
:canMultiple = "canMultiple"
|
:canMultiple = "canMultiple"
|
||||||
|
row-key="id"
|
||||||
@selectChange="selectChange"
|
@selectChange="selectChange"
|
||||||
@selectAllChange="selectAllChange"
|
@selectAllChange="selectAllChange"
|
||||||
@add="rowAdd"
|
@add="rowAdd"
|
||||||
|
@ -487,6 +489,7 @@ export default {
|
||||||
selectChange(rows){
|
selectChange(rows){
|
||||||
let that = this;
|
let that = this;
|
||||||
that.selectWprList = rows;
|
that.selectWprList = rows;
|
||||||
|
console.log('selectChangerows',rows);
|
||||||
},
|
},
|
||||||
selectAllChange(datas){
|
selectAllChange(datas){
|
||||||
let that = this;
|
let that = this;
|
||||||
|
@ -899,6 +902,10 @@ export default {
|
||||||
that.mlogbwlist.splice(index,1);
|
that.mlogbwlist.splice(index,1);
|
||||||
that.wprInputText = "";
|
that.wprInputText = "";
|
||||||
that.mlogbwlist.unshift(obj);
|
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){
|
if(that.setForm.cd_req_addr!==null&&that.setForm.cd_req_addr!==""&&that.setForm.cd_req_addr!==undefined){
|
||||||
//执行cd_req_addr,获取检测设备的数据
|
//执行cd_req_addr,获取检测设备的数据
|
||||||
that.getEqData(0);
|
that.getEqData(0);
|
||||||
|
|
Loading…
Reference in New Issue