yangfeng
2023-09-28 04489cc3864aa38fde8b539aee6c4c9eed6ab1d4
解决产品列表报错
1个文件已修改
18 ■■■■■ 已修改文件
src/views/productManage/product/index.vue 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/productManage/product/index.vue
@@ -32,11 +32,9 @@
        <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">
@@ -107,15 +105,15 @@
      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()
  },
@@ -227,7 +225,7 @@
    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) => {