Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
X
xxx_phase2_web
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
夏敏伟
xxx_phase2_web
Commits
96b45d51
Commit
96b45d51
authored
Dec 05, 2023
by
以墨为白
🎧
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pdf
parent
21f07b64
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
27 deletions
+33
-27
src/view/flfg/znfx.vue
src/view/flfg/znfx.vue
+11
-7
src/view/fzjc/znfx.vue
src/view/fzjc/znfx.vue
+11
-7
src/view/sjgl/wxk_public.vue
src/view/sjgl/wxk_public.vue
+11
-13
No files found.
src/view/flfg/znfx.vue
View file @
96b45d51
...
@@ -626,15 +626,19 @@ export default {
...
@@ -626,15 +626,19 @@ export default {
// window.open(path_srt);
// window.open(path_srt);
// window.open(`api/rest/file/pdf/DocumentPDF?objectName=${row.file.uuid}`);
// window.open(`api/rest/file/pdf/DocumentPDF?objectName=${row.file.uuid}`);
getBlob
(
`api/rest/file/pdf/DocumentPDF?objectName=
${
row
.
file
.
uuid
}
`
).
then
(
res
=>
{
get
(
`api/rest/file/exists?bucket=DocumentPDF&filename=
${
row
.
file
.
uuid
}
`
).
then
(
res
=>
{
if
(
res
)
{
window
.
open
(
`api/rest/file/pdf/DocumentPDF?objectName=
${
row
.
file
.
uuid
}
`
);
window
.
open
(
`api/rest/file/pdf/DocumentPDF?objectName=
${
row
.
file
.
uuid
}
`
);
}).
catch
(
err
=>
{
}
else
{
post
(
"
api/rest/file/path?bucket=Document&filename=
"
+
row
.
file
.
uuid
).
then
(
res
=>
{
return
post
(
"
api/rest/file/path?bucket=Document&filename=
"
+
row
.
file
.
uuid
);
}
}).
then
(
res
=>
{
if
(
res
)
{
window
.
open
(
`./onlyoffice.html?url=
${
encodeURIComponent
(
res
)}
&fileType=
${
row
.
file
.
type
}
&filename=
${
row
.
name
}
`
);
window
.
open
(
`./onlyoffice.html?url=
${
encodeURIComponent
(
res
)}
&fileType=
${
row
.
file
.
type
}
&filename=
${
row
.
name
}
`
);
}
}).
catch
(
err
=>
{
}).
catch
(
err
=>
{
this
.
$message
(
"
预览失败
"
);
this
.
$message
(
"
预览失败
"
);
});
});
});
}
}
},
},
//table_全文搜索预览
//table_全文搜索预览
...
...
src/view/fzjc/znfx.vue
View file @
96b45d51
...
@@ -620,15 +620,19 @@ export default {
...
@@ -620,15 +620,19 @@ export default {
// window.open(path_srt);
// window.open(path_srt);
// window.open(`api/rest/file/pdf/DocumentPDF?objectName=${row.file.uuid}`);
// window.open(`api/rest/file/pdf/DocumentPDF?objectName=${row.file.uuid}`);
getBlob
(
`api/rest/file/pdf/DocumentPDF?objectName=
${
row
.
file
.
uuid
}
`
).
then
(
res
=>
{
get
(
`api/rest/file/exists?bucket=DocumentPDF&filename=
${
row
.
file
.
uuid
}
`
).
then
(
res
=>
{
if
(
res
)
{
window
.
open
(
`api/rest/file/pdf/DocumentPDF?objectName=
${
row
.
file
.
uuid
}
`
);
window
.
open
(
`api/rest/file/pdf/DocumentPDF?objectName=
${
row
.
file
.
uuid
}
`
);
}).
catch
(
err
=>
{
}
else
{
post
(
"
api/rest/file/path?bucket=Document&filename=
"
+
row
.
file
.
uuid
).
then
(
res
=>
{
return
post
(
"
api/rest/file/path?bucket=Document&filename=
"
+
row
.
file
.
uuid
);
}
}).
then
(
res
=>
{
if
(
res
)
{
window
.
open
(
`./onlyoffice.html?url=
${
encodeURIComponent
(
res
)}
&fileType=
${
row
.
file
.
type
}
&filename=
${
row
.
name
}
`
);
window
.
open
(
`./onlyoffice.html?url=
${
encodeURIComponent
(
res
)}
&fileType=
${
row
.
file
.
type
}
&filename=
${
row
.
name
}
`
);
}
}).
catch
(
err
=>
{
}).
catch
(
err
=>
{
this
.
$message
(
"
预览失败
"
);
this
.
$message
(
"
预览失败
"
);
});
});
});
}
}
},
},
//table_全文搜索预览
//table_全文搜索预览
...
...
src/view/sjgl/wxk_public.vue
View file @
96b45d51
...
@@ -549,21 +549,19 @@ export default {
...
@@ -549,21 +549,19 @@ export default {
// "/" +
// "/" +
// row.file.uuid;
// row.file.uuid;
// window.open(path_srt);
// window.open(path_srt);
getBlob
(
`api/rest/file/pdf/DocumentPDF?objectName=
${
row
.
file
.
uuid
}
`
).
then
(
res
=>
{
get
(
`api/rest/file/exists?bucket=DocumentPDF&filename=
${
row
.
file
.
uuid
}
`
).
then
(
res
=>
{
if
(
res
)
{
window
.
open
(
`api/rest/file/pdf/DocumentPDF?objectName=
${
row
.
file
.
uuid
}
`
);
window
.
open
(
`api/rest/file/pdf/DocumentPDF?objectName=
${
row
.
file
.
uuid
}
`
);
}).
catch
(
err
=>
{
}
else
{
post
(
"
api/rest/file/path?bucket=Document&filename=
"
+
row
.
file
.
uuid
).
then
(
res
=>
{
return
post
(
"
api/rest/file/path?bucket=Document&filename=
"
+
row
.
file
.
uuid
);
}
}).
then
(
res
=>
{
if
(
res
)
{
window
.
open
(
`./onlyoffice.html?url=
${
encodeURIComponent
(
res
)}
&fileType=
${
row
.
file
.
type
}
&filename=
${
row
.
name
}
`
);
window
.
open
(
`./onlyoffice.html?url=
${
encodeURIComponent
(
res
)}
&fileType=
${
row
.
file
.
type
}
&filename=
${
row
.
name
}
`
);
}
}).
catch
(
err
=>
{
}).
catch
(
err
=>
{
this
.
$message
(
"
预览失败
"
);
this
.
$message
(
"
预览失败
"
);
});
});
});
// window.open(`api/rest/file/pdf/DocumentPDF?objectName=${row.file.uuid}`);
// post("api/rest/file/path?bucket=Document&filename=" + row.file.uuid).then(res => {
// // window.open(`./onlyoffice.html?url=${encodeURIComponent(res)}&fileType=docx&filename=${row.name}`);
// }).catch(err => {
// });
}
}
},
},
//table_全文搜索预览
//table_全文搜索预览
...
...
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