From 4bdafebef311d37a28f84c09dcf74bebb096dbb6 Mon Sep 17 00:00:00 2001 From: zhaowei <zhaowei> Date: 星期一, 23 六月 2025 14:43:50 +0800 Subject: [PATCH] 1、mdc设备多选输入框优化新增点击输入框同样触发查询按钮弹出抽屉或弹窗 2、解决进入过产品结构树页面后再进入设备日志页面后设备状态分布图样式变形问题以及优化组件代码 --- src/views/tms/modules/inbound/InboundListRight.vue | 14 ++++++++++++++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/src/views/tms/modules/inbound/InboundListRight.vue b/src/views/tms/modules/inbound/InboundListRight.vue index 247a0ab..2a56ce4 100644 --- a/src/views/tms/modules/inbound/InboundListRight.vue +++ b/src/views/tms/modules/inbound/InboundListRight.vue @@ -76,6 +76,7 @@ :loading="loading" :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange,type:'radio'}" class="j-table-force-nowrap" + :customRow="customRow" @change="handleTableChange"> <template slot="htmlSlot" slot-scope="text"> @@ -338,6 +339,16 @@ this.$bus.$emit('queryTreeData') //鍒锋柊宸︿晶鏍� }, + customRow(record) { + return { + on: { + click: () => { + this.onSelectChange(record.id.split(","), [record]); + } + } + } + }, + onSelectChange(selectedRowKeys) { this.selectedRowKeys = selectedRowKeys; //閫氳繃id鏌ヨ绠$悊鍙傛暟鍜屽弬鏁版暟鎹� @@ -478,6 +489,9 @@ if (res.success) { this.dataSource = res.result.records; // 鏇存柊琛ㄦ牸鏁版嵁 this.ipagination.total = res.result.total + //榛樿閫変腑绗竴鏉℃暟鎹� + this.selectedRowKeys[0] = res.result.records[0].id + this.onSelectChange(this.selectedRowKeys) } else { this.$message.warning("璇烽�夋嫨鍙跺瓙鑺傜偣杩涜鏌ヨ"); this.ipagination.total = 0 -- Gitblit v1.9.3