zx 3 years ago
parent 0e99a95913
commit 0e438931e7

@ -9,7 +9,7 @@
<el-radio-group v-model="form.type"> <el-radio-group v-model="form.type">
<el-radio :label="1">视频</el-radio> <el-radio :label="1">视频</el-radio>
<el-radio :label="2">图片</el-radio> <el-radio :label="2">图片</el-radio>
<el-radio :label="3"></el-radio> <el-radio :label="3"></el-radio>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
<el-form-item label="上传封面"> <el-form-item label="上传封面">

@ -2,7 +2,7 @@ export function statusFormatter(row) {
switch(row.type) { switch(row.type) {
case 1: return '视频'; case 1: return '视频';
case 2: return '图片'; case 2: return '图片';
case 3: return '文'; case 3: return '';
default: return ''; default: return '';
} }
}; };

@ -97,7 +97,10 @@ export default defineComponent({
'删除', // '删除', //
{type: 'warning'} {type: 'warning'}
).then(() => { ).then(() => {
this.$message.success('删除成功') this.proxy.$post("/topicActivity/del", {id: id}).then(res => {
this.getData()
this.$message.success(res.data)
}).catch(() => {});
}).catch(() => {}) }).catch(() => {})
} }
} }

Loading…
Cancel
Save