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
66f220ea
Commit
66f220ea
authored
Aug 09, 2023
by
liudx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
联调导出页面
parent
61205354
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
34 additions
and
23 deletions
+34
-23
public/company.docx
+0
-0
public/patent.docx
+0
-0
public/~$patent.docx
+0
-0
src/components/EchartsCloud.vue
+1
-0
src/views/company/companyDetails.vue
+3
-2
src/views/home/home.vue
+2
-2
src/views/patent/patentDetails.vue
+28
-19
No files found.
public/company.docx
View file @
66f220ea
No preview for this file type
public/patent.docx
View file @
66f220ea
No preview for this file type
public/~$patent.docx
0 → 100644
View file @
66f220ea
File added
src/components/EchartsCloud.vue
View file @
66f220ea
...
@@ -96,6 +96,7 @@ export default {
...
@@ -96,6 +96,7 @@ export default {
},
},
],
],
});
});
window
.
addEventListener
(
"resize"
,
myChart
.
resize
);
},
},
},
},
};
};
...
...
src/views/company/companyDetails.vue
View file @
66f220ea
...
@@ -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
);
...
...
src/views/home/home.vue
View file @
66f220ea
...
@@ -418,8 +418,8 @@ export default {
...
@@ -418,8 +418,8 @@ export default {
cursor
:
pointer
;
cursor
:
pointer
;
}
}
.rank_item
{
.rank_item
{
height
:
4
5
px
;
height
:
4
0
px
;
line-height
:
4
5
px
;
line-height
:
4
0
px
;
color
:
#555770
;
color
:
#555770
;
cursor
:
pointer
;
cursor
:
pointer
;
}
}
...
...
src/views/patent/patentDetails.vue
View file @
66f220ea
...
@@ -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
);
...
...
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