Commit ef46a1cd authored by 罗林杰's avatar 罗林杰

修改动态审核,活动

parent d9d5c82e
......@@ -317,7 +317,7 @@ import { parseTime } from '@/utils'
import { getDataCache, setDataCache } from '@/assets/js/filterData'
import { listCmsApplication } from '@/api/contentManagement/application'
import { yesOrNo } from '@/utils/allPageData'
import {getOssUrl} from "@/api/contentManagement/opmArticle";
import { getOssUrl } from '@/api/contentManagement/opmArticle'
export default {
name: 'Index',
// components: {
......@@ -461,9 +461,6 @@ export default {
})
},
created() {
},
mounted: function() {
this.loadData()
},
methods: {
......@@ -570,8 +567,7 @@ export default {
/** 查询活动管理列表 */
loadData() {
this.loading = true
listCmsActivity(this.queryParams).then(
response => {
listCmsActivity(this.queryParams).then(response => {
this.tableData = response.data
// 处理分页数据里的url
this.tableData.forEach(item => {
......@@ -645,13 +641,19 @@ export default {
type: 'warning'
}).then(function() {
return updatePushStatus(params)
}).then(() => {
}).then((res) => {
if (res.code === 200) {
this.$message({
message: text + '成功',
type: 'success'
})
}).catch(function() {
row.publishStatus = row.publishStatus === '0' ? '1' : '0'
} else {
this.$message({
message: res.message,
type: 'error'
})
}
this.loadData()
})
},
handleExamination(data) {
......
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