fix: 修复运维管理 数据采集 删除按钮样式优化
This commit is contained in:
parent
dcf41b4c2c
commit
4b84614f82
|
@ -81,6 +81,7 @@
|
|||
? '正常的采集器不能删除'
|
||||
: '删除',
|
||||
}"
|
||||
:danger="data?.state?.value === 'disabled'"
|
||||
hasPermission="DataCollect/Collector:delete"
|
||||
:popConfirm="{
|
||||
title: `该操作将会删除下属点位,确定删除?`,
|
||||
|
|
|
@ -51,6 +51,7 @@
|
|||
style="padding: 0px"
|
||||
@click="i.onClick"
|
||||
type="link"
|
||||
:danger="i.key === 'delete'"
|
||||
:hasPermission="'device/Firmware:' + i.key"
|
||||
>
|
||||
<template #icon
|
||||
|
@ -68,7 +69,6 @@
|
|||
<script lang="ts" setup name="FirmwarePage">
|
||||
import type { ActionsType } from '@/components/Table/index';
|
||||
import { query, queryProduct, remove } from '@/api/device/firmware';
|
||||
import { message } from 'ant-design-vue';
|
||||
import moment from 'moment';
|
||||
import _ from 'lodash';
|
||||
import Save from './Save/index.vue';
|
||||
|
|
|
@ -44,6 +44,7 @@
|
|||
style="padding: 0px"
|
||||
@click="i.onClick"
|
||||
type="link"
|
||||
:danger="i.key === 'delete'"
|
||||
:hasPermission="'link/Certificate:' + i.key"
|
||||
>
|
||||
<template #icon
|
||||
|
|
|
@ -136,6 +136,7 @@
|
|||
style="padding: 0px"
|
||||
@click="i.onClick"
|
||||
type="link"
|
||||
:danger="i.key === 'delete'"
|
||||
:hasPermission="'link/Type:' + i.key"
|
||||
>
|
||||
<template #icon
|
||||
|
|
Loading…
Reference in New Issue