提交 e5006993 authored 作者: 黎业扬's avatar 黎业扬

yang

上级 e37c774c
...@@ -331,6 +331,7 @@ ...@@ -331,6 +331,7 @@
</template> </template>
<script> <script>
import { Loading } from 'element-ui';
import { selectCheckTarget,getCheckTarget,selectRectifyTarget,getRectifyTarget, distributeRectificationJob, rollbackJob, auditJob, getList,listJob, getJob, delJob, addJob, updateJob, exportJob } from "@/api/backstage/job"; import { selectCheckTarget,getCheckTarget,selectRectifyTarget,getRectifyTarget, distributeRectificationJob, rollbackJob, auditJob, getList,listJob, getJob, delJob, addJob, updateJob, exportJob } from "@/api/backstage/job";
import {exportAllProject,getProjectList,getAllProjectList,getThemeListByProjectId,exportAllTheme } from "@/api/backstage/dataReport"; import {exportAllProject,getProjectList,getAllProjectList,getThemeListByProjectId,exportAllTheme } from "@/api/backstage/dataReport";
...@@ -597,11 +598,14 @@ export default { ...@@ -597,11 +598,14 @@ export default {
cancelButtonText: "取消", cancelButtonText: "取消",
type: "warning" type: "warning"
}).then(() =>{ }).then(() =>{
this.exportOpen = false;
return exportAllTheme(this.projectIdSelect,this.exportLevelValue); this.openFullScreen();
return exportAllTheme(this.projectIdSelect,this.exportLevelValue);
}).then(response => { }).then(response => {
this.download(response.msg); this.download(response.msg);
this.exportOpen = false; this.closeFullScreen(this.openFullScreen())
}).catch(()=>{
this.closeFullScreen(this.openFullScreen())
}) })
}, },
...@@ -737,6 +741,21 @@ export default { ...@@ -737,6 +741,21 @@ export default {
}) })
}, },
}
//开启Loading加载
openFullScreen() {
const loading = this.$loading({
lock: true,
text: 'Loading',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)'
});
return loading;
},
//关闭Loading加载
closeFullScreen(loading){
loading.close();
},
},
}; };
</script> </script>
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论