Browse Source

优化页面与提示

master
sj 2 years ago
parent
commit
1fe8b75ea5
  1. 44
      src/views/bxg/shop/goods/index.vue
  2. 2
      src/views/bxg/shop/yxStoreHotList/index.vue

44
src/views/bxg/shop/goods/index.vue

@ -166,11 +166,19 @@ export default {
this.$refs[id].doClose() this.$refs[id].doClose()
this.dleChangePage() this.dleChangePage()
this.init() this.init()
this.$notify({ if (res.status){
title: '删除成功', this.$notify({
type: 'success', title: res.msg,
duration: 2500 type: 'warning',
}) duration: 2500
})
}else {
this.$notify({
title: '删除成功',
type: 'success',
duration: 2500
})
}
}).catch(err => { }).catch(err => {
this.delLoading = false this.delLoading = false
this.$refs[id].doClose() this.$refs[id].doClose()
@ -184,15 +192,23 @@ export default {
type: 'warning' type: 'warning'
}) })
.then(() => { .then(() => {
onsale(id, { status: status }).then(({ data }) => { onsale(id, { status: status }).then((res) => {
this.$message({ if(res.status){
message: '操作成功', this.$notify({
type: 'success', message: res.msg,
duration: 1000, type: 'warning',
onClose: () => { duration: 1000,
this.init() })
} }else {
}) this.$message({
message: '操作成功',
type: 'success',
duration: 1000,
onClose: () => {
this.init()
}
})
}
}) })
}) })
.catch(() => { }) .catch(() => { })

2
src/views/bxg/shop/yxStoreHotList/index.vue

@ -67,7 +67,7 @@
<el-table-column v-if="columns.visible('id')" prop="id" label="榜单列表ID" /> <el-table-column v-if="columns.visible('id')" prop="id" label="榜单列表ID" />
<el-table-column v-if="columns.visible('listName')" prop="listName" label="榜单名称" /> <el-table-column v-if="columns.visible('listName')" prop="listName" label="榜单名称" />
<el-table-column v-if="columns.visible('sort')" prop="sort" label="排序" /> <el-table-column v-if="columns.visible('sort')" prop="sort" label="排序" />
<el-table-column v-if="columns.visible('productlist')" prop="productlist" label="商品列表" > <el-table-column v-if="columns.visible('productlist')" prop="productlist" label="商品列表" width="250">
<template slot-scope="scope"> <template slot-scope="scope">
<div v-for="(item,index) in JSON.parse(scope.row.productList)"> <div v-for="(item,index) in JSON.parse(scope.row.productList)">
<span>top{{index+1}}:{{item.storeName}}</span> <span>top{{index+1}}:{{item.storeName}}</span>

Loading…
Cancel
Save