admin/src/views/business/bannerList.vue
@@ -49,8 +49,8 @@ v-model="row.status" active-color="#13ce66" inactive-color="#ff4949" :active-value="1" :inactive-value="0" :active-value="0" :inactive-value="1" ></el-switch> </template> </el-table-column> @@ -126,7 +126,7 @@ this.$refs.operaBannerEditWindow.open('编辑轮播图', row) }, handleStatusChange (val, row) { updateById({ id: row.id, status: val }).then(res => { updateStatus({ id: row.id, status: val }).then(res => { this.$tip.apiSuccess(res || '修改成功') }).catch(e => { row.status = val === 1 ? 0 : 1