|
@@ -154,6 +154,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+ import { controlsRestrictVerify} from '@/utils/index'
|
|
|
import $mqtt from '@/utils/mqtt.min.js';
|
|
|
import {
|
|
|
textParseUrlIps,
|
|
@@ -324,6 +325,15 @@
|
|
|
//结束预案
|
|
|
closePlan() {
|
|
|
let self = this;
|
|
|
+ if(!controlsRestrictVerify('performEvacuation')){
|
|
|
+ uni.showToast({
|
|
|
+ title: '没有相关操作权限,请联系管理员',
|
|
|
+ icon: "none",
|
|
|
+ mask: true,
|
|
|
+ duration: 2000
|
|
|
+ });
|
|
|
+ return
|
|
|
+ }
|
|
|
uni.showModal({
|
|
|
content: '传感器数据监测异常,确定要强制结束预案?关闭报警后,3分钟内系统不再触发预案报警,请核实确认后再执行此操作?',
|
|
|
cancelColor: "#999",
|
|
@@ -420,6 +430,15 @@
|
|
|
this.$set(this.itemData, 'subjectId', this.fjListArray[e.detail.value].subId);
|
|
|
},
|
|
|
shadeTypeClick() {
|
|
|
+ if(!controlsRestrictVerify('performEvacuation')){
|
|
|
+ uni.showToast({
|
|
|
+ title: '没有相关操作权限,请联系管理员',
|
|
|
+ icon: "none",
|
|
|
+ mask: true,
|
|
|
+ duration: 2000
|
|
|
+ });
|
|
|
+ return
|
|
|
+ }
|
|
|
this.broadcastType = !this.broadcastType
|
|
|
},
|
|
|
//获取预案数据
|
|
@@ -995,6 +1014,15 @@
|
|
|
//结束疏散
|
|
|
evacuationButton() {
|
|
|
let self = this;
|
|
|
+ if(!controlsRestrictVerify('performEvacuation')){
|
|
|
+ uni.showToast({
|
|
|
+ title: '没有相关操作权限,请联系管理员',
|
|
|
+ icon: "none",
|
|
|
+ mask: true,
|
|
|
+ duration: 2000
|
|
|
+ });
|
|
|
+ return
|
|
|
+ }
|
|
|
if (this.isEvacuate) {
|
|
|
let obj = {
|
|
|
buildingId: this.buildingId,
|