| | |
| | | addOrEditProduct, |
| | | addOrEditProductModel, |
| | | delProduct, delProductModel, |
| | | modelList, |
| | | modelListPage, |
| | | productTreeList |
| | | } from "@/api/basicData/product.js"; |
| | | const { proxy } = getCurrentInstance() |
| | |
| | | } |
| | | |
| | | // 查询规格型号 |
| | | const pagination = ({ current, limit }) => { |
| | | page.current = current; |
| | | page.size = limit; |
| | | const pagination = (obj) => { |
| | | page.current = obj.page; |
| | | page.size = obj.limit; |
| | | getModelList() |
| | | } |
| | | const getModelList = () => { |
| | | tableLoading.value = true |
| | | modelList({id: currentId.value}).then(res => { |
| | | modelListPage({id: currentId.value, |
| | | current: page.current, |
| | | size: page.size, |
| | | } |
| | | ).then(res => { |
| | | console.log('res',res) |
| | | tableData.value = res.records |
| | | total.value = res.total |
| | | tableLoading.value = false |
| | | tableData.value = res |
| | | }) |
| | | } |
| | | // 删除规格型号 |
| | |
| | | font-size: 14px; |
| | | padding-right: 8px; |
| | | } |
| | | </style> |
| | | </style> |