From f9d24dc63eeada38825e9991673efac055f09767 Mon Sep 17 00:00:00 2001 From: weiz <736250432@qq.com> Date: Wed, 13 Mar 2024 15:19:10 +0800 Subject: [PATCH] update --- src/views/project_change_visa/index.vue | 36 ++++++++++++++----- .../project_change_visa_content/index.vue | 11 ------ 2 files changed, 28 insertions(+), 19 deletions(-) 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 @@ - - - - - - 查询