优化页面与提示
This commit is contained in:
@@ -166,11 +166,19 @@ export default {
|
||||
this.$refs[id].doClose()
|
||||
this.dleChangePage()
|
||||
this.init()
|
||||
this.$notify({
|
||||
title: '删除成功',
|
||||
type: 'success',
|
||||
duration: 2500
|
||||
})
|
||||
if (res.status){
|
||||
this.$notify({
|
||||
title: res.msg,
|
||||
type: 'warning',
|
||||
duration: 2500
|
||||
})
|
||||
}else {
|
||||
this.$notify({
|
||||
title: '删除成功',
|
||||
type: 'success',
|
||||
duration: 2500
|
||||
})
|
||||
}
|
||||
}).catch(err => {
|
||||
this.delLoading = false
|
||||
this.$refs[id].doClose()
|
||||
@@ -184,15 +192,23 @@ export default {
|
||||
type: 'warning'
|
||||
})
|
||||
.then(() => {
|
||||
onsale(id, { status: status }).then(({ data }) => {
|
||||
this.$message({
|
||||
message: '操作成功',
|
||||
type: 'success',
|
||||
duration: 1000,
|
||||
onClose: () => {
|
||||
this.init()
|
||||
}
|
||||
})
|
||||
onsale(id, { status: status }).then((res) => {
|
||||
if(res.status){
|
||||
this.$notify({
|
||||
message: res.msg,
|
||||
type: 'warning',
|
||||
duration: 1000,
|
||||
})
|
||||
}else {
|
||||
this.$message({
|
||||
message: '操作成功',
|
||||
type: 'success',
|
||||
duration: 1000,
|
||||
onClose: () => {
|
||||
this.init()
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
})
|
||||
.catch(() => { })
|
||||
|
||||
@@ -67,7 +67,7 @@
|
||||
<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('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">
|
||||
<div v-for="(item,index) in JSON.parse(scope.row.productList)">
|
||||
<span>top{{index+1}}:{{item.storeName}}</span>
|
||||
|
||||
Reference in New Issue
Block a user