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
5323cf2e
Commit
5323cf2e
authored
Mar 05, 2024
by
heshihao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 修改格式化
parent
0828541d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
src/views/patent/patentDetails.vue
+17
-0
No files found.
src/views/patent/patentDetails.vue
View file @
5323cf2e
...
@@ -350,6 +350,12 @@ export default {
...
@@ -350,6 +350,12 @@ export default {
patentDetail
({
id
:
id
}).
then
((
res
)
=>
{
patentDetail
({
id
:
id
}).
then
((
res
)
=>
{
if
(
res
.
code
==
0
)
{
if
(
res
.
code
==
0
)
{
this
.
details
=
res
.
data
;
this
.
details
=
res
.
data
;
Object
.
entries
(
this
.
details
).
map
((
item
)
=>
{
if
(
item
[
1
]
==
null
||
item
[
1
]
===
""
)
{
item
[
1
]
=
"-"
;
}
this
.
details
[
item
[
0
]]
=
item
[
1
];
});
// this.details.zy = this.details.zy.replaceAll("
<
Sub
>
0
<
/Sub>", "₀"
)
;
// this.details.zy = this.details.zy.replaceAll("
<
Sub
>
0
<
/Sub>", "₀"
)
;
// this.details.zy = this.details.zy.replaceAll("
<
Sub
>
1
<
/Sub>", "₁"
)
;
// this.details.zy = this.details.zy.replaceAll("
<
Sub
>
1
<
/Sub>", "₁"
)
;
// this.details.zy = this.details.zy.replaceAll("
<
Sub
>
2
<
/Sub>", "₂"
)
;
// this.details.zy = this.details.zy.replaceAll("
<
Sub
>
2
<
/Sub>", "₂"
)
;
...
@@ -363,6 +369,16 @@ export default {
...
@@ -363,6 +369,16 @@ export default {
let
word_cloud
=
res
.
data
.
word_cloud
;
let
word_cloud
=
res
.
data
.
word_cloud
;
this
.
techArr
=
[];
this
.
techArr
=
[];
for
(
let
key
in
word_cloud
)
{
for
(
let
key
in
word_cloud
)
{
key
=
key
.
replaceAll
(
"<Sub>0</Sub>"
,
"₀"
);
key
=
key
.
replaceAll
(
"<Sub>1</Sub>"
,
"₁"
);
key
=
key
.
replaceAll
(
"<Sub>2</Sub>"
,
"₂"
);
key
=
key
.
replaceAll
(
"<Sub>3</Sub>"
,
"₃"
);
key
=
key
.
replaceAll
(
"<Sub>4</Sub>"
,
"₄"
);
key
=
key
.
replaceAll
(
"<Sub>5</Sub>"
,
"₅"
);
key
=
key
.
replaceAll
(
"<Sub>6</Sub>"
,
"₆"
);
key
=
key
.
replaceAll
(
"<Sub>7</Sub>"
,
"₇"
);
key
=
key
.
replaceAll
(
"<Sub>8</Sub>"
,
"₈"
);
key
=
key
.
replaceAll
(
"<Sub>9</Sub>"
,
"₉"
);
this
.
techArr
.
push
({
this
.
techArr
.
push
({
name
:
key
,
name
:
key
,
value
:
word_cloud
[
key
],
value
:
word_cloud
[
key
],
...
@@ -604,6 +620,7 @@ export default {
...
@@ -604,6 +620,7 @@ export default {
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
const
fileReader
=
new
FileReader
();
const
fileReader
=
new
FileReader
();
fileReader
.
onload
=
(
e
)
=>
{
fileReader
.
onload
=
(
e
)
=>
{
console
.
log
(
e
,
"数据信息"
);
exportword
({
exportword
({
report_data
:
e
.
target
.
result
,
report_data
:
e
.
target
.
result
,
email
:
email
,
email
:
email
,
...
...
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