From fd4c1643fe8c754a0bbb8e68f1a282b211b099cf Mon Sep 17 00:00:00 2001 From: zhousq Date: Wed, 15 May 2024 16:47:55 +0800 Subject: [PATCH] =?UTF-8?q?2024-05-15=20=E4=BF=AE=E6=94=B9=20=E6=8E=92?= =?UTF-8?q?=E7=8F=AD=E6=97=A5=E5=8E=86-=E5=8D=95=E6=97=A5=E6=8E=92?= =?UTF-8?q?=E7=8F=AD=E5=8F=96=E6=B6=88=E6=8C=89=E9=92=AE=E4=B8=8D=E5=A5=BD?= =?UTF-8?q?=E7=94=A8bug=20=EF=BC=9B=E5=88=A0=E9=99=A4=E6=8E=92=E7=8F=AD?= =?UTF-8?q?=E6=97=A5=E5=8E=86=E6=97=A0=E6=95=88=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../holidayCalendar/holidayCalendar.data.ts | 179 ------------------ src/views/mes/holidayCalendar/index.vue | 75 -------- src/views/mes/jobcalendar/index.vue | 8 - src/views/mes/workcalendar/index.vue | 6 +- 4 files changed, 5 insertions(+), 263 deletions(-) delete mode 100644 src/views/mes/holidayCalendar/holidayCalendar.data.ts delete mode 100644 src/views/mes/holidayCalendar/index.vue delete mode 100644 src/views/mes/jobcalendar/index.vue diff --git a/src/views/mes/holidayCalendar/holidayCalendar.data.ts b/src/views/mes/holidayCalendar/holidayCalendar.data.ts deleted file mode 100644 index 6094de858..000000000 --- a/src/views/mes/holidayCalendar/holidayCalendar.data.ts +++ /dev/null @@ -1,179 +0,0 @@ -import type { CrudSchema } from '@/hooks/web/useCrudSchemas' -import { dateFormatter } from '@/utils/formatTime' - -// 表单校验 -export const HolidayCalendarRules = reactive({ - endTime: [required], - concurrencyStamp: [required], -}) - -export const HolidayCalendar = useCrudSchemas(reactive([ - { - label: 'ID', - field: 'id', - sort: 'custom', - isForm: false, - }, - { - label: '日期', - field: 'holidayDate', - sort: 'custom', - formatter: dateFormatter, - isSearch: true, - search: { - component: 'DatePicker', - componentProps: { - valueFormat: 'YYYY-MM-DD HH:mm:ss', - type: 'daterange', - defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] - } - }, - form: { - component: 'DatePicker', - componentProps: { - type: 'datetime', - valueFormat: 'x' - } - }, - }, - { - label: '结束时间', - field: 'endTime', - sort: 'custom', - formatter: dateFormatter, - isSearch: true, - search: { - component: 'DatePicker', - componentProps: { - valueFormat: 'YYYY-MM-DD HH:mm:ss', - type: 'daterange', - defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] - } - }, - form: { - component: 'DatePicker', - componentProps: { - type: 'datetime', - valueFormat: 'x' - } - }, - }, - { - label: '备用字段一', - field: 'textOne', - sort: 'custom', - isSearch: true, - }, - { - label: '备用字段二', - field: 'textTwo', - sort: 'custom', - isSearch: true, - }, - { - label: '备用字段三', - field: 'textThree', - sort: 'custom', - isSearch: true, - }, - { - label: '备用字段四', - field: 'textFour', - sort: 'custom', - isSearch: true, - }, - { - label: '备用字段五', - field: 'textFive', - sort: 'custom', - isSearch: true, - }, - { - label: '删除时间', - field: 'deleteTime', - sort: 'custom', - formatter: dateFormatter, - isSearch: true, - search: { - component: 'DatePicker', - componentProps: { - valueFormat: 'YYYY-MM-DD HH:mm:ss', - type: 'daterange', - defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] - } - }, - form: { - component: 'DatePicker', - componentProps: { - type: 'datetime', - valueFormat: 'x' - } - }, - }, - { - label: '状态', - field: 'status', - sort: 'custom', - isSearch: true, - form: { - component: 'Radio' - }, - }, - { - label: '并发乐观锁', - field: 'concurrencyStamp', - sort: 'custom', - isSearch: true, - form: { - component: 'InputNumber', - value: 0 - }, - }, - { - label: '备注', - field: 'remark', - sort: 'custom', - isSearch: true, - }, - { - label: '创建时间', - field: 'createTime', - sort: 'custom', - formatter: dateFormatter, - isSearch: true, - search: { - component: 'DatePicker', - componentProps: { - valueFormat: 'YYYY-MM-DD HH:mm:ss', - type: 'daterange', - defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] - } - }, - isForm: false, - }, - { - label: '删除用户名', - field: 'deleter', - sort: 'custom', - isSearch: true, - }, - { - label: '位置ID', - field: 'siteId', - sort: 'custom', - isSearch: true, - form: { - component: 'InputNumber', - value: 0 - }, - }, - { - label: '操作', - field: 'action', - isForm: false, - table: { - width: 150, - fixed: 'right' - } - } -])) diff --git a/src/views/mes/holidayCalendar/index.vue b/src/views/mes/holidayCalendar/index.vue deleted file mode 100644 index 21eeb6ee8..000000000 --- a/src/views/mes/holidayCalendar/index.vue +++ /dev/null @@ -1,75 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/views/mes/jobcalendar/index.vue b/src/views/mes/jobcalendar/index.vue deleted file mode 100644 index acd7a2a6c..000000000 --- a/src/views/mes/jobcalendar/index.vue +++ /dev/null @@ -1,8 +0,0 @@ - - - \ No newline at end of file diff --git a/src/views/mes/workcalendar/index.vue b/src/views/mes/workcalendar/index.vue index 4876ec101..16c054af5 100644 --- a/src/views/mes/workcalendar/index.vue +++ b/src/views/mes/workcalendar/index.vue @@ -238,7 +238,7 @@ @@ -661,6 +661,10 @@ const batchAddWork = () => { const handleBatchClose = () => { batchAddDrawer.value = false } +const handleAddClose = () => { + drawer.value = false +} + const savePlan = async (workList) => { await workCalendarApi.createBatch(workList) //await workCalendarApi.createObj(workList);