From fee63aa9968af497d887a33d0be3538660daddf8 Mon Sep 17 00:00:00 2001 From: wangxy Date: Tue, 23 Nov 2021 14:35:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=93=E5=8D=B0=E8=AE=B0=E5=BD=95=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/printer/printheadtab.vue | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/src/views/system/printer/printheadtab.vue b/src/views/system/printer/printheadtab.vue index 840af9f..21cdde1 100644 --- a/src/views/system/printer/printheadtab.vue +++ b/src/views/system/printer/printheadtab.vue @@ -10,6 +10,16 @@ style="width: 200px" /> + + + + 搜索 @@ -114,7 +124,8 @@ export default { queryParams: { pageNumber: 1, pageSize: 10, - LabelId: undefined + LabelId: undefined, + BusinessObjId: undefined, }, // 明细表数据 form: [], @@ -127,7 +138,10 @@ export default { }, created() { this.getStanderOne({ statid: 'PrintHead-Status' }).then(res => { - this.statusArray = res.data + this.statusArray = res.data.map(el => { + el['stdeftab-stdeftyp'] = Number(el['stdeftab-stdeftyp']) + return el + }) }) }, mounted() { @@ -162,6 +176,7 @@ export default { /** 搜索按钮操作 */ handleQuery() { if (this.queryParams.LabelId === '') this.queryParams.LabelId = undefined + if (this.queryParams.BusinessObjId === '') this.queryParams.BusinessObjId = undefined this.queryParams.pageNumber = 1 this.getList() }, @@ -172,6 +187,7 @@ export default { cancelButtonText: '取消', type: 'warning' }).then(() => { + row['LabelHead-Status'] = 0 updatePrinthead(row).then(response => { this.getList() this.msgSuccess('提交成功')