| | |
| | | type="primary" |
| | | text |
| | | @click="() =>{ |
| | | currentRowId = row.id; |
| | | currentRow = row; |
| | | showEdit = true; |
| | | }" |
| | | >{{ row.productName }} |
| | | </el-button> |
| | | </template> |
| | | </PIMTable> |
| | | <StructureEdit v-if="showEdit" v-model:show-model="showEdit" :product-model-id="currentRowId"/> |
| | | <StructureEdit v-if="showEdit" v-model:show-model="showEdit" :record="currentRow"/> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | const StructureEdit = defineAsyncComponent(() => import('@/views/productionManagement/productStructure/StructureEdit.vue')) |
| | | |
| | | const tableColumn = ref([ |
| | | { |
| | | label: "产品编码", |
| | | prop: "productCode", |
| | | slot: "detail" |
| | | }, |
| | | { |
| | | label: "产品名称", |
| | | prop: "productName", |
| | |
| | | const tableLoading = ref(false); |
| | | const showEdit = ref(false); |
| | | const selectedRows = ref([]); |
| | | const currentRowId = ref(0); |
| | | const currentRow = ref({}); |
| | | const page = reactive({ |
| | | current: 1, |
| | | size: 10, |