| | |
| | | this.setTable() |
| | | let query = this.$route.query |
| | | if (query) { |
| | | console.log("aaaaaaaaaaaaa", query) |
| | | this.queryProductId = query.productId?.length ? query.productId : null |
| | | this.categoryId = query.id ? Number(query.id) : null |
| | | this.pagerOptions.currPage = 1 |
| | |
| | | const list = res.data.map((item) => { |
| | | return { |
| | | ...item, |
| | | areaName: { label: item.location.jointName, value: item.location.id }, |
| | | areaName: { label: item.area.jointName, value: item.area.id }, |
| | | subLocation: { label: item.location.jointName, value: item.location.id }, |
| | | productName: item.product.name, |
| | | productCategory: item.productCategory.name, |
| | |
| | | }, |
| | | // 选中产品方法 |
| | | selProductClick(value, item) { |
| | | console.log(value, item) |
| | | if (value === "product") { |
| | | this.RuleType = 1 |
| | | this.tableList.tableColumn[2].productType = false |
| | | this.productId = item.id |
| | | this.productId = item.productId |
| | | this.productCategoryId = item.categoryId |
| | | } else if (value === "productType") { |
| | | this.productCategoryId = item.id |