From 4fef9eda74d458f3b7538148c6f7a1f855ad6017 Mon Sep 17 00:00:00 2001 From: 张诺 <zhang_12370@163.com> Date: 星期三, 04 六月 2025 09:10:52 +0800 Subject: [PATCH] 修改按钮样式 处理eslint defineEmits报错问题 --- src/views/production/index.vue | 13 ++++++------- 1 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/views/production/index.vue b/src/views/production/index.vue index 1838b1b..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' // 鎼滅储琛ㄥ崟鏁版嵁 -- Gitblit v1.9.3