From 4d40132a023fb7c681ac842781d286f6351b39d2 Mon Sep 17 00:00:00 2001 From: zmj <1493694146@qq.com> Date: Thu, 14 Mar 2024 14:15:29 +0800 Subject: [PATCH] add --- src/components/selectRemote/index.vue | 45 +++++++++++++++++++++++++++ src/views/apply_with_seal/index.vue | 25 ++------------- 2 files changed, 47 insertions(+), 23 deletions(-) create mode 100644 src/components/selectRemote/index.vue diff --git a/src/components/selectRemote/index.vue b/src/components/selectRemote/index.vue new file mode 100644 index 0000000..136255d --- /dev/null +++ b/src/components/selectRemote/index.vue @@ -0,0 +1,45 @@ + + \ No newline at end of file diff --git a/src/views/apply_with_seal/index.vue b/src/views/apply_with_seal/index.vue index 41eb7c3..4fc05f6 100644 --- a/src/views/apply_with_seal/index.vue +++ b/src/views/apply_with_seal/index.vue @@ -3,11 +3,8 @@ - - - + + @@ -103,30 +100,12 @@ import { apiApplyWithSealLists, apiApplyWithSealDelete, apiApplyWithSealDetail } 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({