fix conflicts
This commit is contained in:
@@ -162,50 +162,54 @@ export default {
|
||||
|
||||
buildProps(nameData) {
|
||||
return new Promise((resolve, reject) => {
|
||||
const dateArr = Array.from(
|
||||
new Set(
|
||||
nameData
|
||||
.map((item) => (item.tree == 1 ? item.name : undefined))
|
||||
.filter((v) => v)
|
||||
)
|
||||
);
|
||||
// 排个序
|
||||
dateArr.sort().forEach((date) => {
|
||||
this.tableProps.push({
|
||||
label: date,
|
||||
align: 'center',
|
||||
children: [
|
||||
{
|
||||
prop: date + '_eq_ct',
|
||||
label: '设备CT',
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
prop: date + '_eq_tt',
|
||||
label: '设备TT',
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
prop: date + '_pl_ct',
|
||||
label: '产线CT',
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
prop: date + '_pl_tt',
|
||||
label: '产线TT',
|
||||
align: 'center',
|
||||
},
|
||||
],
|
||||
try {
|
||||
const dateArr = Array.from(
|
||||
new Set(
|
||||
nameData
|
||||
.map((item) => (item.tree == 1 ? item.name : undefined))
|
||||
.filter((v) => v)
|
||||
)
|
||||
);
|
||||
// 排个序
|
||||
dateArr.sort().forEach((date) => {
|
||||
this.tableProps.push({
|
||||
label: date,
|
||||
align: 'center',
|
||||
children: [
|
||||
{
|
||||
prop: date + '_eq_ct',
|
||||
label: '设备CT',
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
prop: date + '_eq_tt',
|
||||
label: '设备TT',
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
prop: date + '_pl_ct',
|
||||
label: '产线CT',
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
prop: date + '_pl_tt',
|
||||
label: '产线TT',
|
||||
align: 'center',
|
||||
},
|
||||
],
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
resolve();
|
||||
resolve();
|
||||
} catch (err) {
|
||||
reject(err);
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
async buildTableData(data) {
|
||||
/** 处理 工段 分组 */
|
||||
const sectionList = data.map(item => {})
|
||||
const sectionList = data.map((item) => {});
|
||||
},
|
||||
|
||||
setRowSpan(arr) {
|
||||
|
||||
Reference in New Issue
Block a user