From 51a85778763739b2d217896f76ba830522788fad Mon Sep 17 00:00:00 2001 From: zhaowei <zhaowei> Date: 星期三, 11 六月 2025 09:01:29 +0800 Subject: [PATCH] 生产设备自主维护点检表设置月份默认值为本月 --- src/views/eam/SelfMaintenanceAndInspectionList.vue | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/src/views/eam/SelfMaintenanceAndInspectionList.vue b/src/views/eam/SelfMaintenanceAndInspectionList.vue index b6e41c6..a62975f 100644 --- a/src/views/eam/SelfMaintenanceAndInspectionList.vue +++ b/src/views/eam/SelfMaintenanceAndInspectionList.vue @@ -161,6 +161,7 @@ import $ from 'jquery' import '@/components/table2excel/table2excel' import EamEquipmentListModal from './modules/SelfMaintenanceAndInspectionList/EamEquipmentListModal' + import moment from 'moment' export default { name: 'SelfMaintenanceAndInspectionList', @@ -175,6 +176,9 @@ list: '/eam/inspectionOrder/findInspectionForms' } } + }, + created() { + this.$set(this.queryParam, 'dataTime', moment().format('YYYY-MM')) }, methods: { searchQuery() { @@ -234,7 +238,10 @@ }, searchReset() { - this.queryParam = this.dataSource = {} + this.queryParam = { + dataTime: moment().format('YYYY-MM') + } + this.dataSource = {} this.tableElement = null } } -- Gitblit v1.9.3