修改测试问题

This commit is contained in:
guanj
2026-06-29 11:01:44 +08:00
parent f008bcb4b8
commit 1d73755a43
56 changed files with 2875 additions and 2702 deletions

View File

@@ -1,41 +1,25 @@
<template>
<Cn-page :loading="loading">
<Cn-page >
<view class="mine" slot="body">
<view class="mine-nav mt20" style="border-bottom: none">
<view class="mine-nav-label">暂态事件</view>
<switch
style="transform: scale(0.8)"
color="#376cf3"
@change="change('eventInfo')"
:checked="config.eventInfo === 1"
/>
<switch style="transform: scale(0.8)" color="#376cf3" @change="change('eventInfo')"
:checked="config.eventInfo === 1" />
</view>
<view class="mine-nav" style="border-bottom: none">
<view class="mine-nav-label">稳态事件</view>
<switch
style="transform: scale(0.8)"
color="#376cf3"
@change="change('harmonicInfo')"
:checked="config.harmonicInfo === 1"
/>
<switch style="transform: scale(0.8)" color="#376cf3" @change="change('harmonicInfo')"
:checked="config.harmonicInfo === 1" />
</view>
<view class="mine-nav" style="border-bottom: none">
<view class="mine-nav" style="border-bottom: none" v-if="flag">
<view class="mine-nav-label">运行告警</view>
<switch
style="transform: scale(0.8)"
color="#376cf3"
@change="change('alarmInfo')"
:checked="config.alarmInfo === 1"
/>
<switch style="transform: scale(0.8)" color="#376cf3" @change="change('alarmInfo')"
:checked="config.alarmInfo === 1" />
</view>
<view class="mine-nav" >
<view class="mine-nav" v-if="flag">
<view class="mine-nav-label">运行事件</view>
<switch
style="transform: scale(0.8)"
color="#376cf3"
@change="change('runInfo')"
:checked="config.runInfo === 1"
/>
<switch style="transform: scale(0.8)" color="#376cf3" @change="change('runInfo')"
:checked="config.runInfo === 1" />
</view>
</view>
</Cn-page>
@@ -49,6 +33,7 @@ export default {
return {
loading: true,
config: {},
flag: false,
}
},
methods: {
@@ -106,6 +91,9 @@ export default {
},
},
onLoad() {
if (uni.getStorageSync(this.$cacheKey.userInfo).authorities === 'operation_manager') {
this.flag = true
}
this.init()
},
}