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
2d5d518d
Commit
2d5d518d
authored
Jun 09, 2020
by
张俊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
fcd35b80
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
1 deletion
+19
-1
src/components/organization-list/organization-card.vue
src/components/organization-list/organization-card.vue
+3
-1
src/pages/authority/organizationedit.vue
src/pages/authority/organizationedit.vue
+16
-0
No files found.
src/components/organization-list/organization-card.vue
View file @
2d5d518d
...
@@ -53,12 +53,14 @@ export default {
...
@@ -53,12 +53,14 @@ export default {
default
:
0
,
default
:
0
,
},
},
},
},
created
(){
},
methods
:
{
methods
:
{
deleteAction
()
{
deleteAction
()
{
this
.
$emit
(
"
delete-action
"
,
this
.
data
);
this
.
$emit
(
"
delete-action
"
,
this
.
data
);
},
},
intoDetail
()
{
intoDetail
()
{
this
.
$router
.
push
(
`
${
this
.
detailsUrl
}${
this
.
data
.
id
}
`
);
this
.
$router
.
push
(
`
${
this
.
detailsUrl
}${
this
.
data
.
department_
id
}
`
);
},
},
},
},
};
};
...
...
src/pages/authority/organizationedit.vue
View file @
2d5d518d
...
@@ -155,6 +155,7 @@ export default {
...
@@ -155,6 +155,7 @@ export default {
console
.
log
(
this
.
$route
);
console
.
log
(
this
.
$route
);
if
(
this
.
$route
.
path
.
indexOf
(
'
add
'
)
!==-
1
){
if
(
this
.
$route
.
path
.
indexOf
(
'
add
'
)
!==-
1
){
this
.
edit_flag
=
0
this
.
edit_flag
=
0
this
.
get_now_user
()
}
}
if
(
this
.
$route
.
path
.
indexOf
(
'
edit
'
)
!==-
1
){
if
(
this
.
$route
.
path
.
indexOf
(
'
edit
'
)
!==-
1
){
this
.
edit_flag
=
1
this
.
edit_flag
=
1
...
@@ -165,6 +166,21 @@ export default {
...
@@ -165,6 +166,21 @@ export default {
this
.
get_user
()
this
.
get_user
()
}
}
},
},
get_now_user
(){
this
.
$http
.
get
(
`/apaas/backmgt/user/getCurrentUser`
)
.
then
(
response
=>
{
console
.
log
(
response
);
let
data
=
response
.
data
.
data
this
.
form
=
{
person
:
data
.
user_name
,
date
:
data
.
create_date
.
replace
(
'
T
'
,
'
'
).
replace
(
'
Z
'
,
'
'
),
}
})
.
catch
((
response
)
=>
{
});
},
get_user
(){
get_user
(){
this
.
$http
this
.
$http
.
get
(
`/apaas/backmgt/department/detail?department_id=
${
this
.
$route
.
params
.
id
}
`
)
.
get
(
`/apaas/backmgt/department/detail?department_id=
${
this
.
$route
.
params
.
id
}
`
)
...
...
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