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
52885140
Commit
52885140
authored
Mar 08, 2022
by
张伯涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
预览
parent
1558561d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
1 deletion
+22
-1
.env.development
.env.development
+1
-1
add.vue
src/views/list/add.vue
+21
-0
No files found.
.env.development
View file @
52885140
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
ENV = 'development'
ENV = 'development'
# 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'
# workFlow链接地址
# workFlow链接地址
VUE_APP_WORKFLOW = '/workFlow'
VUE_APP_WORKFLOW = '/workFlow'
# login地址
# login地址
...
...
src/views/list/add.vue
View file @
52885140
...
@@ -1528,6 +1528,11 @@
...
@@ -1528,6 +1528,11 @@
</el-form-item>
</el-form-item>
</el-form>
</el-form>
</el-dialog>
</el-dialog>
<el-dialog
:close-on-click-modal=
"false"
title=
"附件预览"
:visible
.
sync=
"filePreviewDialog"
>
<div>
<el-image
:src=
"fileUrl"
/>
</div>
</el-dialog>
<div
class=
"step-content"
>
<div
class=
"step-content"
>
<el-table
:data=
"form.FJXX"
>
<el-table
:data=
"form.FJXX"
>
<el-table-column
<el-table-column
...
@@ -1571,6 +1576,7 @@
...
@@ -1571,6 +1576,7 @@
</el-link>
</el-link>
<!--
<el-link
v-if=
"scope.row.FILENAME === '' "
type=
"success"
:underline=
"false"
@
click=
"downLoadFile(scope.row)"
>
下载
</el-link>
-->
<!--
<el-link
v-if=
"scope.row.FILENAME === '' "
type=
"success"
:underline=
"false"
@
click=
"downLoadFile(scope.row)"
>
下载
</el-link>
-->
<el-link
type=
"danger"
:underline=
"false"
@
click=
"delFile(scope.$index,scope.row)"
>
删除
</el-link>
<el-link
type=
"danger"
:underline=
"false"
@
click=
"delFile(scope.$index,scope.row)"
>
删除
</el-link>
<el-link
v-if=
"scope.row.FILENAME !== ''"
type=
"success"
style=
"margin-left: 15px"
:underline=
"false"
@
click=
"filePreview(scope.row)"
>
预览
</el-link>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
</el-table></div>
</el-table></div>
...
@@ -1589,6 +1595,8 @@ export default {
...
@@ -1589,6 +1595,8 @@ export default {
name
:
'ContractDetail'
,
name
:
'ContractDetail'
,
data
()
{
data
()
{
return
{
return
{
filePreviewDialog
:
false
,
fileUrl
:
''
,
HTTPApi
:
process
.
env
.
VUE_APP_BASE_API
,
HTTPApi
:
process
.
env
.
VUE_APP_BASE_API
,
// 上传的文件列表
// 上传的文件列表
fileList
:
[],
fileList
:
[],
...
@@ -2005,6 +2013,19 @@ export default {
...
@@ -2005,6 +2013,19 @@ export default {
return
false
return
false
}
}
},
},
filePreview
(
row
)
{
console
.
log
(
'数据'
,
row
)
this
.
filePreviewDialog
=
true
this
.
$axios
.
get
(
this
.
HTTPApi
+
'/contractjxx/contract-fjxx/preview/'
+
row
.
BUSINESSID
).
then
(
res
=>
{
if
(
!
res
.
errno
)
{
this
.
fileUrl
=
res
.
data
.
data
}
console
.
log
(
'数据aaaa'
,
this
.
fileUrl
)
})
.
catch
(
function
(
error
)
{
console
.
log
(
error
)
})
},
uploadF2
(
file
)
{
uploadF2
(
file
)
{
console
.
log
(
file
,
'file'
)
console
.
log
(
file
,
'file'
)
const
formData
=
new
FormData
()
const
formData
=
new
FormData
()
...
...
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