From 547aab154e85a9a89f1e320f92bd43854d10faeb Mon Sep 17 00:00:00 2001 From: zhuzhuanzhuan Date: 星期四, 14 十二月 2023 14:12:45 +0800 Subject: [PATCH] 1、调整车间看板页面详情弹窗描述列表内容字段 2、报警分析页面在原有表格中为每个报警号增加子表格,内容为出现此报警号的设备ID以及报警时间等 3、报警分析页面表格请求数据设置加载中动画 4、调整设备参数阈值管理页面添加或编辑阈值上下限输入框为数字输入框,避免上下限数字比较大小时出现问题 --- src/views/eam/EquipmentMaintenancePlanDetailList.vue | 56 +++++++++++++++++++++++++++++++++++++++++++------------- 1 files changed, 43 insertions(+), 13 deletions(-) diff --git a/src/views/eam/EquipmentMaintenancePlanDetailList.vue b/src/views/eam/EquipmentMaintenancePlanDetailList.vue index 69df8aa..4b92518 100644 --- a/src/views/eam/EquipmentMaintenancePlanDetailList.vue +++ b/src/views/eam/EquipmentMaintenancePlanDetailList.vue @@ -61,27 +61,44 @@ </template> <span slot="action" slot-scope="text, record"> - <a @click="handleEdit(record)">缂栬緫</a> - <a-divider type="vertical" /> + <!-- <a-divider type="vertical" /> <a-popconfirm title="纭畾鍒犻櫎鍚�?" @confirm="() => handleDelete(record.id)"> <a>鍒犻櫎</a> - </a-popconfirm> + </a-popconfirm> --> + <a @click="handleEdit(record)" :disabled="mainStatus!=='distributed'">璁″垝鍙樻洿</a> </span> - + <span + slot="num" + slot-scope="text, record" + > + <a + class="lot" + @click="handleShowDetail(record)" + >{{record.standardNum}}</a> + </span> </a-table> </div> + <standard-detail-model :mainId="standardId" ref="standardDetail"></standard-detail-model> + <maintenance-plan-change-model ref="modalForm" @ok="modalFormOk"></maintenance-plan-change-model> </a-card> </template> <script> import { JeecgListMixin } from '@/mixins/JeecgListMixin' + import StandardDetailModel from './modules/maintenancePlan/StandardDetailModel' + import MaintenancePlanChangeModel from './modules/maintenancePlan/MaintenancePlanChangeModel.vue' export default { name: "EquipmentMaintenancePlanDetailList", mixins:[JeecgListMixin], - components: {}, + components: {StandardDetailModel, MaintenancePlanChangeModel}, props:{ mainId:{ + type:String, + default:'', + required:false + }, + mainStatus:{ type:String, default:'', required:false @@ -120,38 +137,47 @@ title:'淇濆吇鏍囧噯', align:"center", dataIndex: 'standardNum', - width:300, + width:250, + scopedSlots: { customRender: 'num' } }, { title:'璁惧缁熶竴缂栫爜', align:"center", dataIndex: 'equipmentNum', - width:300, + width:250, }, { title:'璁惧鍚嶇О', align:"center", dataIndex: 'equipmentName', - width:300, + width:250, }, { title:'璁惧鍨嬪彿', align:"center", dataIndex: 'model', - width:300, + width:250, }, { title:'璁″垝寮�濮嬫椂闂�', align:"center", dataIndex: 'planStartTime', - width:300, + width:280, }, { title:'璁″垝缁撴潫鏃堕棿', align:"center", dataIndex: 'planEndTime', - width:300, + width:280, }, + { + title: '鎿嶄綔', + dataIndex: 'action', + align:"center", + fixed:"right", + width:200, + scopedSlots: { customRender: 'action' }, + } ], url: { list: "/eam/equipmentMaintenancePlan/listEquipmentMaintenancePlanDetailByMainId", @@ -161,7 +187,8 @@ importUrl: "/eam/equipmentMaintenancePlan/importEquipmentMaintenancePlanDetail", }, dictOptions:{ - } + }, + standardId:'' } }, created() { @@ -176,8 +203,11 @@ this.dataSource=[] this.selectedRowKeys=[] this.ipagination.current = 1 + }, + handleShowDetail(record){ + this.standardId = record.standardId + this.$refs.standardDetail.visible = true; } - } } </script> -- Gitblit v1.9.3