更新
This commit is contained in:
@@ -122,6 +122,15 @@
|
|||||||
{{ scope.row.备注 }}
|
{{ scope.row.备注 }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</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>
|
</el-table>
|
||||||
<div class="block">
|
<div class="block">
|
||||||
<el-pagination
|
<el-pagination
|
||||||
@@ -135,6 +144,11 @@
|
|||||||
@current-change="handleCurrentChange"/>
|
@current-change="handleCurrentChange"/>
|
||||||
</div>
|
</div>
|
||||||
</el-card>
|
</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>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -148,12 +162,15 @@ export default {
|
|||||||
machineNumber: [],
|
machineNumber: [],
|
||||||
startTime: '',
|
startTime: '',
|
||||||
endTime: '',
|
endTime: '',
|
||||||
|
urls: [],
|
||||||
|
number: '',
|
||||||
groupNumberValue: '',
|
groupNumberValue: '',
|
||||||
groupNumber: [],
|
groupNumber: [],
|
||||||
QualityTypeNumber: [],
|
QualityTypeNumber: [],
|
||||||
QualityTypeValue: '',
|
QualityTypeValue: '',
|
||||||
tableData1: [],
|
tableData1: [],
|
||||||
SpareParts: '',
|
SpareParts: '',
|
||||||
|
dialogFormVisible: false,
|
||||||
loading: false,
|
loading: false,
|
||||||
total: null, // 总条数
|
total: null, // 总条数
|
||||||
pageSize: 10, // 每页显示条数
|
pageSize: 10, // 每页显示条数
|
||||||
@@ -161,7 +178,6 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.initProject()
|
this.initProject()
|
||||||
@@ -216,6 +232,9 @@ export default {
|
|||||||
this.total = response.data.total
|
this.total = response.data.total
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
viewPicture(row) {
|
||||||
|
this.dialogFormVisible = true
|
||||||
|
},
|
||||||
// 分页
|
// 分页
|
||||||
handleSizeChange(val) {
|
handleSizeChange(val) {
|
||||||
this.pageCurrent = 1
|
this.pageCurrent = 1
|
||||||
|
|||||||
Reference in New Issue
Block a user