Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
pda-ui
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
pda
pda-ui
Commits
e6b73f6c
Commit
e6b73f6c
authored
Jul 18, 2024
by
沈翠玲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
用户管理
parent
4beacc48
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
37 additions
and
21 deletions
+37
-21
index.scss
src/assets/styles/index.scss
+1
-1
index.vue
src/views/system/user/index.vue
+5
-3
worker.vue
src/views/system/user/profile/worker.vue
+31
-17
No files found.
src/assets/styles/index.scss
View file @
e6b73f6c
...
...
@@ -192,5 +192,5 @@ aside {
}
.el-dialog__body
{
padding
:
4
vh
20px
!
important
;
padding
:
3
vh
20px
!
important
;
}
\ No newline at end of file
src/views/system/user/index.vue
View file @
e6b73f6c
...
...
@@ -311,11 +311,11 @@
</el-col>
</el-row>
</el-form>
<el-divider
content-position=
"center"
v-if=
"title === '修改用户'"
<el-divider
content-position=
"center"
v-if=
"title === '修改用户'"
class=
"userdivider"
>
工作单元资源
</el-divider
>
<div
v-if=
"title === '修改用户'"
>
<el-card
shadow=
"always"
>
<el-card
shadow=
"always"
class=
"usercard"
>
<div
slot=
"header"
>
<span>
工作单元
</span>
<el-button
...
...
@@ -415,7 +415,9 @@ export default {
// 角色选项
roleOptions
:
[],
// 表单参数
form
:
{},
form
:
{
userId
:
null
},
defaultProps
:
{
children
:
"children"
,
label
:
"label"
...
...
src/views/system/user/profile/worker.vue
View file @
e6b73f6c
<
template
>
<div
class=
"app-container"
>
<el-table
v-loading=
"loading"
:data=
"workstationworkerList"
@
selection-change=
"handleSelectionChange"
>
<el-table
v-loading=
"loading"
:data=
"workstationworkerList"
@
selection-change=
"handleSelectionChange"
:max-height=
"tableHeight"
>
<!--
<el-table-column
label=
"岗位名称"
align=
"center"
prop=
"postName"
/>
-->
<!--
<el-table-column
label=
"数量"
align=
"center"
prop=
"quantity"
/>
-->
<el-table-column
label=
"工作单元"
align=
"center"
prop=
"workunitName"
/>
...
...
@@ -27,16 +27,6 @@
<el-dialog
:title=
"title"
:visible
.
sync=
"open"
width=
"500px"
append-to-body
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"120px"
>
<!-- <el-form-item label="岗位" prop="postId">
<el-select v-model="form.postId" placeholder="请选择岗位">
<el-option
v-for="dict in postOptions"
:key="dict.postId"
:label="dict.postName"
:value="dict.postId"
></el-option>
</el-select>
</el-form-item> -->
<el-form-item
label=
"工作单元"
prop=
"nickName"
>
<el-input
v-model=
"form.workunitName"
placeholder=
"请选择工作单元"
readonly=
"readonly"
>
<el-button
...
...
@@ -50,11 +40,6 @@
@
onSelected=
"onworkunitSelected"
></workunitSelect>
</el-form-item>
<!-- <el-form-item label="数量" prop="quantity">
<el-input-number :min="1" v-model="form.quantity" placeholder="请输入所需人员数量" />
</el-form-item> -->
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
type=
"primary"
@
click=
"submitForm"
>
确 定
</el-button>
...
...
@@ -84,6 +69,7 @@ export default {
multiple
:
true
,
// 显示搜索条件
showSearch
:
true
,
tableHeight
:
0
,
// 总条数
total
:
0
,
// 工作单元表格数据
...
...
@@ -125,10 +111,21 @@ export default {
this
.
getList
()
},
},
mounted
(){
this
.
$nextTick
(()
=>
{
this
.
tableHeight
=
window
.
innerHeight
-
550
})
},
methods
:
{
/** 查询工作单元列表 */
getList
()
{
this
.
loading
=
true
;
console
.
log
(
'this.userId'
,
this
.
userId
)
this
.
queryParams
=
{
pageNum
:
1
,
pageSize
:
10
,
userId
:
this
.
userId
}
listWorkunituser
(
this
.
queryParams
).
then
(
response
=>
{
this
.
workstationworkerList
=
response
.
rows
;
this
.
total
=
response
.
total
;
...
...
@@ -226,7 +223,7 @@ export default {
/** 删除按钮操作 */
handleDelete
(
row
)
{
const
ids
=
row
.
id
||
this
.
ids
;
this
.
$modal
.
confirm
(
'是否确认删除此
岗位
资源'
).
then
(
function
()
{
this
.
$modal
.
confirm
(
'是否确认删除此
工作单元
资源'
).
then
(
function
()
{
return
delWorkunituser
(
ids
);
}).
then
(()
=>
{
this
.
getList
();
...
...
@@ -236,3 +233,20 @@ export default {
}
};
</
script
>
<
style
lang=
"scss"
>
.el-divider--horizontal.userdivider
{
margin-top
:
10px
;
}
.usercard
{
.el-card__header
{
padding
:
14px
20px
;
}
.el-card__body
{
padding-top
:
0
;
padding-bottom
:
5px
;
}
.app-container
{
padding
:
10px
;
}
}
</
style
>
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