diff --git a/public/images/access-config-diaabled.png b/public/images/access-config-disabled.png similarity index 100% rename from public/images/access-config-diaabled.png rename to public/images/access-config-disabled.png diff --git a/src/components/BadgeStatus/color.ts b/src/components/BadgeStatus/color.ts index 6d9f18d3..c3f05abf 100644 --- a/src/components/BadgeStatus/color.ts +++ b/src/components/BadgeStatus/color.ts @@ -1,12 +1,12 @@ const color = { - 'processing': '64, 169, 255', - 'error': '247, 79, 70', - 'success': '74, 234, 220', - 'warning': '250, 178, 71', - 'default': '63, 73, 96' + 'processing': '9, 46, 231', + 'error': '229, 0, 18', + 'success': '36, 178, 118', + 'warning': '255, 144, 0', + 'default': '102, 102, 102' } -export const getHexColor = (code: string, pe: number = 0.3) => { +export const getHexColor = (code: string, pe: number = 0.1) => { const _color = color[code] || color.default if (code === 'default') { pe = 0.1 diff --git a/src/components/CardBox/index.vue b/src/components/CardBox/index.vue index 6174471a..4ef5c521 100644 --- a/src/components/CardBox/index.vue +++ b/src/components/CardBox/index.vue @@ -6,6 +6,18 @@ @click="handleClick" >
+
+
@@ -17,21 +29,19 @@
-
-
import BadgeStatus from '@/components/BadgeStatus/index.vue'; -import { getHexColor } from '../BadgeStatus/color' +import color, { getHexColor } from '../BadgeStatus/color'; import type { ActionsType } from '@/components/Table'; import { PropType } from 'vue'; @@ -123,6 +133,15 @@ const props = defineProps({ }, }); +const getBackgroundColor = (code: string) => { + const _color = color[code] || color.default; + return `linear-gradient( + 188.4deg, + rgba(${_color}, 0.03) 22.94%, + rgba(${_color}, 0) 94.62% + )`; +}; + const handleClick = () => { emit('click', props.value); }; @@ -257,6 +276,33 @@ const handleClick = () => { } } + .card-content-bg1 { + position: absolute; + right: -5%; + height: 100%; + width: 44.65%; + top: 0; + background: linear-gradient( + 188.4deg, + rgba(229, 0, 18, 0.03) 22.94%, + rgba(229, 0, 18, 0) 94.62% + ); + transform: skewX(-15deg); + } + + .card-content-bg2 { + position: absolute; + right: -5%; + height: 100%; + width: calc(44.65% + 34px); + top: 0; + background: linear-gradient( + 188.4deg, + rgba(229, 0, 18, 0.03) 22.94%, + rgba(229, 0, 18, 0) 94.62% + ); + transform: skewX(-15deg); + } .card-mask { position: absolute; top: 0; @@ -268,7 +314,7 @@ const handleClick = () => { width: 100%; height: 100%; color: #fff; - background-color: rgba(#000, .5); + background-color: rgba(#000, 0.5); visibility: hidden; cursor: pointer; transition: all 0.3s; diff --git a/src/components/PermissionButton/index.vue b/src/components/PermissionButton/index.vue index 8ef32c2e..44733152 100644 --- a/src/components/PermissionButton/index.vue +++ b/src/components/PermissionButton/index.vue @@ -83,7 +83,7 @@ const props = defineProps({ type: Object as PropType, }, hasPermission: { - type: String || Array, + type: String || Array || Boolean, }, style: { type: Object as PropType @@ -96,7 +96,7 @@ const props = defineProps({ const permissionStore = usePermissionStore() const isPermission = computed(() => { - if (!props.hasPermission) { + if (!props.hasPermission || props.hasPermission === true) { return true } return permissionStore.hasPermission(props.hasPermission) diff --git a/src/store/product.ts b/src/store/product.ts index 0cf68527..7c23a80c 100644 --- a/src/store/product.ts +++ b/src/store/product.ts @@ -29,5 +29,9 @@ export const useProductStore = defineStore({ setTabActiveKey(key: string) { this.tabActiveKey = key }, + reSet(){ + this.current = {} as ProductItem + this.detail = {} as ProductItem + } } }) \ No newline at end of file diff --git a/src/views/Northbound/AliCloud/index.vue b/src/views/Northbound/AliCloud/index.vue index ec33051d..e5acf97c 100644 --- a/src/views/Northbound/AliCloud/index.vue +++ b/src/views/Northbound/AliCloud/index.vue @@ -27,11 +27,12 @@