| | |
| | | ...this.query |
| | | } |
| | | data = Qs.stringify(data) |
| | | if (this.type == 0 && this.newData.articleType === 4) { |
| | | exportBlob( |
| | | `/api/blade-userTopics/userTopics/exportDataIndex?${this.website.tokenHeader}=${getToken()}&` + data |
| | | ).then( |
| | | exportBlob( |
| | | `/api/blade-userTopics/userTopics/exportUser?${this.website.tokenHeader}=${getToken()}&` + data) |
| | | .then( |
| | | res => { |
| | | downloadXls(res.data, `投票统计${dateNow()}.xlsx`) |
| | | downloadXls(res.data, `投票人员${dateNow()}.xlsx`) |
| | | NProgress.done() |
| | | }) |
| | | } else { |
| | | exportBlob( |
| | | `/api/blade-userTopics/userTopics/exportUser?${this.website.tokenHeader}=${getToken()}&` + data) |
| | | .then( |
| | | res => { |
| | | downloadXls(res.data, `投票人员${dateNow()}.xlsx`) |
| | | NProgress.done() |
| | | }) |
| | | } |
| | | |
| | | }) |
| | | }, |
| | | |
| | |
| | | done() |
| | | }, |
| | | |
| | | openUser(row, type = 0) { |
| | | openUser(row, type) { |
| | | this.type = type |
| | | this.popupTableUserShow = true |
| | | this.query = {} |
| | |
| | | </el-button> |
| | | |
| | | <el-button icon="el-icon-user" :size="size" v-if="row.articleType != 4" :type="type" |
| | | @click.stop="openUserPopup(row, 1)"> |
| | | @click.stop="openUserPopup(row, 0)"> |
| | | 参与用户 |
| | | </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)"> |
| | |
| | | }, |
| | | methods: { |
| | | handleExport(row) { |
| | | this.$confirm("是否导出投票人员数据?", "提示", { |
| | | this.$confirm("是否导出投票结果数据?", "提示", { |
| | | confirmButtonText: "确定", |
| | | cancelButtonText: "取消", |
| | | type: "warning" |
| | |
| | | `/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) { |
| | |
| | | .avue-upload__icon { |
| | | line-height: 6; |
| | | } |
| | | </style> |
| | | </style> |