chenrui
6 天以前 fda152b544ed0b3ceb8309df5b7eca2de888f3f1
src/views/basicData/product/index.vue
@@ -103,7 +103,7 @@
  addOrEditProduct,
  addOrEditProductModel,
  delProduct, delProductModel,
  modelList,
  modelListPage,
  productTreeList
} from "@/api/basicData/product.js";
const { proxy } = getCurrentInstance()
@@ -292,16 +292,22 @@
}
// 查询规格型号
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
  })
}
// 删除规格型号
@@ -393,4 +399,4 @@
  font-size: 14px;
  padding-right: 8px;
}
</style>
</style>