From 83e7d90b2b9ef454e9698d9a5686f9f69ec79c93 Mon Sep 17 00:00:00 2001 From: danshihao Date: Wed, 27 Dec 2023 14:56:05 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E9=A6=96=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dashboard/modules/FriendLinkCard.vue | 8 +- .../dashboard/modules/MenuManageModal.vue | 145 +++++++++++++ .../dashboard/modules/QuickEnterCard.vue | 107 ++++++++-- .../modules/SearchAndWarningCard.vue | 13 ++ src/views/dashboard/modules/ToDoTaskCard.vue | 200 +++++++++++++++++- 5 files changed, 451 insertions(+), 22 deletions(-) create mode 100644 src/views/dashboard/modules/MenuManageModal.vue diff --git a/src/views/dashboard/modules/FriendLinkCard.vue b/src/views/dashboard/modules/FriendLinkCard.vue index 43c7b9a3..9796e661 100644 --- a/src/views/dashboard/modules/FriendLinkCard.vue +++ b/src/views/dashboard/modules/FriendLinkCard.vue @@ -75,11 +75,17 @@ export default { text-overflow: ellipsis; white-space: nowrap; font-size: 16px; - font-family: PingFang SC-Regular, PingFang SC; + font-family: PingFang SC-Regular, PingFang SC, sans-serif; font-weight: 400; color: @primary-color; text-align: center; background-image: url('../../../assets/image/dashboardLinkBack.png'); cursor: pointer; } +@media screen and (max-width: 1366px) { + .content-div { + height: 40px; + line-height: 40px; + } +} diff --git a/src/views/dashboard/modules/MenuManageModal.vue b/src/views/dashboard/modules/MenuManageModal.vue new file mode 100644 index 00000000..1536c7d2 --- /dev/null +++ b/src/views/dashboard/modules/MenuManageModal.vue @@ -0,0 +1,145 @@ + + + + + diff --git a/src/views/dashboard/modules/QuickEnterCard.vue b/src/views/dashboard/modules/QuickEnterCard.vue index eaa159b1..c6de1499 100644 --- a/src/views/dashboard/modules/QuickEnterCard.vue +++ b/src/views/dashboard/modules/QuickEnterCard.vue @@ -2,38 +2,83 @@
-

快捷入口

-

菜单管理

+

{{ this.$t('dashboard.quickEnter.quickEnter') }}

+

{{ this.$t('dashboard.quickEnter.menuManage') }}

-
- -

{{ item.name }}

+
+ + + + +

{{ item.name }}

+
-
- +
+
+ + @@ -45,13 +90,14 @@ export default { //flex-wrap: wrap; //justify-content: space-between; display: grid; - grid-template-columns: repeat(auto-fill, 100px); + grid-template-columns: repeat(auto-fill, calc((100% - 20px) / 3)); grid-gap: 10px; grid-auto-flow: row; margin-top: 10px; & > div { - width: 100px; - height: 100px; + //width: 100px; + //height: 100px; + min-height: 50px; border-radius: 8px 8px 8px 8px; display: flex; flex-direction: column; @@ -59,21 +105,33 @@ export default { align-items: center; } .content-div { + // (总高度 - 内边距 - 标题 - 上下边距) / 3 + height: calc((306px - 48px - 31px - 20px) / 3); + cursor: pointer; background: rgba(213,44,38,0.08); + .icon-img { + width: 27px; + } .iconfont { font-size: 27px; color: @primary-color; } p { + width: 90%; + text-align: center; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; margin-bottom: 0; font-size: 16px; - font-family: PingFang SC, PingFang SC; + font-family: PingFang SC, PingFang SC, sans-serif; font-weight: 400; color: #000000; line-height: 28px; } } .plus-div { + cursor: pointer; border: 1px dashed @primary-color; box-sizing: border-box; .anticon { @@ -81,4 +139,17 @@ export default { } } } +.text-primary-color { + color: @primary-color +} + +@media screen and (max-width: 1366px) { + .content-wrapper { + .content-div { + p { + font-size: 14px; + } + } + } +} diff --git a/src/views/dashboard/modules/SearchAndWarningCard.vue b/src/views/dashboard/modules/SearchAndWarningCard.vue index 00053f66..874ba146 100644 --- a/src/views/dashboard/modules/SearchAndWarningCard.vue +++ b/src/views/dashboard/modules/SearchAndWarningCard.vue @@ -20,10 +20,13 @@
新车型实施预警
在产车实施预警
+ diff --git a/src/views/dashboard/modules/ToDoTaskCard.vue b/src/views/dashboard/modules/ToDoTaskCard.vue index 793b2357..1a67c0b1 100644 --- a/src/views/dashboard/modules/ToDoTaskCard.vue +++ b/src/views/dashboard/modules/ToDoTaskCard.vue @@ -1,15 +1,209 @@ -