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,18 +567,17 @@ export default { ...@@ -570,18 +567,17 @@ 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 => { getOssUrl(item.pictureId).then(imgRes => {
getOssUrl(item.pictureId).then(imgRes => { item.url = imgRes.data
item.url = imgRes.data
})
}) })
this.total = response.total })
this.loading = false this.total = response.total
} this.loading = false
}
) )
}, },
/** 查看报名人数 */ /** 查看报名人数 */
...@@ -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) => {
this.$message({ if (res.code === 200) {
message: text + '成功', this.$message({
type: 'success' 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) { 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