Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-web
/
authority
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit ef620ed7
authored
Sep 18, 2018
by
cwq0219
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改
1 parent
bb0b2ddd
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
23 additions
and
12 deletions
package-lock.json
package.json
src/components/RoleCreate/src/main.vue
src/components/Tree/src/main.vue
src/config/common.conf.js
src/views/customer/role/index.vue
src/views/customer/user/index.vue
package-lock.json
View file @
ef620ed
...
...
@@ -5488,9 +5488,9 @@
}
},
"glsx-vue-common"
:
{
"version"
:
"1.1.
9
"
,
"resolved"
:
"http://registry.npm.taobao.org/glsx-vue-common/download/glsx-vue-common-1.1.
9
.tgz"
,
"integrity"
:
"sha1-
m8GtLp4JllxlM5EghaeasPBL4Pc
="
,
"version"
:
"1.1.
11
"
,
"resolved"
:
"http://registry.npm.taobao.org/glsx-vue-common/download/glsx-vue-common-1.1.
11
.tgz"
,
"integrity"
:
"sha1-
glE8F1jBbgNSL4Tkfi9K7Y4GofM
="
,
"requires"
:
{
"vue"
:
"2.5.17"
}
...
...
package.json
View file @
ef620ed
...
...
@@ -8,7 +8,7 @@
"lint"
:
"vue-cli-service lint"
},
"dependencies"
:
{
"glsx-vue-common"
:
"^1.1.
9
"
,
"glsx-vue-common"
:
"^1.1.
11
"
,
"glsx-vue-components"
:
"^1.0.12"
,
"lodash"
:
"^4.17.10"
,
"node-sass"
:
"^4.9.3"
,
...
...
src/components/RoleCreate/src/main.vue
View file @
ef620ed
...
...
@@ -23,6 +23,7 @@
:show-checkbox=
"show_checkbox"
:defaultExpandAll=
"defaultExpandAll"
@
input=
"getMenuOption"
style=
"height:160px"
></tree>
</gl-form-item>
</gl-form>
...
...
@@ -106,8 +107,8 @@ export default {
// console.log(flagEOrC)
this
.
$refs
[
formName
].
validate
((
valid
)
=>
{
if
(
valid
)
{
flagEOrC
&&
this
.
addRole
()
!
flagEOrC
&&
this
.
updateRoleInfo
()
!
flagEOrC
&&
this
.
addRole
()
flagEOrC
&&
this
.
updateRoleInfo
()
this
.
$emit
(
'createClose'
,
flagEOrC
,
editData
)
}
else
{
return
false
...
...
src/components/Tree/src/main.vue
View file @
ef620ed
...
...
@@ -15,13 +15,15 @@
</
template
>
<
script
>
import
{
findMenuTree
}
from
'@/api/api'
export
default
{
name
:
'Tree'
,
data
()
{
return
{
data
:
this
.
$get_session_config
().
resources
||
this
.
$get_session_config
(),
// data: this.$get_session_config().resources || this.$get_session_config(),
data
:
Object
,
props
:
{
label
:
't
itle
'
label
:
't
ext
'
}
}
},
...
...
@@ -31,6 +33,15 @@ export default {
defaultExpandAll
:
Boolean
,
treeStyle
:
null
},
mounted
()
{
findMenuTree
.
req
().
then
(
res
=>
{
console
.
log
(
res
)
// this.data = res
this
.
data
=
this
.
$get_menus
(
res
,
0
,
'parent'
)
}).
catch
(
err
=>
{
console
.
log
(
err
)
})
},
methods
:
{
nodeClick
(
data
,
treeData
,
vue
)
{
this
.
$emit
(
'node-click'
,
data
,
treeData
,
vue
,
this
.
props
)
...
...
src/config/common.conf.js
View file @
ef620ed
export
default
{
axios
:
{
baseURL
:
'http://cas.dev.glsx.net/admin-operating-auth/'
,
//
baseURL: 'http://192.168.3.171:7300/mock/5b91805391b67469b43e2921/subsystem/',
//
baseURL: 'http://cas.dev.glsx.net/admin-operating-auth/',
baseURL
:
'http://192.168.3.171:7300/mock/5b91805391b67469b43e2921/subsystem/'
,
whiteList
:
[
'role/deleteRoleById'
,
'role/deleteUserRoleById'
,
'role/getRoleDetail'
,
'role/getRoleDetail'
,
'role/getRoleList'
,
'role/isRoleNameExit'
,
'role/saveRoleList'
,
'role/selectMenuTreeRoleId'
,
'role/selectUserRoleByRoleId'
,
'role/updateRole'
,
'user/batcheDel'
,
'user/findAll'
,
'user/get'
,
'user/getWithRoles'
,
'user/operatUser'
,
'user/updateUser'
,
'department/del'
,
'department/findTree'
,
'department/getPName'
,
'department/getTreeNode'
,
'department/updateDepartment'
,
'menu/add'
,
'menu/del'
,
'menu/edit'
,
'menu/findById'
,
'menu/findTree'
,
'menu/getByUserId'
,
'menu/getPName'
],
timeout
:
15000
,
result
:
{
...
...
src/views/customer/role/index.vue
View file @
ef620ed
...
...
@@ -156,7 +156,7 @@ export default {
getList
()
{
const
params
=
this
.
getParams
()
getRoleList
.
req
(
params
).
then
(
res
=>
{
console
.
log
(
res
)
//
console.log(res)
this
.
total
=
res
.
total
this
.
roleData
.
data
=
res
.
list
// console.log(this.roleData.data)
...
...
src/views/customer/user/index.vue
View file @
ef620ed
...
...
@@ -16,7 +16,6 @@
<gl-table
:table=
"userData"
ref=
"multipleTable"
></gl-table>
<gl-pagination
background
@
size-change=
"handleSizeChange"
@
current-change=
"handleCurrentChange"
:current-page=
"pageNum"
:page-sizes=
"[10,20,30,40]"
:page-size=
"pageSize"
layout=
"total, sizes, prev, pager, next, jumper"
:total=
"total"
>
</gl-pagination>
<!--
<user-detail
:userDetailVisible=
"userDetailVisible"
:userDetailTitle=
"userDetailTitle"
@
userDetailClose=
"handleUserDetailClose"
:resParam=
"[]"
:columnParam=
"columnParam"
:consoleParam=
"consoleParam"
></user-detail>
-->
<user-detail
:userDetailVisible=
"userDetailVisible"
:userDetailTitle=
"userDetailTitle"
@
userDetailClose=
"handleUserDetailClose"
:apiParam=
"apiParam"
:columnParam=
"columnParam"
:consoleParam=
"consoleParam"
:flagRoleOrUser=
"flagRoleOrUser"
></user-detail>
</div>
</div>
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment