diff --git a/src/views/etl/index.vue b/src/views/etl/index.vue index 98090f1..6818781 100644 --- a/src/views/etl/index.vue +++ b/src/views/etl/index.vue @@ -26,6 +26,8 @@ @@ -65,6 +67,7 @@ data() { return { item:{}, // 当前要操作的 + statusHeadArray: [], // 状态数组集合 headers: [ 'TaskHead-TaskId', 'TaskHead-SourceDB', @@ -84,7 +87,25 @@ }, } }, + created() { + // 获取状态 + this.getStanderOne({ 'StatId': 'TaskHead-Status' }).then(res => { + this.statusHeadArray = res.data || [] + }) + }, methods: { + // 标准定义字段转换 + orderTypeTrans (value) { + if (this.statusHeadArray.length > 0) { + let fieldValue = '' + this.statusHeadArray.forEach(el => { + if (value === el['Stdef-StdefTyp']) { + fieldValue = el['Stdef-Bez'] + } + }) + return fieldValue + } + }, // 任务配置项 configuration(item){ this.item=item;