Commit 66f220ea by liudx

联调导出页面

parent 61205354
No preview for this file type
No preview for this file type
...@@ -96,6 +96,7 @@ export default { ...@@ -96,6 +96,7 @@ export default {
}, },
], ],
}); });
window.addEventListener("resize", myChart.resize);
}, },
}, },
}; };
......
...@@ -1217,7 +1217,7 @@ export default { ...@@ -1217,7 +1217,7 @@ export default {
"application/vnd.openxmlformats-officedocument.wordprocessingml.document", "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
}); });
//formData文件流 //formData文件流
that.blobToBase64(out, that.formState.email); that.blobToBase64(out, that.formState.email,that.baseinfo.company_name);
// 将目标文件对象保存为目标类型的文件,并命名 // 将目标文件对象保存为目标类型的文件,并命名
// saveAs(out, `企业科创能力报告.docx`); // saveAs(out, `企业科创能力报告.docx`);
} }
...@@ -1230,7 +1230,7 @@ export default { ...@@ -1230,7 +1230,7 @@ export default {
// 处理验证失败的情况 // 处理验证失败的情况
}); });
}, },
blobToBase64(blob, email) { blobToBase64(blob, email,name) {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
const fileReader = new FileReader(); const fileReader = new FileReader();
fileReader.onload = (e) => { fileReader.onload = (e) => {
...@@ -1238,6 +1238,7 @@ export default { ...@@ -1238,6 +1238,7 @@ export default {
exportword({ exportword({
report_data: e.target.result, report_data: e.target.result,
email: email, email: email,
name:name
}).then((res) => { }).then((res) => {
if (res.code == 0) { if (res.code == 0) {
message.success(res.msg); message.success(res.msg);
......
...@@ -418,8 +418,8 @@ export default { ...@@ -418,8 +418,8 @@ export default {
cursor: pointer; cursor: pointer;
} }
.rank_item { .rank_item {
height: 45px; height: 40px;
line-height: 45px; line-height: 40px;
color: #555770; color: #555770;
cursor: pointer; cursor: pointer;
} }
......
...@@ -607,23 +607,31 @@ export default { ...@@ -607,23 +607,31 @@ export default {
let list = that.list; let list = that.list;
list.forEach((item) => { list.forEach((item) => {
// if (item.high_new == 1) { item.qualif = [];
// qualif.push("高新技术企业"); if (item.high_new == 1) {
// } else if (item.zjtg == 1) { item.qualif.push("高新技术企业");
// qualif.push("专精特新企业"); }
// } else if (item.zjtg_sjxjr == 1) { if (item.zjtg == 1) {
// qualif.push("专精特新小巨人企业"); item.qualif.push("专精特新企业");
// } else if (item.quoted_company == 1) { }
// qualif.push("上市企业"); if (item.zjtg_sjxjr == 1) {
// } item.qualif.push("专精特新小巨人企业");
if(item.patents.length>3){ }
item.patents.splice(2,item.patents.length-3) if (item.quoted_company == 1) {
} item.qualif.push("上市企业");
}
if (item.patents.length > 3) {
item.patents.splice(2, item.patents.length - 3);
}
item.business_scope_clone = [...item.business_scope];
item.business_scope_clone.forEach((it, index) => {
item.business_scope_clone[index] = it.replace(
/<[^<>]+>/g,
""
);
});
}); });
// that.list.patents = this.submitInfo.auditResult.split('\n')
// 设置模板变量的值 // 设置模板变量的值
doc.setData({ doc.setData({
...details, ...details,
...@@ -652,9 +660,9 @@ export default { ...@@ -652,9 +660,9 @@ export default {
"application/vnd.openxmlformats-officedocument.wordprocessingml.document", "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
}); });
//formData文件流 //formData文件流
that.blobToBase64(out, that.formState.email); that.blobToBase64(out, that.formState.email,that.details.gkh);
// 将目标文件对象保存为目标类型的文件,并命名 // 将目标文件对象保存为目标类型的文件,并命名
saveAs(out, `专利成果转移转化智能推荐报告.docx`); // saveAs(out, `专利成果转移转化智能推荐报告.docx`);
that.visible = false; that.visible = false;
} }
); );
...@@ -666,7 +674,7 @@ export default { ...@@ -666,7 +674,7 @@ export default {
// 处理验证失败的情况 // 处理验证失败的情况
}); });
}, },
blobToBase64(blob, email) { blobToBase64(blob, email,name) {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
const fileReader = new FileReader(); const fileReader = new FileReader();
fileReader.onload = (e) => { fileReader.onload = (e) => {
...@@ -674,6 +682,7 @@ export default { ...@@ -674,6 +682,7 @@ export default {
exportword({ exportword({
report_data: e.target.result, report_data: e.target.result,
email: email, email: email,
name:name
}).then((res) => { }).then((res) => {
if (res.code == 0) { if (res.code == 0) {
message.success(res.msg); message.success(res.msg);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment