n20-common-lib 2.3.17 → 2.3.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/assets/css/cl-layout-header.scss +3 -0
- package/src/components/Layout/HeaderWrap/indexN.vue +10 -12
- package/src/components/LoginTemporary/indexN.vue +1 -0
- package/style/index.css +1 -1
- package/style/index.css.map +1 -1
- package/theme/blue.css +1 -1
- package/theme/cctcRed.css +1 -1
- package/theme/green.css +1 -1
- package/theme/lightBlue.css +1 -1
- package/theme/orange.css +1 -1
- package/theme/purple.css +1 -1
- package/theme/red.css +1 -1
- package/theme/yellow.css +1 -1
package/package.json
CHANGED
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
>
|
|
105
105
|
<img v-popover:by_popover class="user-info-btn header-color" :src="headerUserUrl" />
|
|
106
106
|
|
|
107
|
-
<el-dropdown-menu slot="dropdown" class="user-info-drop-menu-new">
|
|
107
|
+
<el-dropdown-menu slot="dropdown" :class="{ 'user-info-drop_height': !inBack }" class="user-info-drop-menu-new">
|
|
108
108
|
<div class="uif-user-w" :style="{ backgroundImage: headerUserInfoBg ? `url(${headerUserInfoBg})` : undefined }">
|
|
109
109
|
<div class="uif-img-w">
|
|
110
110
|
<img class="_img" :src="headerUserUrl" />
|
|
@@ -262,7 +262,7 @@ import dayjs from 'dayjs'
|
|
|
262
262
|
import duration from 'dayjs/plugin/duration'
|
|
263
263
|
dayjs.extend(duration)
|
|
264
264
|
|
|
265
|
-
import { siteTree2menus
|
|
265
|
+
import { siteTree2menus } from '../../LoginTemporary/utils'
|
|
266
266
|
|
|
267
267
|
const prefix = window.__INJECTED_PUBLIC_PATH_BY_QIANKUN__ || process.env.BASE_URL || '/'
|
|
268
268
|
|
|
@@ -338,7 +338,7 @@ export default {
|
|
|
338
338
|
byLabel: '',
|
|
339
339
|
byEV: false,
|
|
340
340
|
headerUserInfoBg: realUrl('/server-assets/userInfoBg.png'),
|
|
341
|
-
inBack:
|
|
341
|
+
inBack: window.localStorage.getItem('pageInType') === 'inBack'
|
|
342
342
|
}
|
|
343
343
|
},
|
|
344
344
|
computed: {
|
|
@@ -409,23 +409,21 @@ export default {
|
|
|
409
409
|
this.systemList = data
|
|
410
410
|
},
|
|
411
411
|
async getTreeList(item) {
|
|
412
|
-
let { data } = await axios.get(
|
|
412
|
+
let { data } = await axios.get(`/bems/1.0/menuTree/tree?t=${Date.now()}`, {
|
|
413
413
|
resType: 1,
|
|
414
414
|
systemNo: item.systemCode
|
|
415
415
|
})
|
|
416
|
-
|
|
417
|
-
let layoutMenus = siteTree2menus(data)
|
|
416
|
+
let layoutMenus = siteTree2menus(data || [])
|
|
418
417
|
sessionStorage.setItem('menuTree', JSON.stringify(layoutMenus))
|
|
419
418
|
},
|
|
420
419
|
async clickSystem(item) {
|
|
421
420
|
await this.getTreeList(item)
|
|
422
|
-
|
|
423
|
-
window.localStorage.setItem('pageInType', 'toBack')
|
|
424
|
-
} else {
|
|
425
|
-
window.localStorage.setItem('pageInType', 'toFront')
|
|
426
|
-
}
|
|
421
|
+
localStorage.setItem('pageInType', 'inFront')
|
|
427
422
|
window.localStorage.setItem('pageInSystemNo', item.systemCode)
|
|
428
|
-
|
|
423
|
+
let { base = '/' } = this.$router.options
|
|
424
|
+
if (!/\/$/.test(base)) base += '/'
|
|
425
|
+
|
|
426
|
+
window.location.href = window.location.origin + base + 'dashboard/workplace'
|
|
429
427
|
},
|
|
430
428
|
|
|
431
429
|
// 跳转打主数据人员页面
|