| | |
| | | title: '生产基地', |
| | | field: 'productionBase', |
| | | width: 150, |
| | | fixed: 'left' |
| | | fixed: 'left', |
| | | type: 'html' |
| | | }, |
| | | { |
| | | title: '订单需求', |
| | |
| | | title: '是否满足', |
| | | field: 'isSatisfy', |
| | | width: 150, |
| | | type: 'html' |
| | | }, |
| | | { title: '操作', width: 100, fixed:"right", slots: { default: 'buttons' } } |
| | | ]); |
| | |
| | | function getList() { |
| | | loading.value = true; |
| | | query(queryParams.value).then(response => { |
| | | dataList.value = response.rows; |
| | | let responseData = response.rows; |
| | | // exportData.value = response.rows; |
| | | dataList.value.forEach(item=>{ |
| | | responseData.forEach(item=>{ |
| | | let data = []; |
| | | data.push(item.year); |
| | | data.push(item.month); |
| | |
| | | data.push(item.requirementDayWeldSeam); |
| | | data.push(item.productionDayWeldSeam); |
| | | data.push(item.isSatisfy); |
| | | |
| | | item.productionBase = item.isSatisfy === '否' ? `<div class='el-badge'><sup class="el-badge__content is-fixed is-dot" style="right: 2px; top: 2px;"></sup>${item.productionBase}</div>` : item.productionBase |
| | | item.isSatisfy = item.isSatisfy === '否' ? `<font color='red'>${item.isSatisfy}</font>` : item.isSatisfy |
| | | exportData.value.push(data); |
| | | }) |
| | | dataList.value = responseData; |
| | | loading.value = false; |
| | | }); |
| | | } |