From ec68cffd70d2a2788f7c74af55a11563aaf611d1 Mon Sep 17 00:00:00 2001 From: zhuzhuanzhuan Date: 星期三, 06 十二月 2023 15:47:38 +0800 Subject: [PATCH] 1、登录页面优化首次登录会出现404字样,需要明确用户登录后显示页面是否为首页/消息页或者角色中可设置 2、驱动参数管理页面新增或修改控制系统中英文名称规则限制字符数最少6位调整为2位 3、效率段管理页面效率段颜色可自定义 4、设备利用率、设备开动率、班次利用率页面增加可按照设备类型筛选查询 5、对比分析页面增加通过选择设备来对比 6、设备日利用率和设备日利用率对比页面优化选择树节点后查询区域的设备名称字段不会更新问题 --- src/views/mdc/base/modules/deviceRepair/DeviceRepairListModel.vue | 37 +++++++++++++++++++++++++++++++------ 1 files changed, 31 insertions(+), 6 deletions(-) diff --git a/src/views/mdc/base/modules/deviceRepair/DeviceRepairListModel.vue b/src/views/mdc/base/modules/deviceRepair/DeviceRepairListModel.vue index 86d898c..ae7e3ec 100644 --- a/src/views/mdc/base/modules/deviceRepair/DeviceRepairListModel.vue +++ b/src/views/mdc/base/modules/deviceRepair/DeviceRepairListModel.vue @@ -44,8 +44,8 @@ </a-col> <a-col :md="6" :sm="6"> - <a-form-item label="璁惧缂栫爜"> - <a-input placeholder="璇疯緭鍏ヨ澶囩紪鐮佹绱�" v-model="queryParam.equipmentId"></a-input> + <a-form-item label="缁熶竴缂栫爜"> + <a-input placeholder="璇疯緭鍏ョ粺涓�缂栫爜妫�绱�" v-model="queryParam.equipmentId"></a-input> </a-form-item> </a-col> @@ -66,7 +66,7 @@ <div> <a-table ref="table" size="middle" bordered rowKey="id" :scroll="{聽 y: 400聽}" :columns="columns" :dataSource="dataSource" :pagination="ipagination" :loading="loading" - :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}" + :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange,getCheckboxProps:getCheckboxProps,selections: true,}" @change="handleTableChange"> </a-table> </div> @@ -110,6 +110,9 @@ status: { type: Number, default: 1 + }, + selectedEquipmentIds:{ + type:String } }, data() { @@ -134,7 +137,7 @@ } },{ - title: '璁惧缂栫爜', + title: '缁熶竴缂栫爜', align: 'center', dataIndex: 'equipmentId', }, @@ -199,6 +202,9 @@ this.selectionRows = selectionRows // this.SelectedList =[...this.SelectedList,...selectionRows]; // console.log(this.SelectedList); + console.log('selectedRowKeys',selectedRowKeys) + console.log('selectionRows',selectionRows) + }, handleTableChange(pagination, filters, sorter) { // this.onClearSelected() @@ -305,8 +311,6 @@ } }) }, - - initGroupOptions() { getAction(this.url.loadProductionOptions).then(res => { if (res.success) { @@ -319,6 +323,27 @@ }); } }) + }, + /** + * 姣忔鍔犺浇鍒楄〃鏃跺垽鏂凡閫変腑璁惧缂栧彿鏁扮粍鏄惁鍖呭惈琛ㄦ牸鏁版嵁涓殑璁惧缂栧彿锛屽鏋滃寘鍚垯閫変腑 + * @param record + * @returns {{props: {defaultChecked: boolean}}} + */ + getCheckboxProps(record){ + if(this.selectedEquipmentIds){ + let selectedEquipmentIdsArr=this.selectedEquipmentIds.split(',') + return { + props:{ + defaultChecked: selectedEquipmentIdsArr.includes(record.equipmentId) + } + } + }else{ + return { + props:{ + defaultChecked:false + } + } + } } }, } -- Gitblit v1.9.3