n20-common-lib 1.2.32 → 1.2.35
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
|
@@ -258,17 +258,16 @@ export default {
|
|
|
258
258
|
null,
|
|
259
259
|
{ noMsg: true }
|
|
260
260
|
)
|
|
261
|
-
.then(({ msg }) => {
|
|
262
|
-
this
|
|
261
|
+
.then(({ msg = '' }) => {
|
|
262
|
+
this.$message({
|
|
263
|
+
message: '消息一键已读成功 ' + msg,
|
|
264
|
+
type: 'success'
|
|
265
|
+
})
|
|
266
|
+
this.getNNum()
|
|
267
|
+
this.getMsgList()
|
|
263
268
|
})
|
|
264
269
|
})
|
|
265
270
|
},
|
|
266
|
-
readAllMsg(msg = '') {
|
|
267
|
-
this.$message({
|
|
268
|
-
message: '消息一键已读成功 ' + msg,
|
|
269
|
-
type: 'success'
|
|
270
|
-
})
|
|
271
|
-
},
|
|
272
271
|
queryMore() {
|
|
273
272
|
this.$router.push({ path: '/notice/list' })
|
|
274
273
|
},
|
|
@@ -280,6 +279,7 @@ export default {
|
|
|
280
279
|
message: '系统公告一键已读成功',
|
|
281
280
|
type: 'success'
|
|
282
281
|
})
|
|
282
|
+
this.getNNum()
|
|
283
283
|
this.getAfficheList()
|
|
284
284
|
})
|
|
285
285
|
},
|
|
@@ -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()
|
|
@@ -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
|
/* 兼容旧门户 */
|