gaoluyang
2 天以前 9effd6fe741ec09c870a6a12aec394a09179c77b
src/views/productionManagement/productStructure/index.vue
@@ -1,20 +1,22 @@
<template>
  <div class="app-container">
    <div style="text-align: right; margin-bottom: 10px;">
      <el-button type="info" plain icon="Upload" @click="handleImport"
        v-hasPermi="['product:bom:import']">导入</el-button>
      <el-button type="warning" plain icon="Download" @click="handleExport" :disabled="selectedRows.length !== 1"
        v-hasPermi="['product:bom:export']">导出</el-button>
      <el-button type="primary" @click="handleAdd">新增</el-button>
      <el-button type="danger" plain @click="handleBatchDelete" :disabled="selectedRows.length === 0">删除</el-button>
    </div>
    <PIMTable rowKey="id" :column="tableColumn" :tableData="tableData" :page="page" :isSelection="true"
      @selection-change="handleSelectionChange" :tableLoading="tableLoading" @pagination="pagination">
      <template #detail="{ row }">
        <el-button type="primary" text @click="showDetail(row)">{{ row.bomNo }}
        </el-button>
      </template>
    </PIMTable>
      <div class="table_list">
         <div style="text-align: right; margin-bottom: 10px;">
            <el-button type="primary" @click="handleAdd">新增</el-button>
            <el-button type="info" plain icon="Upload" @click="handleImport"
                       v-hasPermi="['product:bom:import']">导入</el-button>
            <el-button type="warning" plain icon="Download" @click="handleExport" :disabled="selectedRows.length !== 1"
                       v-hasPermi="['product:bom:export']">导出</el-button>
            <el-button type="danger" plain @click="handleBatchDelete" :disabled="selectedRows.length === 0">删除</el-button>
         </div>
         <PIMTable rowKey="id" :column="tableColumn" :tableData="tableData" :page="page" :isSelection="true"
                   @selection-change="handleSelectionChange" :tableLoading="tableLoading" @pagination="pagination">
            <template #detail="{ row }">
               <el-button type="primary" text @click="showDetail(row)">{{ row.bomNo }}
               </el-button>
            </template>
         </PIMTable>
      </div>
    <StructureEdit v-if="showEdit" v-model:show-model="showEdit" :record="currentRow" />
    <!-- 新增/编辑弹窗 -->