| | |
| | | </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> |
| | |
| | | total: 0 |
| | | }, |
| | | query: {}, |
| | | newData: {}, |
| | | } |
| | | }, |
| | | |
| | |
| | | }, |
| | | |
| | | 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) { |
| | |
| | | openUser (row, type = 0) { |
| | | this.popupTableUserShow = true |
| | | this.query = {} |
| | | this.articleId = row.id |
| | | if (type == 0) { |
| | | this.userParams = { |
| | | articleId: row.id |