| | |
| | | <el-button |
| | | type="primary" |
| | | text |
| | | @click="() =>{ |
| | | currentRow = row; |
| | | showEdit = true; |
| | | }" |
| | | >{{ row.productName }} |
| | | @click="showDetail(row.id)">{{ row.productName }} |
| | | </el-button> |
| | | </template> |
| | | </PIMTable> |
| | |
| | | <script setup> |
| | | import {ref} from "vue"; |
| | | import {productModelList} from "@/api/basicData/productModel.js"; |
| | | import { useRouter } from 'vue-router' |
| | | |
| | | const router = useRouter() |
| | | const StructureEdit = defineAsyncComponent(() => import('@/views/productionManagement/productStructure/StructureEdit.vue')) |
| | | |
| | | const tableColumn = ref([ |
| | |
| | | page.size = obj.limit; |
| | | getModelList(); |
| | | }; |
| | | |
| | | const showDetail = (id) => { |
| | | router.push({ |
| | | path: '/productionManagement/productStructureDetail', |
| | | query: { |
| | | id: id |
| | | } |
| | | }) |
| | | } |
| | | const getModelList = () => { |
| | | tableLoading.value = true; |
| | | productModelList({ |