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
a04abffc
Commit
a04abffc
authored
Jan 20, 2020
by
王昆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gsb
parent
ee2abfb2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
54 deletions
+30
-54
xgg-deliver/app/base/controller/impl/uc/userCtl.js
+30
-54
No files found.
xgg-deliver/app/base/controller/impl/uc/userCtl.js
View file @
a04abffc
...
...
@@ -33,7 +33,7 @@ class UserCtl extends CtlBase {
ucname
:
loginName
,
password
:
password
,
});
if
(
loginUser
.
status
!=
0
)
{
if
(
loginUser
.
status
!=
0
)
{
return
loginUser
;
}
...
...
@@ -61,8 +61,8 @@ class UserCtl extends CtlBase {
async
getMenu
(
qobj
,
pobj
,
req
)
{
// return system.getResultSuccess(req.loginUser.menus);
let
loginUser
=
req
.
loginUser
;
if
(
!
loginUser
)
{
return
system
.
getResultSuccess
({
gtArr
:
[],
pjArr
:
[]})
if
(
!
loginUser
)
{
return
system
.
getResultSuccess
({
gtArr
:
[],
pjArr
:
[]})
}
let
gtArr
=
this
.
getOrderMenu
(
loginUser
);
...
...
@@ -151,59 +151,32 @@ class UserCtl extends CtlBase {
}
];
}
}
getInvoiceMenu
(
loginUser
)
{
if
(
!
loginUser
)
{
return
[];
}
if
(
loginUser
.
isMain
)
{
return
[
{
name
:
"数据概览"
,
icon
:
"iconfont icon-gth-gsshujugailan"
,
team
:
[{
name
:
"业务数据汇总"
,
path
:
"/information"
}]
},
{
name
:
"发票管理"
,
icon
:
"iconfont icon-gth-gsfapiaozhongxin"
,
team
:
[
{
name
:
"发票申请"
,
path
:
"/trading/invoiceTransact"
},
{
name
:
"发票管理"
,
path
:
"/trading/invoiceManagement"
},
{
name
:
"红冲申请"
,
path
:
"/trading/invoiceApplyFor"
}
]
},
{
name
:
"用户中心"
,
icon
:
"iconfont icon-gth-gsgetihuzhongxin"
,
team
:
[{
name
:
"用户管理"
,
path
:
"/user/userCentertwo"
}]
}
];
}
else
{
return
[
{
name
:
"数据概览"
,
icon
:
"iconfont icon-gth-gsshujugailan"
,
team
:
[{
name
:
"业务数据汇总"
,
path
:
"/information"
}]
},
{
name
:
"发票管理"
,
icon
:
"iconfont icon-gth-gsfapiaozhongxin"
,
team
:
[
{
name
:
"发票申请"
,
path
:
"/trading/invoiceTransact"
},
{
name
:
"发票管理"
,
path
:
"/trading/invoiceManagement"
},
{
name
:
"红冲申请"
,
path
:
"/trading/invoiceApplyFor"
}
]
}
];
}
return
[
{
name
:
"数据概览"
,
icon
:
"iconfont icon-gth-gsshujugailan"
,
team
:
[{
name
:
"业务数据汇总"
,
path
:
"/information"
}]
},
{
name
:
"发票管理"
,
icon
:
"iconfont icon-gth-gsfapiaozhongxin"
,
team
:
[
{
name
:
"发票办理"
,
path
:
"/trading/invoiceTransact"
},
{
name
:
"发票管理"
,
path
:
"/trading/invoiceManagement"
},
]
}
];
}
/**
* 添加
* @param {*} params
* 添加
* @param {*} params
*/
async
addUser
(
params
,
pobj2
,
req
)
{
try
{
...
...
@@ -243,7 +216,7 @@ class UserCtl extends CtlBase {
/**
* 更新
* @param {*} params
* @param {*} params
*/
async
updUser
(
params
,
pobj2
,
req
)
{
var
user
=
{
...
...
@@ -287,9 +260,9 @@ class UserCtl extends CtlBase {
/**
* 启用禁用
* @param {*} params
* @param {*} pobj2
* @param {*} req
* @param {*} params
* @param {*} pobj2
* @param {*} req
*/
async
enabled
(
params
,
pobj2
,
req
)
{
try
{
...
...
@@ -311,7 +284,7 @@ class UserCtl extends CtlBase {
/**
* 查询明细
* @param {*} params
* @param {*} params
*/
async
queryById
(
params
,
pobj2
,
req
)
{
try
{
...
...
@@ -320,9 +293,10 @@ class UserCtl extends CtlBase {
return
system
.
getResult
(
null
,
`系统错误 错误信息
${
error
}
`
);
}
}
async
updPassword
(
params
,
pobj2
,
req
)
{
params
.
password
=
this
.
trim
(
params
.
password
);
if
(
!
params
.
password
)
{
if
(
!
params
.
password
)
{
return
system
.
getResult
(
null
,
`请填写密码`
);
}
...
...
@@ -335,7 +309,7 @@ class UserCtl extends CtlBase {
/**
* 根据pid查出子目录
* @param {*} params
* @param {*} params
*/
async
page
(
params
,
pobj2
,
req
)
{
try
{
...
...
@@ -359,4 +333,5 @@ class UserCtl extends CtlBase {
}
}
}
module
.
exports
=
UserCtl
;
\ No newline at end of file
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