This commit is contained in:
liuye
2022-10-27 09:05:42 +08:00
parent 1a318d4d2a
commit 042139091a
2 changed files with 7 additions and 3 deletions

View File

@@ -4,7 +4,7 @@
<ai-search-bar> <ai-search-bar>
<template #left> <template #left>
<el-button size="small" type="primary" icon="iconfont iconAdd" @click="toAdd()">发起活动</el-button> <el-button size="small" type="primary" icon="iconfont iconAdd" @click="toAdd()">发起活动</el-button>
<ai-select v-model="search.actionStatus" placeholder="请选择活动状态" :selectList="dict.getDict('activityStatus')" <ai-select v-model="search.actionStatus" placeholder="请选择活动状态" :selectList="dict.getDict('partyReportActionStatus')"
@change="getListInit"></ai-select> @change="getListInit"></ai-select>
<ai-select v-model="search.signupStatus" placeholder="请选择报名状态" :selectList="dict.getDict('partyReportSignupStatus')" <ai-select v-model="search.signupStatus" placeholder="请选择报名状态" :selectList="dict.getDict('partyReportSignupStatus')"
@change="getListInit"></ai-select> @change="getListInit"></ai-select>
@@ -77,7 +77,7 @@ export default {
{slot: 'activeTime'}, {slot: 'activeTime'},
{prop: 'total', label: '报名人数', align: 'center', width: 120}, {prop: 'total', label: '报名人数', align: 'center', width: 120},
{prop: 'signupStatus', label: '报名状态', align: 'center', dict: 'partyReportSignupStatus', width: 120}, {prop: 'signupStatus', label: '报名状态', align: 'center', dict: 'partyReportSignupStatus', width: 120},
{prop: 'actionStatus', label: '活动状态', align: 'center', dict: 'activityStatus', width: 120}, {prop: 'actionStatus', label: '活动状态', align: 'center', dict: 'partyReportActionStatus', width: 120},
{slot: 'option'}, {slot: 'option'},
], ],
tableData: [], tableData: [],
@@ -88,7 +88,7 @@ export default {
...mapState(['user']), ...mapState(['user']),
}, },
created() { created() {
this.dict.load('activityStatus', 'partyReportSignupStatus').then(() => { this.dict.load('partyReportActionStatus', 'partyReportSignupStatus').then(() => {
this.getList() this.getList()
}) })

View File

@@ -218,6 +218,7 @@
:isShowTip="true" :isShowTip="true"
:instance="instance" :instance="instance"
v-model="form.fileList" v-model="form.fileList"
fileType="file"
acceptType=".zip,.rar,.doc,.docx,.xls,.ppt,.pptx,.pdf,.txt,.jpg,.png,.xlsx" acceptType=".zip,.rar,.doc,.docx,.xls,.ppt,.pptx,.pdf,.txt,.jpg,.png,.xlsx"
:limit="9"> :limit="9">
<template slot="tips"> <template slot="tips">
@@ -592,6 +593,9 @@ export default {
if(!this.isEdit) { if(!this.isEdit) {
this.form.partyOrgId = this.$route.query.partyOrgId this.form.partyOrgId = this.$route.query.partyOrgId
} }
if (this.form.fileList.length > 0) {
this.form.files = JSON.stringify(this.form.fileList)
}
this.instance.post(`/app/apppartydevelop/addOrUpdate`, {...this.form}).then((res) => { this.instance.post(`/app/apppartydevelop/addOrUpdate`, {...this.form}).then((res) => {
if (res.code == 0) { if (res.code == 0) {
this.$message.success(this.isEdit ? "编辑成功" : "添加成功"); this.$message.success(this.isEdit ? "编辑成功" : "添加成功");