Răsfoiți Sursa

去掉废弃代码

刘洋 1 an în urmă
părinte
comite
f2b6b87db8

+ 0 - 22
src/modules/marking/inquiry/index.vue

@@ -77,9 +77,6 @@ import ConfirmButton from '@/components/common/ConfirmButton.vue'
 import useForm from '@/hooks/useForm'
 import useFetch from '@/hooks/useFetch'
 import useOptions from '@/hooks/useOptions'
-import useVW from '@/hooks/useVW'
-import locale from 'ant-design-vue/es/date-picker/locale/zh_CN'
-import dayjs from 'dayjs'
 import type { EpFormItem, EpFormRules } from 'global-type'
 import type { ExtractApiParams } from '@/api/api'
 const refresh: any = inject('reload')
@@ -202,22 +199,6 @@ watch(
 
 getCustomQueryConfigList()
 
-// const shortQueryConfig = computed<ExtractApiParams<'setCustomQueryConfig'>['params'] | void>(() => {
-//   if (shortQueryConfigIndex.value === undefined) {
-//     return void 0
-//   }
-//   return customQueryConfigList?.value?.[shortQueryConfigIndex.value]?.params
-// })
-
-// watch(shortQueryConfig, () => {
-//   if (!shortQueryConfig.value) {
-//     elFormRef?.value?.resetFields()
-//   } else {
-//     Object.assign(model, omit(shortQueryConfig.value, 'timeStart', 'timeEnd'), {
-//       time: [shortQueryConfig.value.timeStart, shortQueryConfig.value.timeEnd],
-//     })
-//   }
-// })
 const fastParamClear = () => {
   // elFormRef?.value?.resetFields()
   refresh()
@@ -226,9 +207,6 @@ const fastParamChange = async (index: number) => {
   if (typeof index === 'number') {
     let shortQueryConfig = customQueryConfigList?.value?.[index]?.params
     if (shortQueryConfig) {
-      // Object.assign(model, omit(shortQueryConfig, 'timeStart', 'timeEnd'), {
-      //   time: [shortQueryConfig.timeStart, shortQueryConfig.timeEnd],
-      // })
       elFormRef?.value?.resetFields()
       if (shortQueryConfig.subjectCode) {
         await getMainQuestionList({ subjectCode: shortQueryConfig.subjectCode as string })

+ 0 - 6
src/modules/quality/self-check/index.vue

@@ -58,8 +58,6 @@ import useForm from '@/hooks/useForm'
 import useVW from '@/hooks/useVW'
 import useOptions from '@/hooks/useOptions'
 import useTableCheck from '@/hooks/useTableCheck'
-import locale from 'ant-design-vue/es/date-picker/locale/zh_CN'
-import dayjs from 'dayjs'
 import type { ExtractApiParams, ExtractApiResponse } from '@/api/api'
 import type { EpFormItem, EpTableColumn } from 'global-type'
 
@@ -160,10 +158,6 @@ const items = computed<EpFormItem[]>(() => {
       slot: {
         // type: 'datetimerange',
         // valueFormat: 'YYYYMMDDHHmmss',
-        showTime: { defaultValue: [dayjs('00:00:00', 'HH:mm:ss'), dayjs('23:59:59', 'HH:mm:ss')] },
-        valueFormat: 'YYYYMMDDHHmmss',
-        placeholder: ['开始时间', '结束时间'],
-        locale: locale,
       },
     }),
     OneRowSpan4({ slotName: 'search' }),