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

修改bug

parent cfc688af
...@@ -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: '/cmsnews/delete/' + businessId, url: '/cmsnews/deleteLogical/' + businessId + '/' + unitId,
method: 'delete' method: 'delete'
}) })
} }
...@@ -94,7 +94,7 @@ export function crawler() { ...@@ -94,7 +94,7 @@ export function crawler() {
} }
export function queryCrawlerStatus(params) { export function queryCrawlerStatus(params) {
return request({ return request({
url: '/cmstask/detail/'+ params.id, url: '/cmstask/detail/' + params.id,
method: 'get' method: 'get'
}) })
} }
......
...@@ -720,12 +720,17 @@ export default { ...@@ -720,12 +720,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