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

修改动态审核,活动

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