|
@@ -36,7 +36,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="status-card-box">
|
|
|
+ <div v-if="hasPermission('show:zyfy')" class="status-card-box">
|
|
|
<div class="status-card">
|
|
|
<div class="left-content">
|
|
|
<div class="left1"></div>
|
|
@@ -49,7 +49,7 @@
|
|
|
<div class="status">
|
|
|
<div class="title">当前状态</div>
|
|
|
<div class="value">
|
|
|
- {{ zrfyValue.zrfyStatus == '1' ? '阻碍通风' : '帮助通风' }}
|
|
|
+ {{ zrfyValue.zrfyStatus == 1 ? '阻碍通风' : '帮助通风' }}
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -62,8 +62,10 @@
|
|
|
import { ref, reactive, onMounted, nextTick, defineProps, watch } from 'vue';
|
|
|
import * as echarts from 'echarts';
|
|
|
import { formatNum } from '/@/utils/ventutil';
|
|
|
- const emit = defineEmits(['goDetail']);
|
|
|
+ import { usePermission } from '/@/hooks/web/usePermission';
|
|
|
|
|
|
+ const emit = defineEmits(['goDetail']);
|
|
|
+ const { hasPermission } = usePermission();
|
|
|
let props = defineProps({
|
|
|
dataSource: Object,
|
|
|
});
|
|
@@ -84,7 +86,7 @@
|
|
|
let percentE = ref<any>(0);
|
|
|
let percentF = ref<any>(0);
|
|
|
let percentT = ref<any>(0);
|
|
|
- let zrfyValue = ref<any>([]);
|
|
|
+ let zrfyValue = ref<any>({});
|
|
|
let tabList = reactive<any[]>([
|
|
|
{ name: '总风量(m³/min)', val: 0 },
|
|
|
{ name: '总阻力(Pa)', val: 0 },
|