| | |
| | | ...this.query |
| | | } |
| | | data = Qs.stringify(data) |
| | | if (this.newData.type === 4) { |
| | | exportBlob( |
| | | `/api/blade-userTopics/userTopics/exportDataIndex?${this.website.tokenHeader}=${getToken()}&` + data |
| | | ) |
| | | .then( |
| | | res => { |
| | | 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() |
| | | }) |
| | | } |
| | | 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 = {} |
| | |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss" scoped></style> |
| | | <style lang="scss" scoped></style> |