| | |
| | | </template> |
| | | |
| | | <template slot-scope="{type,size,row }" slot="menu"> |
| | | <el-button icon="el-icon-circle-plus-outline" :size="size" :type="type" @click.stop="openDilog(row,0)"> |
| | | <el-button icon="el-icon-circle-plus-outline" :size="size" :type="type" @click.stop="openDilog(row)"> |
| | | 公益报名 |
| | | </el-button> |
| | | <el-button icon="el-icon-user" :size="size" :type="type" @click.stop="openUserPopup(row, 1)"> |
| | | <el-button icon="el-icon-user" :size="size" :type="type" @click.stop="openUserPopup(row)"> |
| | | 参与用户 |
| | | </el-button> |
| | | <el-button v-if="row.publish == '1'" icon="el-icon-close" :size="size" :type="type" @click.stop="updateFb(row)"> |
| | |
| | | </template> |
| | | </avue-crud> |
| | | |
| | | <publicSignUpChild ref="publicSignUpChild"></publicSignUpChild> |
| | | |
| | | <el-dialog title="" append-to-body :visible.sync="dialogVisibles" width="50%" :before-close="handleClose"> |
| | | <span slot="title" class="dialog-footer"> |
| | | {{discussForm.ontitle}} |
| | | </span> |
| | | <!-- <div id="" v-if="discussForm.eventType == 1"> |
| | | <avue-form @submit="handleSubmit" :option="optionDiscuss" v-model="discussForm"></avue-form> |
| | | </div> --> |
| | | |
| | | <div id=""> |
| | | <avue-form @submit="handleSubmit" :option="optionEnroll" v-model="discussForm"> |
| | | </avue-form> |
| | | </div> |
| | | <avue-form @submit="handleSubmit" :option="optionEnroll" v-model="discussForm"></avue-form> |
| | | </el-dialog> |
| | | |
| | | |
| | | |
| | | |
| | | </basic-container> |
| | | </template> |
| | |
| | | removePd, |
| | | updatePd, |
| | | addPd, |
| | | getNoticePd, |
| | | getDetailPd, |
| | | upcommentPd |
| | | } from "@/api/discuss/publicDiscuss"; |
| | | |
| | |
| | | voteNumberPublic: 0, |
| | | appointUser: '', |
| | | userIds: '', |
| | | eventType: 1, |
| | | eventType: 0, |
| | | }, |
| | | dialogVisibles: false, |
| | | form: {}, |
| | |
| | | excelBtn: true, |
| | | dialogClickModal: false, |
| | | column: [{ |
| | | label: "资讯标题", |
| | | label: "文章标题", |
| | | prop: "title", |
| | | span: 24, |
| | | row: true, |
| | |
| | | search: true, |
| | | rules: [{ |
| | | required: true, |
| | | message: "请输入资讯标题", |
| | | message: "请输入文章标题", |
| | | trigger: "blur", |
| | | }, ], |
| | | }, |
| | | { |
| | | label: "资讯封面", |
| | | label: "文章封面", |
| | | prop: "url", |
| | | // align:'center', |
| | | width: 80, |
| | |
| | | span: 24, |
| | | }, |
| | | { |
| | | label: "资讯范围", |
| | | label: "文章范围", |
| | | prop: "articleList", |
| | | span: 12, |
| | | minRows: 2, |
| | |
| | | dicData: [], |
| | | rules: [{ |
| | | required: true, |
| | | message: "请选择资讯范围", |
| | | message: "请选择文章范围", |
| | | trigger: "blur", |
| | | }, ], |
| | | props: { |
| | |
| | | hide: true, |
| | | }, |
| | | { |
| | | label: "资讯类型", |
| | | label: "文章类型", |
| | | prop: "type", |
| | | searchSpan: 3, |
| | | width: 80, |
| | |
| | | type: "select", |
| | | rules: [{ |
| | | required: true, |
| | | message: "请选择资讯类型", |
| | | message: "请选择文章类型", |
| | | trigger: "blur", |
| | | }, ], |
| | | dicData: [{ |
| | |
| | | ], |
| | | }, |
| | | { |
| | | label: "资讯内容", |
| | | label: "文章内容", |
| | | prop: "content", |
| | | component: "AvueUeditor", |
| | | options: { |
| | |
| | | offset: 6, |
| | | prop: "endTime", |
| | | type: "datetime", |
| | | format: "yyyy-MM-dd hh:mm:ss", |
| | | valueFormat: "timestamp", |
| | | format: "yyyy-MM-dd", |
| | | valueFormat: "yyyy-MM-dd HH:mm:ss", |
| | | rules: [{ |
| | | required: true, |
| | | message: "请选截止时间", |
| | |
| | | }, |
| | | methods: { |
| | | |
| | | |
| | | openUserPopup(row) { |
| | | this.$refs.publicSignUpChild.openUser(row) |
| | | }, |
| | | |
| | | openDilog(row, type) { |
| | | this.dialogVisibles = true |
| | | this.discussForm.eventType = type |
| | | this.discussForm.articleId = row.id |
| | | this.discussForm.title = row.title |
| | | if (type == 0) { |
| | | this.discussForm.ontitle = '公益报名' |
| | | } else { |
| | | this.discussForm.ontitle = '创建议题' |
| | | } |
| | | this.discussForm.ontitle = '公益报名' |
| | | this.getpunlicDiscussDetail(row) |
| | | }, |
| | | |
| | | getpunlicDiscussDetail(row) { |
| | | getDetailPd({ |
| | | articleId: row.id |
| | | }).then((res) => { |
| | | let data = res.data.data |
| | | this.discussForm = data; |
| | | }); |
| | | }, |
| | | |
| | | handleSubmit(form, done) { |
| | |
| | | .avue-upload__icon { |
| | | line-height: 6; |
| | | } |
| | | </style> |
| | | </style> |