Commit cd64ccf1 authored by 刘帅阳's avatar 刘帅阳

修改bug

parent cfc688af
......@@ -50,9 +50,9 @@ export function updateSysContentNewsInformation(data) {
}
// 5. 逻辑删除新闻资讯
export function delSysContentNewsInformation(businessId) {
export function delSysContentNewsInformation(businessId, unitId) {
return request({
url: '/cmsnews/delete/' + businessId,
url: '/cmsnews/deleteLogical/' + businessId + '/' + unitId,
method: 'delete'
})
}
......@@ -94,7 +94,7 @@ export function crawler() {
}
export function queryCrawlerStatus(params) {
return request({
url: '/cmstask/detail/'+ params.id,
url: '/cmstask/detail/' + params.id,
method: 'get'
})
}
......
......@@ -720,12 +720,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