提交 e58fcb48 编写于 作者: L liuchuanming

'POSTER菜单跳转逻辑'

上级 6118d04a
import request from '@/utils/request'
const service = window.CONFIG.services.wecom + '/material'
const serviceCategory = window.CONFIG.services.wecom + '/poster'
/**
* 查询海报列表
* @param {*} params
*/
export function getList(params) {
return request({ url: service + '/list', params })
}
/**
* 添加海报
* @param {*} data
*/
export function addPoster(data) {
return request({ url: serviceCategory + '/insert', method: 'post', data })
}
/**
* 查询海报详情
* @param {*} data
*/
export function getPosterInfo(data) {
return request({ url: serviceCategory + '/entity', method: 'get', data })
}
/**
* 删除海报
* @param {*} data
*/
export function removePoster(ids) {
return request({
url: serviceCategory + '/delete/' + ids,
method: 'DELETE'
})
}
......@@ -13,11 +13,15 @@ import {
moveGroup,
} from '@/api/material'
// import {
// getList
// } from '@/api/material/poster'
export default {
name: 'MaPage',
components: {},
props: {
// "0 图片(image)、1 语音(voice)、2 视频(video),3 普通文件(file) 4 文本",
// "0 图片(image)、1 语音(voice)、2 视频(video),3 普通文件(file) 4 文本 5 海报 6 海报字体",
type: {
type: String,
default: '0',
......@@ -37,7 +41,7 @@ export default {
pageSize: 10,
categoryId: '',
search: '',
mediaType: '4',
mediaType: '0',
},
list: [], // 列表
total: 0, // 总条数
......@@ -62,7 +66,7 @@ export default {
emitPath: false,
},
typeTitle: ['图片', '语音', '视频', '文件', '文本'],
typeTitle: ['图片', '语音', '视频', '文件', '文本', '海报', '海报字体'],
form: {}, // 素材表单
dialogVisible: false, // 素材表格对话框显隐
// 表单校验
......
......@@ -34,17 +34,22 @@ export default {
created () { },
methods: {
listChange (data) {
console.log('listChange', JSON.stringify(data))
this.srcList = data.map((item) => item.materialUrl)
},
preview (url) {
console.log('preview', url)
this.previewImg = url || ''
this.dialog.preview = true
},
edit (item) {
console.log('edit', JSON.stringify(item))
this.posterEdit.step = 0
this.dialog.edit = true
},
ready () { }
ready () {
console.log('ready')
}
},
}
</script>
......@@ -52,7 +57,7 @@ export default {
<template>
<MaPage
ref="page"
type="0"
type="5"
@listChange="listChange"
:selected="ids"
v-slot="{ list }"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册