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
a84e9ee9
Commit
a84e9ee9
authored
Mar 21, 2022
by
张伯涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
list附件link
parent
464909f7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
26 deletions
+30
-26
.env.development
.env.development
+1
-1
index.vue
src/views/list/index.vue
+28
-24
vue.config.js
vue.config.js
+1
-1
No files found.
.env.development
View file @
a84e9ee9
...
...
@@ -2,7 +2,7 @@
ENV = 'development'
# base api
VUE_APP_BASE_API = 'http://1
17.122.212.102
:8090'
VUE_APP_BASE_API = 'http://1
0.19.103.15
:8090'
# workFlow链接地址
VUE_APP_WORKFLOW = '/workFlow'
# login地址
...
...
src/views/list/index.vue
View file @
a84e9ee9
...
...
@@ -304,7 +304,6 @@
<el-table-column
label=
"附件名称"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
FILENAME
}}
</span>
<span
v-if=
"showError === true"
style=
"color:#f52929;"
>
请上传文件
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"操作"
>
...
...
@@ -434,29 +433,9 @@ export default {
}
})
},
created
()
{
if
(
this
.
$store
.
getters
.
searchParams
[
this
.
$route
.
path
])
{
const
{
searchParams
}
=
this
.
$store
.
getters
;
const
{
path
}
=
this
.
$route
const
param
=
JSON
.
parse
(
searchParams
[
path
])
// 保留着的查询条件
this
.
serchForm
=
{
...
param
}
this
.
page
=
param
.
page
this
.
rows
=
param
.
rows
}
},
/** 路由离开前存储筛选条件*/
beforeRouteLeave
(
to
,
from
,
next
)
{
this
.
$store
.
dispatch
(
'searchSave/searchParamsSet'
,
{
path
:
this
.
$route
.
path
,
param
:
{
...
this
.
serchForm
,
page
:
this
.
page
,
rows
:
this
.
rows
}
})
next
()
},
data
()
{
return
{
FJXXfromId
:
''
,
headers
:
{
'constnet-type'
:
'multipart/form-data'
},
...
...
@@ -827,6 +806,27 @@ export default {
statusEnum
}
},
created
()
{
if
(
this
.
$store
.
getters
.
searchParams
[
this
.
$route
.
path
])
{
const
{
searchParams
}
=
this
.
$store
.
getters
;
const
{
path
}
=
this
.
$route
const
param
=
JSON
.
parse
(
searchParams
[
path
])
// 保留着的查询条件
this
.
serchForm
=
{
...
param
}
this
.
page
=
param
.
page
this
.
rows
=
param
.
rows
}
},
/** 路由离开前存储筛选条件*/
beforeRouteLeave
(
to
,
from
,
next
)
{
this
.
$store
.
dispatch
(
'searchSave/searchParamsSet'
,
{
path
:
this
.
$route
.
path
,
param
:
{
...
this
.
serchForm
,
page
:
this
.
page
,
rows
:
this
.
rows
}
})
next
()
},
mounted
()
{
this
.
findMap
()
this
.
findContract
()
// 个人列表
...
...
@@ -843,6 +843,7 @@ export default {
})
},
updateFJXX
(
row
)
{
this
.
FJXXfromId
=
row
.
FROMID
const
FROMID
=
row
.
FROMID
this
.
$axios
.
get
(
this
.
HTTPApi
+
'/contract/contract/detail/'
+
FROMID
).
then
(
res
=>
{
this
.
FJXXForm
=
res
.
data
.
data
.
FJXX
...
...
@@ -871,7 +872,7 @@ export default {
formData
.
append
(
'file'
,
file
.
file
)
this
.
$axios
({
method
:
'post'
,
url
:
this
.
HTTPApi
+
'/contractjxx/contract-fjxx/upload
'
,
url
:
this
.
HTTPApi
+
'/contractjxx/contract-fjxx/upload
/'
+
this
.
FJXXfromId
,
data
:
formData
})
.
then
((
res
)
=>
{
if
(
!
res
.
errno
)
{
...
...
@@ -911,7 +912,7 @@ export default {
console
.
log
(
'参数参数'
,
formData
)
this
.
$axios
({
method
:
'post'
,
url
:
this
.
HTTPApi
+
'/contractjxx/contract-fjxx/upload
'
,
url
:
this
.
HTTPApi
+
'/contractjxx/contract-fjxx/upload
/'
+
this
.
FJXXfromId
,
data
:
formData
})
.
then
((
res
)
=>
{
if
(
!
res
.
errno
)
{
...
...
@@ -941,6 +942,9 @@ export default {
this
.
FJXXForm
.
splice
(
i
,
1
)
}
},
FJXXBtnChcheck
()
{
this
.
FJXXDialog
=
false
},
filePreview
(
row
)
{
const
fileType
=
row
.
FILENAME
.
split
(
'.'
)[
row
.
FILENAME
.
split
(
'.'
).
length
-
1
]
console
.
log
(
'数据'
,
row
,
fileType
)
...
...
vue.config.js
View file @
a84e9ee9
...
...
@@ -42,7 +42,7 @@ module.exports = {
[
process
.
env
.
VUE_APP_BASE_API
]:
{
// target: `http://10.5.87.231:10010/`,
// target: `http://zt.51newsoftware.com:10184/`,
target
:
'http://1
17.122.212.102
:8090/'
,
target
:
'http://1
0.19.103.15
:8090/'
,
changeOrigin
:
true
,
pathRewrite
:
{
[
'^'
+
process
.
env
.
VUE_APP_BASE_API
]:
''
...
...
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