Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
ty_patentSys
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hanxiao
ty_patentSys
Commits
61205354
Commit
61205354
authored
Aug 08, 2023
by
liudx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
专利word智能推荐修改
parent
956845e4
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
18 deletions
+19
-18
public/patent.docx
+0
-0
src/views/company/companyProfile.vue
+1
-4
src/views/patent/patentDetails.vue
+18
-14
No files found.
public/patent.docx
View file @
61205354
No preview for this file type
src/views/company/companyProfile.vue
View file @
61205354
...
@@ -300,7 +300,7 @@ export default {
...
@@ -300,7 +300,7 @@ export default {
],
],
pagination
:
{
pagination
:
{
pageSize
:
5
,
pageSize
:
5
,
showSizeChanger
:
false
showSizeChanger
:
false
,
},
},
};
};
},
},
...
@@ -308,9 +308,6 @@ export default {
...
@@ -308,9 +308,6 @@ export default {
handleAnchorClick
(
e
,
link
)
{
handleAnchorClick
(
e
,
link
)
{
// 阻止点击的默认事件修改路由
// 阻止点击的默认事件修改路由
e
.
preventDefault
();
e
.
preventDefault
();
// console.log(link)
// var srcolls = document.getElementById(link.href);
// srcolls.scrollIntoView({ block: "start", behavior: "smooth" });
},
},
},
},
};
};
...
...
src/views/patent/patentDetails.vue
View file @
61205354
...
@@ -605,26 +605,30 @@ export default {
...
@@ -605,26 +605,30 @@ export default {
doc
.
attachModule
(
new
ImageModule
(
opts
));
doc
.
attachModule
(
new
ImageModule
(
opts
));
let
list
=
that
.
list
;
let
list
=
that
.
list
;
let
qualif
=
[];
list
.
forEach
((
item
)
=>
{
list
.
forEach
((
item
)
=>
{
if
(
item
.
high_new
==
1
)
{
// if (item.high_new == 1) {
qualif
.
push
(
"高新技术企业"
);
// qualif.push("高新技术企业");
}
else
if
(
item
.
zjtg
==
1
)
{
// } else if (item.zjtg == 1) {
qualif
.
push
(
"专精特新企业"
);
// qualif.push("专精特新企业");
}
else
if
(
item
.
zjtg_sjxjr
==
1
)
{
// } else if (item.zjtg_sjxjr == 1) {
qualif
.
push
(
"专精特新小巨人企业"
);
// qualif.push("专精特新小巨人企业");
}
else
if
(
item
.
quoted_company
==
1
)
{
// } else if (item.quoted_company == 1) {
qualif
.
push
(
"上市企业"
);
// qualif.push("上市企业");
// }
if
(
item
.
patents
.
length
>
3
){
item
.
patents
.
splice
(
2
,
item
.
patents
.
length
-
3
)
}
}
});
});
that
.
list
.
qualif
=
qualif
;
// that.list.patents = this.submitInfo.auditResult.split('\n')
// that.list.patents = this.submitInfo.auditResult.split('\n')
// 设置模板变量的值
// 设置模板变量的值
doc
.
setData
({
doc
.
setData
({
...
details
,
...
details
,
today
,
today
,
list
,
list
,
qualif
,
// business_scope,
// business_scope,
// patent,
// patent,
image1
:
myChart1
.
getDataURL
({
image1
:
myChart1
.
getDataURL
({
...
@@ -648,9 +652,9 @@ export default {
...
@@ -648,9 +652,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
);
// 将目标文件对象保存为目标类型的文件,并命名
// 将目标文件对象保存为目标类型的文件,并命名
//
saveAs(out, `专利成果转移转化智能推荐报告.docx`);
saveAs
(
out
,
`专利成果转移转化智能推荐报告.docx`
);
that
.
visible
=
false
;
that
.
visible
=
false
;
}
}
);
);
...
@@ -662,7 +666,7 @@ export default {
...
@@ -662,7 +666,7 @@ export default {
// 处理验证失败的情况
// 处理验证失败的情况
});
});
},
},
blobToBase64
(
blob
,
email
)
{
blobToBase64
(
blob
,
email
)
{
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
const
fileReader
=
new
FileReader
();
const
fileReader
=
new
FileReader
();
fileReader
.
onload
=
(
e
)
=>
{
fileReader
.
onload
=
(
e
)
=>
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment