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
dd6aa462
Commit
dd6aa462
authored
Jul 28, 2023
by
吴志坤
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
基础信息
parent
6482517e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
48 deletions
+41
-48
basicInfo.js
src/api/equipment/basicInfo.js
+1
-1
basicInfo.vue
src/views/equipment/basicInfo.vue
+40
-47
No files found.
src/api/equipment/basicInfo.js
View file @
dd6aa462
...
@@ -3,7 +3,7 @@ import Qs from 'qs'
...
@@ -3,7 +3,7 @@ import Qs from 'qs'
// 查询基础信息列表
// 查询基础信息列表
export
function
listBasicInfo
(
query
)
{
export
function
listBasicInfo
(
query
)
{
return
request
({
return
request
({
url
:
'/wbbaseinfo/queryWbBaseinfo
s
'
,
url
:
'/wbbaseinfo/queryWbBaseinfo
ByPagination
'
,
method
:
'get'
,
method
:
'get'
,
params
:
query
params
:
query
})
})
...
...
src/views/equipment/basicInfo.vue
View file @
dd6aa462
<
template
>
<
template
>
<div
class=
"app-container"
>
<div
class=
"app-container"
>
<el-form
ref=
"queryForm"
style=
"padding: 0 0 0 10px"
:model=
"queryParams"
:inline=
"true"
>
<el-form
ref=
"queryForm"
style=
"padding: 0 0 0 10px"
:model=
"queryParams"
:inline=
"true"
>
<el-form-item
label=
"pn"
prop=
"
roleName
"
>
<el-form-item
label=
"pn"
prop=
"
pgx
"
>
<el-input
<el-input
v-model=
"queryParams.
roleName
"
v-model=
"queryParams.
pn
"
placeholder=
"请输入pn"
placeholder=
"请输入pn"
clearable
clearable
:maxlength=
"30"
:maxlength=
"30"
...
@@ -12,9 +12,9 @@
...
@@ -12,9 +12,9 @@
@
keyup
.
enter
.
native=
"handleQuery"
@
keyup
.
enter
.
native=
"handleQuery"
/>
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"ptype"
prop=
"
roleKey
"
>
<el-form-item
label=
"ptype"
prop=
"
pgx
"
>
<el-input
<el-input
v-model=
"queryParams.
roleKey
"
v-model=
"queryParams.
ptype
"
placeholder=
"请输入ptype"
placeholder=
"请输入ptype"
clearable
clearable
size=
"small"
size=
"small"
...
@@ -22,22 +22,15 @@
...
@@ -22,22 +22,15 @@
@
keyup
.
enter
.
native=
"handleQuery"
@
keyup
.
enter
.
native=
"handleQuery"
/>
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"pgx"
prop=
"
flag
"
>
<el-form-item
label=
"pgx"
prop=
"
pgx
"
>
<el-
selec
t
<el-
inpu
t
v-model=
"queryParams.
flag
"
v-model=
"queryParams.
pgx
"
placeholder=
"请
选择pgx
"
placeholder=
"请
输入ptype
"
clearable
clearable
size=
"small"
size=
"small"
style=
"width: 150px"
style=
"width: 150px"
>
@
keyup
.
enter
.
native=
"handleQuery"
<el-option
v-for=
"dict in statusOptions"
:key=
"dict.dictValue"
:label=
"dict.dictLabel"
:value=
"dict.dictValue"
/>
/>
</el-select>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
type=
"primary"
size=
"small"
@
click=
"handleQuery"
>
查询
</el-button>
<el-button
type=
"primary"
size=
"small"
@
click=
"handleQuery"
>
查询
</el-button>
</el-form-item>
</el-form-item>
...
@@ -57,7 +50,7 @@
...
@@ -57,7 +50,7 @@
>
导出
</el-button>
>
导出
</el-button>
</el-form-item>
</el-form-item>
</div>
</div>
</el-form>
</el-form-item>
</el-form>
<div
class=
"placeholder"
/>
<div
class=
"placeholder"
/>
<div
style=
"padding:5px 10px"
>
<div
style=
"padding:5px 10px"
>
<div
class=
"mb12 font-small-bold"
>
设备基本信息列表
</div>
<div
class=
"mb12 font-small-bold"
>
设备基本信息列表
</div>
...
@@ -129,8 +122,8 @@
...
@@ -129,8 +122,8 @@
<pagination
<pagination
v-show=
"total>0"
v-show=
"total>0"
:total=
"total"
:total=
"total"
:page
.
sync=
"queryParams.page
Num
"
:page
.
sync=
"queryParams.page"
:limit
.
sync=
"queryParams.
pageSize
"
:limit
.
sync=
"queryParams.
rows
"
@
pagination=
"getList"
@
pagination=
"getList"
/>
/>
...
@@ -144,19 +137,19 @@
...
@@ -144,19 +137,19 @@
<el-input
v-model
.
trim=
"form.ptype"
show-word-limit
:maxlength=
"30"
placeholder=
"请输入ptype"
/>
<el-input
v-model
.
trim=
"form.ptype"
show-word-limit
:maxlength=
"30"
placeholder=
"请输入ptype"
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"pgx"
prop=
"pgx"
>
<el-form-item
label=
"pgx"
prop=
"pgx"
>
<el-input-number
v-model=
"form.pgx"
style=
"width: 100%"
controls-position=
"right"
:min=
"0"
placeholder=
"请输入pgx"
/>
<el-input-number
v-model=
"form.pgx"
style=
"width: 100%"
controls-position=
"right"
:min=
"0"
placeholder=
"请输入pgx"
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"prank"
prop=
"prank"
>
<el-form-item
label=
"prank"
prop=
"prank"
>
<el-input-number
v-model=
"form.pgx"
style=
"width: 100%"
controls-position=
"right"
:min=
"0"
placeholder=
"请输入prank"
/>
<el-input-number
v-model=
"form.pgx"
style=
"width: 100%"
controls-position=
"right"
:min=
"0"
placeholder=
"请输入prank"
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"pissb"
prop=
"pissb"
>
<el-form-item
label=
"pissb"
prop=
"pissb"
>
<el-input-number
v-model=
"form.pissb"
style=
"width: 100%"
controls-position=
"right"
:min=
"0"
placeholder=
"请输入pissb"
/>
<el-input-number
v-model=
"form.pissb"
style=
"width: 100%"
controls-position=
"right"
:min=
"0"
placeholder=
"请输入pissb"
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"psm"
prop=
"psm"
>
<el-form-item
label=
"psm"
prop=
"psm"
>
<el-input-number
v-model=
"form.psm"
style=
"width: 100%"
controls-position=
"right"
:min=
"0"
placeholder=
"请输入psm"
/>
<el-input-number
v-model=
"form.psm"
style=
"width: 100%"
controls-position=
"right"
:min=
"0"
placeholder=
"请输入psm"
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"psy"
prop=
"psy"
>
<el-form-item
label=
"psy"
prop=
"psy"
>
<el-input-number
v-model=
"form.psy"
style=
"width: 100%"
controls-position=
"right"
:min=
"0"
placeholder=
"请输入psy"
/>
<el-input-number
v-model=
"form.psy"
style=
"width: 100%"
controls-position=
"right"
:min=
"0"
placeholder=
"请输入psy"
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"备注"
>
<el-form-item
label=
"备注"
>
<el-input
v-model
.
trim=
"form.remark"
maxlength=
"200"
show-word-limit
type=
"textarea"
placeholder=
"请输入内容"
/>
<el-input
v-model
.
trim=
"form.remark"
maxlength=
"200"
show-word-limit
type=
"textarea"
placeholder=
"请输入内容"
/>
...
@@ -255,8 +248,8 @@ export default {
...
@@ -255,8 +248,8 @@ export default {
tOptions
:
[],
tOptions
:
[],
// 查询参数
// 查询参数
queryParams
:
{
queryParams
:
{
page
Num
:
1
,
page
:
1
,
pageSize
:
10
,
rows
:
10
,
roleName
:
undefined
,
roleName
:
undefined
,
roleKey
:
undefined
,
roleKey
:
undefined
,
flag
:
undefined
flag
:
undefined
...
@@ -309,8 +302,8 @@ export default {
...
@@ -309,8 +302,8 @@ export default {
this
.
loading
=
true
this
.
loading
=
true
listBasicInfo
(
this
.
queryParams
).
then
(
listBasicInfo
(
this
.
queryParams
).
then
(
response
=>
{
response
=>
{
this
.
basicInfoList
=
response
.
data
this
.
basicInfoList
=
response
.
rows
this
.
total
=
response
.
data
.
length
this
.
total
=
response
.
total
this
.
loading
=
false
this
.
loading
=
false
}
}
)
)
...
@@ -423,7 +416,7 @@ export default {
...
@@ -423,7 +416,7 @@ export default {
},
},
/** 查询按钮操作 */
/** 查询按钮操作 */
handleQuery
()
{
handleQuery
()
{
this
.
queryParams
.
page
Num
=
1
this
.
queryParams
.
page
=
1
this
.
getList
()
this
.
getList
()
},
},
/** 重置按钮操作 */
/** 重置按钮操作 */
...
...
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