设备管理-检查项维护(搜索优化)

yangwl
wws 1 year ago
parent 88215db272
commit 0c3b2ba35d

@ -1,7 +1,7 @@
<template> <template>
<div class="app-container"> <div class="app-container">
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px"> <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
<el-form-item label="检查项编码" prop="itemCode"> <el-form-item label-width="90px" label="检查项编码" prop="itemCode">
<el-input <el-input
v-model="queryParams.itemCode" v-model="queryParams.itemCode"
placeholder="请输入检查项编码" placeholder="请输入检查项编码"
@ -9,7 +9,7 @@
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
</el-form-item> </el-form-item>
<el-form-item label="检查项" prop="itemName"> <el-form-item label-width="60px" label="检查项" prop="itemName">
<el-input <el-input
v-model="queryParams.itemName" v-model="queryParams.itemName"
placeholder="请输入检查项名称" placeholder="请输入检查项名称"
@ -17,7 +17,7 @@
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
</el-form-item> </el-form-item>
<el-form-item label="检查项方法/工具" prop="itemMethod"> <el-form-item label-width="120px" label="检查项方法/工具" prop="itemMethod">
<el-input <el-input
v-model="queryParams.itemMethod" v-model="queryParams.itemMethod"
placeholder="请输入检查项方法/工具" placeholder="请输入检查项方法/工具"
@ -35,6 +35,7 @@
</el-form-item> </el-form-item>
<el-form-item v-if="false" label="维护类型名称" prop="itemTypeName"> <el-form-item v-if="false" label="维护类型名称" prop="itemTypeName">
<el-input <el-input
class="my-select-input"
v-model="queryParams.itemTypeName" v-model="queryParams.itemTypeName"
placeholder="请输入维护类型名称" placeholder="请输入维护类型名称"
clearable clearable
@ -89,6 +90,15 @@
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
</el-form-item> </el-form-item>
<el-form-item label="创建人" prop="createdBy">
<el-input
class="my-select-input"
v-model="queryParams.createdBy"
placeholder="请输入创建人"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="创建时间" prop="createdTime"> <el-form-item label="创建时间" prop="createdTime">
<el-date-picker <el-date-picker
v-model="queryParams.createdTimeArray" v-model="queryParams.createdTimeArray"
@ -98,32 +108,31 @@
range-separator="至" range-separator="至"
start-placeholder="开始日期" start-placeholder="开始日期"
end-placeholder="结束日期" end-placeholder="结束日期"
value-format="yyyy-MM-dd"
:picker-options="pickerOptions"> :picker-options="pickerOptions">
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
<el-form-item label="创建人" prop="createdBy"> <el-form-item label="更新人" prop="updatedBy">
<el-input <el-input
v-model="queryParams.createdBy" class="my-select-input"
placeholder="请输入创建人" v-model="queryParams.updatedBy"
clearable placeholder="请输入更新人"
@keyup.enter.native="handleQuery" clearable
/> @keyup.enter.native="handleQuery"
</el-form-item> />
</el-form-item>
<el-form-item label="更新时间" prop="updatedTime"> <el-form-item label="更新时间" prop="updatedTime">
<el-date-picker clearable <el-date-picker
v-model="queryParams.updatedTime" v-model="queryParams.updateTimeArray"
type="date" type="daterange"
value-format="yyyy-MM-dd" align="right"
placeholder="请选择更新时间"> unlink-panels
</el-date-picker> range-separator="至"
</el-form-item> start-placeholder="开始日期"
<el-form-item label="更新人" prop="updatedBy"> end-placeholder="结束日期"
<el-input value-format="yyyy-MM-dd"
v-model="queryParams.updatedBy" :picker-options="pickerOptions">
placeholder="请输入更新人" </el-date-picker>
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery"></el-button> <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery"></el-button>
@ -187,7 +196,7 @@
<el-table-column label="维护类型编码" align="center" prop="itemType" /> <el-table-column label="维护类型编码" align="center" prop="itemType" />
<el-table-column label="维护类型名称" align="center" prop="itemTypeName" /> <el-table-column label="维护类型名称" align="center" prop="itemTypeName" />
<el-table-column label="检查项备注" align="center" prop="itemRemark" /> <el-table-column label="检查项备注" align="center" prop="itemRemark" />
<el-table-column label="工厂" align="center" prop="factory" /> <el-table-column v-if="false" label="工厂" align="center" prop="factory" />
<el-table-column v-if="false" label="备用字段1" align="center" prop="attr1" /> <el-table-column v-if="false" label="备用字段1" align="center" prop="attr1" />
<el-table-column v-if="false" label="备用字段2" align="center" prop="attr2" /> <el-table-column v-if="false" label="备用字段2" align="center" prop="attr2" />
<el-table-column v-if="false" label="备用字段3" align="center" prop="attr3" /> <el-table-column v-if="false" label="备用字段3" align="center" prop="attr3" />
@ -204,7 +213,7 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="更新人" align="center" prop="updatedBy" /> <el-table-column label="更新人" align="center" prop="updatedBy" />
<el-table-column label="操作" align="center" class-name="small-padding fixed-width"> <el-table-column label="操作" align="center" class-name="small-padding fixed-width" fixed="right">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
size="mini" size="mini"
@ -369,6 +378,7 @@ export default {
updatedTime: null, updatedTime: null,
updatedBy: null, updatedBy: null,
createdTimeArray: [], createdTimeArray: [],
updateTimeArray: [],
}, },
// //
form: {}, form: {},
@ -446,7 +456,7 @@ export default {
createdTime: null, createdTime: null,
createdBy: null, createdBy: null,
updatedTime: null, updatedTime: null,
updatedBy: null updatedBy: null,
}; };
this.resetForm("form"); this.resetForm("form");
}, },
@ -458,6 +468,9 @@ export default {
/** 重置按钮操作 */ /** 重置按钮操作 */
resetQuery() { resetQuery() {
this.resetForm("queryForm"); this.resetForm("queryForm");
//
this.queryParams.createdTimeArray = [];
this.queryParams.updateTimeArray = [];
this.handleQuery(); this.handleQuery();
}, },
// //
@ -521,3 +534,8 @@ export default {
} }
}; };
</script> </script>
<style>
.my-select-input{
width: 130px;
}
</style>

Loading…
Cancel
Save