提交 3de312ae authored 作者: 林国禄's avatar 林国禄

更新调查列表

上级 b766254a
...@@ -10,9 +10,10 @@ export function getProjectList() { ...@@ -10,9 +10,10 @@ export function getProjectList() {
// 导出所有项目数据 // 导出所有项目数据
export function exportAllProject() { export function exportAllProject(value) {
return request({ return request({
url: '/backstage/dataReport/exportAllProject', url: '/backstage/dataReport/exportAllProject',
method: 'get', method: 'post',
data:value
}) })
} }
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
form:{}, form:{},
rules:{}, rules:{},
levelOptions:[], levelOptions:[],
levelValue:null levelValue:[]
} }
}, },
created() { created() {
...@@ -60,11 +60,12 @@ ...@@ -60,11 +60,12 @@
methods:{ methods:{
handleChange(){}, handleChange(){},
handleExport() { handleExport() {
this.$confirm('是否确认导出所有项目数据项?', "警告", { console.log(this.levelValue)
this.$confirm('是否确认导出所选项目数据项?', "警告", {
confirmButtonText: "确定", confirmButtonText: "确定",
cancelButtonText: "取消", cancelButtonText: "取消",
type: "warning" type: "warning"
}).then(function() { }).then(() =>{
return exportAllProject(this.levelValue); return exportAllProject(this.levelValue);
}).then(response => { }).then(response => {
this.download(response.msg); this.download(response.msg);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论