lxf пре 1 година
родитељ
комит
bd55134ce0
1 измењених фајлова са 9 додато и 4 уклоњено
  1. 9 4
      src/views/sell/draft-design/drawing/index.vue

+ 9 - 4
src/views/sell/draft-design/drawing/index.vue

@@ -29,7 +29,12 @@
                 <div style="display: flex; width: 100%">
                   <div style="width: 60px; height: 32px; line-height: 32px">设计图:</div>
                   <div style="width: calc(100% - 60px)">
-                    <el-image fit="fill" style="width: 160px; height: 160px; cursor: pointer" :src="row.blueprint" @click="openFile(row.blueprint)">
+                    <el-image
+                      fit="scale-down"
+                      style="width: 160px; border: 1px solid #ccc; cursor: pointer"
+                      v-if="row.blueprint"
+                      :src="row.blueprint"
+                      @click="openFile(row.blueprint)">
                       <template #error>
                         <div class="image-slot">
                           <el-icon><Picture /></el-icon>
@@ -47,8 +52,8 @@
                   <div style="width: 70px; height: 32px; line-height: 32px">设计样图:</div>
                   <div style="width: calc(100% - 70px)">
                     <el-image
-                      fit="fill"
-                      style="width: 160px; height: 160px; cursor: pointer"
+                      fit="scale-down"
+                      style="width: 160px; border: 1px solid #ccc; cursor: pointer"
                       v-if="row.proofingImg"
                       :src="row.proofingImg"
                       @click="openFile(row.proofingImg)">
@@ -506,7 +511,7 @@ const clickSubmit = () => {
   align-items: center;
   width: 100%;
   height: 100%;
-  background: var(--el-fill-color-light);
+  background: var(--el-scale-down-color-light);
   color: var(--el-text-color-secondary);
   font-size: 30px;
 }