From 3bb3488abec439ea977329505633b50ff56bce43 Mon Sep 17 00:00:00 2001
From: 唐耀东 <18861537@qq.com>
Date: 星期五, 13 五月 2022 17:20:16 +0800
Subject: [PATCH] 提交代码

---
 src/views/construction/constructionList/index.vue |   30 ++++++++++++++++++++++++------
 1 files changed, 24 insertions(+), 6 deletions(-)

diff --git a/src/views/construction/constructionList/index.vue b/src/views/construction/constructionList/index.vue
index c4b0adf..10a2808 100644
--- a/src/views/construction/constructionList/index.vue
+++ b/src/views/construction/constructionList/index.vue
@@ -4,7 +4,7 @@
       <div class="tree-list">
         <school ref="schoolRef" @schoolChange="schoolChange"></school>
       </div>
-      <div class="right-view">
+      <div class="right-view" v-loading="loading">
         <el-tabs v-model="activeName" @tab-click="handleClick">
           <el-tab-pane label="鏂藉伐姒傚喌" name="first">鏂藉伐姒傚喌</el-tab-pane>
           <el-tab-pane label="IPC璁惧" name="second">
@@ -16,10 +16,18 @@
           <el-tab-pane label="IoT璁惧" name="fourth">
             <iot v-if="activeName === 'fourth'" :schoolId="schoolId"></iot>
           </el-tab-pane>
-          <el-tab-pane label="AI璁惧" name="five">AI璁惧</el-tab-pane>
-          <el-tab-pane label="浜ゆ崲璁惧" name="six">浜ゆ崲璁惧</el-tab-pane>
-          <el-tab-pane label="鏈嶅姟鍣�" name="seven">鏈嶅姟鍣�</el-tab-pane>
-          <el-tab-pane label="杞欢绯荤粺" name="eight">杞欢绯荤粺</el-tab-pane>
+          <el-tab-pane label="AI璁惧" name="five">
+            <ai v-if="activeName === 'five'" :schoolId="schoolId"></ai>
+          </el-tab-pane>
+          <el-tab-pane label="浜ゆ崲璁惧" name="six">
+            <exchange v-if="activeName === 'six'" :schoolId="schoolId"></exchange>
+          </el-tab-pane>
+          <el-tab-pane label="鏈嶅姟鍣�" name="seven">
+            <server v-if="activeName === 'seven'" :schoolId="schoolId"></server>
+          </el-tab-pane>
+          <el-tab-pane label="杞欢绯荤粺" name="eight">
+            <system v-if="activeName === 'eight'" :schoolId="schoolId"></system>
+          </el-tab-pane>
         </el-tabs>
         <div class="right-view-title-icon">
           <i class="el-icon-search" @click="batchOpen = true"></i>
@@ -44,6 +52,10 @@
 import nvr from '../nvr'
 import ipc from '../ipc'
 import iot from '../iot'
+import ai from '../ai'
+import exchange from '../exchange'
+import server from '../server'
+import system from '../system'
 
 export default {
   name: "constructionList",
@@ -53,10 +65,15 @@
     reserveIp,
     nvr,
     ipc,
-    iot
+    iot,
+    ai,
+    exchange,
+    server,
+    system
   },
   data() {
     return {
+      loading: true,
       activeName: 'first',
       batchOpen: false,
       ipOpen: false,
@@ -68,6 +85,7 @@
     schoolChange(v) {
       this.schoolId = v;
       this.activeName = 'first';
+      this.loading = false;
     },
     handleClick(tab, event) {
       console.log(tab, event);

--
Gitblit v1.9.1