Compare commits

..

6 Commits

Author SHA1 Message Date
9fc429bc64 Merge pull request 'projects/mesxc-lb' (#166) from projects/mesxc-lb into projects/mesxc-test
Reviewed-on: #166
2024-01-03 10:21:52 +08:00
lb
e544b91861 merge test 2024-01-03 09:13:06 +08:00
lb
e848be2a35 update 2024-01-03 09:10:29 +08:00
lb
5974e7026e update kiln databorad 2023-12-21 10:26:56 +08:00
lb
29e5a3d07a Merge branch 'projects/mesxc-test' into projects/mesxc-lb 2023-12-21 09:03:09 +08:00
lb
d647dc0448 update 2023-12-20 17:01:40 +08:00
2 changed files with 17 additions and 3 deletions

View File

@ -170,7 +170,12 @@ export default {
{ width: 256, prop: 'code', label: '设备编码' }, { width: 256, prop: 'code', label: '设备编码' },
{ prop: 'location', label: '位置' }, { prop: 'location', label: '位置' },
{ prop: 'responsiblePeopleName', label: '负责人' }, { prop: 'responsiblePeopleName', label: '负责人' },
{ prop: 'dueTime', label: '有效期至' }, {
prop: 'dueDate',
label: '有效期至',
filter: (val) =>
val != null ? moment(val).format('yyyy-MM-DD HH:mm:ss') : '--',
},
{ prop: 'remark', label: '备注' }, { prop: 'remark', label: '备注' },
], ],
searchBarFormConfig: [ searchBarFormConfig: [
@ -250,8 +255,8 @@ export default {
[ [
{ {
datetime: true, datetime: true,
label: '有效期', label: '有效期',
prop: 'dueTime', prop: 'dueDate',
bind: { clearable: true }, bind: { clearable: true },
}, },
{}, {},

View File

@ -195,18 +195,21 @@ export default {
{ id: 3, name: '特种设备' }, { id: 3, name: '特种设备' },
], ],
filterable: true, filterable: true,
defaultSelect: null
}, },
{ {
type: 'select', type: 'select',
label: '设备', label: '设备',
placeholder: '请选择设备', placeholder: '请选择设备',
param: 'equipmentId', param: 'equipmentId',
defaultSelect: null
}, },
{ {
type: 'select', type: 'select',
label: '计划名称', label: '计划名称',
placeholder: '请选择计划名称', placeholder: '请选择计划名称',
param: 'maintainPlanId', param: 'maintainPlanId',
defaultSelect: null
}, },
// //
{ {
@ -220,6 +223,7 @@ export default {
endPlaceholder: '结束日期', endPlaceholder: '结束日期',
defaultTime: ['00:00:00', '23:59:59'], defaultTime: ['00:00:00', '23:59:59'],
param: 'startTime', param: 'startTime',
defaultSelect: null
// width: 350, // width: 350,
}, },
{ {
@ -229,6 +233,7 @@ export default {
{ name: '是', id: 1 }, { name: '是', id: 1 },
{ name: '否', id: 2 }, { name: '否', id: 2 },
], ],
defaultSelect: null,
param: 'relatePlan', param: 'relatePlan',
}, },
{ {
@ -434,12 +439,16 @@ export default {
created() { created() {
this.initSearchBar(); this.initSearchBar();
if (this.$route.query) { if (this.$route.query) {
this.queryParams.specialType =
this.$route.query?.specialType ?? undefined;
this.queryParams.equipmentId = this.queryParams.equipmentId =
this.$route.query?.equipmentId ?? undefined; this.$route.query?.equipmentId ?? undefined;
this.queryParams.maintainPlanId = this.queryParams.maintainPlanId =
this.$route.query?.maintainPlanId ?? undefined; this.$route.query?.maintainPlanId ?? undefined;
this.queryParams.relatePlan = this.$route.query?.relatePlan ?? undefined; this.queryParams.relatePlan = this.$route.query?.relatePlan ?? undefined;
this.queryParams.startTime = this.$route.query?.createTime ?? undefined; this.queryParams.startTime = this.$route.query?.createTime ?? undefined;
this.searchBarFormConfig[0].defaultSelect =
this.$route.query.specialType ?? undefined;
this.searchBarFormConfig[1].defaultSelect = this.searchBarFormConfig[1].defaultSelect =
this.$route.query.equipmentId ?? undefined; this.$route.query.equipmentId ?? undefined;
this.searchBarFormConfig[2].defaultSelect = this.searchBarFormConfig[2].defaultSelect =