| | |
| | | addPd, |
| | | updatePd, |
| | | removePd |
| | | } from "@/api/discuss/publicDiscuss" |
| | | } from "@/ssoapi/discuss/publicDiscuss" |
| | | |
| | | import { |
| | | getPage |
| | | } from "@/api/discuss/userTopics" |
| | | } from "@/ssoapi/discuss/userTopics" |
| | | import NProgress from 'nprogress' |
| | | import 'nprogress/nprogress.css' |
| | | import Qs from "qs" |
| | | import { |
| | | exportBlob |
| | | } from "@/api/common" |
| | | } from "@/ssoapi/common" |
| | | import { |
| | | getToken |
| | | } from '@/util/auth' |
| | |
| | | add, |
| | | update, |
| | | remove |
| | | } from "@/api/discuss/topics" |
| | | } from "@/ssoapi/discuss/topics" |
| | | |
| | | export default { |
| | | data() { |
| | |
| | | prop: "attachment", |
| | | type: "upload", |
| | | listType: "text", |
| | | action: "/api/blade-resource/oss/endpoint/put-pdfFile", |
| | | action: "/ssoapi/blade-resource/oss/endpoint/put-pdfFile", |
| | | accept: "application/pdf", |
| | | propsHttp: { |
| | | res: "data", |
| | |
| | | ...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( |
| | | `/ssoapi/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 = {} |