Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
T
traffic-front
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangxiaoming
traffic-front
Commits
94c04a94
Commit
94c04a94
authored
Dec 29, 2018
by
gary
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1、sql debug
2、admin入口校验是否有webadmin权限
parent
54c83dc7
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
10 deletions
+16
-10
MenuServiceImpl.java
...n/java/pwc/taxtech/atms/service/impl/MenuServiceImpl.java
+0
-3
CellTemplateExtendsMapper.xml
...wc/taxtech/atms/dao/extends/CellTemplateExtendsMapper.xml
+4
-4
constant.js
atms-web/src/main/webapp/app/common/utils/constant.js
+3
-0
app-nav.ctrl.js
...web/src/main/webapp/app/framework/app-nav/app-nav.ctrl.js
+8
-2
app-nav.html
atms-web/src/main/webapp/app/framework/app-nav/app-nav.html
+1
-1
No files found.
atms-api/src/main/java/pwc/taxtech/atms/service/impl/MenuServiceImpl.java
View file @
94c04a94
...
...
@@ -121,9 +121,6 @@ public class MenuServiceImpl {
permissionExample
.
createCriteria
().
andIdIn
(
permissionIds
);
List
<
String
>
menuIds
=
permissionMapper
.
selectByExample
(
permissionExample
)
.
stream
().
map
(
Permission:
:
getMenuId
).
collect
(
Collectors
.
toList
());
// 数据问题,,暂时用这种蠢办法
menuIds
.
add
(
"91223c21-c15a-4882-89cc-42f3807ec9e3"
);
menuIds
.
add
(
"9bf855fb-6b44-49cd-b95b-41a6a9a8c098"
);
// List<MenuDto> menus = getMenus(moduleId).stream().filter(x -> permissionNames.contains(x.getName())).collect(Collectors.toList());
return
menuIds
;
...
...
atms-dao/src/main/resources/pwc/taxtech/atms/dao/extends/CellTemplateExtendsMapper.xml
View file @
94c04a94
...
...
@@ -4,8 +4,8 @@
<insert
id=
"batchInsert2"
>
INSERT INTO cell_template (id,report_template_id,row_index,row_name,column_index,column_name,comment,create_time,update_time,copy_from_id,data_type,is_read_only,create_by,update_by)
VALUES
<foreach
collection=
"list"
item=
"item"
index=
"index"
separator=
","
>
(#{item.id,jdbcType=
INTEGER
},
#{item.reportTemplateId,jdbcType=
INTEGER
},
(#{item.id,jdbcType=
BIGINT
},
#{item.reportTemplateId,jdbcType=
BIGINT
},
#{item.rowIndex,jdbcType=INTEGER},
#{item.rowName,jdbcType=VARCHAR},
#{item.columnIndex,jdbcType=INTEGER},
...
...
@@ -13,9 +13,9 @@
#{item.comment,jdbcType=VARCHAR},
#{item.createTime,jdbcType=TIMESTAMP},
#{item.updateTime,jdbcType=TIMESTAMP},
#{item.copyFromId,jdbcType=
INTEGER
},
#{item.copyFromId,jdbcType=
BIGINT
},
#{item.dataType,jdbcType=INTEGER},
#{item.isReadOnly,jdbcType=
SMALLIN
T},
#{item.isReadOnly,jdbcType=
BI
T},
#{item.createBy,jdbcType=VARCHAR},
#{item.updateBy,jdbcType=VARCHAR})
</foreach>
;
...
...
atms-web/src/main/webapp/app/common/utils/constant.js
View file @
94c04a94
...
...
@@ -546,6 +546,9 @@ constant.vatPermission = {
// 权限代码
constant
.
adminPermission
=
{
WebAdmin
:
'01'
,
basicData
:
{
// 企业账套
...
...
atms-web/src/main/webapp/app/framework/app-nav/app-nav.ctrl.js
View file @
94c04a94
...
...
@@ -16,8 +16,8 @@ frameworkModule.controller('AppNavController', ['$rootScope', '$scope', '$log',
$scope
.
msgNum
=
0
;
$scope
.
showSubMenu
=
true
;
$scope
.
linkAdmin
=
false
;
$scope
.
showAdminSetting
=
false
;
$scope
.
specialUser
=
$scope
.
loginUserName
.
toLowerCase
();
$scope
.
hasQuerySummaryDashboardCode
=
false
;
var
interval
=
$interval
(
function
()
{
...
...
@@ -112,8 +112,14 @@ frameworkModule.controller('AppNavController', ['$rootScope', '$scope', '$log',
$
(
'.nav-sub-container'
).
hide
();
});
// 是否显示admin齿轮,校验是否有WebAdmin权限,不是校验is_admin字段
// todo 增值税申报和报表审批菜单没有做权限管理,可以在这里一起加上
var
list
=
[];
list
.
push
(
constant
.
adminPermission
.
WebAdmin
);
$scope
.
$root
.
checkUserPermissionList
(
list
).
success
(
function
(
data
)
{
$scope
.
adminSettingShow
=
data
[
constant
.
adminPermission
.
WebAdmin
];
});
};
//设置 菜单选中状态
...
...
atms-web/src/main/webapp/app/framework/app-nav/app-nav.html
View file @
94c04a94
...
...
@@ -61,7 +61,7 @@
<!--</a>-->
<!--</div>-->
<!--齿轮 进入管理入口-->
<div
class=
"nav-element-right"
>
<div
class=
"nav-element-right"
ng-show=
"adminSettingShow"
>
<a
title=
"{{'settings'|translate}}"
href=
"/admin"
target=
"_blank"
>
<i
class=
"fa fa-cog nav-icon-color"
></i>
</a>
...
...
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