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

@@ -144,16 +144,17 @@
@current-change="handleCurrentChange"/>
</div>
</el-card>
<el-dialog :visible.sync="dialogFormVisible" title="图片" center style="" width="600px">
<div class="demo-image__lazy">
<el-image v-for="url in urls" :key="url" :src="url" lazy/>
</div>
<el-dialog :visible.sync="dialogFormVisible" title="图片" center style="" width="1100px">
<viewer>
<img v-for="url in urls" :key="url" :src="url" lazy style="width: 1000px;height: 700px">
</viewer>
</el-dialog>
</div>
</template>
<script>
import { initProject, searchgroup, selecttable, QualityType } from '@/api/Assembly/QualityInspectionInformationInquiry'
import { initProject, searchgroup, selecttable, QualityType, searchPic } from '@/api/Assembly/QualityInspectionInformationInquiry'
import { readFile } from '@/utils/request'
// import { mapGetters } from 'vuex'
export default {
data() {
@@ -163,6 +164,7 @@ export default {
startTime: '',
endTime: '',
urls: [],
URL: '',
number: '',
groupNumberValue: '',
groupNumber: [],
@@ -234,6 +236,15 @@ export default {
},
viewPicture(row) {
this.dialogFormVisible = true
console.log(row)
searchPic(row.质检流水号).then(response => {
console.log(response.data, 222)
this.urls = []
// this.URL = readFile + response.data[0].文件标识 + '.' + response.data[0].文件后缀
for (let i = 0; i < response.data.length; i++) {
this.urls.push(readFile + response.data[i].文件标识 + '.' + response.data[i].文件后缀)
}
})
},
// 分页
handleSizeChange(val) {

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

View File

@@ -431,6 +431,7 @@ export default {
body.append(printNode)
window.print()
body.children().not('script').show()
body.children().not('#app').hide()
printNode.remove()
},
handleSizeChange1(val) {