From 202557aeadba147a25ae72a8992fd184d13252d9 Mon Sep 17 00:00:00 2001 From: 张诺 <zhang_12370@163.com> Date: 星期三, 11 六月 2025 18:02:41 +0800 Subject: [PATCH] 新增文档管理 优化其他页面 --- src/views/production/components/ProductionDialog.vue | 13 +++++++++---- 1 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/views/production/components/ProductionDialog.vue b/src/views/production/components/ProductionDialog.vue index 7ce8482..035d75a 100644 --- a/src/views/production/components/ProductionDialog.vue +++ b/src/views/production/components/ProductionDialog.vue @@ -1,4 +1,4 @@ -<template> +div<template> <el-dialog v-model="dialogVisible" :title="dialogType === 'add' ? '鏂板鐢熶骇鍔犲伐' : '缂栬緫鐢熶骇鍔犲伐'" @@ -17,9 +17,9 @@ @row-click="handleRowClick" :editableColumns="['used']" /> - <div v-if="tableData.length > 0" class="empty-table"> + <div class="empty-table"> <h1>鐢熶骇鏄庣粏</h1> - <el-row :gutter="10"> + <el-row :gutter="10" v-if="tableData.length > 0"> <el-col :span="2"> <el-button type="primary" @click="addNewRow"> <el-icon> @@ -45,6 +45,7 @@ </el-col> --> </el-row> <ProductionDetailsTable + v-if="tableData.length > 0" v-model="detailsTableData" :border="false" :show-operations="true" @@ -52,8 +53,9 @@ @input-change="handleDetailsChange" @delete-row="handleDeleteRow" /> - </div> <div style="margin-top: 20px;" v-else>鏆傛棤鏁版嵁锛岃閫夋嫨閰嶇疆鏁版嵁</div> + + </div> <template #footer> <div class="dialog-footer"> @@ -452,4 +454,7 @@ .el-row > .el-col > h1 { font-weight: bolder; } +.empty-table > .el-row{ + margin-bottom: 12px; +} </style> -- Gitblit v1.9.3