From 53dea912dd48c7435720cd9e83e3da53f0a45109 Mon Sep 17 00:00:00 2001
From: web <candymxq888@outlook.com>
Date: 星期三, 09 四月 2025 19:17:26 +0800
Subject: [PATCH] fix:修改大屏数据,布局

---
 src/views/facility/facilityList/index.vue |   16 +++++++++++-----
 1 files changed, 11 insertions(+), 5 deletions(-)

diff --git a/src/views/facility/facilityList/index.vue b/src/views/facility/facilityList/index.vue
index 0faed5d..079e52f 100644
--- a/src/views/facility/facilityList/index.vue
+++ b/src/views/facility/facilityList/index.vue
@@ -79,10 +79,9 @@
 });
 //查询监控点
 const pointList = ref();
-const cascaderOption = { label: 'pointName', value: 'id', children: 'childrenList', checkStrictly: true, expandTrigger: 'hover', emitPath: false }; //级联选择器配置
 const getPoint = async () => {
-    await pointApi().getParentPoint().then((res) => {
-        pointList.value = res.data
+    await pointApi().search({limit: 100, page: 1}).then((res) => {
+        pointList.value = res.data.list
     })
 }
 
@@ -358,7 +357,14 @@
                     </el-select>
                 </el-form-item>
                 <el-form-item label="选择监控点" prop="pointId">
-                    <el-cascader v-model="form.pointId" :options="pointList" :show-all-levels="false" :props="cascaderOption" />
+                    <el-select v-model="form.pointId" :placeholder="inpTip+formLabel.pointId">
+                        <el-option
+                            v-for="(item,index) in pointList"
+                            :label="item.pointName"
+                            :value="item.id"
+                            :key="index"
+                        ></el-option>
+                    </el-select>
                 </el-form-item>
                 <el-form-item label="安装日期" prop="installDate">
                     <el-date-picker
@@ -389,7 +395,7 @@
         <!-- 设备参数弹窗 -->
         <el-dialog title="设备参数" v-model="openParamForm" width="50vw" center align-center append-to-body>
             <!--表格-->
-            <el-table ref='tableRef'  :data="tableParamData" height="75vh" @selection-change="handleSelectionParams" >
+            <el-table ref='tableRef'  :data="tableParamData" height="70vh" @selection-change="handleSelectionParams" >
                 <el-table-column type="selection" width="55" align ="center" />
                 <el-table-column
                     v-for="(item, key, index) of tableParamHeader"

--
Gitblit v1.9.3