|
@@ -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 })
|