From b66453b8b4a7ba6dc94127bb5c9a6647519e447a Mon Sep 17 00:00:00 2001 From: gaoluyang <2820782392@qq.com> Date: 星期三, 04 六月 2025 13:40:00 +0800 Subject: [PATCH] 配煤计算页面开发 --- src/views/production/index.vue | 16 ++++++---------- 1 files changed, 6 insertions(+), 10 deletions(-) diff --git a/src/views/production/index.vue b/src/views/production/index.vue index dbad178..c113e9f 100644 --- a/src/views/production/index.vue +++ b/src/views/production/index.vue @@ -8,11 +8,10 @@ </div> <div class="operation-bar"> - <el-button type="primary" @click="handleAdd">鏂板閰嶉」</el-button> - <el-button type="success" @click="handleAddBatch">鏂板鍔犲伐</el-button> - <el-button type="warning">淇敼</el-button> - <el-button type="danger">鍒犻櫎</el-button> - <el-button type="info">瀵煎嚭</el-button> + <!-- <el-button type="primary" @click="handleAdd">鏂板閰嶉」</el-button> --> + <el-button type="success" :icon="Plus" @click="handleAddBatch">鏂板鍔犲伐</el-button> + <el-button type="danger" :icon="Delete">鍒犻櫎</el-button> + <el-button type="info" :icon="Download">瀵煎嚭</el-button> </div> <el-table :data="tableData" border style="width: 100%" @selection-change="handleSelectionChange"> @@ -52,7 +51,7 @@ </div> <!-- 寮圭獥缁勪欢 --> - <ProductionDialog-dialog + <ProductionDialog v-model:visible="dialogVisible" :type="dialogType" :row-data="currentRow" @@ -64,7 +63,7 @@ <script setup> import { ref, reactive, onMounted } from 'vue' import { ElMessage, ElMessageBox } from 'element-plus' -import { getProductionList, addProduction, updateProduction, deleteProduction, exportProduction } from '@/api/production' +import { Plus, Delete, Download } from "@element-plus/icons-vue"; import ProductionDialog from './components/ProductionDialog.vue' // 鎼滅储琛ㄥ崟鏁版嵁 @@ -127,7 +126,6 @@ tableData.value = res.data.list pagination.total = res.data.total } catch (error) { - console.error('鑾峰彇鏁版嵁澶辫触:', error) ElMessage.error('鑾峰彇鏁版嵁澶辫触') } finally { loading.value = false @@ -186,7 +184,6 @@ } getList() } catch (error) { - console.error(dialogType.value === 'add' ? '鏂板澶辫触:' : '鏇存柊澶辫触:', error) ElMessage.error(dialogType.value === 'add' ? '鏂板澶辫触' : '鏇存柊澶辫触') } } @@ -230,7 +227,6 @@ navigator.msSaveBlob(blob, fileName) } } catch (error) { - console.error('瀵煎嚭澶辫触:', error) ElMessage.error('瀵煎嚭澶辫触') } } -- Gitblit v1.9.3