张诺
3 天以前 4fef9eda74d458f3b7538148c6f7a1f855ad6017
修改按钮样式 处理eslint defineEmits报错问题
已修改2个文件
20 ■■■■■ 文件已修改
package.json 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/production/index.vue 13 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
package.json
@@ -48,5 +48,12 @@
  },
  "overrides": {
    "quill": "2.0.2"
  },
  "eslintConfig": {
    "root": true,
    "env": {
      "node": true,
      "vue/setup-compiler-macros": true
    }
  }
}
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'
// 搜索表单数据