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
a1fd1aab
Commit
a1fd1aab
authored
Jun 24, 2020
by
张俊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
组织用户不可修改
parent
55ac2421
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
2 deletions
+25
-2
src/pages/authority/user/organizationuser.vue
src/pages/authority/user/organizationuser.vue
+25
-2
No files found.
src/pages/authority/user/organizationuser.vue
View file @
a1fd1aab
...
@@ -155,7 +155,7 @@
...
@@ -155,7 +155,7 @@
v-if=
"$route.name == 'usersadd'"
v-if=
"$route.name == 'usersadd'"
>
重置
</el-button
>
重置
</el-button
>
>
<el-button
type=
"primary"
@
click=
"onSubmit('form')"
class=
"right"
<el-button
type=
"primary"
v-if=
"now_user==2"
@
click=
"onSubmit('form')"
class=
"right"
>
保存
</el-button
>
保存
</el-button
>
>
<el-button
class=
"right"
@
click=
"backPage"
>
取消
</el-button>
<el-button
class=
"right"
@
click=
"backPage"
>
取消
</el-button>
...
@@ -168,6 +168,7 @@
...
@@ -168,6 +168,7 @@
<
script
>
<
script
>
import
uploadFile
from
"
@/components/upload_file
"
;
import
uploadFile
from
"
@/components/upload_file
"
;
import
{
getRole
,
formatDateTime_date
}
from
"
@/utils/common
"
;
import
{
getRole
,
formatDateTime_date
}
from
"
@/utils/common
"
;
import
{
mapGetters
,
mapState
}
from
"
vuex
"
;
export
default
{
export
default
{
props
:
{},
props
:
{},
components
:
{
components
:
{
...
@@ -306,14 +307,36 @@ export default {
...
@@ -306,14 +307,36 @@ export default {
baseinfo
:
{},
baseinfo
:
{},
};
};
},
},
computed
:
{},
computed
:
{
...
mapGetters
([
"
level
"
]),
...
mapState
([
"
userInfo
"
]),
},
created
()
{
created
()
{
this
.
get_now_user
();
this
.
get_now_user
();
this
.
getOriginArr
();
this
.
getOriginArr
();
this
.
get_now_page
();
this
.
get_now_page
();
if
(
this
.
userInfo
)
{
this
.
now_user
=
this
.
level
;
}
else
{
this
.
getCurrentUser
();
}
},
},
mounted
()
{},
mounted
()
{},
methods
:
{
methods
:
{
getCurrentUser
()
{
this
.
$api
.
user
.
getNowUser
().
then
(({
data
})
=>
{
if
(
data
.
success
==
1
)
{
console
.
log
(
"
--- user info ---
"
);
console
.
log
(
data
.
data
);
console
.
log
(
"
--- user info ---
"
);
this
.
$store
.
commit
(
"
userInfofun
"
,
data
.
data
);
this
.
now_user
=
this
.
level
;
console
.
log
(
this
.
level
);
}
else
{
console
.
log
(
data
.
errMsg
);
}
});
},
change_type
()
{
change_type
()
{
this
.
form
.
systemname
=
""
;
this
.
form
.
systemname
=
""
;
this
.
form
.
domain
=
""
;
this
.
form
.
domain
=
""
;
...
...
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