|
|
@ -132,20 +132,22 @@
|
|
|
|
cardIds.forEach(v => {
|
|
|
|
cardIds.forEach(v => {
|
|
|
|
let data = cardList.filter(i => i.objid === v)
|
|
|
|
let data = cardList.filter(i => i.objid === v)
|
|
|
|
card += `
|
|
|
|
card += `
|
|
|
|
<div class="card" ${data.length >2 ? `style="width:calc(98% - 2px)"`:''}>
|
|
|
|
<div class="card" ${data.length > 2 ? `style="width:calc(98% - 2px)"` : ''}>
|
|
|
|
<div class="left" ${data.length >2 ? `style="width:calc(25% - 2px)"`:''}>
|
|
|
|
<div class="left" ${data.length > 2 ? `style="width:calc(25% - 2px)"` : ''}>
|
|
|
|
<div style="height: 100%;display: flex; flex-direction: column;justify-content: space-between;">
|
|
|
|
<div style="height: 100%;display: flex; flex-direction: column;justify-content: space-between;">
|
|
|
|
<div><span style="display: inline-block;width: 70px;text-align: right">机坪名称: </span><span style="display: inline-block;width:12px; "> </span>${data[0].areaName || ''}</div>
|
|
|
|
<div><span style="display: inline-block;width: 70px;text-align: right">机坪名称: </span><span style="display: inline-block;width:12px; "> </span>${data[0].areaName || ''}</div>
|
|
|
|
<div><span style="display: inline-block;width: 70px;text-align: right">机位码: </span><span style="display: inline-block;width:12px; "> </span>${data[0].planePosition || ''}</div>
|
|
|
|
<div><span style="display: inline-block;width: 70px;text-align: right">机位码: </span><span style="display: inline-block;width:12px; "> </span>${data[0].planePosition || ''}</div>
|
|
|
|
|
|
|
|
<div><span style="display: inline-block;width: 70px;text-align: right">扫码数量: </span><span style="display: inline-block;width:12px; "> </span>${data[0].sanQty || '0'}</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div><span style="display: inline-block;width: 70px;text-align: right">巡检状态: </span><span style="display: inline-block;width:12px; "> </span>${data[0].taskState || ''}</div>
|
|
|
|
<div><span style="display: inline-block;width: 70px;text-align: right">巡检状态: </span><span style="display: inline-block;width:12px; "> </span>${data[0].taskState || ''}</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="right" ${data.length >2 ? `style="width:calc(75% - 2px)"`:''}>
|
|
|
|
<div class="right" ${data.length > 2 ? `style="width:calc(75% - 2px)"` : ''}>
|
|
|
|
${
|
|
|
|
${
|
|
|
|
data.map(vv => {
|
|
|
|
data.map(vv => {
|
|
|
|
return `
|
|
|
|
return `
|
|
|
|
<div class="image1" style="width:calc(${100 / data.length}% - ${data.length}px)">
|
|
|
|
<div class="image1" style="width:calc(${100 / data.length}% - ${data.length}px)">
|
|
|
|
${vv.imgPath ? `<img src="${vv.imgPath }" alt="">` : ''}
|
|
|
|
${vv.imgPath ? `<img src="${vv.imgPath}" alt="">` : ''}
|
|
|
|
</div>`
|
|
|
|
</div>`
|
|
|
|
}).join('')
|
|
|
|
}).join('')
|
|
|
|
}
|
|
|
|
}
|
|
|
|