包装图片变为左上角

This commit is contained in:
2024-06-27 11:22:54 +08:00
parent 96e0791f38
commit 72fd671c01

View File

@@ -502,9 +502,10 @@
<tr> <tr>
<td>标签参考图片</td> <td>标签参考图片</td>
<td> <td>
<span> <span @click="openImageViewer">
<el-image ref="elImageRef" style="width: 40px; height: 40px" :src="imageUrl" :preview-src-list="[imageUrl]"> <el-image ref="elImageRef" style="width: 40px; height: 40px" :src="imageUrl" >
</el-image> </el-image>
<el-image-viewer style="width: 60%;height: 80%;" v-if="showViewer" :on-close="closeImageViewer" :url-list="[imageUrl]" />
</span> </span>
</td> </td>
<td>开始时间</td> <td>开始时间</td>
@@ -631,11 +632,14 @@
GetQcQualityStatisticsFirstStartTime, GetQcQualityStatisticsFirstStartTime,
} from '@/api/qualityManagement/firstFQC.js' } from '@/api/qualityManagement/firstFQC.js'
import { convertToIncomingInspectionData } from '@/api/wmsManagement/wmFgentryInspect.js' import { convertToIncomingInspectionData } from '@/api/wmsManagement/wmFgentryInspect.js'
import ElImageViewer from 'element-ui/packages/image/src/image-viewer'
export default { export default {
name: 'thirtyFQC', name: 'thirtyFQC',
components: { ElImageViewer },
data() { data() {
return { return {
imgBaseUrl: 'http://192.168.60.251:9888/chfs/shared/partnumber/', imgBaseUrl: 'http://192.168.60.251:9888/chfs/shared/partnumber/',
showViewer: true,
paint: [], paint: [],
device: [], device: [],
blank: [], // 毛坯 blank: [], // 毛坯
@@ -681,7 +685,7 @@
watch: { watch: {
// 工单变动 // 工单变动
'CurrentWorkorder.clientWorkorder'(newValue, oldValue) { 'CurrentWorkorder.clientWorkorder'(newValue, oldValue) {
this.showBigImageView(); // this.showBigImageView();
this.getWorkOrderStartTime(newValue); this.getWorkOrderStartTime(newValue);
this.getWorkOrderInListStatus(newValue); this.getWorkOrderInListStatus(newValue);
this.handlerSyncDataBoard(newValue); this.handlerSyncDataBoard(newValue);
@@ -1227,11 +1231,17 @@
} }
}, },
// 大图触发 // 大图触发
showBigImageView() { // showBigImageView() {
this.$nextTick(() => { // this.$nextTick(() => {
this.$refs.elImageRef.clickHandler(); // this.$refs.elImageRef.clickHandler();
}) // })
// },
openImageViewer() {
this.showViewer = true;
},
closeImageViewer() {
this.showViewer = false;
}, },
// 获取开始时间 // 获取开始时间
getWorkOrderStartTime(workOrderId) { getWorkOrderStartTime(workOrderId) {
@@ -1292,21 +1302,23 @@
}, },
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
span{ span {
font-weight: 700 font-weight: 700
} }
.board-box { .board-box {
background-color:#032169; background-color: #032169;
} }
.border-title{
color:white !important; .border-title {
color: white !important;
} }
.board-text{
.board-text {
// font-weight: 600 !important; // font-weight: 600 !important;
} }