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
56464e59
Commit
56464e59
authored
Jun 16, 2020
by
徐一鸣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
权限管理fixed
parent
87d45eb5
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
310 additions
and
293 deletions
+310
-293
src/pages/authority/organization.vue
src/pages/authority/organization.vue
+14
-6
src/pages/authority/organizationdetail.vue
src/pages/authority/organizationdetail.vue
+70
-49
src/pages/authority/organizationedit.vue
src/pages/authority/organizationedit.vue
+226
-238
No files found.
src/pages/authority/organization.vue
View file @
56464e59
...
@@ -85,14 +85,22 @@ export default {
...
@@ -85,14 +85,22 @@ export default {
})
})
.
then
(({
data
})
=>
{
.
then
(({
data
})
=>
{
// console.log(data);
// console.log(data);
this
.
$message
({
if
(
data
.
success
==
1
)
{
message
:
`已删除
${
this
.
deleteItem
.
department_name
}
.`
,
this
.
$message
({
type
:
"
success
"
,
message
:
`已删除
${
this
.
deleteItem
.
department_name
}
.`
,
});
type
:
"
success
"
,
this
.
deleteItem
=
null
;
});
this
.
initDatas
(
this
.
tempFilter
);
this
.
deleteItem
=
null
;
this
.
initDatas
(
this
.
tempFilter
);
}
else
{
this
.
$message
({
message
:
`删除
${
this
.
deleteItem
.
department_name
}
失败`
,
type
:
"
warning
"
,
});
}
})
})
.
catch
((
error
)
=>
{
.
catch
((
error
)
=>
{
console
.
log
(
error
);
this
.
$message
({
this
.
$message
({
message
:
`删除
${
this
.
deleteItem
.
department_name
}
失败`
,
message
:
`删除
${
this
.
deleteItem
.
department_name
}
失败`
,
type
:
"
warning
"
,
type
:
"
warning
"
,
...
...
src/pages/authority/organizationdetail.vue
View file @
56464e59
...
@@ -153,57 +153,63 @@ export default {
...
@@ -153,57 +153,63 @@ export default {
`/apaas/backmgt/user/list?limit=
${
this
.
pageSize
}
&page=
${
this
.
currentPage
}
&department_id=
${
this
.
$route
.
params
.
id
}
&search=
${
this
.
input
}
`
`/apaas/backmgt/user/list?limit=
${
this
.
pageSize
}
&page=
${
this
.
currentPage
}
&department_id=
${
this
.
$route
.
params
.
id
}
&search=
${
this
.
input
}
`
)
)
.
then
((
response
)
=>
{
.
then
((
response
)
=>
{
console
.
log
(
response
);
//
console.log(response);
let
data
=
response
.
data
.
data
;
let
data
=
response
.
data
.
data
;
this
.
listTotal
=
response
.
data
.
total
;
this
.
listTotal
=
response
.
data
.
total
;
this
.
datas
=
data
;
this
.
datas
=
data
;
var
_this
=
this
var
_this
=
this
;
setTimeout
(()
=>
{
setTimeout
(()
=>
{
this
.
header_arr
=
[
this
.
header_arr
=
[
{
{
prop
:
"
user_name
"
,
prop
:
"
user_name
"
,
label
:
"
账号
"
,
label
:
"
账号
"
,
minWidth
:
"
25%
"
,
minWidth
:
"
25%
"
,
align
:
"
left
"
,
align
:
"
left
"
,
type
:
"
button
"
,
callback
(
item
)
{
_this
.
$router
.
push
(
`/authority/users/detail/
${
item
.
user_id
}
`
);
},
},
{
},
prop
:
"
system_name
"
,
{
label
:
"
业务系统名称
"
,
prop
:
"
system_name
"
,
minWidth
:
"
25%
"
,
label
:
"
业务系统名称
"
,
align
:
"
left
"
,
minWidth
:
"
25%
"
,
align
:
"
left
"
,
},
{
prop
:
"
is_admin
"
,
label
:
"
用户类型
"
,
minWidth
:
"
25%
"
,
align
:
"
center
"
,
getText
(
item
)
{
return
_this
.
admin_arr
[
item
.
is_admin
||
0
];
},
},
{
},
prop
:
"
is_admin
"
,
{
label
:
"
用户类型
"
,
prop
:
"
operat_time
"
,
minWidth
:
"
25%
"
,
label
:
"
上次操作修改时间
"
,
align
:
"
center
"
,
minWidth
:
"
25%
"
,
getText
(
item
)
{
align
:
"
center
"
,
return
_this
.
admin_arr
[
item
.
is_admin
||
0
];
},
{
label
:
"
操作
"
,
type
:
"
buttons
"
,
width
:
"
120px
"
,
align
:
"
center
"
,
width
:
140
,
actionList
:
[
{
label
:
"
删除
"
,
callback
:
this
.
adelete
,
},
},
},
],
{
},
prop
:
"
operat_time
"
,
];
label
:
"
上次操作修改时间
"
,
});
minWidth
:
"
25%
"
,
align
:
"
center
"
,
},
{
label
:
"
操作
"
,
type
:
"
buttons
"
,
width
:
"
120px
"
,
align
:
"
center
"
,
width
:
140
,
actionList
:
[
{
label
:
"
删除
"
,
callback
:
this
.
adelete
,
},
],
},
];
})
})
})
.
catch
((
response
)
=>
{});
.
catch
((
error
)
=>
{
console
.
log
(
error
);
});
},
},
adelete
(
val
)
{
adelete
(
val
)
{
this
.
tipsOptions
=
{
this
.
tipsOptions
=
{
...
@@ -213,7 +219,7 @@ export default {
...
@@ -213,7 +219,7 @@ export default {
btnCancelText
:
""
,
btnCancelText
:
""
,
position
:
""
,
position
:
""
,
};
};
this
.
tipsOptions
.
message
=
"
是否
删除该数据
"
;
this
.
tipsOptions
.
message
=
"
是否
移除该用户?
"
;
this
.
tipsOptions
.
confirmSubmit
=
()
=>
{
this
.
tipsOptions
.
confirmSubmit
=
()
=>
{
console
.
log
(
"
deleteItem -
"
+
JSON
.
stringify
(
val
));
console
.
log
(
"
deleteItem -
"
+
JSON
.
stringify
(
val
));
this
.
delete_data
(
val
);
this
.
delete_data
(
val
);
...
@@ -226,11 +232,26 @@ export default {
...
@@ -226,11 +232,26 @@ export default {
.
post
(
`/apaas/backmgt/user/delete`
,
{
.
post
(
`/apaas/backmgt/user/delete`
,
{
id
:
[
val
.
user_id
],
id
:
[
val
.
user_id
],
})
})
.
then
((
response
)
=>
{
.
then
(({
data
})
=>
{
console
.
log
(
response
);
if
(
data
.
success
==
1
)
{
this
.
get_list
()
this
.
$message
({
message
:
`删除
${
val
.
user_name
}
成功`
,
type
:
"
success
"
,
});
this
.
get_list
();
}
else
{
this
.
$message
({
message
:
`删除
${
val
.
user_name
}
失败`
,
type
:
"
warning
"
,
});
}
})
})
.
catch
((
response
)
=>
{});
.
catch
((
error
)
=>
{
this
.
$message
({
message
:
`删除
${
val
.
user_name
}
失败`
,
type
:
"
warning
"
,
});
});
},
},
},
},
};
};
...
...
src/pages/authority/organizationedit.vue
View file @
56464e59
This diff is collapsed.
Click to expand it.
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