|
@@ -171,6 +171,7 @@
|
|
<img src="@/assets/ZDimages/subject/lvqi.png" v-if="item.funNum == 'lvqi'">
|
|
<img src="@/assets/ZDimages/subject/lvqi.png" v-if="item.funNum == 'lvqi'">
|
|
<img src="@/assets/ZDimages/subject/icon_syspz_jiaquan.png" v-if="item.funNum == 'jiaquan'">
|
|
<img src="@/assets/ZDimages/subject/icon_syspz_jiaquan.png" v-if="item.funNum == 'jiaquan'">
|
|
<img src="@/assets/ZDimages/subject/icon_syspz_hwcw.png" v-if="item.funNum == 'hwcwy'">
|
|
<img src="@/assets/ZDimages/subject/icon_syspz_hwcw.png" v-if="item.funNum == 'hwcwy'">
|
|
|
|
+ <img src="@/assets/ZDimages/subject/yique.png" v-if="item.funNum == 'c2h2'">
|
|
<div>
|
|
<div>
|
|
<el-tooltip class="item" effect="dark" :content="item.describe" placement="bottom">
|
|
<el-tooltip class="item" effect="dark" :content="item.describe" placement="bottom">
|
|
<p>{{item.describe|ellipsis}}</p>
|
|
<p>{{item.describe|ellipsis}}</p>
|
|
@@ -619,7 +620,7 @@ export default {
|
|
//报警器开启关闭方法
|
|
//报警器开启关闭方法
|
|
changeIsNeedCaptchaAlarm(row){
|
|
changeIsNeedCaptchaAlarm(row){
|
|
let self = this;
|
|
let self = this;
|
|
- console.log(row.status)
|
|
|
|
|
|
+ // console.log(row.status)
|
|
if(row.status!=3 && row.status!=4){
|
|
if(row.status!=3 && row.status!=4){
|
|
return
|
|
return
|
|
}
|
|
}
|
|
@@ -723,7 +724,7 @@ export default {
|
|
let self = this;
|
|
let self = this;
|
|
let type = 0; //硬件 //0全部
|
|
let type = 0; //硬件 //0全部
|
|
subjectInfo(row.id,type).then(response => {
|
|
subjectInfo(row.id,type).then(response => {
|
|
- console.log(response.data)
|
|
|
|
|
|
+ // console.log(response.data)
|
|
this.$set(this,'subjectData',response.data)
|
|
this.$set(this,'subjectData',response.data)
|
|
this.pageType = 2;
|
|
this.pageType = 2;
|
|
})
|
|
})
|
|
@@ -848,7 +849,7 @@ export default {
|
|
// 开启关闭验证
|
|
// 开启关闭验证
|
|
async changeIsNeedCaptcha (row) {
|
|
async changeIsNeedCaptcha (row) {
|
|
let self = this;
|
|
let self = this;
|
|
- console.log(row)
|
|
|
|
|
|
+ // console.log(row)
|
|
if(row.state.code!=3 && row.state.code!=4){
|
|
if(row.state.code!=3 && row.state.code!=4){
|
|
return
|
|
return
|
|
}
|
|
}
|
|
@@ -1049,23 +1050,23 @@ export default {
|
|
handleCommand(command, row){
|
|
handleCommand(command, row){
|
|
switch (command) {
|
|
switch (command) {
|
|
case "1":
|
|
case "1":
|
|
- console.log('关联配置');
|
|
|
|
|
|
+ // console.log('关联配置');
|
|
this.clickPage(6,row);
|
|
this.clickPage(6,row);
|
|
break;
|
|
break;
|
|
case "2":
|
|
case "2":
|
|
- console.log('物联配置');
|
|
|
|
|
|
+ // console.log('物联配置');
|
|
this.clickPage(4,row);
|
|
this.clickPage(4,row);
|
|
break;
|
|
break;
|
|
case "3":
|
|
case "3":
|
|
- console.log('准入配置');
|
|
|
|
|
|
+ // console.log('准入配置');
|
|
this.clickPage(5,row);
|
|
this.clickPage(5,row);
|
|
break;
|
|
break;
|
|
case "4":
|
|
case "4":
|
|
- console.log('编辑');
|
|
|
|
|
|
+ // console.log('编辑');
|
|
this.clickPage(3,row);
|
|
this.clickPage(3,row);
|
|
break;
|
|
break;
|
|
case "5":
|
|
case "5":
|
|
- console.log('删除');
|
|
|
|
|
|
+ // console.log('删除');
|
|
break;
|
|
break;
|
|
default:
|
|
default:
|
|
break;
|
|
break;
|
|
@@ -1152,15 +1153,15 @@ export default {
|
|
password:localStorage.getItem('mqttPassword')
|
|
password:localStorage.getItem('mqttPassword')
|
|
});
|
|
});
|
|
this.client.on("connect", e =>{
|
|
this.client.on("connect", e =>{
|
|
- console.log("连接成功");
|
|
|
|
|
|
+ // console.log("连接成功");
|
|
this.client.subscribe(this.mtopic+self.subId, (err) => {
|
|
this.client.subscribe(this.mtopic+self.subId, (err) => {
|
|
if (!err) {
|
|
if (!err) {
|
|
- console.log("订阅成功:" + this.mtopic+self.subId);
|
|
|
|
|
|
+ // console.log("订阅成功:" + this.mtopic+self.subId);
|
|
}
|
|
}
|
|
});
|
|
});
|
|
this.client.subscribe(this.mtopicOne+self.subId, (err) => {
|
|
this.client.subscribe(this.mtopicOne+self.subId, (err) => {
|
|
if (!err) {
|
|
if (!err) {
|
|
- console.log("订阅成功:" + this.mtopicOne+self.subId);
|
|
|
|
|
|
+ // console.log("订阅成功:" + this.mtopicOne+self.subId);
|
|
}
|
|
}
|
|
});
|
|
});
|
|
});
|
|
});
|
|
@@ -1193,7 +1194,7 @@ export default {
|
|
}
|
|
}
|
|
}else{
|
|
}else{
|
|
//硬件
|
|
//硬件
|
|
- console.log("硬件",data);
|
|
|
|
|
|
+ // console.log("硬件",data);
|
|
for (let i = 0; i < data.data.length; i++) {
|
|
for (let i = 0; i < data.data.length; i++) {
|
|
if (self.checkedSubject.VOlist) {
|
|
if (self.checkedSubject.VOlist) {
|
|
for (let k = 0; k < self.checkedSubject.VOlist.length; k++) {
|
|
for (let k = 0; k < self.checkedSubject.VOlist.length; k++) {
|
|
@@ -1290,7 +1291,7 @@ export default {
|
|
);
|
|
);
|
|
self.videoList.push(obj);
|
|
self.videoList.push(obj);
|
|
// }
|
|
// }
|
|
- console.log("i",i)
|
|
|
|
|
|
+ // console.log("i",i)
|
|
}
|
|
}
|
|
|
|
|
|
for(let i=0;i<self.videoList.length;i++){
|
|
for(let i=0;i<self.videoList.length;i++){
|
|
@@ -1321,7 +1322,7 @@ export default {
|
|
getListClassifiedAll(){
|
|
getListClassifiedAll(){
|
|
listClassifiedAll().then(response=>{
|
|
listClassifiedAll().then(response=>{
|
|
if(response.code==200){
|
|
if(response.code==200){
|
|
- console.log(response)
|
|
|
|
|
|
+ // console.log(response)
|
|
this.levelList=response.data
|
|
this.levelList=response.data
|
|
}
|
|
}
|
|
})
|
|
})
|
|
@@ -1349,7 +1350,7 @@ export default {
|
|
},
|
|
},
|
|
beforeAvatarUpload(file) {
|
|
beforeAvatarUpload(file) {
|
|
let type = false;
|
|
let type = false;
|
|
- console.log('file',file);
|
|
|
|
|
|
+ // console.log('file',file);
|
|
if (file.type == 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' || file.type == 'application/vnd.ms-excel') {
|
|
if (file.type == 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' || file.type == 'application/vnd.ms-excel') {
|
|
if(file.size> 5250000){
|
|
if(file.size> 5250000){
|
|
this.msgError('上传大小不能超过5M')
|
|
this.msgError('上传大小不能超过5M')
|
|
@@ -1379,7 +1380,7 @@ export default {
|
|
this.download('/laboratory/subject/exportSubTemplate', {}, `实验室导入模板.xlsx`)
|
|
this.download('/laboratory/subject/exportSubTemplate', {}, `实验室导入模板.xlsx`)
|
|
}else if(item.command == 2){
|
|
}else if(item.command == 2){
|
|
// 导入数据
|
|
// 导入数据
|
|
- console.log('导入数据');
|
|
|
|
|
|
+ // console.log('导入数据');
|
|
this.importOpen = true;
|
|
this.importOpen = true;
|
|
}
|
|
}
|
|
},
|
|
},
|