|
@@ -7,8 +7,15 @@
|
|
|
<em>(在线:{{classInfo.online}}人 离线:{{classInfo.offline}}人) </em>
|
|
<em>(在线:{{classInfo.online}}人 离线:{{classInfo.offline}}人) </em>
|
|
|
<em>当前时间:{{classInfo.time}} </em>
|
|
<em>当前时间:{{classInfo.time}} </em>
|
|
|
<!--拿到eqsn才能获取数据-->
|
|
<!--拿到eqsn才能获取数据-->
|
|
|
- <em>区域列表</em>
|
|
|
|
|
-
|
|
|
|
|
|
|
+ <em>区域列表 </em>
|
|
|
|
|
+ <el-select v-model="VenueId" placeholder="请选择区域" @change="queryEqsnByVenueId">
|
|
|
|
|
+ <el-option
|
|
|
|
|
+ v-for="item in VenueOption"
|
|
|
|
|
+ :key="item.SvId"
|
|
|
|
|
+ :label="item.Name"
|
|
|
|
|
+ :value="item.SvId">
|
|
|
|
|
+ </el-option>
|
|
|
|
|
+ </el-select>
|
|
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
@@ -119,6 +126,12 @@
|
|
|
import levelIcon from '@/components/levelIcon'
|
|
import levelIcon from '@/components/levelIcon'
|
|
|
import power from '@/components/power'
|
|
import power from '@/components/power'
|
|
|
import userRank from '@/components/userRank'
|
|
import userRank from '@/components/userRank'
|
|
|
|
|
+ import Global from '../Global.js'
|
|
|
|
|
+ import {
|
|
|
|
|
+ QueryShopVenue,
|
|
|
|
|
+ QueryVenueEquip,
|
|
|
|
|
+ } from "../api/getApiRes";
|
|
|
|
|
+ let qs = require('qs');
|
|
|
export default {
|
|
export default {
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
@@ -129,8 +142,10 @@
|
|
|
offline: 0,
|
|
offline: 0,
|
|
|
time: '00:00:00',
|
|
time: '00:00:00',
|
|
|
},
|
|
},
|
|
|
|
|
+ VenueId: 0,//所选区域
|
|
|
classState: 0,//0 下课 1上课
|
|
classState: 0,//0 下课 1上课
|
|
|
students: [],
|
|
students: [],
|
|
|
|
|
+ VenueOption: [],
|
|
|
studentsClassName: [],
|
|
studentsClassName: [],
|
|
|
rankInfo: [],
|
|
rankInfo: [],
|
|
|
screen_full: false,
|
|
screen_full: false,
|
|
@@ -141,6 +156,7 @@
|
|
|
},
|
|
},
|
|
|
mounted() {
|
|
mounted() {
|
|
|
// this.getList(26);
|
|
// this.getList(26);
|
|
|
|
|
+ this.getVenueQuery();
|
|
|
},
|
|
},
|
|
|
watch: {
|
|
watch: {
|
|
|
$route(to) {
|
|
$route(to) {
|
|
@@ -149,6 +165,7 @@
|
|
|
this.clearRem()
|
|
this.clearRem()
|
|
|
} else {
|
|
} else {
|
|
|
this.setRem();
|
|
this.setRem();
|
|
|
|
|
+ this.getVenueQuery();
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
@@ -215,6 +232,59 @@
|
|
|
showRank() {
|
|
showRank() {
|
|
|
this.dialogMemberVisible = true;
|
|
this.dialogMemberVisible = true;
|
|
|
},
|
|
},
|
|
|
|
|
+ // 获取演示区域
|
|
|
|
|
+ getVenueQuery() {
|
|
|
|
|
+ let that = this;
|
|
|
|
|
+ that.loading = true;
|
|
|
|
|
+ let param = {
|
|
|
|
|
+ key: localStorage.ServiceKey,
|
|
|
|
|
+ shopId: localStorage.ServiceId,
|
|
|
|
|
+ };
|
|
|
|
|
+ let postdata = qs.stringify(param);
|
|
|
|
|
+ QueryShopVenue(postdata).then(res => {
|
|
|
|
|
+ let json = res;
|
|
|
|
|
+ if (json.Code == 0) {
|
|
|
|
|
+ that.loading = false;
|
|
|
|
|
+ if (json.Rs) {
|
|
|
|
|
+ that.VenueOption = json.Rs;
|
|
|
|
|
+ } else {
|
|
|
|
|
+ that.VenueOption = [];
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ } else {
|
|
|
|
|
+ if (!localStorage.ServiceKey) {
|
|
|
|
|
+ that.$message.error('还未与心率系统对接,请联系管理员');
|
|
|
|
|
+ } else {
|
|
|
|
|
+ that.$message.error(json.Memo + ' 错误码:' + json.Code);
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
|
|
+ // 获取演示设备eqsn
|
|
|
|
|
+ queryEqsnByVenueId(svId) {
|
|
|
|
|
+ let that = this;
|
|
|
|
|
+ that.loading = true;
|
|
|
|
|
+ let param = {
|
|
|
|
|
+ key: localStorage.ServiceKey,
|
|
|
|
|
+ shopId: localStorage.ServiceId,
|
|
|
|
|
+ svId: svId,
|
|
|
|
|
+ eqType:3//设备类型 1 电视盒子 2 演示对应中间件 3 演示客户端
|
|
|
|
|
+ };
|
|
|
|
|
+ let postdata = qs.stringify(param);
|
|
|
|
|
+ QueryVenueEquip(postdata).then(res => {
|
|
|
|
|
+ let json = res;
|
|
|
|
|
+ if (json.Code == 0) {
|
|
|
|
|
+ that.loading = false;
|
|
|
|
|
+ if (json.Rs) {
|
|
|
|
|
+ that.EqSn = json.Rs.EqSn;
|
|
|
|
|
+ } else {
|
|
|
|
|
+ that.EqSn = '';
|
|
|
|
|
+ }
|
|
|
|
|
+ } else {
|
|
|
|
|
+ that.$message.error(json.Memo + ' 错误码:' + json.Code);
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
getList(len) {
|
|
getList(len) {
|
|
|
let rs = {};
|
|
let rs = {};
|
|
|
for (var i = 0; i < len; i++) {
|
|
for (var i = 0; i < len; i++) {
|