Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
contractmanage
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
张伯涛
contractmanage
Commits
31c5a5cb
Commit
31c5a5cb
authored
Mar 08, 2022
by
张伯涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
预览
parent
52885140
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
11 deletions
+16
-11
.env.test
.env.test
+1
-1
add.vue
src/views/list/add.vue
+15
-10
No files found.
.env.test
View file @
31c5a5cb
...
@@ -3,5 +3,5 @@ ENV = 'test'
...
@@ -3,5 +3,5 @@ ENV = 'test'
NODE_ENV
=
'production'
NODE_ENV
=
'production'
# 测试环境
# 测试环境
# base api
# base api
VUE_APP_BASE_API
=
'http://1
0.19.100.58
:8090'
VUE_APP_BASE_API
=
'http://1
17.122.212.101
:8090'
src/views/list/add.vue
View file @
31c5a5cb
...
@@ -2014,17 +2014,22 @@ export default {
...
@@ -2014,17 +2014,22 @@ export default {
}
}
},
},
filePreview
(
row
)
{
filePreview
(
row
)
{
console
.
log
(
'数据'
,
row
)
const
fileType
=
row
.
FILENAME
.
split
(
'.'
)[
row
.
FILENAME
.
split
(
'.'
).
length
-
1
]
this
.
filePreviewDialog
=
true
console
.
log
(
'数据'
,
row
,
fileType
)
this
.
$axios
.
get
(
this
.
HTTPApi
+
'/contractjxx/contract-fjxx/preview/'
+
row
.
BUSINESSID
).
then
(
res
=>
{
if
(
fileType
===
'pdf'
)
{
if
(
!
res
.
errno
)
{
this
.
filePreviewDialog
=
true
this
.
fileUrl
=
res
.
data
.
data
this
.
$axios
.
get
(
this
.
HTTPApi
+
'/contractjxx/contract-fjxx/preview/'
+
row
.
BUSINESSID
).
then
(
res
=>
{
}
if
(
!
res
.
errno
)
{
console
.
log
(
'数据aaaa'
,
this
.
fileUrl
)
this
.
fileUrl
=
res
.
data
.
data
})
}
.
catch
(
function
(
error
)
{
console
.
log
(
'数据aaaa'
,
this
.
fileUrl
)
console
.
log
(
error
)
})
})
.
catch
(
function
(
error
)
{
console
.
log
(
error
)
})
}
else
{
this
.
$message
.
warning
(
'只有附件类型为PDF的附件可以预览!'
)
}
},
},
uploadF2
(
file
)
{
uploadF2
(
file
)
{
console
.
log
(
file
,
'file'
)
console
.
log
(
file
,
'file'
)
...
...
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