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
7a07fb8c
Commit
7a07fb8c
authored
Apr 10, 2024
by
张海景
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update:提交质量的修改
parent
2d2dd714
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
370 additions
and
105 deletions
+370
-105
http.api.js
common/http.api.js
+2
-0
User.vue
components/User/User.vue
+115
-0
userPersonnel.vue
pages/mes/prodReport/components/userPersonnel.vue
+43
-25
index.vue
pages/mes/qc/index.vue
+210
-80
No files found.
common/http.api.js
View file @
7a07fb8c
...
...
@@ -15,6 +15,8 @@ const install = (Vue, vm) => {
vm
.
$u
.
get
(
config
.
adminPath
+
'/mobile/index'
,
params
),
getUserInfo
:
(
params
=
{})
=>
vm
.
$u
.
get
(
config
.
adminPath
+
'/mobile/user/getUserInfo'
,
params
),
getUserList
:
(
params
=
{})
=>
vm
.
$u
.
get
(
config
.
adminPath
+
'/system/user/list'
,
params
),
getUserPrintInfo
:
()
=>
vm
.
$u
.
get
(
config
.
adminPath
+
'/system/print/printer'
),
getPrintDown
:
(
params
)
=>
...
...
components/User/User.vue
0 → 100644
View file @
7a07fb8c
<
template
>
<view
class=
"dmodel-table"
>
<view
class=
"search"
>
<u-form
:model=
"tableParams"
labelAlign=
"right"
class=
"tableForm"
>
<u-form-item
label=
"编号"
label-width=
"60px"
name=
"userName"
>
<uni-easyinput
type=
"text"
v-model=
"tableParams.userName"
placeholder=
"请输入编号"
/>
</u-form-item>
<u-form-item
label=
"名称"
label-width=
"60px"
name=
"nickName"
>
<uni-easyinput
type=
"text"
v-model=
"tableParams.nickName"
placeholder=
"请输入名称"
/>
</u-form-item>
<u-form-item>
<u-button
class=
"btn"
@
click=
"handleClick"
type=
"primary"
size=
"medium"
>
搜索
</u-button>
</u-form-item>
</u-form>
</view>
<view>
<zb-table
ref=
"zbTable"
rowKey=
"userName"
:columns=
"tableColumn"
:data=
"tableData"
:stripe=
"true"
@
toggleRowSelection=
"toggleRowSelection"
></zb-table>
</view>
<view
class=
"uni-pagination-box"
><uni-pagination
show-icon
:page-size=
"params.pageSize"
:current=
"params.pageNum"
:total=
"total"
@
change=
"change"
/></view>
</view>
</
template
>
<
script
>
export
default
{
name
:
'User'
,
data
()
{
return
{
params
:
{
pageNum
:
1
,
pageSize
:
10
},
total
:
0
,
tableParams
:
{
nickName
:
null
,
userName
:
null
},
tableData
:
[],
tableSelectData
:
[],
tableColumn
:
[
{
type
:
'radio'
,
width
:
40
},
{
name
:
'userName'
,
label
:
'编号'
,
width
:
160
},
{
name
:
'nickName'
,
label
:
'名称'
,
width
:
200
}
]
};
},
// computed: {
// tableData() {
// return this.data || []
// }
// },
mounted
()
{
this
.
getList
();
},
methods
:
{
handleClick
(
){
if
(
this
.
tableParams
.
userName
)
{
this
.
params
.
userName
=
this
.
tableParams
.
userName
;
}
if
(
this
.
tableParams
.
nickName
)
{
this
.
params
.
nickName
=
this
.
tableParams
.
nickName
;
}
this
.
params
.
pageNum
=
1
this
.
getList
()
},
async
getList
()
{
const
res
=
await
this
.
$u
.
api
.
getUserList
(
this
.
params
);
console
.
log
(
res
,
'res'
);
if
(
res
.
code
==
200
)
{
this
.
tableData
=
res
.
rows
;
this
.
total
=
res
.
total
;
}
},
// 分页触发
change
(
e
)
{
this
.
params
.
pageNum
=
e
.
current
this
.
getList
()
},
toggleRowSelection
(
checked
,
arr
)
{
this
.
tableSelectData
=
arr
;
}
}
};
</
script
>
<
style
lang=
"scss"
scoped
>
.dmodel-table
{
height
:
1200rpx
;
margin-top
:
20rpx
;
padding
:
0
20rpx
;
position
:
relative
;
}
.tableForm
{
display
:
flex
;
margin-bottom
:
20rpx
;
}
.btn
{
margin-left
:
10px
;
}
.uni-pagination-box
{
position
:
absolute
;
right
:
20rpx
;
bottom
:
40rpx
;
}
</
style
>
pages/mes/prodReport/components/userPersonnel.vue
View file @
7a07fb8c
...
...
@@ -9,14 +9,17 @@
<uni-easyinput
type=
"text"
v-model=
"tableParams.nickName"
placeholder=
"请输入名称"
/>
</u-form-item>
<u-form-item>
<u-button
class=
"btn"
@
click=
"
getList
"
type=
"primary"
size=
"medium"
>
搜索
</u-button>
<u-button
class=
"btn"
@
click=
"
handleClick
"
type=
"primary"
size=
"medium"
>
搜索
</u-button>
</u-form-item>
</u-form>
</view>
<zb-table
ref=
"zbTable"
rowKey=
"recordId"
<view>
<zb-table
ref=
"zbTable"
rowKey=
"userName"
:columns=
"tableColumn"
:data=
"tableData"
:stripe=
"true"
@
toggleRowSelection=
"toggleRowSelection"
>
</zb-table>
</view>
<view
class=
"uni-pagination-box"
><uni-pagination
show-icon
:page-size=
"params.pageSize"
:current=
"params.pageNum"
:total=
"total"
@
change=
"change"
/></view>
</view>
</
template
>
...
...
@@ -30,6 +33,12 @@
},
data
()
{
return
{
params
:
{
pageNum
:
1
,
pageSize
:
10
,
workstationId
:
this
.
data
?.
workstationId
||
null
},
total
:
0
,
tableParams
:
{
nickName
:
null
,
userName
:
null
,
...
...
@@ -56,7 +65,6 @@
label
:
'工作站'
,
width
:
160
,
},
],
}
},
...
...
@@ -70,29 +78,33 @@
// this.data.workstationName
},
methods
:
{
handleClick
(
){
if
(
this
.
tableParams
.
userName
)
{
this
.
params
.
userName
=
this
.
tableParams
.
userName
;
}
if
(
this
.
tableParams
.
nickName
)
{
this
.
params
.
nickName
=
this
.
tableParams
.
nickName
;
}
this
.
params
.
pageNum
=
1
this
.
getList
()
},
async
getList
()
{
let
params
=
{
pageNum
:
1
,
pageSize
:
10
,
workstationId
:
this
.
data
.
workstationId
}
if
(
this
.
userName
)
{
params
.
userName
=
this
.
tableParams
.
userName
}
if
(
this
.
nickName
)
{
params
.
nickName
=
this
.
tableParams
.
nickName
}
const
res
=
await
this
.
$u
.
api
.
userQuery
(
params
)
const
res
=
await
this
.
$u
.
api
.
userQuery
(
this
.
params
)
console
.
log
(
res
,
'res'
)
if
(
res
.
code
==
200
)
{
this
.
tableData
=
res
.
rows
.
map
(
item
=>
{
return
{
...
item
,
workstationName
:
this
.
data
.
workstationName
}
})
}
this
.
tableData
=
res
.
rows
.
map
(
item
=>
{
return
{
...
item
,
workstationName
:
this
.
data
?.
workstationName
||
null
}
})
this
.
total
=
res
.
total
}
},
// 分页触发
change
(
e
)
{
this
.
params
.
pageNum
=
e
.
current
this
.
getList
()
},
toggleRowSelection
(
checked
,
arr
)
{
this
.
tableSelectData
=
arr
...
...
@@ -101,11 +113,12 @@
}
</
script
>
<
style
scoped
>
<
style
lang=
"scss"
scoped
>
.dmodel-table
{
height
:
5
00
rpx
;
height
:
12
00rpx
;
margin-top
:
20rpx
;
padding
:
0
20rpx
;
position
:
relative
;
}
.tableForm
{
display
:
flex
;
...
...
@@ -114,4 +127,9 @@
.btn
{
margin-left
:
10px
;
}
.uni-pagination-box
{
position
:
absolute
;
right
:
20rpx
;
bottom
:
40rpx
;
}
</
style
>
pages/mes/qc/index.vue
View file @
7a07fb8c
This diff is collapsed.
Click to expand it.
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