Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CFFP-HB
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chao Sun
CFFP-HB
Commits
42192f24
Commit
42192f24
authored
Dec 12, 2022
by
kyle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pdf上传
parent
a4914849
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
12 deletions
+15
-12
components/uploadFile/uploadFile.vue
+9
-8
pages/certifyDetail/uploadinformation.vue
+6
-4
No files found.
components/uploadFile/uploadFile.vue
View file @
42192f24
...
...
@@ -46,7 +46,7 @@
export
default
{
name
:
"uploadFile"
,
props
:
[
'requestVO'
,
'deformats'
,
'opacity'
,
'instantly'
],
emits
:[
'sendPath'
],
emits
:[
'sendPath'
,
'sendFileName'
],
data
()
{
return
{
// 上传接口参数
...
...
@@ -135,8 +135,9 @@
// 演示上传完成后取服务端数据
if
(
item
[
'responseText'
])
{
console
.
log
(
'演示服务器返回的字符串JSON转对象'
);
console
.
log
(
item
.
responseText
)
// this.files.get(item.name).responseText = JSON.parse(item.responseText);
this
.
$emit
(
'sendPath'
,
item
.
responseText
)
this
.
$emit
(
'sendPath'
,
JSON
.
stringify
(
item
.
responseText
),
item
.
name
)
}
// 微信小程序Map对象for循环不显示,所以转成普通数组,不要问为什么,我也不知道
...
...
@@ -148,12 +149,12 @@
this
.
$forceUpdate
();
// ---可删除--演示判断是否所有文件均已上传成功
let
isAll
=
[...
this
.
files
.
values
()].
find
(
item
=>
item
.
type
!==
'success'
);
if
(
!
isAll
)
{
console
.
log
(
'已全部上传完毕'
);
}
else
{
console
.
log
(
isAll
.
name
+
'待上传'
);
}
//
let isAll = [...this.files.values()].find(item => item.type !== 'success');
//
if (!isAll) {
//
console.log('已全部上传完毕');
//
} else {
//
console.log(isAll.name + '待上传');
//
}
},
// 上传进度回调
...
...
pages/certifyDetail/uploadinformation.vue
View file @
42192f24
...
...
@@ -90,7 +90,7 @@
fileList
:
[],
fileForm
:
{},
erplizeList
:
null
,
status
:
''
status
:
''
,
}
},
onLoad
(
option
)
{
...
...
@@ -104,8 +104,10 @@
},
methods
:
{
getPath
(
e
){
console
.
log
(
e
,
'======================='
)
getPath
(
e
,
a
){
const
param
=
JSON
.
parse
(
JSON
.
parse
(
e
));
this
.
openForm
.
fileName
=
a
;
this
.
openForm
.
planBookPdfUrl
=
param
.
data
.
filePath
;
},
async
getquerySignUpInfo
()
{
let
UserSignUpInfoQueryRequestVO
=
{
...
...
@@ -200,7 +202,7 @@
.uploadimg
{
position
:
relative
;
height
:
320
rpx
;
height
:
100%
;
display
:
flex
;
flex-direction
:
column
;
justify-content
:
center
;
...
...
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