Commit 9b70d73e authored by 刘帅阳's avatar 刘帅阳

修改bug

parent a0dc23c2
......@@ -49,9 +49,9 @@ export function updateCmsBanner(data) {
}
// 5. 逻辑删除banner管理
export function delCmsBanner(businessId) {
export function delCmsBanner(businessId, unitId) {
return request({
url: '/cmsbanner/deleteLogical/' + businessId,
url: '/cmsbanner/deleteLogical/' + businessId + '/' + unitId,
method: 'delete'
})
}
......
......@@ -50,9 +50,9 @@ export function updateSysContentNewsInformation(data) {
}
// 5. 逻辑删除新闻资讯
export function delSysContentNewsInformation(businessId) {
export function delSysContentNewsInformation(businessId, unitId) {
return request({
url: '/cmsvideo/delete/' + businessId,
url: '/cmsvideo/delete/' + businessId + '/' + unitId,
method: 'delete'
})
}
......
......@@ -558,12 +558,17 @@ export default {
/** 删除按钮操作 */
handleDelete(row) {
const id = row.businessId
let unitId = this.queryParams.unitId
const clearable = this.clearable
this.$confirm('是否确认操作?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(function() {
return delCmsBanner(id)
if (clearable) {
unitId = null
}
return delCmsBanner(id, unitId)
}).then(() => {
this.getList()
this.$message({
......
......@@ -568,12 +568,17 @@ export default {
/** 删除按钮操作 */
removeCourse(row) {
const id = row.businessId
let unitId = this.queryParams.unitId
const clearable = this.clearable
this.$confirm('是否确认操作?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(function() {
return delSysContentNewsInformation(id)
if (clearable) {
unitId = null
}
return delSysContentNewsInformation(id, unitId)
}).then(() => {
this.loadData()
this.$message({
......
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