Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
template_vue
Project
Project
Details
Activity
Releases
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
胡宝山
template_vue
Commits
2f0aa6b0
Commit
2f0aa6b0
authored
Dec 01, 2023
by
cat
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/project9-8' into project9-8
parents
7e1cbb67
c3e65853
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
72 additions
and
16 deletions
+72
-16
index.vue
src/views/equipment/equipmentCheck/index.vue
+38
-10
index.vue
src/views/processManagement/processesCheck/index.vue
+34
-6
No files found.
src/views/equipment/equipmentCheck/index.vue
View file @
2f0aa6b0
...
@@ -22,6 +22,16 @@
...
@@ -22,6 +22,16 @@
@
keyup
.
enter
.
native=
"handleQuery"
@
keyup
.
enter
.
native=
"handleQuery"
/>
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"盘点状态"
prop=
"status"
>
<el-select
v-model=
"queryParams.status"
placeholder=
"请选择"
clearable
>
<el-option
v-for=
"item in options"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
>
</el-option>
</el-select>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
type=
"primary"
style=
"padding: 8px 7px;"
size=
"small"
icon=
"el-icon-search"
@
click=
"handleQuery"
>
查询
</el-button>
<el-button
type=
"primary"
style=
"padding: 8px 7px;"
size=
"small"
icon=
"el-icon-search"
@
click=
"handleQuery"
>
查询
</el-button>
<el-button
style=
"padding: 8px 7px;"
icon=
"el-icon-refresh"
size=
"small"
@
click=
"resetQuery"
>
重置
</el-button>
<el-button
style=
"padding: 8px 7px;"
icon=
"el-icon-refresh"
size=
"small"
@
click=
"resetQuery"
>
重置
</el-button>
...
@@ -112,6 +122,15 @@ export default {
...
@@ -112,6 +122,15 @@ export default {
name
:
'Index'
,
name
:
'Index'
,
data
()
{
data
()
{
return
{
return
{
// 状态下拉框
options
:
[{
value
:
1
,
label
:
'已盘点'
},{
value
:
0
,
label
:
'未盘点'
},
],
// TODO: 表单里的单项详情参数
// TODO: 表单里的单项详情参数
singleDetails
:
{
singleDetails
:
{
lot
:
''
,
lot
:
''
,
...
@@ -173,22 +192,31 @@ export default {
...
@@ -173,22 +192,31 @@ export default {
methods
:
{
methods
:
{
// TODO: 获取所选行详情信息操作
// TODO: 获取所选行详情信息操作
handleDetail
(
row
)
{
handleDetail
(
row
)
{
this
.
singleDetails
=
this
.
formReset
this
.
singleDetails
=
row
this
.
singleDetails
=
row
this
.
title
=
'详情信息'
this
.
title
=
'详情信息'
this
.
openDetails
=
!
this
.
openDetails
this
.
openDetails
=
!
this
.
openDetails
},
},
/** 查询角色列表 */
/** 查询角色列表 */
getList
()
{
getList
()
{
this
.
loading
=
true
// 去除字段默认为0导致0对应的未盘点无法使用问题
listdevice
(
this
.
queryParams
).
then
(
let
flag
=
0
;
response
=>
{
this
.
loading
=
true
;
if
(
this
.
queryParams
.
status
===
undefined
||
this
.
queryParams
.
status
===
''
)
{
flag
=
1
;
}
if
(
flag
===
1
)
{
this
.
queryParams
.
status
=
-
1
}
listdevice
(
this
.
queryParams
).
then
(
response
=>
{
console
.
log
(
'list'
,
response
)
console
.
log
(
'list'
,
response
)
this
.
equipmentList
=
response
.
rows
this
.
equipmentList
=
response
.
rows
this
.
total
=
response
.
total
this
.
total
=
response
.
total
this
.
loading
=
false
this
.
loading
=
false
})
if
(
flag
==
1
)
{
this
.
queryParams
.
status
=
undefined
flag
=
0
;
}
}
)
},
},
// 取消按钮
// 取消按钮
cancel
()
{
cancel
()
{
...
...
src/views/processManagement/processesCheck/index.vue
View file @
2f0aa6b0
...
@@ -22,6 +22,16 @@
...
@@ -22,6 +22,16 @@
@
keyup
.
enter
.
native=
"handleQuery"
@
keyup
.
enter
.
native=
"handleQuery"
/>
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"盘点状态"
prop=
"status"
>
<el-select
v-model=
"queryParams.status"
placeholder=
"请选择"
clearable
>
<el-option
v-for=
"item in options"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
>
</el-option>
</el-select>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
type=
"primary"
style=
"padding: 8px 7px;"
size=
"small"
icon=
"el-icon-search"
@
click=
"handleQuery"
>
查询
</el-button>
<el-button
type=
"primary"
style=
"padding: 8px 7px;"
size=
"small"
icon=
"el-icon-search"
@
click=
"handleQuery"
>
查询
</el-button>
<el-button
style=
"padding: 8px 7px;"
icon=
"el-icon-refresh"
size=
"small"
@
click=
"resetQuery"
>
重置
</el-button>
<el-button
style=
"padding: 8px 7px;"
icon=
"el-icon-refresh"
size=
"small"
@
click=
"resetQuery"
>
重置
</el-button>
...
@@ -112,6 +122,15 @@ export default {
...
@@ -112,6 +122,15 @@ export default {
name
:
'Index'
,
name
:
'Index'
,
data
()
{
data
()
{
return
{
return
{
// 状态下拉框
options
:
[{
value
:
0
,
label
:
'未盘点'
},
{
value
:
1
,
label
:
'已盘点'
},
],
// TODO: 表单里的单项详情参数
// TODO: 表单里的单项详情参数
singleDetails
:
{
singleDetails
:
{
lot
:
''
,
lot
:
''
,
...
@@ -173,22 +192,31 @@ export default {
...
@@ -173,22 +192,31 @@ export default {
methods
:
{
methods
:
{
// TODO: 获取所选行详情信息操作
// TODO: 获取所选行详情信息操作
handleDetail
(
row
)
{
handleDetail
(
row
)
{
this
.
singleDetails
=
this
.
formReset
this
.
singleDetails
=
row
this
.
singleDetails
=
row
this
.
title
=
'详情信息'
this
.
title
=
'详情信息'
this
.
openDetails
=
!
this
.
openDetails
this
.
openDetails
=
!
this
.
openDetails
},
},
/** 查询角色列表 */
/** 查询角色列表 */
getList
()
{
getList
()
{
this
.
loading
=
true
// 去除字段默认为0导致0对应的未盘点无法使用问题
listdevice
(
this
.
queryParams
).
then
(
let
flag
=
0
;
response
=>
{
this
.
loading
=
true
;
if
(
this
.
queryParams
.
status
===
undefined
||
this
.
queryParams
.
status
===
''
)
{
flag
=
1
;
}
if
(
flag
===
1
)
{
this
.
queryParams
.
status
=
-
1
}
listdevice
(
this
.
queryParams
).
then
(
response
=>
{
console
.
log
(
'list'
,
response
)
console
.
log
(
'list'
,
response
)
this
.
equipmentList
=
response
.
rows
this
.
equipmentList
=
response
.
rows
this
.
total
=
response
.
total
this
.
total
=
response
.
total
this
.
loading
=
false
this
.
loading
=
false
})
if
(
flag
==
1
)
{
this
.
queryParams
.
status
=
undefined
flag
=
0
;
}
}
)
},
},
// 取消按钮
// 取消按钮
cancel
()
{
cancel
()
{
...
...
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