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

修改bug

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