From 743044407e35a10ff824ef18cb883ac2b66e2d12 Mon Sep 17 00:00:00 2001 From: riku <risaku@163.com> Date: 星期四, 25 四月 2024 17:40:54 +0800 Subject: [PATCH] 新增自动评估细则界面 --- src/views/fysp/scene/SceneInfo.vue | 60 +++++++++++++++++++++++++++++++++++++----------------------- 1 files changed, 37 insertions(+), 23 deletions(-) diff --git a/src/views/fysp/scene/SceneInfo.vue b/src/views/fysp/scene/SceneInfo.vue index b3e7682..f0723bc 100644 --- a/src/views/fysp/scene/SceneInfo.vue +++ b/src/views/fysp/scene/SceneInfo.vue @@ -6,15 +6,24 @@ :level="4" v-model:value="formSearch._locations" ></FYOptionLocation> + <FYOptionText + label="鍦烘櫙鍚嶇О" + placeholder="杈撳叆鍚嶇О鍏抽敭瀛�" + v-model:value="formSearch.searchText" + ></FYOptionText> <FYOptionScene :allOption="true" :type="2" - v-model:value="formSearch.scensetype" + v-model:value="formSearch._scenetype" ></FYOptionScene> <FYOptionOnlineStatus :allOption="true" v-model:value="formSearch.online" ></FYOptionOnlineStatus> + </template> + + <template #buttons> + <CompSceneImport></CompSceneImport> </template> <template #table-column> @@ -65,45 +74,50 @@ import { useLoadingStore } from '@/stores/loadingStore'; import { mapStores } from 'pinia'; import { useMessageBoxTip } from '@/composables/messageBox'; +import CompSceneImport from "./CompSceneImport.vue"; export default { + components: { + CompSceneImport, + }, data() { return { formSearch: { _locations: {}, - scensetype: {}, - online: {}, - }, + searchText: '', + _scenetype: {}, + online: {} + } }; }, computed: { - ...mapStores(useLoadingStore), + ...mapStores(useLoadingStore) }, methods: { onSearch(page, func) { const f = this.formSearch; const area = {}; // 琛屾斂鍖哄垝 - area.provincecode = f._locations.pCode - area.citycode = f._locations.cCode - area.districtcode = f._locations.dCode - area.towncode = f._locations.tCode + area.provincecode = f._locations.pCode; + area.citycode = f._locations.cCode; + area.districtcode = f._locations.dCode; + area.towncode = f._locations.tCode; // 鍦烘櫙绫诲瀷 - area.scensetypeid = f.scensetype.value; + area.scensetypeid = f._scenetype.value; if (area.scensetypeid == '0') area.scensetypeid = null; // 涓婁笅绾跨姸鎬� area.online = f.online.value; + // 鏌ヨ鍏抽敭瀛�(鍦烘櫙鍚嶇О) + area.sceneName = f.searchText - return sceneApi - .searchScene(area, page.currentPage, page.pageSize) - .then((res) => { - if (res.success) { - func({ - data: res.data, - total: res.head.totalCount, - }); - } - }); + return sceneApi.searchScene(area, page.currentPage, page.pageSize).then((res) => { + if (res.success) { + func({ + data: res.data, + total: res.head.totalCount + }); + } + }); }, itemEdit(scope) { scope.row.loading1 = true; @@ -130,10 +144,10 @@ .finally(() => { scope.row.loading2 = false; }); - }, + } }); - }, - }, + } + } }; </script> -- Gitblit v1.9.3