This commit is contained in:
2025-07-24 11:20:50 +08:00
parent 2eb2a41b06
commit 03d2e9f459
4 changed files with 31 additions and 21 deletions

View File

@ -88,12 +88,8 @@ import { reactive, ref, getCurrentInstance } from "vue";
const { proxy } = getCurrentInstance();
const { SGXTQTSQLX } = proxy.$dict("SGXTQTSQLX"); //获取字典数据
const emits = defineEmits(['close'])
const listQuery = ref({
dateRange:timeSlotChange('天'),
hskssj:timeSlotChange('天')[0]+' 00:00:00',
hsjssj:timeSlotChange('天')[1]+' 23:59:59',
});
const active = ref(0);
const listQuery = ref({});
const active = ref(-1);
const time = reactive([
{ label: "今天", value: "10" },
{ label: "本周", value: "20" },
@ -154,11 +150,11 @@ const onSearch = (val) =>{
loadDate()
}
const reset = (val) =>{
active.value = 0;
listQuery.value = {};
listQuery.value.dateRange = timeSlotChange('天');
listQuery.value.hskssj = timeSlotChange('天')[0] + ' 00:00:00';
listQuery.value.hsjssj = timeSlotChange('天')[1] + ' 23:59:59';
active.value = -1;
listQuery.value.dateRange = '';
listQuery.value.hskssj = '';
listQuery.value.hsjssj = '';
loadDate()
}