From 29c4a28f8dd507744b1a212a65976cfc20118e94 Mon Sep 17 00:00:00 2001 From: "DESKTOP-JT599KC\\Luan Shanshan" Date: Thu, 13 Jan 2022 10:50:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=93=E5=8D=B0=E6=9C=BA=E5=AE=9A=E4=B9=89?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/printer/printertab.vue | 45 +++++++++++++++++++++++-- 1 file changed, 43 insertions(+), 2 deletions(-) diff --git a/src/views/system/printer/printertab.vue b/src/views/system/printer/printertab.vue index 45bf29b..02db0fb 100644 --- a/src/views/system/printer/printertab.vue +++ b/src/views/system/printer/printertab.vue @@ -26,6 +26,8 @@ {{ getValue(scope.row['Printer-PlantNr']) }} {{ parseTime(scope.row[item]) }} {{ parseTime(scope.row[item]) }} + {{ typeArrayTrans(scope.row[item]) }} + {{ modeArrayTrans(scope.row[item]) }} {{ scope.row[item] === 1 ? '是' : '否' }} {{ scope.row[item] }} @@ -55,8 +57,8 @@ :limit.sync="queryParams['_pageSize']" @pagination="getList" /> - - + + @@ -96,6 +98,18 @@ + + + + + + + @@ -150,6 +164,7 @@ export default { isAdd: false, // 打印类型 typeArray: [], + modeArray: [], // 遍历表头 headers: [], // 遮罩层 @@ -182,9 +197,34 @@ export default { this.getStanderOne({ statid: 'Printer-PrinterType' }).then(res => { this.typeArray = res.data }) + this.getStanderOne({ statid: 'Printer-PrintMode' }).then(res => { + this.modeArray = res.data + }) this.getList() }, methods: { + modeArrayTrans(value) { + if (this.modeArray.length > 0) { + let fieldValue = '' + this.modeArray.forEach((el) => { + if (value === el['stdeftab-stdeftyp']) { + fieldValue = el['stdeftab-bez'] + } + }) + return fieldValue + } + }, + typeArrayTrans(value) { + if (this.typeArray.length > 0) { + let fieldValue = '' + this.typeArray.forEach((el) => { + if (value === el['stdeftab-stdeftyp']) { + fieldValue = el['stdeftab-bez'] + } + }) + return fieldValue + } + }, /** 查询角色列表 */ getList() { this.loading = true @@ -198,6 +238,7 @@ export default { 'Printer-PrinterId', 'Printer-Descr', 'Printer-PrinterType', + 'Printer-PrintMode', 'Printer-PrinterName', 'Printer-IP', 'Printer-Active', -- 2.30.1.windows.1