This commit is contained in:
liushuai
2019-06-10 20:00:12 +08:00
parent 9381072e5f
commit ab0eec8d73
6 changed files with 39 additions and 11 deletions

View File

@@ -588,6 +588,7 @@ export default {
body.append(printNode)
window.print()
body.children().not('script').show()
body.children().not('#app').hide()
printNode.remove()
}
},
@@ -1424,7 +1425,12 @@ export default {
})
},
searchData() {
searchManufactor(this.input).then(response => {
if (this.input !== '') {
this.check = 1
} else {
this.check = 0
}
searchManufactor(this.check, this.input).then(response => {
this.List2 = response.data
})
},
@@ -1487,7 +1493,7 @@ export default {
tr[i].setAttribute('class', 'tableData')
tr[i].innerHTML = '<td></td>' + '<td colspan="5"></td>' + '<td colspan="2"></td>' + '<td colspan="2"></td>' +
'<td colspan="9" style="text-align: left;"></td>' + '<td colspan="1"></td>' + '<td></td><td></td><td></td><td></td><td colspan="2"></td><td colspan="2"></td>'
document.getElementById('tableHead').after(tr[i])
$('#tableHead').after(tr[i])
}
for (let j = 0; j < this.returns.length; j++) {
document.getElementsByClassName('tableData')[j].children[0].innerHTML = j + 1