| | |
| | | 编辑议题 |
| | | </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" v-if="row.articleType != 4" :type="type" |
| | | @click.stop="openUserPopup(row, 0)"> |
| | | 参与用户 |
| | | </el-button> |
| | | |
| | | <!-- <el-button icon="el-icon-user" v-if="row.type == 4" :size="size" :type="type" @click.stop="handleExport(row)"> |
| | | 导出用户 |
| | | </el-button> --> |
| | | <el-button icon="el-icon-user" v-if="row.articleType == 4" :size="size" :type="type" |
| | | @click.stop="handleExport(row)"> |
| | | 导出投票结果 |
| | | </el-button> |
| | | |
| | | <el-button v-if="row.publish == '1'" icon="el-icon-close" :size="size" :type="type" @click.stop="updateFb(row)"> |
| | | 撤销 |
| | |
| | | minRows: 2, |
| | | tags: true, |
| | | type: "tree", |
| | | dataType: "string", |
| | | multiple: true, |
| | | dicData: [], |
| | | rules: [{ |
| | |
| | | }, |
| | | methods: { |
| | | handleExport(row) { |
| | | this.$confirm("是否导出投票人员数据?", "提示", { |
| | | this.$confirm("是否导出投票结果数据?", "提示", { |
| | | confirmButtonText: "确定", |
| | | cancelButtonText: "取消", |
| | | type: "warning" |
| | |
| | | NProgress.start() |
| | | this.query = {} |
| | | this.query.articleId = row.id |
| | | this.query.districtId = row.articleRange |
| | | var data = { |
| | | ...this.query |
| | | } |
| | |
| | | `/api/blade-userTopics/userTopics/exportDataIndex?${this.website.tokenHeader}=${getToken()}&` + data) |
| | | .then( |
| | | res => { |
| | | downloadXls(res.data, `投票人员${dateNow()}.xlsx`) |
| | | downloadXls(res.data, `投票结果${dateNow()}.xlsx`) |
| | | NProgress.done() |
| | | }) |
| | | }) |
| | |
| | | }) |
| | | }, |
| | | |
| | | openUserPopup(row) { |
| | | this.$refs.DeitDiscussion.openUser(row) |
| | | openUserPopup(row, type) { |
| | | this.$refs.DeitDiscussion.openUser(row, type) |
| | | }, |
| | | |
| | | openDilog(row, type) { |
| | |
| | | row.videoUrl = "" |
| | | } |
| | | row.userid = this.userInfo.user_id |
| | | row.articleRange = JSON.stringify(row.articleList) |
| | | row.articleRange = row.articleList |
| | | if (row.url.length > 0) { |
| | | var urls = [] |
| | | var split = row.url.split(",") |
| | |
| | | ) |
| | | }, |
| | | rowUpdate(row, index, done, loading) { |
| | | row.articleRange = JSON.stringify(row.articleList) |
| | | row.articleRange = row.articleList |
| | | if (row.url.length > 0) { |
| | | var urls = [] |
| | | var split = row.url.split(",") |
| | |
| | | // }) |
| | | this.form = { |
| | | ...data, |
| | | articleList: JSON.parse(data.articleRange) |
| | | articleList: data.articleRange |
| | | } |
| | | }) |
| | | } |
| | |
| | | this.page.total = data.total |
| | | this.data = data.records |
| | | this.data.forEach(item => { |
| | | item.articleList = JSON.parse(item.articleRange) |
| | | item.articleList = item.articleRange |
| | | if (item.url.length > 0) { |
| | | var urls = [] |
| | | var names = item.url.split(",") |
| | |
| | | .avue-upload__icon { |
| | | line-height: 6; |
| | | } |
| | | </style> |
| | | </style> |