ZaiZai 1 年間 前
コミット
85264d0c68

+ 9 - 0
src/styles/app/element.scss

@@ -119,3 +119,12 @@
         }
     }
 }
+
+.hc-ui-form-upload-box .hc-ui-form-item-dashed.list .file-list-box .item .file-name {
+    height: 25px;
+    line-height: 25px;
+}
+
+.hc-ui-form-upload-box .hc-ui-form-item-dashed.list .file-list-box .item .close-icon {
+    top: 1px;
+}

+ 2 - 2
src/views/alter/admin/components/order/addModal.vue

@@ -106,11 +106,11 @@
                         </hc-table>
                     </hc-card-item>
                     <!-- 变更申请清单 -->
-                    <hc-card-item title="变更申请清单" class="mt-3">
+                    <hc-card-item v-if="tableData[tableIndex]?.formList.length > 0" title="变更申请清单" class="mt-3">
                         <template #extra>
                             <el-link type="primary" @click="changeShowClick">添加</el-link>
                         </template>
-                        <div v-if="tableData[tableIndex]?.formList.length > 0" class="hc-table-ref-box no-border">
+                        <div class="hc-table-ref-box no-border">
                             <el-table class="w-full" :data="tableData[tableIndex]?.formList" row-key="id" height="100%" highlight-current-row border>
                                 <el-table-column type="index" label="序号" />
                                 <el-table-column prop="formNumber" label="清单编号" />

+ 13 - 1
src/views/alter/admin/order.vue

@@ -115,7 +115,7 @@
                     </hc-card-item>
                     <!-- 附件列表 -->
                     <hc-card-item class="mt-3" title="附件列表">
-                        <hc-form-upload type="list" :src="tableInfo.fileList" :h-props="uploadFormProps" />
+                        <hc-form-upload class="table-info-file" type="list" :src="tableInfo.fileList" :h-props="uploadFormProps" />
                     </hc-card-item>
                 </el-scrollbar>
             </div>
@@ -274,3 +274,15 @@ const reportClick = () => {
     isReport.value = true
 }
 </script>
+
+<style lang="scss">
+.table-info-file .item-upload-btn {
+    display: none;
+}
+.hc-ui-form-upload-box.table-info-file .hc-ui-form-item-dashed.list .file-list-box {
+    margin-top: 0;
+}
+.hc-ui-form-upload-box.table-info-file .hc-ui-form-item-dashed.list .file-list-box .item .close-icon {
+    display: none;
+}
+</style>