Commit 6cce4175 authored by CenXinYi's avatar CenXinYi

优化重置

Signed-off-by: 's avatarCenXinYi <2810162984@qq.com>
parent 7396c5eb
......@@ -37,12 +37,12 @@
<el-button style="padding: 8px 7px;" icon="el-icon-refresh" size="small" @click="resetQuery">重置</el-button>
</el-form-item>
<div style="float: right">
<el-form-item>
<el-button style="padding: 8px 7px;" :type="typePrimary" :size="smallSize" :icon="addIcon" @click="checkType">开始盘点 </el-button>
</el-form-item>
<el-form-item>
<el-button style="padding: 8px 7px;" type="danger" :size="smallSize" @click="deleteByType" icon="el-icon-minus">结束盘点 </el-button>
</el-form-item>
......@@ -165,7 +165,7 @@
</el-col>
</el-row>
<el-row>
<el-col :span="12">
......@@ -198,7 +198,7 @@
</el-form-item>
</el-col>
<el-col :span="12">
</el-col>
</el-row>
<el-row>
......@@ -213,7 +213,7 @@
</el-form-item>
</el-col>
</el-row>
</el-form>
</el-dialog>
<el-dialog
......@@ -223,7 +223,7 @@
size="50%"
>
<el-table v-loading="loading" border :data="tableList" @selection-change="handleSelectionChange" style="padding: 0 10px;">
<el-table-column type="index" label="序号" width="80" />
<el-table-column label="pn" prop="pn" >
......@@ -388,7 +388,7 @@ export default {
ptype: 2,
pstatus:0,
delFlag:0
},
// 表单参数
form: {
......
......@@ -430,6 +430,11 @@ export default {
next()
},
created() {
if (this.$store.getters.searchParams[this.$route.path]) {
const { searchParams } = this.$store.getters; const { path } = this.$route
const param = JSON.parse(searchParams[path]) // 保留着的查询条件
this.queryParams = { ...param }
}
this.getList()
},
mounted() {
......@@ -483,6 +488,7 @@ export default {
/** TODO: 重置按钮操作 */
resetQuery() {
this.queryEntity = {
tableSortMark: 0,
entity: {
pn: '',
lot: '',
......
......@@ -389,6 +389,7 @@ export default {
/** TODO: 重置按钮操作 */
resetQuery() {
this.queryEntity = {
tableSortMark: 0,
entity: {
pn: '',
lot: '',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment