Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋勇
zhichan
Commits
5884a16f
Commit
5884a16f
authored
May 16, 2020
by
蒋勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d
parent
b47f5f64
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
14 deletions
+8
-14
center-manage/app/base/service/impl/common/appSve.js
+8
-14
No files found.
center-manage/app/base/service/impl/common/appSve.js
View file @
5884a16f
...
...
@@ -84,21 +84,15 @@ class AppService extends ServiceBase {
return
app
;
});
}
async
translate
WithBizCode
(
funcobjs
,
parentfunc
)
{
async
translate
InitSels
(
funcobjs
)
{
funcobjs
.
forEach
((
item
)
=>
{
if
(
item
.
children
)
{
if
(
parentfunc
){
item
.
codepath
=
parentfunc
.
codepath
+
"/"
+
item
.
name
}
else
{
item
.
codepath
=
item
.
name
}
this
.
translateWithBizCode
(
item
.
children
,
item
)
console
.
log
(
item
.
title
)
if
(
item
.
children
&&
item
.
children
.
length
>
0
)
{
this
.
translateInitSels
(
item
.
children
)
}
else
{
if
(
parentfunc
){
item
.
codepath
=
parentfunc
.
codepath
+
"/"
+
item
.
name
}
else
{
item
.
codepath
=
item
.
name
}
if
(
item
.
auths
&&
item
.
auths
.
length
>
0
){
item
.
sels
=
[]
}
}
})
}
...
...
@@ -108,7 +102,7 @@ class AppService extends ServiceBase {
//如果存在functionJSON,那么就需要转换,构建编码路径
if
(
pobj
.
funcJson
)
{
// let funcobjs = JSON.parse(pobj.functionJSON)
// await self.translateWithBizCode(funcobjs,null
)
await
self
.
translateInitSels
(
pobj
.
funcJson
)
pobj
.
functionJSON
=
JSON
.
stringify
(
pobj
.
funcJson
)
}
let
appcache
=
await
self
.
cacheManager
[
"AppCache"
].
cache
(
pobj
.
appkey
);
...
...
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