Commit c63be594 authored by 陈明豪's avatar 陈明豪

轮播 - 下架-》禁用

parent 11552ec3
...@@ -152,7 +152,7 @@ ...@@ -152,7 +152,7 @@
type="warning" type="warning"
@click="deListBanner(scope.row)" @click="deListBanner(scope.row)"
:disabled="scope.row.id === 1" :disabled="scope.row.id === 1"
>下架 >禁用
</el-button> </el-button>
</div> </div>
</div> </div>
...@@ -333,13 +333,13 @@ export default { ...@@ -333,13 +333,13 @@ export default {
...this.queryParams ...this.queryParams
}, `banner_${new Date().getTime()}.xlsx`) }, `banner_${new Date().getTime()}.xlsx`)
}, },
/** 下架轮播图 */ /** 禁用轮播图 */
deListBanner(row) { deListBanner(row) {
const update = { const update = {
id: row.id, id: row.id,
status: '2' status: '2'
} }
this.$modal.confirm('是否确认下架该轮播图信息?').then(function() { this.$modal.confirm('是否确认禁用该轮播图信息?').then(function() {
updateBanner(update).then(res => { updateBanner(update).then(res => {
if (res.code === 200) { if (res.code === 200) {
this.getBannerList() this.getBannerList()
...@@ -348,7 +348,7 @@ export default { ...@@ -348,7 +348,7 @@ export default {
return null return null
}).then(() => { }).then(() => {
this.getBannerList() this.getBannerList()
this.$modal.msgSuccess('下架成功') this.$modal.msgSuccess('禁用成功')
}).catch(() => {}) }).catch(() => {})
} }
} }
...@@ -379,13 +379,13 @@ export default { ...@@ -379,13 +379,13 @@ export default {
color: #666666 !important; color: #666666 !important;
width: 200px !important; width: 200px !important;
} }
/*表格上下架状态颜色样式*/ /*表格上禁用状态颜色样式*/
/*上架*/ /*上架*/
::v-deep .status-grounding { ::v-deep .status-grounding {
color: #67C23A; color: #67C23A;
} }
/*下架*/ /*禁用*/
::v-deep .status-offshelf { ::v-deep .status-offshelf {
color: #f5aa6c; color: #f5aa6c;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment