Ver Fonte

fix: 调整样式

Howie há 1 ano atrás
pai
commit
b5a713b290
1 ficheiros alterados com 3 adições e 3 exclusões
  1. 3 3
      src/views/commercialEngineering/components/base.vue

+ 3 - 3
src/views/commercialEngineering/components/base.vue

@@ -98,8 +98,8 @@
         <el-col
           v-if="pageType === 'frock' || (pageType === 'cross' && formData.orderType === 'WORK')"
           :xs="24"
-          :sm="module !== 'add' ? 24 : 12"
-          :lg="module !== 'add' ? 24 : 12"
+          :sm="!['add', 'edit'].includes(module)  ? 24 : 12"
+          :lg="!['add', 'edit'].includes(module)  ? 24 : 12"
           class="item"
         >
           <div class="label">甲方名称*:</div>
@@ -116,7 +116,7 @@
           </div>
         </el-col>
         <el-col
-          v-if="module == 'add' && (pageType === 'home' || formData.orderType === 'HOME')"
+          v-if="['add', 'edit'].includes(module)  && (pageType === 'home' || formData.orderType === 'HOME')"
           :xs="24"
           :sm="12"
           :lg="12"