From 437a70bd86d8adda3da41853b8b1c2706a22fdd7 Mon Sep 17 00:00:00 2001
From: 张诺 <zhang_12370@163.com>
Date: 星期四, 12 六月 2025 18:03:59 +0800
Subject: [PATCH] 优化文档管理及基础信息页面

---
 src/views/production/components/ProductionDialog.vue |   21 +++++++--------------
 1 files changed, 7 insertions(+), 14 deletions(-)

diff --git a/src/views/production/components/ProductionDialog.vue b/src/views/production/components/ProductionDialog.vue
index 7ce8482..07772d6 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' ? '鏂板鐢熶骇鍔犲伐' : '缂栬緫鐢熶骇鍔犲伐'"
@@ -8,7 +8,6 @@
   >
     <el-button type="primary" @click="handlData">閫夋嫨鏁版嵁</el-button>
     <ETable
-      v-if="tableData.length > 0"
       :columns="columns"
       height="200"
       @cell-edit="handleCellEdit"
@@ -17,7 +16,7 @@
       @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-col :span="2">
@@ -52,8 +51,8 @@
       @input-change="handleDetailsChange"
       @delete-row="handleDeleteRow"
     />
+
     </div>
-      <div style="margin-top: 20px;" v-else>鏆傛棤鏁版嵁锛岃閫夋嫨閰嶇疆鏁版嵁</div>
 
     <template #footer>
       <div class="dialog-footer">
@@ -127,16 +126,7 @@
   { label: "鏈浣跨敤鏁伴噺", prop: "used" },
 ];
 const detailsTableData = ref([
-  {
-    coalType: "",
-    calorificValue: "",
-    productionQuantity: "",
-    laborCost: "",
-    energyCost: "",
-    equipmentDepreciation: "",
-    purchasePrice: "",
-    totalCost: "",
-  },
+  
 ]);
 const handleRowClick = (row) => {
   currentRow.value = row;
@@ -452,4 +442,7 @@
 .el-row > .el-col > h1 {
   font-weight: bolder;
 }
+.empty-table > .el-row{
+  margin-bottom: 12px;
+}
 </style>

--
Gitblit v1.9.3