|
@@ -20,9 +20,9 @@
|
|
|
<AlarmExampleWecom />
|
|
<AlarmExampleWecom />
|
|
|
</el-tab-pane> -->
|
|
</el-tab-pane> -->
|
|
|
|
|
|
|
|
- <div v-for="(example, index) in noticeChannel" :key="index">
|
|
|
|
|
- <el-tab-pane :label="AlarmChannelLabelMap[example]" :name="index">
|
|
|
|
|
- <component :is="exampleComponentMap[example]"></component>
|
|
|
|
|
|
|
+ <div v-for="(channle, index) in ALARMCHANNEL_LIST" :key="channle.name">
|
|
|
|
|
+ <el-tab-pane :label="channle.label" :name="index">
|
|
|
|
|
+ <component :is="exampleComponentMap[channle.name]"></component>
|
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
|
</div>
|
|
</div>
|
|
|
</el-tabs>
|
|
</el-tabs>
|
|
@@ -36,11 +36,9 @@
|
|
|
import { ref } from 'vue';
|
|
import { ref } from 'vue';
|
|
|
import { ElTooltip, ElIcon } from 'element-plus';
|
|
import { ElTooltip, ElIcon } from 'element-plus';
|
|
|
import { InfoFilled } from '@element-plus/icons-vue';
|
|
import { InfoFilled } from '@element-plus/icons-vue';
|
|
|
- import { useGlobSetting } from '@/hooks/setting';
|
|
|
|
|
- import { AlarmChannelLabelMap } from '../types';
|
|
|
|
|
|
|
+ import { ALARMCHANNEL_LIST } from '../types';
|
|
|
|
|
|
|
|
const activeName = ref<number>(0);
|
|
const activeName = ref<number>(0);
|
|
|
- const { noticeChannel } = useGlobSetting();
|
|
|
|
|
|
|
|
|
|
const exampleComponentMap = {
|
|
const exampleComponentMap = {
|
|
|
lanxin: AlarmExampleMobile,
|
|
lanxin: AlarmExampleMobile,
|