weixin_52219567 пре 2 дана
родитељ
комит
007ae53eb3
4 измењених фајлова са 44 додато и 16 уклоњено
  1. 12 0
      src/api/breg/index.ts
  2. 9 3
      src/views/breg/index.vue
  3. 22 13
      src/views/home/index.vue
  4. 1 0
      src/views/index.vue

+ 12 - 0
src/api/breg/index.ts

@@ -89,3 +89,15 @@ export const selectBycustomerName = (customerName: string) => {
     method: 'get'
   });
 };
+
+/**
+ * 协议
+ * @param customerName
+ */
+export const getPlatformConfigList = (query: any) => {
+  return request({
+    url: '/system/indexSystem/getPlatformConfigList',
+    method: 'get',
+    params: query
+  });
+};

Разлика између датотеке није приказан због своје велике величине
+ 9 - 3
src/views/breg/index.vue


+ 22 - 13
src/views/home/index.vue

@@ -280,19 +280,20 @@ getClassificationFloorList({}).then(async (res) => {
       item.planList = [];
       item.detectList = [];
       item.tabList = [];
+      item.labelList = [];
       item.margin = {
         top: 15
       };
 
-      if (item.floorLabel) {
-        item.labelList = [];
-        item.floorLabel.split(',').forEach((item1: any, index1: any) => {
-          item.labelList.push({
-            title: item1,
-            url: ''
-          });
-        });
-      }
+      // if (item.floorLabel) {
+      //   item.labelList = [];
+      //   item.floorLabel.split(',').forEach((item1: any, index1: any) => {
+      //     item.labelList.push({
+      //       title: item1,
+      //       url: ''
+      //     });
+      //   });
+      // }
       try {
         const datas1 = await getClassificationFloorDetail(item.floorNo);
         if (datas1.code == 200 && datas1.data.length > 0) {
@@ -314,12 +315,20 @@ getClassificationFloorList({}).then(async (res) => {
           }
         }
         const datas2 = await getClassificationFloorLabel(item.floorNo);
+        console.log(datas2.data, '??????????????');
         if (datas2.code == 200) {
           datas2.data.forEach((item1: any) => {
-            item.tabList.push({
-              title: item1.labelName,
-              url: item1.labelLink ? item1.labelLink : ''
-            });
+            if (item1.position == 0) {
+              item.tabList.push({
+                title: item1.labelName,
+                url: item1.labelLink ? item1.labelLink : ''
+              });
+            } else {
+              item.labelList.push({
+                title: item1.labelName,
+                url: item1.labelLink ? item1.labelLink : ''
+              });
+            }
           });
         }
         item.navList = datas2.data;

+ 1 - 0
src/views/index.vue

@@ -532,6 +532,7 @@ getClassificationFloorList({}).then(async (res) => {
         }
 
         const datas2 = await getClassificationFloorLabel(item.floorNo);
+        console.log(datas2.'?????????????????');
         if (datas2.code == 200) {
           item.navList = datas2.data;
         }

Неке датотеке нису приказане због велике количине промена