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