修改文件夹位置
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user