Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pet-business-web
Project
Project
Details
Activity
Releases
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
刘怀志
pet-business-web
Commits
36a0a534
Commit
36a0a534
authored
Aug 24, 2023
by
盖献康
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug(64630) - 文件对话框查看
parent
c0e02ef0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
3 deletions
+28
-3
entry-contract.vue
...ews/document-management/entry-contract/entry-contract.vue
+28
-3
No files found.
src/views/document-management/entry-contract/entry-contract.vue
View file @
36a0a534
...
...
@@ -92,6 +92,23 @@
style
=
"margin: 0 80px 0 0"
@
pagination
=
"getContract"
/>
<!--
合同文件查看
-->
<
el
-
dialog
title
=
"合同文件"
:
visible
.
sync
=
"openContractDocument"
:
before
-
close
=
"closeContractDocument"
width
=
"50%"
append
-
to
-
body
:
close
-
on
-
click
-
modal
=
"false"
:
close
-
on
-
press
-
escape
=
"false"
>
<
iframe
:
src
=
"contractDocumentUrl"
frameborder
=
"no"
style
=
"width: 100%; height: 60vh"
scrolling
=
"auto"
/>
<
/el-dialog
>
<
/div
>
<
/template
>
...
...
@@ -104,6 +121,10 @@ export default {
name
:
'EntryContract'
,
data
()
{
return
{
// 控制合同文件对话框
openContractDocument
:
false
,
// 合同文件路径
contractDocumentUrl
:
null
,
// 图片根据不同环境显示路径
baseUrl
:
process
.
env
.
VUE_APP_TEST_API
,
// 授权合同
...
...
@@ -130,6 +151,11 @@ export default {
}
,
500
)
}
,
methods
:
{
// 合同文件查看对话框关闭
closeContractDocument
()
{
this
.
openContractDocument
=
false
this
.
contractDocumentUrl
=
null
}
,
getEntryContract
()
{
this
.
queryParams
.
hospitalId
=
this
.
currentHospitalId
listNoPageHistory
(
this
.
queryParams
).
then
(
res
=>
{
...
...
@@ -165,9 +191,8 @@ export default {
}
)
}
,
check
(
row
)
{
console
.
log
(
'pdf'
,
row
.
contract
)
console
.
log
(
'pdf2'
,
this
.
baseUrl
)
window
.
open
(
this
.
baseUrl
+
row
.
contract
)
this
.
openContractDocument
=
true
this
.
contractDocumentUrl
=
this
.
baseUrl
+
row
.
contract
}
,
downloadPdf
(
row
)
{
this
.
$download
.
resource
(
row
.
contract
)
...
...
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