n20-common-lib 1.2.31 → 1.2.34
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
CHANGED
|
@@ -13,13 +13,8 @@
|
|
|
13
13
|
<el-divider direction="vertical" />
|
|
14
14
|
<!-- eslint-disable-next-line vue/no-v-html -->
|
|
15
15
|
<h3 class="header-title" v-html="headerTitle"></h3>
|
|
16
|
-
<el-tooltip
|
|
17
|
-
class="set-user-btn"
|
|
18
|
-
effect="dark"
|
|
19
|
-
content="帮助文档"
|
|
20
|
-
placement="top-start"
|
|
21
|
-
>
|
|
22
|
-
<i class="el-icon-info" @click="openHelp"></i>
|
|
16
|
+
<el-tooltip content="帮助文档">
|
|
17
|
+
<span class="set-user-btn el-icon-info" @click="openHelp"></span>
|
|
23
18
|
</el-tooltip>
|
|
24
19
|
|
|
25
20
|
<el-dropdown
|
|
@@ -94,9 +89,12 @@
|
|
|
94
89
|
<el-dropdown-item command="changePassword" divided>{{
|
|
95
90
|
'修改密码' | $l(i18n)
|
|
96
91
|
}}</el-dropdown-item>
|
|
97
|
-
<el-dropdown-item
|
|
98
|
-
|
|
99
|
-
|
|
92
|
+
<el-dropdown-item
|
|
93
|
+
v-if="customOpt.mydeal !== false"
|
|
94
|
+
command="myDeal"
|
|
95
|
+
divided
|
|
96
|
+
>{{ '我的交易' | $l(i18n) }}</el-dropdown-item
|
|
97
|
+
>
|
|
100
98
|
<el-dropdown-item
|
|
101
99
|
v-if="customOpt.agency && customOpt.agency.show"
|
|
102
100
|
command="myAgency"
|
|
@@ -25,10 +25,6 @@ const routerBaseRe = new RegExp('^' + routerBase)
|
|
|
25
25
|
export default {
|
|
26
26
|
name: 'SubContent',
|
|
27
27
|
props: {
|
|
28
|
-
appNo: {
|
|
29
|
-
type: String,
|
|
30
|
-
default: process.env.VUE_APP_NAME
|
|
31
|
-
},
|
|
32
28
|
isTest: {
|
|
33
29
|
type: Boolean,
|
|
34
30
|
default: false
|
|
@@ -49,7 +45,7 @@ export default {
|
|
|
49
45
|
}
|
|
50
46
|
},
|
|
51
47
|
created() {
|
|
52
|
-
setRela(
|
|
48
|
+
setRela()
|
|
53
49
|
|
|
54
50
|
window.addEventListener('message', this.watchMessage)
|
|
55
51
|
|
|
@@ -59,10 +59,6 @@ export default {
|
|
|
59
59
|
tabsNav
|
|
60
60
|
},
|
|
61
61
|
props: {
|
|
62
|
-
appNo: {
|
|
63
|
-
type: String,
|
|
64
|
-
default: process.env.VUE_APP_NAME
|
|
65
|
-
},
|
|
66
62
|
menus: {
|
|
67
63
|
type: Array,
|
|
68
64
|
default: () => []
|
|
@@ -131,7 +127,7 @@ export default {
|
|
|
131
127
|
window._tab_cache_route = undefined
|
|
132
128
|
window._pending_update_cache = {}
|
|
133
129
|
|
|
134
|
-
setRela(
|
|
130
|
+
setRela()
|
|
135
131
|
|
|
136
132
|
this.getCollapse()
|
|
137
133
|
this.getTabList()
|
|
@@ -214,13 +210,6 @@ export default {
|
|
|
214
210
|
},
|
|
215
211
|
getTabList() {
|
|
216
212
|
let tabList = JSON.parse(window.sessionStorage.getItem('tab-list')) || []
|
|
217
|
-
if (!tabList.some((tab) => tab.route === this.keepTab)) {
|
|
218
|
-
let menu = this.menuList.find((m) => m.route === this.keepTab)
|
|
219
|
-
if (menu) {
|
|
220
|
-
let keepMenu = Object.assign({}, menu, { keep: true })
|
|
221
|
-
tabList.unshift(keepMenu)
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
213
|
this.tabList = tabList
|
|
225
214
|
},
|
|
226
215
|
setTabList() {
|
|
@@ -232,9 +221,9 @@ export default {
|
|
|
232
221
|
)
|
|
233
222
|
if (tab) {
|
|
234
223
|
this.activeNav = tab.uuid
|
|
235
|
-
} else {
|
|
224
|
+
} else if (this.keepTab) {
|
|
236
225
|
this.$router.replace({
|
|
237
|
-
path: this.keepTab
|
|
226
|
+
path: this.keepTab
|
|
238
227
|
})
|
|
239
228
|
}
|
|
240
229
|
},
|
|
@@ -281,9 +281,18 @@ export default {
|
|
|
281
281
|
this.outTime(60)
|
|
282
282
|
|
|
283
283
|
axios
|
|
284
|
-
.get(
|
|
285
|
-
|
|
286
|
-
|
|
284
|
+
// .get(
|
|
285
|
+
// `/bems/prod_1.0/uas/api/authorization/captcha/${this.form[type]}/1`,
|
|
286
|
+
// null,
|
|
287
|
+
// { loading: false, noMsg: true }
|
|
288
|
+
// )
|
|
289
|
+
.post(
|
|
290
|
+
'/bems/prod_1.0/uas/api/authorization/captcha',
|
|
291
|
+
{
|
|
292
|
+
handleType: 1,
|
|
293
|
+
mobile: type === 'phone' ? this.form[type] : '',
|
|
294
|
+
username: type !== 'phone' ? this.form[type] : ''
|
|
295
|
+
},
|
|
287
296
|
{ loading: false, noMsg: true }
|
|
288
297
|
)
|
|
289
298
|
.then(() => {
|
package/src/utils/relaNo.js
CHANGED
|
@@ -11,7 +11,7 @@ export function getRela() {
|
|
|
11
11
|
return relaObj
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
export function setRela(
|
|
14
|
+
export function setRela() {
|
|
15
15
|
let relaNosStr = sessionStorage.getItem('relaNos')
|
|
16
16
|
if (relaNosStr) {
|
|
17
17
|
let relaNos = JSON.parse(relaNosStr)
|
|
@@ -21,11 +21,7 @@ export function setRela(name) {
|
|
|
21
21
|
)
|
|
22
22
|
console.log(relaObj, 'has权限列表')
|
|
23
23
|
|
|
24
|
-
|
|
25
|
-
relaNos.forEach((item) => {
|
|
26
|
-
relaNosGlobal.push.apply(relaNosGlobal, item.relaNos)
|
|
27
|
-
})
|
|
28
|
-
relaObj.relaNosGlobal = relaNosGlobal
|
|
24
|
+
relaObj.relaNosGlobal = relaNos.map((item) => item.relaNos).flat()
|
|
29
25
|
return
|
|
30
26
|
}
|
|
31
27
|
/* 兼容旧门户 */
|