张诺
3 天以前 4fef9eda74d458f3b7538148c6f7a1f855ad6017
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'
// 搜索表单数据