Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mes-pad
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
ximai
mes-pad
Commits
0fabb89f
Commit
0fabb89f
authored
Mar 14, 2024
by
chenzj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
生产报工人员选择框加筛选
parent
ef2e8f0f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
8 deletions
+30
-8
userPersonnel.vue
pages/mes/prodReport/components/userPersonnel.vue
+30
-8
No files found.
pages/mes/prodReport/components/userPersonnel.vue
View file @
0fabb89f
<
template
>
<
template
>
<view
class=
"dmodel-table"
>
<view
class=
"dmodel-table"
>
<view
class=
"search"
>
<u-search
:showAction=
"false"
v-model=
"userName"
inputAlign=
"center"
placeholder=
"请输入编号"
></u-search>
<u-search
:showAction=
"false"
v-model=
"nickName"
inputAlign=
"center"
placeholder=
"请输入名称"
></u-search>
<u-button
type=
"primary"
@
click=
"getList"
size=
"medium"
>
搜索
</u-button>
</view>
<zb-table
ref=
"zbTable"
rowKey=
"recordId"
<zb-table
ref=
"zbTable"
rowKey=
"recordId"
:columns=
"tableColumn"
:data=
"tableData"
:stripe=
"true"
@
toggleAllSelection=
"toggl
:columns=
"tableColumn"
:data=
"tableData"
:stripe=
"true"
@
toggleAllSelection=
"toggleAllSelection"
eAllSelection"
@
toggleRowSelection=
"toggleRowSelection"
>
@
toggleRowSelection=
"toggleRowSelection"
>
</zb-table>
</zb-table>
</view>
</view>
...
@@ -20,20 +24,22 @@
...
@@ -20,20 +24,22 @@
return
{
return
{
tableData
:
[],
tableData
:
[],
tableSelectData
:
[],
tableSelectData
:
[],
userName
:
null
,
nickName
:
null
,
tableColumn
:
[{
tableColumn
:
[{
type
:
'selection'
,
type
:
'selection'
,
width
:
35
width
:
35
},
},
{
name
:
'nickName'
,
label
:
'名称'
,
width
:
200
,
},
{
{
name
:
'userName'
,
name
:
'userName'
,
label
:
'编号'
,
label
:
'编号'
,
width
:
160
,
width
:
160
,
},
},
{
name
:
'nickName'
,
label
:
'名称'
,
width
:
200
,
},
{
{
name
:
'workstationName'
,
name
:
'workstationName'
,
...
@@ -57,6 +63,7 @@
...
@@ -57,6 +63,7 @@
// this.data.workstationName
// this.data.workstationName
},
},
methods
:
{
methods
:
{
rowClick
(
row
,
index
)
{
rowClick
(
row
,
index
)
{
console
.
log
(
this
.
$refs
.
zbTable
)
console
.
log
(
this
.
$refs
.
zbTable
)
this
.
$refs
.
zbTable
.
checkboxSelectedAll
({
checked
:
false
})
this
.
$refs
.
zbTable
.
checkboxSelectedAll
({
checked
:
false
})
...
@@ -84,11 +91,17 @@
...
@@ -84,11 +91,17 @@
},
},
async
getList
()
{
async
getList
()
{
cons
t
params
=
{
le
t
params
=
{
pageNum
:
1
,
pageNum
:
1
,
pageSize
:
10
,
pageSize
:
10
,
workstationId
:
this
.
data
.
workstationId
workstationId
:
this
.
data
.
workstationId
}
}
if
(
this
.
userName
)
{
params
.
userName
=
this
.
userName
}
if
(
this
.
nickName
)
{
params
.
nickName
=
this
.
nickName
}
const
res
=
await
this
.
$u
.
api
.
userQuery
(
params
)
const
res
=
await
this
.
$u
.
api
.
userQuery
(
params
)
console
.
log
(
res
,
'res'
)
console
.
log
(
res
,
'res'
)
if
(
res
.
code
==
200
)
{
if
(
res
.
code
==
200
)
{
...
@@ -117,4 +130,13 @@
...
@@ -117,4 +130,13 @@
margin-top
:
20
rpx
;
margin-top
:
20
rpx
;
padding
:
0
20
rpx
;
padding
:
0
20
rpx
;
}
}
.search
{
display
:
flex
;
margin-bottom
:
20
rpx
;
align-items
:
center
;
.u-search{
width
:
400
rpx
!important
;
margin-right
:
20
rpx
!important
;
}
}
</
style
>
</
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