From 0944b9eb966ae1ee19eab0823a1c45608f1a12ee Mon Sep 17 00:00:00 2001 From: lyh <925863403@qq.com> Date: 星期五, 05 九月 2025 10:40:52 +0800 Subject: [PATCH] 修改保养项目列表内容样式展示 --- src/views/flowable/workflow/TechnicalStatusEvaluation/TechnicalStatusEvaluationApprovalModal.vue | 58 +++++++++++++++++++++++++++++++++++++++------------------- 1 files changed, 39 insertions(+), 19 deletions(-) diff --git a/src/views/flowable/workflow/TechnicalStatusEvaluation/TechnicalStatusEvaluationApprovalModal.vue b/src/views/flowable/workflow/TechnicalStatusEvaluation/TechnicalStatusEvaluationApprovalModal.vue index 073a677..d2c63a9 100644 --- a/src/views/flowable/workflow/TechnicalStatusEvaluation/TechnicalStatusEvaluationApprovalModal.vue +++ b/src/views/flowable/workflow/TechnicalStatusEvaluation/TechnicalStatusEvaluationApprovalModal.vue @@ -53,10 +53,10 @@ <a-tabs :active-key="activeTabKey" @change="handleTabChange"> <a-tab-pane :key="1" tab="瀹夊叏瑁呯疆妫�鏌�" forceRender - v-if="disableSubmit|| - selectShenpiData.taskDefKey&&(selectShenpiData.taskDefKey=='safety_equipment_check'||selectShenpiData.taskDefKey=='safety_equipment_check_confirm')|| - model.evaluationStatus&&model.evaluationStatus!='UNDER_EVALUATION'&&detail.safetyEquipmentCheckList.length>0"> - <j-vxe-table ref="editableDetailTable1" rowNumber bordered alwaysEdit keep-source :height="300" + v-if="(disableSubmit&&detail.safetyEquipmentCheckList.length>0)|| + (selectShenpiData.taskDefKey&&(selectShenpiData.taskDefKey=='safety_equipment_check'||selectShenpiData.taskDefKey=='safety_equipment_check_confirm'))|| + (model.evaluationStatus&&model.evaluationStatus!='UNDER_EVALUATION'&&model.evaluationStatus!='WAIT_EVALUATION')"> + <j-vxe-table ref="editableDetailTable1" rowNumber bordered alwaysEdit keep-source :dataSource="detail.safetyEquipmentCheckList" :columns="detail.safetyEquipmentCheckColumns"> <template v-slot:safetyEquipmentCheckResult="props"> @@ -93,11 +93,11 @@ </a-tab-pane> <a-tab-pane :key="2" tab="璁惧绮惧害妫�鏌�" forceRender - v-if="disableSubmit|| - selectShenpiData.taskDefKey&&(selectShenpiData.taskDefKey=='equipment_precision_check'||selectShenpiData.taskDefKey=='equipment_precision_check_confirm')|| - model.evaluationStatus&&model.evaluationStatus!='UNDER_EVALUATION'&&detail.precisionCheckList.length>0"> + v-if="(disableSubmit&&detail.precisionCheckList.length>0)|| + (selectShenpiData.taskDefKey&&(selectShenpiData.taskDefKey=='equipment_precision_check'||selectShenpiData.taskDefKey=='equipment_precision_check_confirm'))|| + (model.evaluationStatus&&model.evaluationStatus!='UNDER_EVALUATION'&&model.evaluationStatus!='WAIT_EVALUATION')"> <j-vxe-table ref="editableDetailTable2" rowNumber bordered - alwaysEdit keep-source :height="300" + alwaysEdit keep-source :dataSource="detail.precisionCheckList" :columns="detail.precisionCheckColumns"> <template v-slot:precisionCheckResult="props"> <a-input-number v-model="props.row.precisionCheckResult" @@ -132,11 +132,11 @@ </a-tab-pane> <a-tab-pane :key="3" tab="鍏朵粬妫�鏌�" forceRender - v-if="disableSubmit|| - selectShenpiData.taskDefKey&&(selectShenpiData.taskDefKey=='other_check'||selectShenpiData.taskDefKey=='other_check_confirm')|| - model.evaluationStatus&&model.evaluationStatus!='UNDER_EVALUATION'&&detail.otherCheckList.length>0"> + v-if="(disableSubmit&&detail.otherCheckList.length>0)|| + (selectShenpiData.taskDefKey&&(selectShenpiData.taskDefKey=='other_check'||selectShenpiData.taskDefKey=='other_check_confirm'))|| + (model.evaluationStatus&&model.evaluationStatus!='UNDER_EVALUATION'&&model.evaluationStatus!='WAIT_EVALUATION')"> <j-vxe-table ref="editableDetailTable3" rowNumber bordered - alwaysEdit keep-source :height="300" + alwaysEdit keep-source :dataSource="detail.otherCheckList" :columns="detail.otherCheckColumns"> <template v-slot:otherCheckResult="props"> <a-textarea v-model="props.row.otherCheckResult" :rows="1" @@ -323,7 +323,7 @@ name: 'TechnicalStatusEvaluationApprovalModal', mixins: [JVxeTableModelMixin], components: { - TechnicalStatusEquipmentSelect, + TechnicalStatusEquipmentSelect }, props: { selectShenpiData: { @@ -411,7 +411,8 @@ title: '妫�鏌ラ」鐩�', key: 'itemName', type: JVXETypes.normal, - align: 'center' + headerAlign: 'center', + align: 'left' }, { title: '妫�鏌ョ粨鏋�', @@ -444,13 +445,15 @@ title: '妫�鏌ラ」鐩�', key: 'itemName', type: JVXETypes.normal, - align: 'center' + headerAlign: 'center', + align: 'left' }, { title: '妫�鏌ュ瓙椤圭洰', key: 'subItemName', type: JVXETypes.normal, - align: 'center' + headerAlign: 'center', + align: 'left' }, { title: '鍏佸樊鍊�', @@ -489,7 +492,8 @@ title: '妫�鏌ラ」鐩�', key: 'itemName', type: JVXETypes.normal, - align: 'center' + headerAlign: 'center', + align: 'left' }, { title: '妫�鏌ョ粨鏋�', @@ -525,7 +529,7 @@ * 涓婚〉闈㈢偣鍑绘墽琛屽鎵规椂瑙﹀彂 * @param record 涓婚〉闈㈠垪琛ㄨ璁板綍 */ - async handleDetail(record) { + async handleApprove(record) { this.model = {} this.detail.safetyEquipmentCheckList = this.detail.precisionCheckList = this.detail.otherCheckList = [] this.handleTabToFirstTable() @@ -537,7 +541,7 @@ * 涓婚〉闈㈢偣鍑昏鎯呮椂瑙﹀彂 * @param record 涓婚〉闈㈠垪琛ㄨ璁板綍 */ - recordDetail(record) { + handleDetail(record) { this.detail.safetyEquipmentCheckList = this.detail.precisionCheckList = this.detail.otherCheckList = [] this.model = Object.assign({}, record) this.handleTabToFirstTable() @@ -762,4 +766,20 @@ } } } + + .vxe-header--column[data-col="itemName"] .vxe-cell { + text-align: center !important; + } + + .vxe-body--column[data-col="itemName"] .vxe-cell { + text-align: left !important; + } + + .vxe-header--column[data-col="subItemName"] .vxe-cell { + text-align: center !important; + } + + .vxe-body--column[data-col="subItemName"] .vxe-cell { + text-align: left !important; + } </style> \ No newline at end of file -- Gitblit v1.9.3