From a20bf71a183e02d3f01826152df9061855bc39e8 Mon Sep 17 00:00:00 2001 From: zhaowei <zhaowei> Date: 星期一, 26 五月 2025 18:00:37 +0800 Subject: [PATCH] 设备管理新增生产设备自主维护点检表页面 --- src/views/mdc/base/modules/efficiencyShiftReport/EfficiencyShiftList.vue | 72 ++++++++++++++++++++++++++---------- 1 files changed, 52 insertions(+), 20 deletions(-) diff --git a/src/views/mdc/base/modules/efficiencyShiftReport/EfficiencyShiftList.vue b/src/views/mdc/base/modules/efficiencyShiftReport/EfficiencyShiftList.vue index 85f3870..d8fabe4 100644 --- a/src/views/mdc/base/modules/efficiencyShiftReport/EfficiencyShiftList.vue +++ b/src/views/mdc/base/modules/efficiencyShiftReport/EfficiencyShiftList.vue @@ -16,7 +16,7 @@ :maxTagCount="1" @change="selectChange($event,'equipmentType')" > - <a-select-option v-for="item in equipmentTypeList" :value="item.value"> + <a-select-option v-for="(item,index) in equipmentTypeList" :value="item.value" :key="index"> {{item.label}} </a-select-option> </a-select> @@ -32,7 +32,7 @@ :maxTagCount="1" @change="selectChange($event,'driveType')" > - <a-select-option v-for="item in driveTypeList" :value="item.value"> + <a-select-option v-for="(item,index) in driveTypeList" :value="item.value" :key="index"> {{item.label}} </a-select-option> </a-select> @@ -77,6 +77,22 @@ </a-row> <a-row :gutter="24" v-if="toggleSearchStatus"> + <!-- <a-col :md="5" :sm="5" :xs="5">--> + <!-- <a-form-item label="璁惧绉嶇被">--> + <!-- <a-select--> + <!-- :value="queryParams.deviceCategory"--> + <!-- mode="multiple"--> + <!-- placeholder="璇烽�夋嫨璁惧绉嶇被"--> + <!-- allow-clear--> + <!-- :maxTagCount="1"--> + <!-- @change="selectChange($event,'deviceCategory')"--> + <!-- >--> + <!-- <a-select-option v-for="(item,index) in device_category_list" :value="item.value" :key="index">--> + <!-- {{item.label}}--> + <!-- </a-select-option>--> + <!-- </a-select>--> + <!-- </a-form-item>--> + <!-- </a-col>--> <a-col :md="5" :sm="5" :xs="5"> <a-form-item label="璁惧绾у埆"> <a-select @@ -87,23 +103,21 @@ :maxTagCount="1" @change="selectChange($event,'deviceLevel')" > - <a-select-option v-for="item in device_level_list" :value="item.value"> + <a-select-option v-for="(item,index) in device_level_list" :value="item.value" :key="index"> {{item.label}} </a-select-option> </a-select> </a-form-item> </a-col> <a-col :md="5" :sm="5" :xs="5"> - <a-form-item label="璁惧绉嶇被"> + <a-form-item label="閲嶈绋嬪害"> <a-select - :value="queryParams.deviceCategory" - mode="multiple" - placeholder="璇烽�夋嫨璁惧绉嶇被" + v-model="queryParam.deviceImportanceLevel" + placeholder="璇烽�夋嫨璁惧閲嶈绋嬪害" allow-clear - :maxTagCount="1" - @change="selectChange($event,'deviceCategory')" > - <a-select-option v-for="item in device_category_list" :value="item.value"> + <a-select-option v-for="(item,index) in device_importance_level_list" :value="item.value" + :key="index"> {{item.label}} </a-select-option> </a-select> @@ -141,6 +155,7 @@ </a-form> </div> </div> + <a-spin :spinning="spinning"> <div class="container" id="EfficiencyShift" style="margin-top: 20px;"> <div class="table2"> @@ -148,7 +163,9 @@ v-if="dataList.length>0"> <thead> <tr class="thead fixed equipname"> - <th class="thgu dong1 name" rowspan="2" style="min-width: 50px; max-width: 50px;width: 50px;height: 66px">鍏徃</th> + <th class="thgu dong1 name" rowspan="2" + style="min-width: 50px; max-width: 50px;width: 50px;height: 66px">鍏徃 + </th> <th class="thgu dong2 name" rowspan="2" style="min-width: 50px; max-width: 50px;width: 50px;">杞﹂棿</th> <th class="thgu dong3 name" rowspan="2" style="min-width: 50px; max-width: 50px;width: 50px;">宸ユ</th> <th class="thgu dong4 name" rowspan="2" style="min-width: 100px; max-width: 100px;width: 100px;">璁惧缂栧彿 @@ -157,7 +174,9 @@ </th> <th class="thgu dong6 name" rowspan="2" style="min-width: 100px; max-width: 100px;width: 100px;">璁惧绫诲瀷 </th> - <th class="thgu dong7 name" rowspan="2" style="min-width: 100px; max-width: 100px;width: 100px;">鐝</th> + <th class="thgu dong7 name" rowspan="2" style="min-width: 120px; max-width: 120px;width: 120px;">璁惧鍨嬪彿 + </th> + <th class="thgu dong8 name" rowspan="2" style="min-width: 100px; max-width: 100px;width: 100px;">鐝</th> <template v-for="(tableHead, index) in tableHeads"> <th class="timeth" :colspan="checkedList.length">{{tableHead}}</th> </template> @@ -199,15 +218,18 @@ {{item.equipmentName}} </td> <td class="tdgu5 kaitou">{{item.equipmentType}}</td> - <td class="tdgu6 kaitou">{{item.shiftSubName}}</td> + <td class="tdgu6 kaitou">{{item.equipmentModel}}</td> + <td class="tdgu7 kaitou">{{item.shiftSubName}}</td> </template> <template v-else> - <td colspan="7" class="tdgu kaitou">{{item.level1}}</td> + <td colspan="8" class="tdgu kaitou">{{item.level1}}</td> </template> <!--<td>{{item.tierType}}</td>--> <template v-for="(tableHead, index) in item.dataList"> - <td :style="{background:tableHead.color }" v-if="checkedList.indexOf('lyl') > -1">{{tableHead.utilizationRate | numFilter}}</td> + <td :style="{background:tableHead.color }" v-if="checkedList.indexOf('lyl') > -1"> + {{tableHead.utilizationRate | numFilter}} + </td> <td :style="{background:tableHead.color }" v-if="checkedList.indexOf('kjsj') > -1"> {{tableHead.openLong | getFormattedTime}} </td> @@ -253,14 +275,13 @@ equipmentTypeList: [], driveTypeList: [], device_level_list: [], - device_category_list: [], + device_importance_level_list: [], identifying: [], queryParam: {}, queryParams: { equipmentType: [], driveType: [], - deviceLevel: [], - deviceCategory: [] + deviceLevel: [] }, queryParamEquip: {}, queryParamPeople: {}, @@ -305,6 +326,7 @@ this.getDriveTypeByApi() this.initDictData('device_level') this.initDictData('device_category') + this.initDictData('device_importance_level') }, mounted() { window.addEventListener('resize', this.handleWindowResize) @@ -588,8 +610,7 @@ this.queryParams = { equipmentType: [], driveType: [], - deviceLevel: [], - deviceCategory: [] + deviceLevel: [] } this.loadData() // this.onClearSelected() @@ -720,6 +741,12 @@ z-index: 2; } + .table tbody tr .tdgu7 { + position: sticky; + left: 632px; + z-index: 2; + } + .table2 thead tr .timeth, .table2 thead tr .thgu { position: sticky; @@ -772,6 +799,11 @@ left: 512px; } + .table2 thead .equipname .dong8 { + z-index: 6; + left: 632px; + } + #EfficiencyShift { overflow: hidden; } -- Gitblit v1.9.3