linwei
2024-02-19 83e8ae98a1cbf703ccbdc05c78659233066735fd
参与用户清空后数据不对
1 files modified
13 ■■■■■ changed files
src/views/article/components/deitDiscussion.vue 13 ●●●●● patch | view | raw | blame | history
src/views/article/components/deitDiscussion.vue
@@ -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>
@@ -261,6 +260,7 @@
                total: 0
            },
            query: {},
        newData: {},
        }
    },
@@ -274,14 +274,16 @@
        },
        searchReset () {
            this.query = {}
            this.getUserPage(this.userPage)
        this.query.articleId = this.articleId
        this.userPage.currentPage = 1
        this.getUserPage(this.userPage, this.query)
        },
        searchChange (params, done) {
            this.query = params
        this.query.articleId = this.articleId
            this.userPage.currentPage = 1
            this.getUserPage(this.userPage, params)
        this.getUserPage(this.userPage, this.query)
            done()
        },
        initData (newData) {
@@ -412,6 +414,7 @@
        openUser (row, type = 0) {
            this.popupTableUserShow = true
            this.query = {}
        this.articleId = row.id
            if (type == 0) {
                this.userParams = {
                    articleId: row.id