提交 181d4a66 编写于 作者: Duncan's avatar Duncan

修改问卷下载末班路径,变成动态请求

上级 51d3d66b
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
// 分页大小 // 分页大小
export const PAGE_SIZE = 10 export const PAGE_SIZE = 10
// 问卷--模板下载 // 问卷--模板下载 已废弃 2022年4月18日修改
export const QUESTION_UPLOAD_TEMPLATE = 'https://files.yunqueyi.com/discuss/question/templet/questionTemplet20210929.xlsx' export const QUESTION_UPLOAD_TEMPLATE = 'https://files.yunqueyi.com/discuss/question/templet/questionTemplet20210929.xlsx'
......
...@@ -81,7 +81,7 @@ ...@@ -81,7 +81,7 @@
import BreadCrumb from "../components/breadcrumb.vue"; import BreadCrumb from "../components/breadcrumb.vue";
import * as commonUtil from "../utils/utils"; import * as commonUtil from "../utils/utils";
import { getFilePath, doUpload } from "../utils/qiniu-util"; import { getFilePath, doUpload } from "../utils/qiniu-util";
import { QUESTION_UPLOAD_TEMPLATE } from "../utils/constants"; // import { QUESTION_UPLOAD_TEMPLATE } from "../utils/constants";
let vm = null; let vm = null;
export default { export default {
components: { components: {
......
...@@ -438,7 +438,7 @@ ...@@ -438,7 +438,7 @@
import BreadCrumb from "../../components/breadcrumb.vue"; import BreadCrumb from "../../components/breadcrumb.vue";
import * as commonUtil from "../../utils/utils"; import * as commonUtil from "../../utils/utils";
import { getFilePath, doUpload } from "../../utils/qiniu-util"; import { getFilePath, doUpload } from "../../utils/qiniu-util";
import { QUESTION_UPLOAD_TEMPLATE } from "../../utils/constants"; // import { QUESTION_UPLOAD_TEMPLATE } from "../../utils/constants";
let vm = null; let vm = null;
export default { export default {
components: { components: {
...@@ -482,6 +482,7 @@ export default { ...@@ -482,6 +482,7 @@ export default {
shareTitle: '', shareTitle: '',
shareIntro: '', shareIntro: '',
}, },
downloadUrl:"",
formStatus: "create", formStatus: "create",
loginAuthList: [], //登录权限控制 loginAuthList: [], //登录权限控制
userBase: {}, //基本信息 userBase: {}, //基本信息
...@@ -533,6 +534,7 @@ export default { ...@@ -533,6 +534,7 @@ export default {
// 挂载到Dom完成时 // 挂载到Dom完成时
mounted: function() { mounted: function() {
commonUtil.resizeHeight(); commonUtil.resizeHeight();
this.getDownloadPath();
}, },
methods: { methods: {
addAuditFlag() { addAuditFlag() {
...@@ -569,6 +571,14 @@ export default { ...@@ -569,6 +571,14 @@ export default {
vm.searchParam.status = ""; vm.searchParam.status = "";
vm.search(); vm.search();
}, },
//获取模板地址
getDownloadPath() {
vm.GET("/campaign/adminQuestionnaire/getDownloadPath").then(res => {
if (res.code == "000000") {
this.downloadUrl = res.data.downloadPath;
}
});
},
// 获取所有修改人 // 获取所有修改人
getAllModify() { getAllModify() {
vm.GET("/campaign/adminQuestionnaire/getAllUser").then(res => { vm.GET("/campaign/adminQuestionnaire/getAllUser").then(res => {
...@@ -708,7 +718,7 @@ export default { ...@@ -708,7 +718,7 @@ export default {
}, },
// 模板下载 // 模板下载
uploadTemplate() { uploadTemplate() {
window.location.href = QUESTION_UPLOAD_TEMPLATE; window.location.href = this.downloadUrl;
}, },
// 置灰不可点图片上传 // 置灰不可点图片上传
beforeAvatarUpload_1(file) { beforeAvatarUpload_1(file) {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册