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',