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) {