diff --git a/src/views/project_change_visa/index.vue b/src/views/project_change_visa/index.vue index 56995d0..484a1ab 100644 --- a/src/views/project_change_visa/index.vue +++ b/src/views/project_change_visa/index.vue @@ -2,15 +2,16 @@
+ + + + + - - - - - - 查询 @@ -89,17 +90,36 @@ import { apiProjectChangeVisaLists, apiProjectChangeVisaDelete, apiProjectChange import { timeFormat } from '@/utils/util' import feedback from '@/utils/feedback' import EditPopup from './edit.vue' +import { apiCostProjectDatas } from "@/api/cost_project"; +import { useDictOptions } from "@/hooks/useDictOptions" const editRef = shallowRef>() // 是否显示编辑框 const showEdit = ref(false) +const loading = ref(false) +const queryCostProject = async (query: string) => { + loading.value = true + const projectList = await apiCostProjectDatas({ + name: query ?? '' + }) + optionsData.projectList = projectList + loading.value = false +} + + +const { optionsData } = useDictOptions<{ + projectList: any[] +}>({ + projectList: { + api: apiCostProjectDatas, + } +}) // 查询条件 const queryParams = reactive({ num: '', - project_name: '', - project_num: '', + project_id: '', }) // 选中数据 diff --git a/src/views/project_change_visa_content/index.vue b/src/views/project_change_visa_content/index.vue index 31bca45..a99e659 100644 --- a/src/views/project_change_visa_content/index.vue +++ b/src/views/project_change_visa_content/index.vue @@ -8,9 +8,6 @@ - - - @@ -26,14 +23,6 @@ - - - - - - 查询