From 500324b1af1b752a982b8a5d9f03797240c2404c Mon Sep 17 00:00:00 2001 From: zhangherong <571457620@qq.com> Date: 星期三, 28 五月 2025 12:56:48 +0800 Subject: [PATCH] art: 设备管理-故障报修-增加设备名称、安装位置信息 --- src/views/eam/repair/EamReportRepairList.vue | 36 +++++++++++++++++++++++++----------- 1 files changed, 25 insertions(+), 11 deletions(-) diff --git a/src/views/eam/repair/EamReportRepairList.vue b/src/views/eam/repair/EamReportRepairList.vue index 54655ba..1c73ccd 100644 --- a/src/views/eam/repair/EamReportRepairList.vue +++ b/src/views/eam/repair/EamReportRepairList.vue @@ -58,7 +58,7 @@ <!-- 鎿嶄綔鎸夐挳鍖哄煙 --> <div class="table-operator" v-if="isDisplayOperation"> - <a-button @click="handleAdd" type="primary" icon="plus">鏂板</a-button> + <a-button @click="handleAdd" type="primary" icon="plus" v-if="isShowAuth('eam:reportRepair:add')">鏂板</a-button> <!--<a-button type="primary" icon="download" @click="handleExportXls('鏁呴殰鎶ヤ慨')">瀵煎嚭</a-button>--> <!--<a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl"--> <!--@change="handleImportExcel">--> @@ -66,7 +66,7 @@ <!--</a-upload>--> <a-dropdown v-if="selectedRowKeys.length > 0"> <a-menu slot="overlay"> - <a-menu-item key="1" @click="batchDel"> + <a-menu-item key="1" @click="batchDel" v-if="isShowAuth('eam:reportRepair:abolish')"> <a-icon type="delete"/> 浣滃簾 </a-menu-item> @@ -95,6 +95,7 @@ :pagination="ipagination" :loading="loading" class="j-table-force-nowrap" + :scroll="{ x: 'max-content' }" :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange,type:isDisplayOperation?'checkbox':'radio',getCheckboxProps:getCheckboxProps}" @change="handleTableChange"> @@ -103,15 +104,15 @@ </template> <span slot="action" slot-scope="text, record" v-if="record.reportStatus=='WAIT_REPAIR'"> - <a @click="handleEdit(record)">缂栬緫</a> + <a @click="handleEdit(record)" v-if="isShowAuth('eam:reportRepair:edit')">缂栬緫</a> - <a-divider type="vertical"/> + <a-divider type="vertical" v-if="isShowAuth('eam:reportRepair:edit')"/> - <a @click="handleAssign(record)">鎸囨淳</a> + <a @click="handleAssign(record)" v-if="isShowAuth('eam:reportRepair:assign')">鎸囨淳</a> - <a-divider type="vertical"/> + <a-divider type="vertical" v-if="isShowAuth('eam:reportRepair:assign')"/> - <a-popconfirm title="纭畾浣滃簾鍚�?" @confirm="() => handleDelete(record.id)"> + <a-popconfirm title="纭畾浣滃簾鍚�?" @confirm="() => handleDelete(record.id)" v-if="isShowAuth('eam:reportRepair:abolish')"> <a>浣滃簾</a> </a-popconfirm> </span> @@ -173,13 +174,25 @@ align: 'center', customRender: function(t, r, index) { return parseInt(index) + 1 - } + }, + fixed: 'left', }, { title: '璁惧缂栧彿', align: 'center', - dataIndex: 'equipmentId_dictText', - width: 200 + dataIndex: 'equipmentCode', + fixed: 'left', + }, + { + title: '璁惧鍚嶇О', + align: 'center', + dataIndex: 'equipmentName', + fixed: 'left', + }, + { + title: '瀹夎浣嶇疆', + align: 'center', + dataIndex: 'installationPosition', }, { title: '鎶ヤ慨鐘舵��', @@ -260,7 +273,8 @@ dataIndex: 'action', align: 'center', scopedSlots: { customRender: 'action' }, - width: 200 + width: 200, + fixed: 'right', } this.columns = [...this.columns, operationColumn] this.getFaultReasonListByApi() -- Gitblit v1.9.3