更新
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user