|
@@ -283,7 +283,7 @@ import mqtt from 'mqtt'
|
|
|
import flvjs from 'flv.js'
|
|
|
import { hardWareControl,alarmControl } from "@/api/laboratory/hardware";
|
|
|
import { authListSubject,subjectInfo,updateSubject,mangerVoice,startUrl,getDetalis } from "@/api/laboratory/subject";
|
|
|
-import { filterDept } from "@/api/medicUniversity-3_1/index";
|
|
|
+import { listDepartments } from "@/api/system/dept";
|
|
|
// import addSubject from "./addSubject.vue";
|
|
|
// import deviceList from "./deviceListOne.vue";
|
|
|
// import admissionConfiguration from "./admissionConfiguration.vue";
|
|
@@ -802,7 +802,7 @@ export default {
|
|
|
},
|
|
|
/** 查询学院列表 */
|
|
|
getDeptList() {
|
|
|
- filterDept().then(response => {
|
|
|
+ listDepartments().then(response => {
|
|
|
this.$set(this, 'deptOptions', response.data)
|
|
|
});
|
|
|
},
|
|
@@ -825,18 +825,6 @@ export default {
|
|
|
console.log("订阅成功:" + this.mtopicOne+self.subId);
|
|
|
}
|
|
|
});
|
|
|
- // for(let i = 0; i< self.mqttIdList.length;i++){
|
|
|
- // this.client.subscribe(this.mtopic+self.mqttIdList[i], (err) => {
|
|
|
- // if (!err) {
|
|
|
- // console.log("订阅成功:" + this.mtopic+self.mqttIdList[i]);
|
|
|
- // }
|
|
|
- // });
|
|
|
- // this.client.subscribe(this.mtopicOne+self.mqttIdList[i], (err) => {
|
|
|
- // if (!err) {
|
|
|
- // console.log("订阅成功:" + this.mtopicOne+self.mqttIdList[i]);
|
|
|
- // }
|
|
|
- // });
|
|
|
- // }
|
|
|
});
|
|
|
this.client.on("message", (topic, message) => {
|
|
|
// console.log('message',message)
|