Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
patzn-cloud-web-back-soil
Overview
Overview
Details
Activity
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
wangweidong
patzn-cloud-web-back-soil
Commits
3d9a9288
Commit
3d9a9288
authored
Sep 19, 2020
by
lichengming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改了附件上传
parent
18f82b6c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
8 deletions
+28
-8
FileManageCont.vue
components/file/file-manage/FileManageCont.vue
+18
-2
FilesList.vue
components/file/file-manage/FilesList.vue
+9
-5
SamplePreparation.vue
...il-sample-manage/sample-preparation/SamplePreparation.vue
+1
-1
No files found.
components/file/file-manage/FileManageCont.vue
View file @
3d9a9288
...
...
@@ -81,6 +81,7 @@ export default {
this
.
subcontractorId
=
''
this
.
originalRecordId
=
''
this
.
curveId
=
''
this
.
entrustId
=
''
this
.
idKey
=
key
switch
(
key
)
{
// 委托
...
...
@@ -97,6 +98,19 @@ export default {
viewUri
:
'/meter/v1/entrust_attachment/preview/'
}
break
case
'entrustId'
:
this
.
entrustId
=
id
this
.
urlData
=
{
msg
:
'FoodContractAttachment'
,
pageUrl
:
'/soil/v1/sample_photo/page'
,
deleteUrl
:
'/meter/v1/entrust_attachment/?ids='
,
uploadFileUrl
:
'/soil/v1/sample_photo/upload/'
,
downloadFileUrl
:
'/meter/v1/entrust_attachment/download/'
,
downloadBatch
:
'/food/v1/contract_attachment/download_batch'
,
uri
:
'FoodContractAttachment/getByContractId'
,
viewUri
:
'/meter/v1/entrust_attachment/preview/'
}
break
case
'sampleId'
:
// 样品
this
.
sampleId
=
id
...
...
@@ -159,11 +173,13 @@ export default {
sampleId
:
this
.
sampleId
,
subcontractorId
:
this
.
subcontractorId
,
originalRecordId
:
this
.
originalRecordId
,
curveId
:
this
.
curveId
curveId
:
this
.
curveId
,
entrustId
:
this
.
entrustId
}
this
.
$refs
.
fileModal
.
_setUploadData
(
Object
.
assign
({
id
:
id
},
this
.
urlData
),
idsObj
idsObj
,
this
.
idKey
)
},
_deleteById
(
ids
)
{
...
...
components/file/file-manage/FilesList.vue
View file @
3d9a9288
...
...
@@ -165,8 +165,8 @@ export default {
// {title: '上传人', key: 'cname', width: 120},
],
formObj
:
{
contractId
:
''
,
entrustId
:
''
contractId
:
undefined
,
entrustId
:
undefined
},
viewVal
:
1
,
viewStyle
:
1
,
...
...
@@ -202,13 +202,17 @@ export default {
}
},
methods
:
{
_setUploadData
(
data
,
idsObj
)
{
_setUploadData
(
data
,
idsObj
,
idKey
)
{
this
.
selectIds
=
[]
this
.
imgViewIndex
=
null
this
.
isLoad
=
false
this
.
id
=
data
.
id
this
.
formObj
.
contractId
=
data
.
id
this
.
formObj
.
entrustId
=
data
.
id
const
pageKey
=
idKey
console
.
log
(
pageKey
)
this
.
$set
(
this
.
formObj
,
pageKey
,
data
.
id
)
console
.
log
(
this
.
formObj
)
// this.formObj.contractId = data.id
// this.formObj.entrustId = data.id
// 各个ids
this
.
idsObj
=
idsObj
this
.
urlData
=
data
...
...
pages/soil-sample-manage/sample-preparation/SamplePreparation.vue
View file @
3d9a9288
...
...
@@ -324,7 +324,7 @@ export default {
_upload
(
id
)
{
// 上传文件
this
.
$refs
.
FileManage
.
_open
(
id
,
'
contrac
tId'
)
this
.
$refs
.
FileManage
.
_open
(
id
,
'
entrus
tId'
)
},
_exportEntrust
(
id
)
{
this
.
$Modal
.
confirm
({
...
...
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