Browse Source

优化

pull/132/head
wangxy 3 years ago
parent
commit
64efc183d2
1 changed files with 9 additions and 5 deletions
  1. +9
    -5
      src/views/quality/defectdata.vue

+ 9
- 5
src/views/quality/defectdata.vue View File

@ -1,6 +1,6 @@
<template> <template>
<div class="defectdata-container" v-loading="loading"> <div class="defectdata-container" v-loading="loading">
<div style="height: 50px;">
<div style="height: 40px;margin-bottom:10px;">
<span>工位</span> <span>工位</span>
<el-select v-model="WorkPlaceNr" filterable placeholder="请选择"> <el-select v-model="WorkPlaceNr" filterable placeholder="请选择">
<el-option <el-option
@ -242,8 +242,8 @@ export default {
this.$message.error('请选择缺陷原因!') this.$message.error('请选择缺陷原因!')
return return
} }
this.pointCoord['x'] = left + (imgWrap.clientWidth - this.aciveImgObj['QM_View-Width']) / 2 - 8 + 40
this.pointCoord['y'] = top + (imgWrap.clientHeight - this.aciveImgObj['QM_View-Height']) / 2 - 8 + 40
this.pointCoord['x'] = left + (imgWrap.clientWidth - this.aciveImgObj['QM_View-Width'] + 55) / 2 - 8 + 40
this.pointCoord['y'] = top + (imgWrap.clientHeight - this.aciveImgObj['QM_View-Height'] + 55) / 2 - 8 + 40
this.viewBlock = this.getViewBlock( this.viewBlock = this.getViewBlock(
this.pointCoord['x'], this.pointCoord['x'],
this.pointCoord['y'] this.pointCoord['y']
@ -484,7 +484,7 @@ export default {
} }
.up { .up {
width: 100%; width: 100%;
height: calc(100% - 16px - 80px);
height: calc(100% - 16px - 80px - 80px);
display: flex; display: flex;
flex-direction: row; flex-direction: row;
margin-bottom: 16px; margin-bottom: 16px;
@ -588,13 +588,17 @@ export default {
box-sizing: border-box; box-sizing: border-box;
.error-img { .error-img {
width: 100%; width: 100%;
height: calc(100% - 56px);
height: calc(100% - 80px);
background: #f5f7fc; background: #f5f7fc;
box-sizing: border-box; box-sizing: border-box;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
position: relative; position: relative;
img {
width: 465px !important;
height: 465px !important;
}
.coord-circle { .coord-circle {
position: absolute; position: absolute;
z-index: 1; z-index: 1;


Loading…
Cancel
Save