From 3639c456d1889cd3e688191a4398af8a3f49679c Mon Sep 17 00:00:00 2001
From: zhangzengfei <zhangzengfei@smartai.com>
Date: 星期三, 12 四月 2023 15:29:21 +0800
Subject: [PATCH] 添加常量的公共数据. 增加场景名称

---
 src/views/dataPush/components/point.vue |   52 ++++------------------------------------------------
 1 files changed, 4 insertions(+), 48 deletions(-)

diff --git a/src/views/dataPush/components/point.vue b/src/views/dataPush/components/point.vue
index fb05840..b73a00f 100644
--- a/src/views/dataPush/components/point.vue
+++ b/src/views/dataPush/components/point.vue
@@ -171,52 +171,7 @@
       query: {},
       inputText: "", //杈撳叆妗嗗唴瀹�
       cameraOptions: [],
-      scene_nameOptions: [
-        {
-          value: "鏄庣伀",
-          label: "鏄庣伀"
-        },
-        {
-          value: "鐑熼浘",
-          label: "鐑熼浘"
-        },
-        {
-          value: "缈昏秺鍥存爮",
-          label: "缈昏秺鍥存爮"
-        },
-        {
-          value: "鍖哄煙鍏ヤ镜",
-          label: "鍖哄煙鍏ヤ镜"
-        },
-        {
-          value: "浜哄憳绂诲矖",
-          label: "浜哄憳绂诲矖"
-        },
-        {
-          value: "浜哄憳鑱氶泦",
-          label: "浜哄憳鑱氶泦"
-        },
-        {
-          value: "鎵撶數璇�",
-          label: "鎵撶數璇�"
-        },
-        {
-          value: "鎶界儫",
-          label: "鎶界儫"
-        },
-        {
-          value: "鏈僵鎴村畨鍏ㄥ附",
-          label: "鏈僵鎴村畨鍏ㄥ附"
-        },
-        {
-          value: "鏈┛宸ヨ",
-          label: "鏈┛宸ヨ"
-        },
-        {
-          value: "鐫″矖",
-          label: "鐫″矖"
-        }
-      ],
+      scene_nameOptions: [],
       isShowAdd: false, //鏄惁灞曠ず鏂板寮圭獥
       ruleForm: {
         CameraName: "", // 鎽勫儚鏈哄悕绉�
@@ -273,7 +228,8 @@
     let res = await camerasList(query)
     this.dataList = res.data
     this.total = res.total
-    this.aaaaa()
+    this.scene_nameOptions = this.Constants.sceneNameOptions
+    this.pageInit()
   },
 
   methods: {
@@ -330,7 +286,7 @@
       this.ruleForm.updatedAt = row.updatedAt
       this.ruleForm.id = row.id
     },
-    async aaaaa() {
+    async pageInit() {
       // 杩涘叆椤甸潰鍓嶇殑鍒濆鍖�
       let res = await camerasConfig()
       // 鎬诲紑鍏�

--
Gitblit v1.8.0