提交 e8fc4010 authored 作者: CRS's avatar CRS

wps

上级 8c4a72ba
...@@ -5051,7 +5051,6 @@ export default { ...@@ -5051,7 +5051,6 @@ export default {
}, },
//生命周期 - 创建完成(可以访问当前this实例) //生命周期 - 创建完成(可以访问当前this实例)
created() { created() {
this.getPrev(); this.getPrev();
// console.log("系统不熟",this.$loading()); // console.log("系统不熟",this.$loading());
}, },
......
...@@ -787,7 +787,7 @@ ...@@ -787,7 +787,7 @@
<script> <script>
// 这里可以导入其他文件(比如:组件,工具js,第三方插件js,json文件,图片文件等等) // 这里可以导入其他文件(比如:组件,工具js,第三方插件js,json文件,图片文件等等)
// 例如:import 《组件名称》 from '《组件路径》'; // 例如:import 《组件名称》 from '《组件路径》';
import $ from 'jquery' import config from '../../../config';
export default { export default {
name: 'reportAssess', name: 'reportAssess',
// import引入的组件需要注入到对象中才能使用 // import引入的组件需要注入到对象中才能使用
...@@ -907,12 +907,14 @@ export default { ...@@ -907,12 +907,14 @@ export default {
} }
this.$server.getEvaDownload(val).then(res=>{ this.$server.getEvaDownload(val).then(res=>{
console.log(res) console.log(res)
if (res.status === 200) { if (res.data.code === 200) {
if (res.data !== '') { if (res.data.data !== '') {
let name = this.type === 2 ? '适配' : '改造' + '报告'; let name = this.type === 2 ? '适配' : '改造' + '报告';
name = this.sysName + '系统' + name name = this.sysName + '系统' + name
let x = new XMLHttpRequest(); let x = new XMLHttpRequest();
x.open('GET', res.data, true); this.$message.success('正在生成wps文件,请稍等!')
let url = config.assessma + res.data.data;
x.open('GET', url, true);
x.responseType = 'blob'; x.responseType = 'blob';
x.onload = (e) =>{ x.onload = (e) =>{
console.log(e) console.log(e)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论