update again

This commit is contained in:
lb 2024-03-29 16:30:37 +08:00
parent fa746ab9b0
commit 6b99175574
3 changed files with 23 additions and 35 deletions

View File

@ -12,7 +12,7 @@
:label-width="`${labelWidth}px`" :label-width="`${labelWidth}px`"
:size="size" :size="size"
:label-position="labelPosition" :label-position="labelPosition"
v-loading="formLoading"> v-loading="0 && formLoading">
<el-row :gutter="20" v-for="(row, rindex) in rows" :key="rindex"> <el-row :gutter="20" v-for="(row, rindex) in rows" :key="rindex">
<el-col v-for="col in row" :key="col.label" :span="24 / row.length"> <el-col v-for="col in row" :key="col.label" :span="24 / row.length">
<el-form-item :label="col.label" :prop="col.prop" :rules="col.rules"> <el-form-item :label="col.label" :prop="col.prop" :rules="col.rules">

View File

@ -91,8 +91,18 @@ export default {
// : undefined, // : undefined,
].filter((v) => v), ].filter((v) => v),
tableProps: [ 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', prop: 'actualCheckTime',
label: '巡检时间', label: '巡检时间',
@ -100,33 +110,12 @@ export default {
filter: parseTime, filter: parseTime,
showOverflowtooltip: true, showOverflowtooltip: true,
}, },
{ prop: 'groupClass', label: '班次', showOverflowtooltip: true }, {
// { prop: 'groupClass',
// prop: '_detail', label: '班次',
// label: '', showOverflowtooltip: true,
// subcomponent: { filter: (v) => v ?? '---',
// name: 'ViewDetail', },
// props: ['injectData'],
// data() {
// return {};
// },
// methods: {
// handleClick() {
// this.$emit('emitData', {
// action: this.injectData.label,
// value: this.injectData,
// });
// },
// },
// render: function (h) {
// return (
// <el-button type="text" onClick={this.handleClick}>
//
// </el-button>
// );
// },
// },
// },
{ prop: 'remark', label: '备注' }, { prop: 'remark', label: '备注' },
], ],
searchBarFormConfig: [ searchBarFormConfig: [
@ -161,9 +150,7 @@ export default {
type: 'separate', type: 'separate',
}, },
{ {
type: this.$auth.hasPermi('se:check-record:export') type: this.$auth.hasPermi('se:check-record:export') ? 'button' : '',
? 'button'
: '',
btnName: '导出', btnName: '导出',
name: 'export', name: 'export',
plain: true, plain: true,

View File

@ -80,8 +80,9 @@ import {
import RecordDetail from './Record--detail.vue'; import RecordDetail from './Record--detail.vue';
import { TableBtn } from '@/components/tableInnerComponents'; import { TableBtn } from '@/components/tableInnerComponents';
const timeFilter = (val) => const timeFilter = (val) => {
val ? moment(val).format('yyyy-MM-DD HH:mm:ss') : '---'; return val ? moment(val).format('yyyy-MM-DD HH:mm:ss') : '---';
};
export default { export default {
name: 'SpecialEquipmentMaintainRecord', name: 'SpecialEquipmentMaintainRecord',