From 04489cc3864aa38fde8b539aee6c4c9eed6ab1d4 Mon Sep 17 00:00:00 2001
From: yangfeng <wanwan926_4@163.com>
Date: 星期四, 28 九月 2023 14:35:35 +0800
Subject: [PATCH] 解决产品列表报错
---
src/views/productManage/product/index.vue | 18 ++++++++----------
1 files changed, 8 insertions(+), 10 deletions(-)
diff --git a/src/views/productManage/product/index.vue b/src/views/productManage/product/index.vue
index f364068..b66f494 100644
--- a/src/views/productManage/product/index.vue
+++ b/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) => {
--
Gitblit v1.8.0