fix: 组件替换

This commit is contained in:
leiqiaochu 2023-03-20 11:18:36 +08:00
parent 96dce7a98a
commit 430a8c7dc8
1 changed files with 64 additions and 63 deletions

View File

@ -11,7 +11,11 @@
> >
<template #headerTitle> <template #headerTitle>
<j-space> <j-space>
<PermissionButton type="primary" @click="showModal" hasPermission="rule-engine/Alarm/Configuration:add"> <PermissionButton
type="primary"
@click="showModal"
hasPermission="rule-engine/Alarm/Configuration:add"
>
<template #icon><AIcon type="PlusOutlined" /></template> <template #icon><AIcon type="PlusOutlined" /></template>
新增 新增
</PermissionButton> </PermissionButton>
@ -34,9 +38,7 @@
:height="16" :height="16"
:src="typeMap.get(slotProps.triggerType)?.icon" :src="typeMap.get(slotProps.triggerType)?.icon"
style="margin-right: 5px" style="margin-right: 5px"
/>{{ />{{ typeMap.get(slotProps.triggerType)?.text }}</span
typeMap.get(slotProps.triggerType)?.text
}}</span
> >
</template> </template>
<template #img> <template #img>
@ -93,7 +95,6 @@
import { query } from '@/api/rule-engine/scene'; import { query } from '@/api/rule-engine/scene';
import { unbindScene } from '@/api/rule-engine/configuration'; import { unbindScene } from '@/api/rule-engine/configuration';
import { useRoute } from 'vue-router'; import { useRoute } from 'vue-router';
import SceneCard from '@/views/rule-engine/Scene/SceneCard.vue';
import type { ActionsType } from '@/components/Table'; import type { ActionsType } from '@/components/Table';
import { getImage } from '@/utils/comm'; import { getImage } from '@/utils/comm';
import { message } from 'ant-design-vue/es'; import { message } from 'ant-design-vue/es';
@ -176,7 +177,7 @@ const closeSave = () => {
const saveSuccess = () => { const saveSuccess = () => {
visible.value = false; visible.value = false;
actionRef.value.reload(); actionRef.value.reload();
} };
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
</style> </style>