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