| | |
| | | * @Author: shuishen 1109946754@qq.com |
| | | * @Date: 2024-01-04 15:18:13 |
| | | * @LastEditors: shuishen 1109946754@qq.com |
| | | * @LastEditTime: 2024-01-05 17:23:39 |
| | | * @LastEditTime: 2024-01-04 17:13:22 |
| | | * @FilePath: \jczz_web\src\views\article\components\deitDiscussion.vue |
| | | * @Description: |
| | | * |
| | |
| | | </template> |
| | | <template #menu="{ row, size }"> |
| | | <el-button v-if="row.level === 1" :size="size" text type="primary" @click="edit(row)">编辑</el-button> |
| | | <el-button v-if="row.level === 1" :size="size" text type="danger" |
| | | @click="deletes(row)">删除</el-button> |
| | | <el-button v-if="row.level === 1" :size="size" text type="danger" @click="deletes(row)">删除</el-button> |
| | | <el-button v-if="row.level === 2" :size="size" text type="primary" @click="openUser(row, 1)"> |
| | | 选择此项人数:{{ row.number }} 详情</el-button> |
| | | </template> |
| | |
| | | createTime: '', |
| | | updateTime: '', |
| | | deleteFlag: '', |
| | | publicDiscussId: '', |
| | | articleId: '', |
| | | parentId: '', |
| | | level: '', |
| | | children: [{ |
| | |
| | | createTime: '', |
| | | updateTime: '', |
| | | deleteFlag: '', |
| | | publicDiscussId: '', |
| | | articleId: '', |
| | | parentId: '', |
| | | level: '', |
| | | }] |
| | | }, |
| | | optionDiscuss: { |
| | | emptyText: '取消', |
| | | column: [ |
| | | { |
| | | column: [{ |
| | | label: '议题', |
| | | prop: 'discussContent', |
| | | type: 'input', |
| | |
| | | defaultExpandAll: true, |
| | | rowKey: 'id', |
| | | rowParentKey: 'parentId', |
| | | column: [ |
| | | { |
| | | column: [{ |
| | | label: '标题', |
| | | prop: 'discussContent', |
| | | }, |
| | |
| | | ] |
| | | }, |
| | | |
| | | publicDiscussId: '', |
| | | articleId: '', |
| | | |
| | | userData: [], |
| | | userOption: { |
| | |
| | | label: '手机', |
| | | prop: 'phone' |
| | | }, { |
| | | width: 220, |
| | | overHidden: true, |
| | | label: '小区名称', |
| | | label: '小区', |
| | | prop: 'aoiName' |
| | | }, { |
| | | label: '地址', |
| | |
| | | } |
| | | }, |
| | | |
| | | watch: { |
| | | }, |
| | | watch: {}, |
| | | |
| | | methods: { |
| | | initData (newData) { |
| | | this.editFlag = false |
| | | this.popupTableShow = true |
| | | this.publicDiscussId = newData.id |
| | | this.articleId = newData.id |
| | | |
| | | this.onLoad() |
| | | }, |
| | |
| | | |
| | | handleSubmit (form, done) { |
| | | done() |
| | | form.publicDiscussId = this.publicDiscussId |
| | | form.articleId = this.articleId |
| | | |
| | | add(form).then( |
| | | () => { |
| | |
| | | |
| | | let params = { |
| | | level: 1, |
| | | publicDiscussId: this.publicDiscussId |
| | | articleId: this.articleId |
| | | } |
| | | |
| | | getLists(1, 100, Object.assign(params, this.query)).then(res => { |
| | |
| | | |
| | | if (type == 0) { |
| | | this.userParams = { |
| | | publicDiscussId: row.id |
| | | articleId: row.id |
| | | } |
| | | } else { |
| | | this.userParams = { |
| | |
| | | |
| | | let params = { |
| | | level: 1, |
| | | publicDiscussId: this.publicDiscussId |
| | | articleId: this.articleId |
| | | } |
| | | |
| | | getLists(1, 100, Object.assign(params, this.query)).then(res => { |