Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
apaas-ui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gzga-jzapi
apaas-ui
Commits
e9a66061
Commit
e9a66061
authored
May 28, 2020
by
张俊
Browse files
Options
Browse Files
Download
Plain Diff
合并
parents
8755cec3
9a141dbb
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
69 additions
and
12 deletions
+69
-12
src/pages/authority/organizationedit.vue
src/pages/authority/organizationedit.vue
+2
-2
src/pages/authority/organizationuser.vue
src/pages/authority/organizationuser.vue
+14
-5
src/pages/authority/useradd.vue
src/pages/authority/useradd.vue
+38
-0
src/router/index.js
src/router/index.js
+15
-5
No files found.
src/pages/authority/organizationedit.vue
View file @
e9a66061
...
...
@@ -2,7 +2,7 @@
<div
class=
"detail_contain"
>
<p
class=
"now_page_title"
>
权限管理 / 组织管理 /
<span>
组织
{{
$route
.
pa
rams
.
id
?
'
编辑
'
:
'
新增
'
}}
</span>
<span>
组织
{{
$route
.
pa
th
.
indexOf
(
'
edit
'
)
!==-
1
?
'
编辑
'
:
'
新增
'
}}
</span>
</p>
<div
class=
"info_contain"
>
<el-form
ref=
"form"
:rules=
"rules"
:model=
"form"
label-width=
"0px"
>
...
...
@@ -148,7 +148,7 @@ export default {
this
.
$store
.
commit
(
'
rolefun
'
,
data
)
this
.
getOriginArr
()
});
console
.
log
(
this
.
$route
.
params
.
id
);
console
.
log
(
this
.
$route
);
},
mounted
()
{},
methods
:
{
...
...
src/pages/authority/organizationuser.vue
View file @
e9a66061
<
template
>
<div
class=
"detail_contain"
>
<p
class=
"now_page_title"
>
权限管理 / 组织管理 / 组织详情 /
<span>
用户管理
</span>
{{
$route
.
name
==
'
organizationuser
'
?
'
权限管理 / 组织管理 / 组织详情 /
'
:
'
权限管理 / 用户管理 /
'
}}
<span>
{{
$route
.
name
==
'
organizationuser
'
?
'
用户管理
'
:
$route
.
name
==
'
usersadd
'
?
'
新增用户
'
:
'
用户详情
'
}}
</span>
</p>
<div
class=
"info_contain"
>
<el-form
ref=
"form"
:rules=
"rules"
:model=
"form"
label-width=
"0px"
>
...
...
@@ -38,7 +38,7 @@
<el-input
v-model=
"form.domain"
></el-input>
</el-form-item>
<el-form-item
prop=
"ip"
v-if=
"now_user==0"
>
<p
class=
"formname"
>
IP
地址
:
</p>
<p
class=
"formname"
>
IP
白名单
:
</p>
<el-input
v-model=
"form.ip"
></el-input>
</el-form-item>
<el-form-item
prop=
"contact"
>
...
...
@@ -92,6 +92,7 @@
</el-form-item>
<el-form-item>
<el-button
@
click=
"resetForm('form')"
class=
"left"
v-if=
"$route.name =='usersadd'"
>
重置
</el-button>
<el-button
type=
"primary"
@
click=
"onSubmit('form')"
class=
"right"
>
保存
</el-button>
<el-button
class=
"right"
>
取消
</el-button>
</el-form-item>
...
...
@@ -99,6 +100,7 @@
</div>
</div>
</
template
>
...
...
@@ -108,7 +110,7 @@ import { getRole } from "@/utils/common";
export
default
{
props
:
{},
components
:
{
uploadFile
uploadFile
,
},
data
()
{
return
{
...
...
@@ -200,6 +202,7 @@ export default {
this
.
$store
.
commit
(
'
rolefun
'
,
data
)
this
.
getOriginArr
()
});
console
.
log
(
this
.
$route
);
},
mounted
()
{},
methods
:
{
...
...
@@ -235,6 +238,9 @@ export default {
return
v
.
url
}).
join
(
'
;
'
)
console
.
log
(
this
.
form
.
fileList
)
},
resetForm
(
formName
)
{
this
.
$refs
[
formName
].
resetFields
();
}
}
};
...
...
@@ -292,6 +298,9 @@ export default {
float
:
right
;
margin-left
:
20px
;
}
.left
{
float
:
left
;
}
.removepic
{
display
:
inline-block
;
margin-top
:
-40px
;
...
...
src/pages/authority/useradd.vue
0 → 100644
View file @
e9a66061
<
template
>
<div>
</div>
</
template
>
<
script
>
export
default
{
props
:
[],
components
:
{
},
data
()
{
return
{
};
},
watch
:
{
},
computed
:
{
},
created
()
{
},
mounted
()
{
},
methods
:
{
},
};
</
script
>
<
style
scoped
>
</
style
>
src/router/index.js
View file @
e9a66061
...
...
@@ -239,22 +239,22 @@ export default new Router({
component
:
()
=>
import
(
"
@/pages/authority/organization
"
),
},
{
path
:
"
/authority/organizationdetail/:id
"
,
// 组织管理详情
path
:
"
/authority/organization
/
detail/:id
"
,
// 组织管理详情
name
:
"
organizationdetail
"
,
component
:
()
=>
import
(
"
@/pages/authority/organizationdetail
"
),
},
{
path
:
"
/authority/organization
edit
"
,
// 组织管理组织新增
name
:
"
organization
edit
"
,
path
:
"
/authority/organization
/add
"
,
// 组织管理组织新增
name
:
"
organization
add
"
,
component
:
()
=>
import
(
"
@/pages/authority/organizationedit
"
),
},
{
path
:
"
/authority/organizationedit/:id
"
,
// 组织管理组织编辑
path
:
"
/authority/organization
/
edit/:id
"
,
// 组织管理组织编辑
name
:
"
organizationedit
"
,
component
:
()
=>
import
(
"
@/pages/authority/organizationedit
"
),
},
{
path
:
"
/authority/organization
user
"
,
// 组织管理组织用户
path
:
"
/authority/organization
/user/:id
"
,
// 组织管理组织用户
name
:
"
organizationuser
"
,
component
:
()
=>
import
(
"
@/pages/authority/organizationuser
"
),
},
...
...
@@ -263,6 +263,16 @@ export default new Router({
name
:
"
users
"
,
component
:
()
=>
import
(
"
@/pages/authority/users
"
),
},
{
path
:
"
/authority/users/add
"
,
// 用户管理-新增
name
:
"
usersadd
"
,
component
:
()
=>
import
(
"
@/pages/authority/organizationuser
"
),
},
{
path
:
"
/authority/users/detail/:id
"
,
// 用户管理-详情
name
:
"
usersdetail
"
,
component
:
()
=>
import
(
"
@/pages/authority/organizationuser
"
),
},
{
path
:
"
/authority/menu
"
,
// 菜单管理页
name
:
"
menu
"
,
...
...
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