Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
P
pc
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wbx-PCAndMobi
pc
Commits
bdd0fa60
Commit
bdd0fa60
authored
Mar 02, 2021
by
Gakki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
allPerm
parent
13e79c34
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
11 deletions
+28
-11
getMicRouters.js
src/router/getMicRouters.js
+28
-9
home.vue
src/views/home.vue
+0
-2
No files found.
src/router/getMicRouters.js
View file @
bdd0fa60
...
@@ -3,6 +3,8 @@ import pudong from '@/router/pudongRoutes.json'
...
@@ -3,6 +3,8 @@ import pudong from '@/router/pudongRoutes.json'
import
xuhui
from
'@/router/xuhuiRoutes.json'
import
xuhui
from
'@/router/xuhuiRoutes.json'
import
huangpu
from
'@/router/huangpuRoutes.json'
import
huangpu
from
'@/router/huangpuRoutes.json'
import
yangpu
from
'@/router/yangpuRoutes.json'
import
yangpu
from
'@/router/yangpuRoutes.json'
import
ajax
from
'@/server/ajax'
import
api
from
'@/server/api'
import
documents
from
'@/router/documentsRoutes.json'
import
documents
from
'@/router/documentsRoutes.json'
import
Store
from
'@/store/index'
import
Store
from
'@/store/index'
...
@@ -50,9 +52,12 @@ async function GetRoutes(router) {
...
@@ -50,9 +52,12 @@ async function GetRoutes(router) {
break
break
}
}
// 徐汇区的子项目要看当前用户是否是超管,否则不展示 处置单和投诉
await
function
()
{
// console.log(Store.state.userInfos)
ajax
.
get
({
if
(
env
.
indexOf
(
'xuhui'
)
!=
-
1
)
{
url
:
api
.
GET_USER_INFO
,
}).
then
(
res
=>
{
// 本地存储用户基本信息
if
(
env
.
indexOf
(
'xuhui'
)
!=
-
1
&&
res
.
data
.
content
.
isAllPerm
)
{
let
newArr
=
[]
let
newArr
=
[]
MicRouters
.
Layout
.
forEach
((
item
)
=>
{
MicRouters
.
Layout
.
forEach
((
item
)
=>
{
if
(
item
.
name
!=
'tousu'
&&
item
.
name
!=
'Disposal'
)
{
if
(
item
.
name
!=
'tousu'
&&
item
.
name
!=
'Disposal'
)
{
...
@@ -61,6 +66,20 @@ async function GetRoutes(router) {
...
@@ -61,6 +66,20 @@ async function GetRoutes(router) {
})
})
MicRouters
.
Layout
=
newArr
MicRouters
.
Layout
=
newArr
}
}
})
}()
// 徐汇区的子项目要看当前用户是否是超管,否则不展示 处置单和投诉
// console.log(Store.state.userInfos)
// if (env.indexOf('xuhui') != -1 ) {
// let newArr= []
// MicRouters.Layout.forEach((item) => {
// if (item.name != 'tousu' && item.name != 'Disposal' ) {
// newArr.push(item)
// }
// })
// MicRouters.Layout = newArr
// }
const
micSystemRoutersConfigs
=
Object
.
assign
({},
MicRouters
)
const
micSystemRoutersConfigs
=
Object
.
assign
({},
MicRouters
)
const
{
routes
}
=
router
.
options
const
{
routes
}
=
router
.
options
...
...
src/views/home.vue
View file @
bdd0fa60
...
@@ -980,13 +980,11 @@ export default {
...
@@ -980,13 +980,11 @@ export default {
* 判断是否开启自定义字段
* 判断是否开启自定义字段
*/
*/
getConfig
(){
getConfig
(){
console
.
log
(
1
)
this
.
$ajax
.
get
({
this
.
$ajax
.
get
({
url
:
this
.
$api
.
GET_CONFIG
,
url
:
this
.
$api
.
GET_CONFIG
,
}).
then
(
res
=>
{
}).
then
(
res
=>
{
if
(
res
.
code
===
'200'
)
{
if
(
res
.
code
===
'200'
)
{
console
.
log
(
2
)
this
.
openConfig
=
this
.
$com
.
confirm
(
res
,
'data.content'
,
[]).
customKeyEnable
this
.
openConfig
=
this
.
$com
.
confirm
(
res
,
'data.content'
,
[]).
customKeyEnable
console
.
log
(
this
.
openConfig
)
console
.
log
(
this
.
openConfig
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment