From 4f6550f12f507b5772232c3a20a698471c9fb6ac Mon Sep 17 00:00:00 2001 From: monkeyhouyi Date: Mon, 22 Jul 2024 10:01:18 +0800 Subject: [PATCH] 消息提醒弹框页面样式 --- src/assets/images/Group.png | Bin 0 -> 1011 bytes src/components/InfoForm/index.vue | 2 +- src/store/modules/user.js | 10 ++++++++++ src/utils/define.js | 2 +- src/views/homePage/HomePage.vue | 78 ++++++++++++++---------------------------------------------------------------- src/views/homePage/components/Header.vue | 95 ----------------------------------------------------------------------------------------------- src/views/homePage/components/Menu.vue | 116 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/views/homePage/components/news/NewsDialog.vue | 124 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/views/homePage/components/news/index.vue | 202 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/views/homePage/homePage.scss | 77 +---------------------------------------------------------------------------- 10 files changed, 469 insertions(+), 237 deletions(-) create mode 100644 src/assets/images/Group.png create mode 100644 src/views/homePage/components/Menu.vue create mode 100644 src/views/homePage/components/news/NewsDialog.vue create mode 100644 src/views/homePage/components/news/index.vue diff --git a/src/assets/images/Group.png b/src/assets/images/Group.png new file mode 100644 index 0000000..7e3a797 Binary files /dev/null and b/src/assets/images/Group.png differ diff --git a/src/components/InfoForm/index.vue b/src/components/InfoForm/index.vue index 783fd56..b0a4239 100644 --- a/src/components/InfoForm/index.vue +++ b/src/components/InfoForm/index.vue @@ -390,7 +390,7 @@ export default { this.$forceUpdate(); }, handleSystemTypeChange(val) { - this.query.systemClass = ""; + this.infoForm.systemClass = ""; this.initSystemClassList(val); }, async confirm() { diff --git a/src/store/modules/user.js b/src/store/modules/user.js index 09b6dc7..d17f412 100644 --- a/src/store/modules/user.js +++ b/src/store/modules/user.js @@ -216,6 +216,16 @@ const user = { resolve() }) }, + resetToken({ commit }) { + return new Promise(resolve => { + commit('SET_TOKEN', '') + commit('SET_MENULIST', []) + commit('SET_USERINFO', {}) + commit('SET_LOGIN_LOADING', false) + removeToken() + resolve() + }) + } } } diff --git a/src/utils/define.js b/src/utils/define.js index 63c75ae..92295f6 100644 --- a/src/utils/define.js +++ b/src/utils/define.js @@ -1,7 +1,7 @@ // 开发环境接口配置 // JAVA Boot版本对应后端接口地址 // JAVA Cloud对应网关地址 -const APIURl = 'http://localhost:8061' +const APIURl = 'http://8.130.38.56:8043' module.exports = { APIURl: APIURl, diff --git a/src/views/homePage/HomePage.vue b/src/views/homePage/HomePage.vue index 792add1..5e8419e 100644 --- a/src/views/homePage/HomePage.vue +++ b/src/views/homePage/HomePage.vue @@ -3,43 +3,7 @@
新增 @@ -62,19 +31,7 @@
-
-
- -
- -
-
-
- -
-
- -
+
@@ -82,23 +39,22 @@ + diff --git a/src/views/homePage/components/news/NewsDialog.vue b/src/views/homePage/components/news/NewsDialog.vue new file mode 100644 index 0000000..6789180 --- /dev/null +++ b/src/views/homePage/components/news/NewsDialog.vue @@ -0,0 +1,124 @@ + + + + diff --git a/src/views/homePage/components/news/index.vue b/src/views/homePage/components/news/index.vue new file mode 100644 index 0000000..ebb7a90 --- /dev/null +++ b/src/views/homePage/components/news/index.vue @@ -0,0 +1,202 @@ + + + + diff --git a/src/views/homePage/homePage.scss b/src/views/homePage/homePage.scss index 061da5e..507af9d 100644 --- a/src/views/homePage/homePage.scss +++ b/src/views/homePage/homePage.scss @@ -20,55 +20,6 @@ padding: 25px 0; text-align: center; border-right: unset; - .el-menu-vertical-demo:not(.el-menu--collapse) { - width: 200px; - min-height: 400px; - } - :deep(.el-menu--collapse) { - width: 100%; - } - .el-menu-item { - display: flex; - flex-direction: column; - justify-content: center; - align-items: center; - line-height: 30px; - color: #fff; - &.is-active { - color: #1890ff;; - background-color: #dfdada34; - } - span { - height: 30px; - width: 100%; - overflow: unset; - visibility: unset; - } - &:hover { - background-color: #dfdada56; - } - } - :deep(.el-menu) { - background-color: transparent; - border-right: unset; - .el-submenu__title { - display: flex; - flex-direction: column; - align-items: center; - line-height: 30px; - justify-content: center; - color: #fff; - &:hover { - background-color: #dfdada56; - } - } - i { - color: #fff; - } - .el-submenu__icon-arrow.el-icon-arrow-right { - display: none; - } - } } .table-box { position: absolute; @@ -116,32 +67,6 @@ height: 200px; background-color: rgba(228, 231, 237, 0.23); border-radius: 10px 0px 0px 10px; - padding: 20px; - .news-item { - display: flex; - flex-direction: column; - align-items: center; - color: #fff; - cursor: pointer; - margin-bottom: 8px; - .icon-item { - position: relative; - width: 40px; - height: 40px; - text-align: center; - line-height: 40px; - font-size: 40px; - margin: 8px; - .red-spot { - position: absolute; - right: -6px; - top: -6px; - width: 12px; - height: 12px; - background-color: red; - border-radius: 50%; - } - } - } + padding: 20px 0; } } \ No newline at end of file -- libgit2 0.21.4