|
@@ -78,14 +78,14 @@ import useForm from '@/hooks/useForm'
|
|
import useFetch from '@/hooks/useFetch'
|
|
import useFetch from '@/hooks/useFetch'
|
|
import useOptions from '@/hooks/useOptions'
|
|
import useOptions from '@/hooks/useOptions'
|
|
import useVW from '@/hooks/useVW'
|
|
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 { EpFormItem, EpFormRules } from 'global-type'
|
|
import type { ExtractApiParams } from '@/api/api'
|
|
import type { ExtractApiParams } from '@/api/api'
|
|
const refresh: any = inject('reload')
|
|
const refresh: any = inject('reload')
|
|
const { push } = useRouter()
|
|
const { push } = useRouter()
|
|
const resetMarkerId = ref<any>(void 0)
|
|
const resetMarkerId = ref<any>(void 0)
|
|
const shortQueryConfigIndex = ref<number>()
|
|
const shortQueryConfigIndex = ref<number>()
|
|
-
|
|
|
|
const {
|
|
const {
|
|
subjectList,
|
|
subjectList,
|
|
mainQuestionList,
|
|
mainQuestionList,
|
|
@@ -333,11 +333,16 @@ const items = computed<EpFormItem[]>(() => [
|
|
slotType: 'dateTime',
|
|
slotType: 'dateTime',
|
|
prop: 'time',
|
|
prop: 'time',
|
|
slot: {
|
|
slot: {
|
|
- startPlaceholder: '开始时间',
|
|
|
|
- endPlaceholder: '结束时间',
|
|
|
|
- clearable: true,
|
|
|
|
- type: 'datetimerange',
|
|
|
|
|
|
+ // startPlaceholder: '开始时间',
|
|
|
|
+ // endPlaceholder: '结束时间',
|
|
|
|
+ // clearable: true,
|
|
|
|
+ // type: 'datetimerange',
|
|
|
|
+ // valueFormat: 'YYYYMMDDHHmmss',
|
|
|
|
+ showTime: { defaultValue: [dayjs('00:00:00', 'HH:mm:ss'), dayjs('23:59:59', 'HH:mm:ss')] },
|
|
valueFormat: 'YYYYMMDDHHmmss',
|
|
valueFormat: 'YYYYMMDDHHmmss',
|
|
|
|
+ placeholder: ['开始时间', '结束时间'],
|
|
|
|
+ locale: locale,
|
|
|
|
+ size: 'large',
|
|
},
|
|
},
|
|
}),
|
|
}),
|
|
FourRow({
|
|
FourRow({
|
|
@@ -417,10 +422,6 @@ const items = computed<EpFormItem[]>(() => [
|
|
slotType: 'select',
|
|
slotType: 'select',
|
|
prop: 'markerId',
|
|
prop: 'markerId',
|
|
slot: {
|
|
slot: {
|
|
- // options: markerList?.value?.map((marker) => ({
|
|
|
|
- // value: marker.id,
|
|
|
|
- // label: marker.loginName ? `${marker.loginName}-${marker.name}` : marker.name,
|
|
|
|
- // })),
|
|
|
|
options: [
|
|
options: [
|
|
...(markerList?.value || []).map((marker) => ({
|
|
...(markerList?.value || []).map((marker) => ({
|
|
value: marker.id,
|
|
value: marker.id,
|
|
@@ -490,6 +491,7 @@ const onSearch = async () => {
|
|
...omit(model, 'time'),
|
|
...omit(model, 'time'),
|
|
timeStart: model.time?.[0],
|
|
timeStart: model.time?.[0],
|
|
timeEnd: model.time?.[1],
|
|
timeEnd: model.time?.[1],
|
|
|
|
+ markingGroupNumbers: model.markingGroupNumbers.includes(undefined) ? '' : model.markingGroupNumbers,
|
|
}),
|
|
}),
|
|
})
|
|
})
|
|
} catch (error) {
|
|
} catch (error) {
|