Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
GaoQuIncubator
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kimber
GaoQuIncubator
Commits
1a1b2811
Commit
1a1b2811
authored
Oct 18, 2024
by
xinzhedeai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
岗位-用户类型
parent
38edb781
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
enterprise.vue
src/views/system/home/enterprise.vue
+1
-0
index.vue
src/views/system/user/index.vue
+5
-5
No files found.
src/views/system/home/enterprise.vue
View file @
1a1b2811
...
...
@@ -372,6 +372,7 @@ export default {
crudHome
.
edit
(
this
.
formInline
).
then
((
res
)
=>
{
if
(
res
&&
res
.
code
===
200
)
{
this
.
$message
.
success
(
"
保存成功
"
);
// res.msg
this
.
getData
()
}
});
},
...
...
src/views/system/user/index.vue
View file @
1a1b2811
...
...
@@ -61,7 +61,7 @@
</div>
<!--表单渲染-->
<el-dialog
append-to-body
:close-on-click-modal=
"false"
:before-close=
"crud.cancelCU"
:visible.sync=
"crud.status.cu > 0"
:title=
"crud.status.title"
width=
"570px"
>
<el-form
ref=
"form"
:inline=
"true"
:model=
"form"
:rules=
"rules"
size=
"small"
label-width=
"
66
px"
>
<el-form
ref=
"form"
:inline=
"true"
:model=
"form"
:rules=
"rules"
size=
"small"
label-width=
"
80
px"
>
<el-form-item
label=
"用户名"
prop=
"username"
>
<el-input
v-model=
"form.username"
/>
</el-form-item>
...
...
@@ -83,7 +83,7 @@
placeholder=
"选择部门"
/>
</el-form-item>
<el-form-item
label=
"
岗位
"
prop=
"jobs"
class=
"is-required"
>
<el-form-item
label=
"
用户类型
"
prop=
"jobs"
class=
"is-required"
>
<el-select
v-model=
"jobDatas"
style=
"width:178px"
...
...
@@ -336,7 +336,7 @@ export default {
this
.
jobDatas
=
''
this
.
roleDatas
=
[]
},
// 初始化编辑时候的角色与
岗位
// 初始化编辑时候的角色与
用户类型
[
CRUD
.
HOOK
.
beforeToEdit
](
crud
,
form
)
{
this
.
getJobs
(
this
.
form
.
dept
.
id
)
this
.
jobDatas
=
''
...
...
@@ -370,7 +370,7 @@ export default {
return
false
}
else
if
(
!
this
.
jobDatas
)
{
this
.
$message
({
message
:
'
岗位
不能为空
'
,
message
:
'
用户类型
不能为空
'
,
type
:
'
warning
'
})
return
false
...
...
@@ -483,7 +483,7 @@ export default {
this
.
roles
=
res
}).
catch
(()
=>
{
})
},
// 获取弹窗内
岗位
数据
// 获取弹窗内
用户类型
数据
getJobs
()
{
getAllJob
().
then
(
res
=>
{
this
.
jobs
=
res
.
content
...
...
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