| | |
| | | <div class="product-box" v-for="item in tableList.tableInfomation" :key="item.id" @click="tableRowClick(item)"> |
| | | <div class="left"> |
| | | <!-- <el-image style="width: 60px; height: 80px" :src="url"></el-image> --> |
| | | <el-image class="img-view"> |
| | | <div slot="error" class="image-slot"> |
| | | <i class="el-icon-picture-outline"></i> |
| | | </div> |
| | | </el-image> |
| | | <div class="img-view"> |
| | | <i class="el-icon-picture-outline"></i> |
| | | </div> |
| | | </div> |
| | | <div class="right"> |
| | | <div class="label"> |
| | |
| | | url: "https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg", |
| | | pageSizes: [15, 30], |
| | | keyWord: "", |
| | | categoryId:null, |
| | | categoryId: null |
| | | } |
| | | }, |
| | | created() { |
| | | this.setTable() |
| | | let query = this.$route.query; |
| | | let query = this.$route.query |
| | | if (query) { |
| | | this.categoryId = query.id ? Number(query.id) : null; |
| | | this.pagerOptions.currPage=1 |
| | | this.categoryId = query.id ? Number(query.id) : null |
| | | this.pagerOptions.currPage = 1 |
| | | } |
| | | this.getData() |
| | | }, |
| | |
| | | async getData() { |
| | | await getProductList({ |
| | | keyWord: this.keyWord, |
| | | categoryId:this.categoryId?this.categoryId:null, |
| | | categoryId: this.categoryId ? this.categoryId : null, |
| | | page: this.pagerOptions.currPage, |
| | | pageSize: this.pagerOptions.pageSize |
| | | }).then((res) => { |