@ -9,7 +9,7 @@
<el-radio-group v-model="form.type">
<el-radio :label="1">视频</el-radio>
<el-radio :label="2">图片</el-radio>
<el-radio :label="3">文章</el-radio>
<el-radio :label="3">文字</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item label="上传封面">
@ -2,7 +2,7 @@ export function statusFormatter(row) {
switch(row.type) {
case 1: return '视频';
case 2: return '图片';
case 3: return '图文';
case 3: return '文字';
default: return '';
}
};
@ -97,7 +97,10 @@ export default defineComponent({
'删除', //标题
{type: 'warning'}
).then(() => {
this.$message.success('删除成功')
this.proxy.$post("/topicActivity/del", {id: id}).then(res => {
this.getData()
this.$message.success(res.data)
}).catch(() => {});
}).catch(() => {})