修改文件夹位置

This commit is contained in:
GGJ
2024-01-22 20:24:50 +08:00
parent 4f285a61e5
commit f2384c86cd
16 changed files with 777 additions and 20 deletions

View File

@@ -16,7 +16,7 @@
:label-width="90"
>
<el-form-item label="区域" v-if="area">
<Area v-model="tableStore.table.params.deptIndex" />
<Area ref="areaRef" v-model="tableStore.table.params.deptIndex" />
</el-form-item>
<el-form-item label="日期" v-if="datePicker" style="grid-column: span 2; max-width: unset">
<DatePicker ref="datePickerRef"></DatePicker>
@@ -49,6 +49,7 @@ const tableStore = inject('tableStore') as TableStore
const tableHeader = ref()
const datePickerRef = ref()
const dictData = useDictData()
const areaRef = ref()
interface Props {
datePicker?: boolean
area?: boolean
@@ -114,9 +115,6 @@ const onComSearch = async () => {
tableStore.table.params.endTime = datePickerRef.value.timeValue[1]
tableStore.table.params.timeFlag = datePickerRef.value.timeFlag
}
if (props.area) {
tableStore.table.params.deptIndex = dictData.state.area[0].id
}
await tableStore.onTableAction('search', {})
}
@@ -127,7 +125,7 @@ const dateChange = () => {
// tableStore.table.params.searchBeginTime = date.value[0]
// tableStore.table.params.searchEndTime = date.value[1]
}
defineExpose({ onComSearch })
defineExpose({ onComSearch, areaRef })
</script>
<style scoped lang="scss">