From 6b991755747ac9234340ca748134ae5e7d1c46ce Mon Sep 17 00:00:00 2001 From: lb Date: Fri, 29 Mar 2024 16:30:37 +0800 Subject: [PATCH] update again --- src/components/DialogForm/index.vue | 2 +- src/views/specialEquipment/check/Record.vue | 51 +++++++------------ .../specialEquipment/maintain/Record.vue | 5 +- 3 files changed, 23 insertions(+), 35 deletions(-) diff --git a/src/components/DialogForm/index.vue b/src/components/DialogForm/index.vue index 2c05e32e..1ec7eb36 100644 --- a/src/components/DialogForm/index.vue +++ b/src/components/DialogForm/index.vue @@ -12,7 +12,7 @@ :label-width="`${labelWidth}px`" :size="size" :label-position="labelPosition" - v-loading="formLoading"> + v-loading="0 && formLoading"> diff --git a/src/views/specialEquipment/check/Record.vue b/src/views/specialEquipment/check/Record.vue index e77685ff..45c72e5c 100644 --- a/src/views/specialEquipment/check/Record.vue +++ b/src/views/specialEquipment/check/Record.vue @@ -91,8 +91,18 @@ export default { // : undefined, ].filter((v) => v), tableProps: [ - { prop: 'name', label: '巡检单名称', showOverflowtooltip: true }, - { prop: 'department', label: '部门', showOverflowtooltip: true }, + { + prop: 'name', + label: '巡检单名称', + showOverflowtooltip: true, + filter: (v) => v ?? '---', + }, + { + prop: 'department', + label: '部门', + showOverflowtooltip: true, + filter: (v) => v ?? '---', + }, { prop: 'actualCheckTime', label: '巡检时间', @@ -100,33 +110,12 @@ export default { filter: parseTime, showOverflowtooltip: true, }, - { prop: 'groupClass', label: '班次', showOverflowtooltip: true }, - // { - // prop: '_detail', - // label: '巡检内容', - // subcomponent: { - // name: 'ViewDetail', - // props: ['injectData'], - // data() { - // return {}; - // }, - // methods: { - // handleClick() { - // this.$emit('emitData', { - // action: this.injectData.label, - // value: this.injectData, - // }); - // }, - // }, - // render: function (h) { - // return ( - // - // 详情 - // - // ); - // }, - // }, - // }, + { + prop: 'groupClass', + label: '班次', + showOverflowtooltip: true, + filter: (v) => v ?? '---', + }, { prop: 'remark', label: '备注' }, ], searchBarFormConfig: [ @@ -161,9 +150,7 @@ export default { type: 'separate', }, { - type: this.$auth.hasPermi('se:check-record:export') - ? 'button' - : '', + type: this.$auth.hasPermi('se:check-record:export') ? 'button' : '', btnName: '导出', name: 'export', plain: true, diff --git a/src/views/specialEquipment/maintain/Record.vue b/src/views/specialEquipment/maintain/Record.vue index 639d9798..4c2c2ba1 100644 --- a/src/views/specialEquipment/maintain/Record.vue +++ b/src/views/specialEquipment/maintain/Record.vue @@ -80,8 +80,9 @@ import { import RecordDetail from './Record--detail.vue'; import { TableBtn } from '@/components/tableInnerComponents'; -const timeFilter = (val) => - val ? moment(val).format('yyyy-MM-DD HH:mm:ss') : '---'; +const timeFilter = (val) => { + return val ? moment(val).format('yyyy-MM-DD HH:mm:ss') : '---'; +}; export default { name: 'SpecialEquipmentMaintainRecord', -- 2.45.2