diff --git a/src/assets/img/log.png b/src/assets/img/log.png new file mode 100644 index 0000000..f862a88 Binary files /dev/null and b/src/assets/img/log.png differ diff --git a/src/assets/img/login/school.png b/src/assets/img/login/school.png new file mode 100644 index 0000000..7ab22c8 Binary files /dev/null and b/src/assets/img/login/school.png differ 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 @@ + + + + + {{ item.updateTime }} + + {{ item.versionName }} + + + + {{ funcList.find(e => e.id === item.type).name }} + + {{ item }} + + + + + + + + + + \ 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) {
{{ funcList.find(e => e.id === item.type).name }}
{{ item }}