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('提交成功')