From a459f13d8194e18fbcaafac5523a6a740cce9323 Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期二, 22 十月 2024 15:20:13 +0800
Subject: [PATCH] 开发版 V1.0.1

---
 src/views/fysp/scene/SceneInfo.vue |   38 ++++++++++++++++++++++----------------
 1 files changed, 22 insertions(+), 16 deletions(-)

diff --git a/src/views/fysp/scene/SceneInfo.vue b/src/views/fysp/scene/SceneInfo.vue
index a207662..066dcd8 100644
--- a/src/views/fysp/scene/SceneInfo.vue
+++ b/src/views/fysp/scene/SceneInfo.vue
@@ -6,10 +6,15 @@
         :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"
@@ -22,17 +27,15 @@
     </template>
 
     <template #table-column>
-      <el-table-column fixed="left" prop="name" label="鍚嶇О" width="400">
-        <template #default="scope">
-          <el-tooltip
-            effect="dark"
-            :content="scope.row.name"
-            placement="top-start"
-            :show-after="500"
-          >
-            {{ scope.row.name }}
-          </el-tooltip>
-        </template>
+      <el-table-column fixed="left" sortable prop="index" label="缂栧彿" width="80">
+      </el-table-column>
+      <el-table-column
+        fixed="left"
+        prop="name"
+        label="鍚嶇О"
+        :show-overflow-tooltip="true"
+        width="400"
+      >
       </el-table-column>
       <el-table-column prop="type" label="绫诲瀷" width="130" />
       <el-table-column prop="provincename" label="鐪�" width="90" />
@@ -69,17 +72,18 @@
 import { useLoadingStore } from '@/stores/loadingStore';
 import { mapStores } from 'pinia';
 import { useMessageBoxTip } from '@/composables/messageBox';
-import CompSceneImport from "./CompSceneImport.vue";
+import CompSceneImport from './CompSceneImport.vue';
 
 export default {
   components: {
-    CompSceneImport,
+    CompSceneImport
   },
   data() {
     return {
       formSearch: {
         _locations: {},
-        scensetype: {},
+        searchText: '',
+        _scenetype: {},
         online: {}
       }
     };
@@ -97,10 +101,12 @@
       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) {

--
Gitblit v1.9.3