| | |
| | | <div class="right-view"> |
| | | <el-tabs v-model="activeName" @tab-click="handleClick"> |
| | | <el-tab-pane label="施工概况" name="first">施工概况</el-tab-pane> |
| | | <el-tab-pane label="IPC设备" name="second">IPC设备</el-tab-pane> |
| | | <el-tab-pane label="NVR设备" name="third">NVR设备</el-tab-pane> |
| | | <el-tab-pane label="IoT设备" name="fourth">IoT设备</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 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> |
| | |
| | | </div> |
| | | </div> |
| | | <el-drawer title="施工批次" :visible.sync="batchOpen" size="70%" :append-to-body="true" :destroy-on-close="true"> |
| | | <construction-batch></construction-batch> |
| | | <construction-batch :schoolId="schoolId"></construction-batch> |
| | | </el-drawer> |
| | | |
| | | <el-drawer title="预留IP" :visible.sync="ipOpen" size="70%" :append-to-body="true" :destroy-on-close="true"> |
| | | <reserve-ip></reserve-ip> |
| | | <reserve-ip :schoolId="schoolId"></reserve-ip> |
| | | </el-drawer> |
| | | </div> |
| | | </template> |
| | |
| | | import school from '../../components/school' |
| | | import constructionBatch from '../constructionBatch' |
| | | import reserveIp from '../reserveIp' |
| | | import nvr from '../nvr' |
| | | import ipc from '../ipc' |
| | | import iot from '../iot' |
| | | |
| | | export default { |
| | | name: "constructionList", |
| | | components: { |
| | | school, |
| | | constructionBatch, |
| | | reserveIp |
| | | reserveIp, |
| | | nvr, |
| | | ipc, |
| | | iot |
| | | }, |
| | | data() { |
| | | return { |
| | | activeName: 'second', |
| | | activeName: 'first', |
| | | batchOpen: false, |
| | | ipOpen: false |
| | | ipOpen: false, |
| | | schoolId: undefined |
| | | } |
| | | }, |
| | | methods: { |
| | | // 选择高校 |
| | | schoolChange(v) { |
| | | |
| | | this.schoolId = v; |
| | | this.activeName = 'first'; |
| | | }, |
| | | handleClick(tab, event) { |
| | | console.log(tab, event); |
| | |
| | | flex-direction: row; |
| | | flex: 1; |
| | | } |
| | | |
| | | .tree-list { |
| | | margin-right: 10px; |
| | | } |
| | | |
| | | .right-view { |
| | | display: flex; |
| | | flex-direction: row; |
| | | justify-content: space-between; |
| | | flex: 1; |
| | | } |
| | | |
| | | .right-view-title-icon { |
| | | display: flex; |
| | | flex-direction: row; |