n20-common-lib 2.3.10 → 2.3.13
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/.DS_Store +0 -0
- package/src/assets/css/cl-layout-header.scss +1 -1
- package/src/components/ApprovalButtons/index.vue +2 -0
- package/src/components/Layout/HeaderWrap/indexN.vue +49 -3
- package/src/components/Layout/indexN.vue +6 -1
- package/src/plugins/Sign/.DS_Store +0 -0
- package/src/utils/.DS_Store +0 -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
|
Binary file
|
|
@@ -150,6 +150,7 @@ import axios from '../../utils/axios'
|
|
|
150
150
|
import { linkGo } from '../../utils/urlToGo'
|
|
151
151
|
import { closeTagsForBackPage } from '../../plugins/CompatibleOld'
|
|
152
152
|
import ClDialog from '../Dialog'
|
|
153
|
+
import ClUpload from '../Upload'
|
|
153
154
|
import CarboncopyProp from './setCarboncopyProp.vue'
|
|
154
155
|
import RejectToProp from './setRejectToProp.vue'
|
|
155
156
|
import ShowAppOpi from './showAppOpi.vue'
|
|
@@ -164,6 +165,7 @@ export default {
|
|
|
164
165
|
name: 'ApprovalButtons',
|
|
165
166
|
components: {
|
|
166
167
|
ClDialog,
|
|
168
|
+
ClUpload,
|
|
167
169
|
CarboncopyProp,
|
|
168
170
|
RejectToProp,
|
|
169
171
|
ShowAppOpi,
|
|
@@ -179,6 +179,20 @@
|
|
|
179
179
|
</el-dropdown-menu>
|
|
180
180
|
</el-dropdown>
|
|
181
181
|
</el-dropdown-item>
|
|
182
|
+
<!-- 系统切换 -->
|
|
183
|
+
<el-dropdown-item v-if="systemChange">
|
|
184
|
+
<el-dropdown trigger="hover" size="medium" placement="left-start" style="width: 100%">
|
|
185
|
+
<div class="flex-box flex-v">
|
|
186
|
+
<span>{{ '系统切换' | $lc }}</span>
|
|
187
|
+
<i class="el-icon-caret-right m-l-auto m-r-0"></i>
|
|
188
|
+
</div>
|
|
189
|
+
<el-dropdown-menu slot="dropdown">
|
|
190
|
+
<el-dropdown-item v-for="item in systemList" :key="item.id" @click.native="clickSystem(item)">
|
|
191
|
+
<span>{{ item.systemName | $lc }}</span>
|
|
192
|
+
</el-dropdown-item>
|
|
193
|
+
</el-dropdown-menu>
|
|
194
|
+
</el-dropdown>
|
|
195
|
+
</el-dropdown-item>
|
|
182
196
|
<el-dropdown-item v-if="!inBack" command="toBack">
|
|
183
197
|
<div class="flex-box flex-v">
|
|
184
198
|
<span>{{ '后台管理' | $lc }}</span>
|
|
@@ -232,7 +246,7 @@
|
|
|
232
246
|
import { $lc } from '../../../utils/i18n/index'
|
|
233
247
|
import Cookies from 'js-cookie'
|
|
234
248
|
import { themeList } from '../../../utils/theme.config.js'
|
|
235
|
-
|
|
249
|
+
import { setItem } from '../../../utils/storageEdit'
|
|
236
250
|
import operatingStatus from '../../operatingStatus/index.vue'
|
|
237
251
|
import dialogWrap from '../../Dialog/index.vue'
|
|
238
252
|
import changePwd from './changePwd.vue'
|
|
@@ -248,7 +262,7 @@ import dayjs from 'dayjs'
|
|
|
248
262
|
import duration from 'dayjs/plugin/duration'
|
|
249
263
|
dayjs.extend(duration)
|
|
250
264
|
|
|
251
|
-
import { siteTree2menus } from '../../LoginTemporary/utils'
|
|
265
|
+
import { siteTree2menus, siteTree2RelaNos } from '../../LoginTemporary/utils'
|
|
252
266
|
|
|
253
267
|
const prefix = window.__INJECTED_PUBLIC_PATH_BY_QIANKUN__ || process.env.BASE_URL || '/'
|
|
254
268
|
|
|
@@ -265,6 +279,10 @@ export default {
|
|
|
265
279
|
type: Function,
|
|
266
280
|
default: undefined
|
|
267
281
|
},
|
|
282
|
+
systemChange: {
|
|
283
|
+
type: Boolean,
|
|
284
|
+
default: false
|
|
285
|
+
},
|
|
268
286
|
afterLogout: {
|
|
269
287
|
type: Function,
|
|
270
288
|
default: undefined
|
|
@@ -286,6 +304,7 @@ export default {
|
|
|
286
304
|
},
|
|
287
305
|
data() {
|
|
288
306
|
return {
|
|
307
|
+
systemList: [],
|
|
289
308
|
show: false,
|
|
290
309
|
headerLogoUrl: undefined,
|
|
291
310
|
headerLogoWidth: undefined,
|
|
@@ -362,7 +381,7 @@ export default {
|
|
|
362
381
|
}
|
|
363
382
|
})
|
|
364
383
|
})
|
|
365
|
-
|
|
384
|
+
this.systemChange && this.getSystemList()
|
|
366
385
|
this.getNNum()
|
|
367
386
|
document.addEventListener('visibilitychange', this.getNNum)
|
|
368
387
|
window.addEventListener('message', this.updateNotice)
|
|
@@ -382,6 +401,33 @@ export default {
|
|
|
382
401
|
window.removeEventListener('message', this.updateNotice)
|
|
383
402
|
},
|
|
384
403
|
methods: {
|
|
404
|
+
/**
|
|
405
|
+
* 获取系统列表
|
|
406
|
+
*/
|
|
407
|
+
async getSystemList() {
|
|
408
|
+
const { data } = await axios.post(`/bems/portal/portalWidgetSystem/getAll`)
|
|
409
|
+
this.systemList = data
|
|
410
|
+
},
|
|
411
|
+
async getTreeList(item) {
|
|
412
|
+
let { data } = await axios.get('/bems/1.0/menuTree/tree', {
|
|
413
|
+
resType: 1,
|
|
414
|
+
systemNo: item.systemCode
|
|
415
|
+
})
|
|
416
|
+
data || (data = [])
|
|
417
|
+
let layoutMenus = siteTree2menus(data)
|
|
418
|
+
sessionStorage.setItem('menuTree', JSON.stringify(layoutMenus))
|
|
419
|
+
},
|
|
420
|
+
async clickSystem(item) {
|
|
421
|
+
await this.getTreeList(item)
|
|
422
|
+
if (item.systemCode === 'CSYWGL') {
|
|
423
|
+
window.localStorage.setItem('pageInType', 'toBack')
|
|
424
|
+
} else {
|
|
425
|
+
window.localStorage.setItem('pageInType', 'toFront')
|
|
426
|
+
}
|
|
427
|
+
window.localStorage.setItem('pageInSystemNo', item.systemCode)
|
|
428
|
+
window.location.reload()
|
|
429
|
+
},
|
|
430
|
+
|
|
385
431
|
// 跳转打主数据人员页面
|
|
386
432
|
goMdmUser() {
|
|
387
433
|
this.customOpt.userMd && linkPush('/mdm/personnel')
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
<headerWrap
|
|
4
4
|
class="header-wrap"
|
|
5
5
|
:ectad="ectad"
|
|
6
|
+
:system-change="systemChange"
|
|
6
7
|
:operation-status="operationStatus"
|
|
7
8
|
:before-logout="beforeLogout"
|
|
8
9
|
:after-logout="afterLogout"
|
|
@@ -80,6 +81,10 @@ export default {
|
|
|
80
81
|
type: Boolean,
|
|
81
82
|
default: false
|
|
82
83
|
},
|
|
84
|
+
systemChange: {
|
|
85
|
+
type: Boolean,
|
|
86
|
+
default: false
|
|
87
|
+
},
|
|
83
88
|
afterLogout: {
|
|
84
89
|
type: Function,
|
|
85
90
|
default: undefined
|
|
@@ -228,7 +233,7 @@ export default {
|
|
|
228
233
|
window.sessionStorage.removeItem('tab-list')
|
|
229
234
|
window.localStorage.setItem('pageInType', 'inBack')
|
|
230
235
|
} else {
|
|
231
|
-
window.sessionStorage.
|
|
236
|
+
window.sessionStorage.removeItem('tab-list')
|
|
232
237
|
}
|
|
233
238
|
},
|
|
234
239
|
getActiveNav() {
|
|
Binary file
|
|
Binary file
|