From eb66e79c8eea938b65fc6f958aa71d90363d336b Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Mon, 18 Apr 2022 16:42:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A5=E5=BF=97=E3=80=81=E8=80=83=E6=A0=B8?= =?UTF-8?q?=E7=AD=89=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/img/log.png | Bin 0 -> 426 bytes src/assets/img/login/school.png | Bin 0 -> 594 bytes src/components/log/index.vue | 66 ++++++ src/layouts/header/index.vue | 94 +++++++- src/pages/account/login/index.vue | 331 +++++++++++++++++----------- src/pages/ass/list/index.vue | 12 +- src/pages/log/list/index.vue | 70 ++---- src/pages/station/preview/index.vue | 1 - src/store/modules/user.js | 7 +- 9 files changed, 380 insertions(+), 201 deletions(-) create mode 100644 src/assets/img/log.png create mode 100644 src/assets/img/login/school.png create mode 100644 src/components/log/index.vue diff --git a/src/assets/img/log.png b/src/assets/img/log.png new file mode 100644 index 0000000000000000000000000000000000000000..f862a88bf516d0e25496059d53a69e2bd50ed365 GIT binary patch literal 426 zcmV;b0agBqP)Px$WJyFpR5(wal%Y?FoQur@E8<^9_cF`>$1{qr}}c2FZa9OU4=M&-A8D-@1hW{5%w_hHCQU{ z5vT!bK)s0L>VyYo+2uq&()ujOO7i|M0xbg_;0d8ZUEbsJ$w7&N6xO3e1tZVXfwHhV zR?PIE1g37TxgcL35jIASN(pI*_iIuCC~+}AtR(ruj*6U1^MS_hb+OVNJ)>c1gKJ@Q znQu;k#lFN``-i3dNl6zs?&$?M!phy`dt`Krh$^rKd;)X88&;NzrA2r&CCrS?*DAuQ zn-83$bVh>)rA35&P<-4CX=k7{ZK14>zmS0*0|!`H8S3s3;bMG{(M=+5iP)woH+@** z@XR>B5v4>oK1>3AbpRnmxd-CoEfe9TpfbuO!hFsyx_fdtU(XPBfCYpeN*gOzKL*aK U-lF<(djJ3c07*qoM6N<$f{^gExBvhE literal 0 HcmV?d00001 diff --git a/src/assets/img/login/school.png b/src/assets/img/login/school.png new file mode 100644 index 0000000000000000000000000000000000000000..7ab22c8d2f61554135537b44a15906562ba66388 GIT binary patch literal 594 zcmV-Y0Px%3`s;mR5(w~ls#xuaTLYRc`qMmg{ny)AVMr5p|QTFLk9=J3_6I4NFgees#9@s zC{j1;DB|Ga2M!KG#a3)VHwSSP(KLynB(beSq1ZmNh)^-_9eF`IG)<$>!T)rZ|L>lA zIQJ4;^teSFbOhyRSB{2ugo^w3cGov+x*_Oe?OVnG1}N_$z*PXfAYRJF1b;TBY&-sA zJ#-B;Q*rhf2F^ej0FV|rPI^zRWbA_^vs80(B69$aL6`zLRbMPlXS3Oc4`tzVy$_yu z6Tn$X6DG|k2U5FVwHqU!U)X7Ob>~EP5MrNz7Y9?(%YQ%`19Sq?I8Ec7m5e;v%#T8K zy=@D!Q_*IFPjgOx z!_`%Qi{YU8pm*P{FMb?MlQ;eew2@Cf$S`o*PRIH?Dhg~1M%o2%rsiCyFbZl2;xhoN ze%wvy4&^@{SdO9{ga+!gqpKuExRGeba63#eRPj{gc8_Xr*VQISxlJd>m) zAOrBeor+v5)SN32N1Dy3J8gHZRIQ(M(P0QUCw| literal 0 HcmV?d00001 diff --git a/src/components/log/index.vue b/src/components/log/index.vue new file mode 100644 index 0000000..96d0c9e --- /dev/null +++ b/src/components/log/index.vue @@ -0,0 +1,66 @@ + + + + \ No newline at end of file diff --git a/src/layouts/header/index.vue b/src/layouts/header/index.vue index f0f0892..7c8d8be 100644 --- a/src/layouts/header/index.vue +++ b/src/layouts/header/index.vue @@ -24,6 +24,10 @@ + + + + @@ -84,12 +43,13 @@ export default { color: #e9e9e9; } } - .timeline { - display: flex; - flex-direction: column; - width: 1000px; - margin: 0 auto; - } +} + +/deep/.timeline { + display: flex; + flex-direction: column; + width: 1000px; + margin: 0 auto; .item { display: flex; justify-content: center; diff --git a/src/pages/station/preview/index.vue b/src/pages/station/preview/index.vue index b72733f..dda5217 100644 --- a/src/pages/station/preview/index.vue +++ b/src/pages/station/preview/index.vue @@ -280,7 +280,6 @@ export default { }, goSystem() { // 进入实验系统 const id = this.systemIds - let href = '' let token = util.local.get(Setting.tokenKey); let roleId = this.roleId == 4 ? 0 : 1; let userName = window.btoa(encodeURIComponent(this.userName)); diff --git a/src/store/modules/user.js b/src/store/modules/user.js index 990877c..1a1bb7b 100644 --- a/src/store/modules/user.js +++ b/src/store/modules/user.js @@ -3,7 +3,6 @@ import util from "@/libs/util"; import { post, get, del, put } from "@/plugins/requests/index.js"; import api from "@/api"; import addRoutes from "@/libs/route/addRoutes"; - /** * 用户信息 * */ @@ -20,7 +19,8 @@ export default { customerName: '', schoolId: '', roleId: '', - dataTime: '' + dataTime: '', + logView: false // 是否查询过日志状态,如果有,则不再调接口 }, mutations: { SET_INFO: (state, info) => { @@ -50,6 +50,9 @@ export default { SET_ACTIVE_TAB: (state, activeTab) => { state.activeTab = activeTab; }, + SET_LOG: (state) => { + state.logView = true + }, }, actions: { login({ state, commit }, userInfo) {