|
@@ -55,7 +55,7 @@
|
|
|
|
|
|
<script>
|
|
|
import {
|
|
|
- controlsRestrictVerify
|
|
|
+ itoOrVideoLimits
|
|
|
} from '@/utils/index'
|
|
|
import $mqtt from '@/utils/mqtt.min.js';
|
|
|
import {
|
|
@@ -107,7 +107,7 @@
|
|
|
//物联控制设备
|
|
|
deviceTypeFun(item) {
|
|
|
if (item.type == 'video') {
|
|
|
- if (!controlsRestrictVerify('subVideo')) {
|
|
|
+ if (!itoOrVideoLimits(this.newData.adminId)) {
|
|
|
uni.showToast({
|
|
|
title: '没有相关操作权限,请联系管理员',
|
|
|
icon: "none",
|
|
@@ -118,7 +118,7 @@
|
|
|
}
|
|
|
this.$parent.goVideoPage();
|
|
|
} else {
|
|
|
- if (!controlsRestrictVerify('subHardwareControl')) {
|
|
|
+ if (!itoOrVideoLimits(this.newData.adminId)) {
|
|
|
uni.showToast({
|
|
|
title: '没有相关操作权限,请联系管理员',
|
|
|
icon: "none",
|
|
@@ -137,7 +137,7 @@
|
|
|
}
|
|
|
},
|
|
|
buttonClick(type, row, status) {
|
|
|
- if (!controlsRestrictVerify('subHardwareControl')) {
|
|
|
+ if (!itoOrVideoLimits(this.newData.adminId)) {
|
|
|
uni.showToast({
|
|
|
title: '没有相关操作权限,请联系管理员',
|
|
|
icon: "none",
|