|
@@ -2,7 +2,7 @@
|
|
|
<div class="subject">
|
|
|
<div class="subject-page" v-if="pageType == 1">
|
|
|
<div class="subject-page-min">
|
|
|
- <div class="left-subject-list" >
|
|
|
+ <div :class="versionField() == 'xiBeiNongLinDaXue'?'left-subject-list-flex':''" class="left-subject-list" >
|
|
|
<el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" style="border-bottom:1px solid #D8D8D8">
|
|
|
<el-form-item label="学院" prop="deptId" label-width="60px">
|
|
|
<el-select v-model="queryParams.deptId" placeholder="请选择学院" clearable size="small">
|
|
@@ -44,6 +44,7 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column label="实验室名称" align="left" prop="name" show-overflow-tooltip/>
|
|
|
<el-table-column label="房间号" align="left" prop="room" width="120" show-overflow-tooltip/>
|
|
|
+ <el-table-column label="学院" align="left" prop="deptName" width="200" show-overflow-tooltip v-if="versionField() == 'xiBeiNongLinDaXue'"/>
|
|
|
<el-table-column label="分类/分级" align="left" prop="levelName" width="150" show-overflow-tooltip>
|
|
|
<template slot-scope="scope">
|
|
|
<span >{{scope.row.typeName}}/</span>
|
|
@@ -60,8 +61,8 @@
|
|
|
<p class="table-min-button">更多<i class="el-icon-d-arrow-right"></i></p>
|
|
|
<el-dropdown-menu slot="dropdown" style="margin:0!important;">
|
|
|
<el-dropdown-item style="height:36px;line-height:36px;width:90px;text-align: center" command="1" v-hasPermiAnd="['laboratory:subject:query','laboratory:subject:edit']">关联配置</el-dropdown-item>
|
|
|
- <el-dropdown-item style="height:36px;line-height:36px;width:90px;text-align: center" command="2">物联配置</el-dropdown-item>
|
|
|
- <el-dropdown-item style="height:36px;line-height:36px;width:90px;text-align: center" command="3" v-hasPermi="['laboratory:subjectmaterial:add']">准入配置</el-dropdown-item>
|
|
|
+ <el-dropdown-item v-if="versionField() != 'xiBeiNongLinDaXue'" style="height:36px;line-height:36px;width:90px;text-align: center" command="2">物联配置</el-dropdown-item>
|
|
|
+ <el-dropdown-item v-if="versionField() != 'xiBeiNongLinDaXue'" style="height:36px;line-height:36px;width:90px;text-align: center" command="3" v-hasPermi="['laboratory:subjectmaterial:add']">准入配置</el-dropdown-item>
|
|
|
<el-dropdown-item style="height:36px;line-height:36px;width:90px;text-align: center" command="4" v-hasPermiAnd="['laboratory:subject:query','laboratory:subject:edit']">编辑</el-dropdown-item>
|
|
|
<!--<el-dropdown-item style="height:36px;line-height:36px;width:90px;text-align: center" command="5"-->
|
|
|
<!--v-hasPermi="['laboratory:subject:remove']">删除</el-dropdown-item>-->
|
|
@@ -81,7 +82,8 @@
|
|
|
/>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="right-subject-box scrollbar-box" :class="rightButtonType == 4?'overflow-box':''" v-if="checkedSubject.id">
|
|
|
+ <div class="right-subject-box scrollbar-box" v-if="checkedSubject.id && versionField() != 'xiBeiNongLinDaXue'"
|
|
|
+ :class="rightButtonType == 4?'overflow-box':''">
|
|
|
<div class="top-button-box">
|
|
|
<div :class="rightButtonType == 1 ? 'buttonColorA' : 'buttonColorB'" @click="rightButtonClick(1)">传感器监测</div>
|
|
|
<div :class="rightButtonType == 2 ? 'buttonColorA' : 'buttonColorB'" @click="rightButtonClick(2)">物联控制</div>
|
|
@@ -663,6 +665,11 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
this.$set(this.newData,'labHardwareVOListTwo',listTwo);
|
|
|
+ if(this.versionField() == 'xiBeiNongLinDaXue'){
|
|
|
+ this.$set(this.newData,'videoData',[]);
|
|
|
+ this.pageType = 6;
|
|
|
+ return
|
|
|
+ }
|
|
|
if(list[0]){
|
|
|
let obj = {
|
|
|
count:"100",
|
|
@@ -882,6 +889,9 @@ export default {
|
|
|
//选中实验室
|
|
|
handleCurrentChange(val){
|
|
|
let self = this;
|
|
|
+ if(this.versionField() == 'xiBeiNongLinDaXue'){
|
|
|
+ return
|
|
|
+ }
|
|
|
if(val.id != this.checkedSubject.id){
|
|
|
this.videoOff();
|
|
|
this.offMQTT();
|
|
@@ -1242,6 +1252,9 @@ export default {
|
|
|
padding: 2px 0 10px 10px;
|
|
|
box-sizing: border-box;
|
|
|
}
|
|
|
+ .left-subject-list-flex{
|
|
|
+ flex:1;
|
|
|
+ }
|
|
|
.left-subject-list{
|
|
|
/*flex:1;*/
|
|
|
width:1143px;
|