Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
vue-gjjs
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fukai
vue-gjjs
Commits
e2674923
Commit
e2674923
authored
Mar 30, 2022
by
hulei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
展示面函是提交面函语种
parent
49bd435e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletions
+4
-1
Show.vue
src/views/Docpan/Show.vue
+2
-1
Docpan.vue
src/views/Public/Docpan.vue
+2
-0
No files found.
src/views/Docpan/Show.vue
View file @
e2674923
...
...
@@ -35,6 +35,7 @@ export default {
};
},
created
()
{
let
doclang
=
window
.
sessionStorage
.
doclang
||
""
;
this
.
model
.
docXML
=
window
.
sessionStorage
.
docXML
;
this
.
model
.
docTXT
=
window
.
sessionStorage
.
docTXT
.
split
(
"
\
r
\
n"
)
...
...
@@ -47,7 +48,7 @@ export default {
];
});
if
(
this
.
model
.
docXML
!=
""
)
Api
.
post
(
"pdf"
,
{
xml
:
this
.
model
.
docXML
}).
then
((
res
)
=>
{
Api
.
post
(
"pdf"
,
{
"xml"
:
this
.
model
.
docXML
,
"doclang"
:
doclang
}).
then
((
res
)
=>
{
if
(
res
.
respCode
==
SUCCESS
)
{
this
.
pdf
=
"data:application/pdf;base64,"
+
res
.
data
;
}
...
...
src/views/Public/Docpan.vue
View file @
e2674923
...
...
@@ -458,6 +458,7 @@ export default {
async
handleDisplay
(
index
,
row
,
doceot
){
//后续要根据快照模式切换请求方式
let
cortyp
=
row
.
cortyp
let
docuil
=
doceot
.
docuil
;
let
docnam
=
doceot
.
docnam
||
''
;
docnam
=
docnam
.
substr
(
docnam
.
indexOf
(
"
\
\"
)+1).toLowerCase().replaceAll("
\\
","
_
");
let rtnmsg
...
...
@@ -507,6 +508,7 @@ export default {
let attr = DocUtils.getDocAttribute(docnam,structure,execution)
window.sessionStorage.docTXT = ''
window.sessionStorage.docXML = rtnmsg.data[attr];
window.sessionStorage.doclang = docuil;
}
// console.log( window.sessionStorage.docTXT);
// console.log( window.sessionStorage.docXML);
...
...
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