Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
micro-system
/
system
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit ffd10ebf
authored
Oct 29, 2020
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复
1 parent
72d984cc
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
26 additions
and
82 deletions
src/App.vue
src/config/config.js
src/styles/common.scss
src/views/role/index.vue
src/views/user/index.vue
src/App.vue
View file @
ffd10eb
...
...
@@ -3,7 +3,7 @@
id=
"glsx-system-sub"
class=
"glsx-system-sub"
>
<div
id=
"nav"
>
<
!--
<
div
id=
"nav"
>
<router-link
to=
"/"
>
Home
</router-link>
|
<router-link
to=
"/about"
>
About
</router-link>
|
<router-link
to=
"/user"
>
user
</router-link>
|
...
...
@@ -13,13 +13,13 @@
<router-link
to=
"/dictionaryManage"
>
dictionaryManage
</router-link>
|
<router-link
to=
"/dictionaryData"
>
dictionaryData
</router-link>
|
<router-link
to=
"/workLog"
>
workLog
</router-link>
<
!--
<p>
a链接跳转到主项目/其他子项目的页面,页面会刷新,效果不好
<a
href=
"/about"
>
parent About
</a></p>
--
>
<
p>
a链接跳转到主项目/其他子项目的页面,页面会刷新,效果不好
<a
href=
"/about"
>
parent About
</a></p
>
<p
v-if=
"isQiankun"
>
主项目把router传给子项目,子项目用这个router来跳转
<span
@
click=
"goToPage('/about')"
>
parent About
</span>
<span
@
click=
"goToPage('/app-vue-history/about')"
>
app-vue-history About
</span>
</p>
</div>
</div>
-->
<router-view
/>
</div>
</
template
>
...
...
src/config/config.js
View file @
ffd10eb
...
...
@@ -41,14 +41,14 @@ const MENU_API = {
MENU_PERMTREE
:
'/usercenter/menu/permtree'
}
const
ORGINIZA_API
=
{
ORGINIZA_SEARCH
:
BASE_URL
+
'/usercenter/organization/search'
,
ORGINIZA_CHILDREN
:
BASE_URL
+
'/usercenter/organization/children'
,
ORGINIZA_SIMPLElIST
:
BASE_URL
+
'/usercenter/organization/simplelist'
,
ORGINIZA_TREEORY
:
BASE_URL
+
'/usercenter/organization/orgtree'
,
ORGINIZA_ADD
:
BASE_URL
+
'/usercenter/organization/add'
,
ORGINIZA_EDIT
:
BASE_URL
+
'/usercenter/organization/edit'
,
ORGINIZA_DELETE
:
BASE_URL
+
'/usercenter/organization/delete'
,
ORGINIZA_INFO
:
BASE_URL
+
'/usercenter/organization/info'
ORGINIZA_SEARCH
:
'/usercenter/organization/search'
,
ORGINIZA_CHILDREN
:
'/usercenter/organization/children'
,
ORGINIZA_SIMPLElIST
:
'/usercenter/organization/simplelist'
,
ORGINIZA_TREEORY
:
'/usercenter/organization/orgtree'
,
ORGINIZA_ADD
:
'/usercenter/organization/add'
,
ORGINIZA_EDIT
:
'/usercenter/organization/edit'
,
ORGINIZA_DELETE
:
'/usercenter/organization/delete'
,
ORGINIZA_INFO
:
'/usercenter/organization/info'
}
const
DICT_API
=
{
DICT_SEARCH
:
'/publiccenter/dict/type/search'
,
...
...
src/styles/common.scss
View file @
ffd10eb
...
...
@@ -34,7 +34,10 @@
height
:
30px
;
}
}
.container
{
padding
:
20px
10px
0px
20px
;
width
:
100%
;
}
.user-container
{
padding
:
20px
10px
0px
20px
;
float
:
left
;
...
...
src/views/role/index.vue
View file @
ffd10eb
<
template
>
<div
class=
"system-container"
>
<div
class=
"
user-
container"
>
<div
class=
"container"
>
<search-form
class=
"searchTop border-shadow"
:formModel=
"searchForm"
...
...
@@ -73,7 +73,7 @@
v-for=
"(child,childIndex) in $Constants.ROLE_VISIBLE"
:key=
"childIndex"
:label=
"childIndex"
>
{{
child
}}
{{
childIndex
}}
</el-radio>
>
{{
child
}}
</el-radio>
</el-radio-group>
<el-select
v-if=
"roleForm.roleVisibility == 2"
...
...
@@ -214,14 +214,14 @@ export default {
menuIdList
:
this
.
roleForm
.
menuIdList
}
params
.
enableStatus
=
this
.
roleForm
.
enableStatus
?
1
:
2
if
(
this
.
roleForm
.
id
)
{
api
=
editRole
params
.
roleId
=
this
.
roleForm
.
id
params
.
roleVisibility
=
Number
(
this
.
roleForm
.
roleVisibility
)
params
.
rolePermissionType
=
Number
(
this
.
roleForm
.
rolePermissionType
)
if
(
params
.
roleVisibility
==
2
)
{
params
.
roleTenants
=
this
.
roleForm
.
roleTenants
.
toString
()
}
if
(
this
.
roleForm
.
id
)
{
api
=
editRole
params
.
roleId
=
this
.
roleForm
.
id
}
console
.
log
(
params
)
api
(
params
).
then
(
res
=>
{
...
...
src/views/user/index.vue
View file @
ffd10eb
...
...
@@ -16,6 +16,7 @@
node-key=
"id"
@
node-click=
"handleNodeClick"
:render-content=
"renderContent"
default-expand-all
>
</el-tree>
</div>
...
...
@@ -133,6 +134,7 @@ export default {
return
{
USERSTATUS
:
this
.
$Constants
.
USER_STATUS
,
orgName
:
''
,
isExpand
:
false
,
searchForm
:
{},
userFormList
:
[
{
...
...
@@ -156,8 +158,8 @@ export default {
}
],
tableParams
:
{
mutiSelectName
:
'user'
,
mutiSelectUniqueKey
:
'id'
,
//
mutiSelectName: 'user',
//
mutiSelectUniqueKey: 'id',
btnId
:
new
Date
().
getTime
()
+
parseInt
(
Math
.
random
()
*
1000
),
listName
:
'list'
,
tableColumns
:
[
...
...
@@ -244,69 +246,7 @@ export default {
filterDialogTitle
:
'选择组织'
,
filterVisible
:
false
,
filterText
:
''
,
filterTextData
:
[
{
id
:
1
,
label
:
'广汇集团'
,
children
:
[
{
id
:
10
,
label
:
'东北大区'
},
{
id
:
11
,
label
:
'华南大区'
},
{
id
:
12
,
label
:
'西北大区'
,
children
:
[
{
id
:
100
,
label
:
'新疆'
,
children
:
[
{
id
:
1000
,
label
:
'新疆克拉玛依华威4S店'
},
{
id
:
1001
,
label
:
'新疆克拉玛依华威4S店'
}
]
},
{
id
:
101
,
label
:
'陕西'
}
]
}
]
},
{
id
:
2
,
label
:
'成都轱辘汽车服务公司'
,
children
:
[
{
id
:
20
,
label
:
'新疆克拉玛依华威4S店'
},
{
id
:
21
,
label
:
'深圳市'
,
children
:
[
{
id
:
200
,
label
:
'南山区'
,
children
:
[
{
id
:
2000
,
label
:
'南山科技园片区'
}
]
},
{
id
:
201
,
label
:
'福田竹子林金融产业园区'
}
]
}
]
}
],
filterTextData
:
[],
}
},
watch
:
{
...
...
@@ -513,6 +453,7 @@ export default {
orgName
:
value
}
this
.
getTreeOrg
(
params
)
this
.
isExpand
=
true
// this.$refs.userTable.refreshTable()
}
}
...
...
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