唐耀东
2022-10-12 901be26b0491501afe8eb145392a8d8c307f0138
src/views/construction/constructionList/index.vue
@@ -4,24 +4,39 @@
      <div class="tree-list">
        <school ref="schoolRef" @schoolChange="schoolChange"></school>
      </div>
      <div class="right-view">
        <el-tabs v-model="activeName" @tab-click="handleClick">
          <el-tab-pane label="施工概况" name="first">施工概况</el-tab-pane>
      <div class="right-view custom-el-tabs" v-loading="loading">
        <el-tabs v-model="activeName" style="flex: 1;" @tab-click="handleClick">
          <el-tab-pane label="施工概况" name="first">
            <el-empty description="正在开发中..."></el-empty>
          </el-tab-pane>
          <el-tab-pane label="IPC设备" name="second">
            <ipc v-if="activeName === 'second'" :schoolId="schoolId"></ipc>
          </el-tab-pane>
          <el-tab-pane label="NVR设备" name="third">
            <nvr v-if="activeName === 'third'" :schoolId="schoolId"></nvr>
          </el-tab-pane>
          <el-tab-pane label="IoT设备" name="fourth">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="IoT设备" name="fourth">
            <iot v-if="activeName === 'fourth'" :schoolId="schoolId"></iot>
          </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-tab-pane label="其他" name="nine">
            <other v-if="activeName === 'nine'" :schoolId="schoolId"></other>
          </el-tab-pane>
        </el-tabs>
        <div class="right-view-title-icon">
          <i class="el-icon-search" @click="batchOpen = true"></i>
          <i class="el-icon-search" @click="ipOpen = true"></i>
          <img alt="" title="施工批次" src="@/assets/images/batch-icon.png" @click="batchOpen = true" class="right-view-title-icon-item" />
          <img alt="" title="预留IP" src="@/assets/images/ip-icon.png" @click="ipOpen = true" class="right-view-title-icon-item" />
        </div>
      </div>
    </div>
@@ -41,6 +56,12 @@
import reserveIp from '../reserveIp'
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'
import other from '../other'
export default {
  name: "constructionList",
@@ -49,10 +70,17 @@
    constructionBatch,
    reserveIp,
    nvr,
    ipc
    ipc,
    iot,
    ai,
    exchange,
    server,
    system,
    other
  },
  data() {
    return {
      loading: true,
      activeName: 'first',
      batchOpen: false,
      ipOpen: false,
@@ -64,6 +92,7 @@
    schoolChange(v) {
      this.schoolId = v;
      this.activeName = 'first';
      this.loading = false;
    },
    handleClick(tab, event) {
      console.log(tab, event);
@@ -76,7 +105,7 @@
.tree-view {
  display: flex;
  flex-direction: row;
  flex: 1;
  width: 100%;
}
.tree-list {
@@ -87,7 +116,9 @@
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  flex: 1;
  width: calc(100% - 280px);
  position: relative;
  box-sizing: border-box;
}
.right-view-title-icon {
@@ -95,5 +126,14 @@
  flex-direction: row;
  height: 40px;
  align-items: center;
  position: absolute;
  top: 0;
  right: 0;
}
</style>
.right-view-title-icon-item {
  width: 20px;
  height: 20px;
  margin-left: 15px;
  cursor: pointer;
}
</style>