@@ -47,6 +59,14 @@ const props = defineProps({
const emit = defineEmits(['onClick']);
+const getBackgroundColor = () => {
+ return `linear-gradient(
+ 188.4deg,
+ rgba(9, 46, 231, 0.03) 22.94%,
+ rgba(9, 46, 231, 0) 94.62%
+ )`;
+};
+
const click = (value: object) => {
emit('onClick', value);
};
@@ -61,10 +81,11 @@ const click = (value: object) => {
.provider {
position: relative;
width: 100%;
- padding: 20px;
- background: url('/public/images/access/background.png') no-repeat;
+ padding: 24px;
+ // background: url('/public/images/access/background.png') no-repeat;
background-size: 100% 100%;
border: 1px solid #e6e6e6;
+ overflow: hidden;
&::before {
position: absolute;
@@ -84,6 +105,33 @@ const click = (value: object) => {
box-shadow: 0 0 24px rgba(#000, 0.1);
}
}
+.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);
+}
.box {
display: flex;
@@ -92,31 +140,40 @@ const click = (value: object) => {
width: 100%;
.left {
display: flex;
- width: calc(100% - 70px);
+ width: calc(100% - 100px);
.images {
- width: 64px;
- height: 64px;
+ width: 88px;
+ height: 88px;
img {
- width: 100%;
+ width: 88px;
+ height: 88px;
}
}
.context {
- width: calc(100% - 84px);
- margin: 10px;
+ width: calc(100% - 88px);
+ margin: 8px;
+ margin-left: 24px;
.title {
- font-weight: 600;
+ font-style: normal;
+ font-weight: 800;
+ font-size: 18px;
+ line-height: 22px;
+ color: rgba(0, 0, 0, 0.85);
+ opacity: 0.85;
}
.desc {
width: 100%;
- margin-top: 10px;
- overflow: hidden;
- color: rgba(0, 0, 0, 0.55);
+ margin-top: 24px;
+ font-style: normal;
font-weight: 400;
- font-size: 13px;
+ font-size: 12px;
+ line-height: 20px;
+ color: #666666;
+ overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
diff --git a/src/views/link/AccessConfig/index.vue b/src/views/link/AccessConfig/index.vue
index c552b512..5564d8ac 100644
--- a/src/views/link/AccessConfig/index.vue
+++ b/src/views/link/AccessConfig/index.vue
@@ -37,7 +37,7 @@
:status="slotProps.state.value"
:statusText="slotProps.state.text"
:statusNames="{
- enabled: 'success',
+ enabled: 'processing',
disabled: 'error',
}"
>
@@ -51,15 +51,12 @@
{{ slotProps.name }}
@@ -71,11 +68,17 @@
v-if="slotProps.channelInfo"
class="card-item-content-text"
>
-
+
{{ slotProps.channelInfo.name }}
-
-
- {{
- slotProps.channelInfo
- .addresses[0].address
- }}
+
{{
slotProps.channelInfo
.addresses[0].address
}}
-
-
+
+
-
+
协议
-
-
- {{
- slotProps.protocolDetail
- .name
- }}
+
+
{{
slotProps.protocolDetail
.name
}}
-
-
+
+
-
-
-
-
- {{
- getDescription(
- slotProps,
- )
- }}
-
+
+
+
{{ getDescription(slotProps) }}
-
-
+
+ {{ getDescription(slotProps) }}
+
@@ -207,8 +208,8 @@ const columns = [
search: {
type: 'select',
options: async () => {
- const res = await getProviders();
- return (res?.result || []).map((item) => ({
+ const res: any = await getProviders();
+ return (res?.result || [])?.map((item: any) => ({
lable: item.name,
value: item.id,
}));
@@ -339,7 +340,7 @@ const getDescription = (slotProps: Record) =>
)?.description;
const getStatus = (slotProps: Record) =>
- slotProps.channelInfo.addresses[0].health === -1 ? 'error' : 'success';
+ slotProps.channelInfo.addresses[0].health === -1 ? 'error' : 'processing';
/**
* 搜索
@@ -358,12 +359,29 @@ const handleSearch = (e: any) => {
.card-item-content {
min-height: 100px;
+ .card-title {
+ font-size: 18px;
+ font-weight: 800;
+ line-height: 22px;
+ }
+
.card-item-content-box {
min-height: 50px;
}
- .card-item-content-text {
- color: rgba(0, 0, 0, 0.75);
+
+ .card-item-content-text-title {
+ font-style: normal;
+ font-weight: 400;
font-size: 12px;
+ color: rgba(0, 0, 0, 0.75);
+ opacity: 0.75;
+ }
+ .card-item-content-description {
+ font-style: normal;
+ font-weight: 400;
+ font-size: 12px;
+ line-height: 20px;
+ color: #666666;
overflow: hidden; //超出的文本隐藏
text-overflow: ellipsis; //溢出用省略号显示
white-space: nowrap; //溢出不换行
diff --git a/src/views/link/Type/Detail/index.vue b/src/views/link/Type/Detail/index.vue
index c93e05e7..4eec85d9 100644
--- a/src/views/link/Type/Detail/index.vue
+++ b/src/views/link/Type/Detail/index.vue
@@ -75,11 +75,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+ -->
+
-
-
-
-
-
+
+
+
+
+
+
+
-
-
-
-
-
+
+
+
+
-
-
+ .parserType,
+ )
+ "
+ >
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -1278,8 +1308,39 @@ watch(
width: 100%;
margin-top: 24px;
}
+.form2 {
+ :deep(.ant-collapse-content-box) {
+ background: #fafafa;
+ border-radius: 2px;
+ }
+ .form2-row {
+ display: flex;
+ width: 100%;
+ position: relative;
+ flex-flow: row wrap;
+ .form2-left {
+ padding-left: 16px;
+ flex: 1;
+ }
+ .form2-right {
+ padding-right: 16px;
+ flex: 1;
+ }
+ &::before {
+ position: absolute;
+ top: -10px;
+ left: 10px;
+ right: 10px;
+ width: calc(100%-10px);
+ height: 100%;
+ background-color: #f4f4f4;
+ content: ' ';
+ }
+ }
+}
.collapse {
margin-bottom: 20px;
+ background: #f4f4f4;
}
diff --git a/src/views/link/Type/index.vue b/src/views/link/Type/index.vue
index 524f2da6..9ff37d9a 100644
--- a/src/views/link/Type/index.vue
+++ b/src/views/link/Type/index.vue
@@ -36,7 +36,7 @@
:status="slotProps.state.value"
:statusText="slotProps.state.text"
:statusNames="{
- enabled: 'success',
+ enabled: 'processing',
disabled: 'error',
}"
>
@@ -50,7 +50,7 @@