From 24cbdb7a2cc13befa04ae67f4ae727b6ef3ce7eb Mon Sep 17 00:00:00 2001 From: dai <851733175@qq.com> Date: Thu, 7 Jul 2022 15:55:42 +0800 Subject: [PATCH 01/28] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=88=9D=E6=AD=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/scss/main-shuju.scss | 25 +++++-- src/assets/scss/shuju-variables.scss | 24 +++++++ src/js/store/index.js | 89 +++++++++++++----------- src/views/components/fixed1920.vue | 62 +++++++++++++++++ src/views/main-shuju/main.vue | 54 +++++++------- src/views/modules/visual/heart/index.vue | 84 ++++++++++++---------- 6 files changed, 231 insertions(+), 107 deletions(-) create mode 100644 src/assets/scss/shuju-variables.scss create mode 100644 src/views/components/fixed1920.vue diff --git a/src/assets/scss/main-shuju.scss b/src/assets/scss/main-shuju.scss index 092ff796..bb1f2171 100644 --- a/src/assets/scss/main-shuju.scss +++ b/src/assets/scss/main-shuju.scss @@ -1,5 +1,8 @@ @import "~@/element-ui/theme-variables.scss"; -@import "./variables.scss"; +@import "./shuju-variables.scss"; +@import "./c/config"; +@import "./c/function"; +@import "./modules/visual/c/common.scss"; // $navbar--height: 60px; body { @@ -19,6 +22,8 @@ body { background-image: url(../img/shuju/bg.jpg); background-size: cover; background-position: center 0; + height: 100%; + @include scrollBar; .el-card + .el-card { margin-top: 15px; @@ -171,6 +176,10 @@ body { // box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.05); background: linear-gradient(180deg, #00023f, #176dec); box-shadow: 0px 3px 16px 0px rgba(187, 187, 227, 0.35); + font-size: 18px; + .el-menu-item { + font-size: 18px; + } .navbar--colorful { .navbar__body { @@ -229,17 +238,17 @@ body { display: flex; justify-content: center; align-items: center; - padding: 5px; + padding: 10px 20px; margin: 0; width: 100%; height: 100%; - font-size: 24px; + font-size: 28px; + font-weight: bold; text-transform: uppercase; white-space: nowrap; // overflow: hidden; transition: width 0.3s; font-family: FZZCHJW; - font-weight: normal; color: #ffffff; background: linear-gradient(0deg, #03c7ff 24.609375%, #ffffff 81.0791015625%); -webkit-background-clip: text; @@ -288,6 +297,7 @@ body { .navbar__menu { background-color: transparent; border-bottom: 0 !important; + a:focus, a:hover { text-decoration: none; @@ -349,7 +359,7 @@ body { position: absolute; display: none; padding: 0 10px; - width: 120px; + width: 160px; left: -100px; right: -100px; margin: 0 auto; @@ -360,6 +370,9 @@ body { border-top: 1px dashed rgba(#fff, 0.4); color: rgba(#fff, 0.7); transition: all ease 0.5s; + padding: 10px 0; + line-height: $navbar--height * 0.5; + &.z-on { font-weight: bold; } @@ -409,7 +422,7 @@ body { } .navbar__icon-menu { vertical-align: middle; - font-size: 16px; + font-size: 20px; } .el-dropdown { color: #fff; diff --git a/src/assets/scss/shuju-variables.scss b/src/assets/scss/shuju-variables.scss new file mode 100644 index 00000000..70ce5241 --- /dev/null +++ b/src/assets/scss/shuju-variables.scss @@ -0,0 +1,24 @@ +// Base +$base--line-height: 1.15; + +// Navbar +$navbar--height: 75px; + +// Sidebar +$sidebar--width: 230px; +$sidebar--width-fold: 100px; +$sidebar--background-color-dark: #263238; +$sidebar--text-color-dark: #8a979e; +$sidebar--menu-item-height: 48px; + +// Content +$content--padding: 10px; +$content--background-color: #f1f4f5; +$content--card-header-height: 60px; +$content--tabs-header-height: 38px; +// Content, 填充整屏高度(非tabs状态) = 整屏高度 - 导航条高度 - aui-content上下内边距高度 +$content--fill-height: calc(100vh - #{$navbar--height} - #{$content--padding * 2}); +// Content, 填充整屏高度(是tabs状态) = 整屏高度 - 导航条高度 - tabs组件header高度 - tabs组件content上下内边距高度 +$content--fill-height-tabs: calc( + 100vh - #{$navbar--height} - #{$content--tabs-header-height} - #{$content--padding * 2} +); diff --git a/src/js/store/index.js b/src/js/store/index.js index 276c7f83..7ebb31e9 100644 --- a/src/js/store/index.js +++ b/src/js/store/index.js @@ -8,7 +8,7 @@ import { requestPost } from "@/js/dai/request"; import { dateFormats } from "@/utils/index"; Vue.use(Vuex); -let interTimer = null +let interTimer = null; export default new Vuex.Store({ namespaced: true, state: { @@ -42,6 +42,9 @@ export default new Vuex.Store({ tipsList: [], tipsTime: [], inIframe: window.self !== window.top, + fixed1920: { + height: document.documentElement.clientHeight, + }, }, modules: { user, @@ -56,69 +59,71 @@ export default new Vuex.Store({ }); }, SET_TIPS_LIST(state, tipsList) { - let _list = state.tipsList + let _list = state.tipsList; // state.tipsList = _list.concat(tipsList) - state.tipsList = tipsList + state.tipsList = tipsList; }, SET_TIPS_TIME(state, time) { - state.tipsTime = time - } + state.tipsTime = time; + }, }, actions: { clearInter() { - clearInterval(interTimer) + clearInterval(interTimer); }, setInterval({ commit, dispatch, state }) { interTimer = setInterval(() => { - const _t = dateFormats('YYYY-mm-dd HH:MM', (new Date(new Date().toLocaleDateString()).getTime())) - const _tt = new Date(_t).getTime() - console.log('230000---', _t) - const t = dateFormats('YYYY-mm-dd HH:MM', (new Date().getTime())) - const nt = new Date(t).getTime() + const _t = dateFormats( + "YYYY-mm-dd HH:MM", + new Date(new Date().toLocaleDateString()).getTime() + ); + const _tt = new Date(_t).getTime(); + console.log("230000---", _t); + const t = dateFormats("YYYY-mm-dd HH:MM", new Date().getTime()); + const nt = new Date(t).getTime(); // 判断当前时间是否为 00:00 if (nt == _tt) { - dispatch('setTipsTime') - return + dispatch("setTipsTime"); + return; } - let times = state.tipsTime - console.log('nt---000', nt) + let times = state.tipsTime; + console.log("nt---000", nt); state.tipsTime.forEach((item, index) => { - const _t = new Date(item).getTime() + const _t = new Date(item).getTime(); if (_t == nt) { - clearInterval(interTimer) - dispatch('setTipsList', item) - times.splice(index, 1) - commit('SET_TIPS_TIME', times) + clearInterval(interTimer); + dispatch("setTipsList", item); + times.splice(index, 1); + commit("SET_TIPS_TIME", times); } - }) - }, 60000) + }); + }, 60000); }, setTipsList({ commit }, time) { return new Promise(async (resolve, reject) => { - const url = '/gov/project/memoAttr/memosToRemind' + const url = "/gov/project/memoAttr/memosToRemind"; const params = { - remindTime: time || '' - } - const { data, code, msg } = await requestPost(url, params) + remindTime: time || "", + }; + const { data, code, msg } = await requestPost(url, params); if (code === 0) { - commit('SET_TIPS_LIST', data) - resolve() - } else reject(msg) - }) + commit("SET_TIPS_LIST", data); + resolve(); + } else reject(msg); + }); }, setTipsTime({ commit, dispatch }) { return new Promise(async (resolve, reject) => { - if (interTimer) clearInterval(interTimer) - const url = '/gov/project/memoAttr/memoTime' - - const { data, code, msg } = await requestPost(url) + if (interTimer) clearInterval(interTimer); + const url = "/gov/project/memoAttr/memoTime"; + + const { data, code, msg } = await requestPost(url); if (code === 0) { - - commit('SET_TIPS_TIME', data) - if (data.length > 0) dispatch('setInterval') - resolve() - } else reject(msg) - }) - } - } + commit("SET_TIPS_TIME", data); + if (data.length > 0) dispatch("setInterval"); + resolve(); + } else reject(msg); + }); + }, + }, }); diff --git a/src/views/components/fixed1920.vue b/src/views/components/fixed1920.vue new file mode 100644 index 00000000..e98ab311 --- /dev/null +++ b/src/views/components/fixed1920.vue @@ -0,0 +1,62 @@ + + + + diff --git a/src/views/main-shuju/main.vue b/src/views/main-shuju/main.vue index 4abb6808..6aa4e014 100644 --- a/src/views/main-shuju/main.vue +++ b/src/views/main-shuju/main.vue @@ -1,25 +1,28 @@ diff --git a/src/views/modules/workSys/role/role.vue b/src/views/modules/workSys/role/role.vue new file mode 100644 index 00000000..a3a87e38 --- /dev/null +++ b/src/views/modules/workSys/role/role.vue @@ -0,0 +1,102 @@ + + + From ee8c394a24224ab3386ec205833e39e61b2fb419 Mon Sep 17 00:00:00 2001 From: dai <851733175@qq.com> Date: Tue, 12 Jul 2022 11:08:47 +0800 Subject: [PATCH 09/28] =?UTF-8?q?=E8=A1=A8=E6=A0=BC=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/scss/modules/visual/warning.scss | 3 +-- src/views/modules/visual/cpts/tb.vue | 3 ++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/assets/scss/modules/visual/warning.scss b/src/assets/scss/modules/visual/warning.scss index fddf565a..bfb32065 100644 --- a/src/assets/scss/modules/visual/warning.scss +++ b/src/assets/scss/modules/visual/warning.scss @@ -26,8 +26,7 @@ border: 1px solid #1043c0; box-shadow: 0px 83px 150px 0px #002790; border-radius: 8px; - margin-right: 15px; - margin-bottom: 15px; + margin: 10px 12px; &-img { display: flex; diff --git a/src/views/modules/visual/cpts/tb.vue b/src/views/modules/visual/cpts/tb.vue index 377ac635..a847ede2 100644 --- a/src/views/modules/visual/cpts/tb.vue +++ b/src/views/modules/visual/cpts/tb.vue @@ -190,7 +190,7 @@ export default { width: 100%; height: 50px; background: rgba(8, 37, 134, 0.85); - font-size: 17px; + font-size: 16px; font-weight: 400; color: #ffffff; line-height: 50px; @@ -198,6 +198,7 @@ export default { &-th { text-align: center; border: none; + font-weight: normal; // width: calc(100% / 5); } } From 03d44f70c88227ba16614c7b773bd7b9e61ca7bd Mon Sep 17 00:00:00 2001 From: dai <851733175@qq.com> Date: Tue, 12 Jul 2022 15:47:58 +0800 Subject: [PATCH 10/28] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=B7=B2=E7=9F=A5?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../scss/modules/visual/basicInfoMain.scss | 8 ++- .../scss/modules/visual/incident-info.scss | 37 +++++++------- .../scss/modules/visual/issue-info.scss | 31 +++++------ .../scss/modules/visual/searchPerson.scss | 19 ++++--- src/assets/scss/shuju-card.scss | 3 ++ .../modules/visual/basicinfo/peopleSearch.vue | 3 +- src/views/modules/visual/cpts/card.vue | 51 +++++++++++++++---- 7 files changed, 95 insertions(+), 57 deletions(-) diff --git a/src/assets/scss/modules/visual/basicInfoMain.scss b/src/assets/scss/modules/visual/basicInfoMain.scss index e31559bb..f7e53229 100644 --- a/src/assets/scss/modules/visual/basicInfoMain.scss +++ b/src/assets/scss/modules/visual/basicInfoMain.scss @@ -270,15 +270,19 @@ box-shadow: 0 0 10px inset #1a5afd; } .item { - background-color: #011168; margin-top: 12px; - width: 244px; + width: 242px; height: 190px; border: 1px solid #037ddc; border-radius: 8px; text-align: center; margin-left: 11px; position: relative; + background-color: rgba(#000, 0.3); + + &:nth-child(5n + 1) { + margin-left: 0; + } // &:first-child { // margin-left: 0; diff --git a/src/assets/scss/modules/visual/incident-info.scss b/src/assets/scss/modules/visual/incident-info.scss index ed3aacad..c305a4c4 100644 --- a/src/assets/scss/modules/visual/incident-info.scss +++ b/src/assets/scss/modules/visual/incident-info.scss @@ -1,6 +1,6 @@ -@import '../../c/config'; -@import '../../c/function'; -@import './c/common'; +@import "../../c/config"; +@import "../../c/function"; +@import "./c/common"; .m-pop { @include shield; @@ -103,7 +103,18 @@ .info-content { margin: 20px 0; } - + + .info-pics { + display: flex; + margin: 20px 0; + img { + display: block; + width: 32%; + height: 90px; + margin-right: 9px; + object-fit: cover; + } + } .info-prop { position: relative; @@ -123,7 +134,7 @@ } &::before { - content: ''; + content: ""; display: block; position: absolute; top: 9px; @@ -134,18 +145,6 @@ border-radius: 3px; margin-right: 10px; } - - .info-pics { - display: flex; - margin: 20px 0; - img { - display: block; - width: 32%; - height: 90px; - margin-right: 9px; - object-fit: cover; - } - } } } @@ -265,7 +264,7 @@ padding-right: 10px; &::before { - content: ''; + content: ""; position: absolute; z-index: 1; display: block; @@ -290,7 +289,7 @@ padding-top: 1px; &::before { - content: ''; + content: ""; display: block; position: absolute; top: -5px; diff --git a/src/assets/scss/modules/visual/issue-info.scss b/src/assets/scss/modules/visual/issue-info.scss index e4672951..dc3fe2fd 100644 --- a/src/assets/scss/modules/visual/issue-info.scss +++ b/src/assets/scss/modules/visual/issue-info.scss @@ -1,6 +1,6 @@ -@import '../../c/config'; -@import '../../c/function'; -@import './c/common'; +@import "../../c/config"; +@import "../../c/function"; +@import "./c/common"; .m-pop { @include shield; @@ -68,6 +68,18 @@ line-height: 30px; } + .info-pics { + display: flex; + margin: 10px 0; + img { + display: block; + width: 32%; + height: 90px; + margin-right: 9px; + object-fit: cover; + } + } + .info-prop { position: relative; margin: 10px 0; @@ -78,17 +90,6 @@ flex: 0 0 1; font-size: 14px; } - .info-pics { - display: flex; - margin: 10px 0; - img { - display: block; - width: 32%; - height: 90px; - margin-right: 9px; - object-fit: cover; - } - } > span, > div { display: block; @@ -96,7 +97,7 @@ } &::before { - content: ''; + content: ""; display: block; position: absolute; top: 9px; diff --git a/src/assets/scss/modules/visual/searchPerson.scss b/src/assets/scss/modules/visual/searchPerson.scss index 6be528e1..fe9489fd 100644 --- a/src/assets/scss/modules/visual/searchPerson.scss +++ b/src/assets/scss/modules/visual/searchPerson.scss @@ -1,5 +1,5 @@ -.div_people_search{ - min-height:100%; +.div_people_search { + min-height: 100%; box-sizing: border-box; } @@ -36,6 +36,7 @@ font-weight: 400; color: #ffffff; line-height: 53px; + background: linear-gradient(90deg, #1a5afd, #26c4ff); } .btn:hover { cursor: pointer; @@ -51,8 +52,7 @@ // height: calc(88vh - 200px); height: 485px; color: #fff; - background: url('../../../img/modules/visual/warning-box.png') no-repeat - center; + background: url("../../../img/modules/visual/warning-box.png") no-repeat center; background-size: 100% 100%; } @@ -123,16 +123,15 @@ } &-tr:hover { - background: url('../../../img/modules/visual/hover-bac.png') no-repeat - center; + background: url("../../../img/modules/visual/hover-bac.png") no-repeat center; background-size: 100% 100%; } } - &-status{ - margin-top:20px; + &-status { + margin-top: 20px; - .no-data{ + .no-data { display: flex; justify-content: center; } @@ -159,7 +158,7 @@ } .pagination { box-sizing: border-box; - padding-right:180px; + padding-right: 180px; padding-bottom: 20px; margin-top: 40px; diff --git a/src/assets/scss/shuju-card.scss b/src/assets/scss/shuju-card.scss index 4af07fd8..04b4e1d4 100644 --- a/src/assets/scss/shuju-card.scss +++ b/src/assets/scss/shuju-card.scss @@ -1,5 +1,6 @@ @import "c/config"; @import "c/function"; +@import "./modules/visual/c/common"; .m-card { position: relative; @@ -69,5 +70,7 @@ min-height: 200px; background-image: url(../img/shuju/card/bg.png); background-repeat: repeat; + overflow-y: auto; + @include scrollBar; } } diff --git a/src/views/modules/visual/basicinfo/peopleSearch.vue b/src/views/modules/visual/basicinfo/peopleSearch.vue index 8193f9f1..4ef10830 100644 --- a/src/views/modules/visual/basicinfo/peopleSearch.vue +++ b/src/views/modules/visual/basicinfo/peopleSearch.vue @@ -223,7 +223,8 @@ export default { border-radius: 8px 0 0 8px; height: 53px; background-color: #01106800; - border: 2px solid #0082fb; + border: 3px solid #0082fb; + border-right: 0; padding-left: 70px; font-size: 18px; font-family: PingFang SC; diff --git a/src/views/modules/visual/cpts/card.vue b/src/views/modules/visual/cpts/card.vue index 9dcb8971..4516d8b3 100644 --- a/src/views/modules/visual/cpts/card.vue +++ b/src/views/modules/visual/cpts/card.vue @@ -1,15 +1,27 @@