linwei
2024-01-05 a7689afd3cd1fe4bbbd907e9aa2931a940ae8e5b
src/views/article/components/deitDiscussion.vue
@@ -2,7 +2,7 @@
 * @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: 
 * 
@@ -32,8 +32,7 @@
                    </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>
@@ -91,7 +90,7 @@
                createTime: '',
                updateTime: '',
                deleteFlag: '',
                publicDiscussId: '',
          articleId: '',
                parentId: '',
                level: '',
                children: [{
@@ -101,15 +100,14 @@
                    createTime: '',
                    updateTime: '',
                    deleteFlag: '',
                    publicDiscussId: '',
            articleId: '',
                    parentId: '',
                    level: '',
                }]
            },
            optionDiscuss: {
                emptyText: '取消',
                column: [
                    {
          column: [{
                        label: '议题',
                        prop: 'discussContent',
                        type: 'input',
@@ -173,8 +171,7 @@
                defaultExpandAll: true,
                rowKey: 'id',
                rowParentKey: 'parentId',
                column: [
                    {
          column: [{
                        label: '标题',
                        prop: 'discussContent',
                    },
@@ -185,7 +182,7 @@
                ]
            },
            publicDiscussId: '',
        articleId: '',
            userData: [],
            userOption: {
@@ -201,9 +198,7 @@
                    label: '手机',
                    prop: 'phone'
                }, {
                    width: 220,
                    overHidden: true,
                    label: '小区名称',
            label: '小区',
                    prop: 'aoiName'
                }, {
                    label: '地址',
@@ -223,14 +218,13 @@
        }
    },
    watch: {
    },
    watch: {},
    methods: {
        initData (newData) {
            this.editFlag = false
            this.popupTableShow = true
            this.publicDiscussId = newData.id
        this.articleId = newData.id
            this.onLoad()
        },
@@ -242,7 +236,7 @@
        handleSubmit (form, done) {
            done()
            form.publicDiscussId = this.publicDiscussId
        form.articleId = this.articleId
            add(form).then(
                () => {
@@ -255,7 +249,7 @@
                    let params = {
                        level: 1,
                        publicDiscussId: this.publicDiscussId
              articleId: this.articleId
                    }
                    getLists(1, 100, Object.assign(params, this.query)).then(res => {
@@ -349,7 +343,7 @@
            if (type == 0) {
                this.userParams = {
                    publicDiscussId: row.id
            articleId: row.id
                }
            } else {
                this.userParams = {
@@ -372,7 +366,7 @@
            let params = {
                level: 1,
                publicDiscussId: this.publicDiscussId
          articleId: this.articleId
            }
            getLists(1, 100, Object.assign(params, this.query)).then(res => {