| | |
| | | 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", |
| | |
| | | } |
| | | data = Qs.stringify(data) |
| | | exportBlob( |
| | | `/api/blade-userTopics/userTopics/exportUser?${this.website.tokenHeader}=${getToken()}&` + data) |
| | | `/ssoapi/blade-userTopics/userTopics/exportUser?${this.website.tokenHeader}=${getToken()}&` + data) |
| | | .then( |
| | | res => { |
| | | downloadXls(res.data, `投票人员${dateNow()}.xlsx`) |