This commit is contained in:
liushuai
2019-06-04 10:46:01 +08:00
parent cc31326251
commit 0178681961

View File

@@ -122,6 +122,15 @@
{{ scope.row.备注 }}
</template>
</el-table-column>
<el-table-column label="操作" fixed="right" align="center" width="100">
<template slot-scope="scope">
<el-button
size="mini"
type="primary"
icon="el-icon-search"
@click="viewPicture(scope.row)">查看图片</el-button>
</template>
</el-table-column>
</el-table>
<div class="block">
<el-pagination
@@ -135,6 +144,11 @@
@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>
</div>
</template>
@@ -148,12 +162,15 @@ export default {
machineNumber: [],
startTime: '',
endTime: '',
urls: [],
number: '',
groupNumberValue: '',
groupNumber: [],
QualityTypeNumber: [],
QualityTypeValue: '',
tableData1: [],
SpareParts: '',
dialogFormVisible: false,
loading: false,
total: null, // 总条数
pageSize: 10, // 每页显示条数
@@ -161,7 +178,6 @@ export default {
}
},
created() {
},
mounted() {
this.initProject()
@@ -216,6 +232,9 @@ export default {
this.total = response.data.total
})
},
viewPicture(row) {
this.dialogFormVisible = true
},
// 分页
handleSizeChange(val) {
this.pageCurrent = 1