Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
T
techbook
Project
Project
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
front-end-dev
techbook
Commits
d5abfc7c
Commit
d5abfc7c
authored
Aug 04, 2020
by
zhangyanni
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交报名
parent
a21fa688
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
9 deletions
+18
-9
signupbar.vue
src/views/findeventpage/signupbar.vue
+18
-9
No files found.
src/views/findeventpage/signupbar.vue
View file @
d5abfc7c
...
@@ -261,7 +261,7 @@
...
@@ -261,7 +261,7 @@
</el-upload>
</el-upload>
<span
class=
"errorTextproject"
v-if=
"isShowErrorText"
>
{{
$t
(
"workPlace.sendRequireForm.uploadingAccessory"
)
}}
</span>
<span
class=
"errorTextproject"
v-if=
"isShowErrorText"
>
{{
$t
(
"workPlace.sendRequireForm.uploadingAccessory"
)
}}
</span>
</div>
</div>
<div
v-if=
"item.fieldType==11"
@
click=
"currentdatas(item,moduleIndex,2)"
>
<div
v-if=
"item.fieldType==11"
@
click=
"currentdata
Video
s(item,moduleIndex,2)"
>
<el-upload
<el-upload
class=
"upload-demo"
class=
"upload-demo"
style=
"padding-right: 1rem;"
style=
"padding-right: 1rem;"
...
@@ -527,6 +527,9 @@
...
@@ -527,6 +527,9 @@
filecurrentdata
:{},
filecurrentdata
:{},
filecurrentindex
:
''
,
filecurrentindex
:
''
,
filecurrentstate
:
''
,
filecurrentstate
:
''
,
videocurrentdata
:{},
videocurrentindex
:
''
,
videocurrentstate
:
''
,
uploadVideo
:
'/base/upload/uploadVideo'
,
//视频上传地址
uploadVideo
:
'/base/upload/uploadVideo'
,
//视频上传地址
fileListvideo
:[],
fileListvideo
:[],
}
}
...
@@ -602,8 +605,8 @@
...
@@ -602,8 +605,8 @@
_this
.
s_to_hs
(
playTime
);
_this
.
s_to_hs
(
playTime
);
_this
.
secondRuleForm
.
videoLength
=
_this
.
s_to_hs
(
playTime
);
_this
.
secondRuleForm
.
videoLength
=
_this
.
s_to_hs
(
playTime
);
});
});
this
.
secondRuleForm
[
this
.
filecurrentdata
.
fieldValue
+
this
.
filecurrentindex
]
=
this
.
secondRuleForm
[
this
.
filecurrentdata
.
fieldValue
+
this
.
filecurrentindex
]?
this
.
secondRuleForm
[
this
.
filecurrentdata
.
fieldValue
+
this
.
file
currentindex
]:[];
this
.
secondRuleForm
[
this
.
videocurrentdata
.
fieldValue
+
this
.
videocurrentindex
]
=
this
.
secondRuleForm
[
this
.
videocurrentdata
.
fieldValue
+
this
.
videocurrentindex
]?
this
.
secondRuleForm
[
this
.
videocurrentdata
.
fieldValue
+
this
.
video
currentindex
]:[];
this
.
secondRuleForm
[
this
.
filecurrentdata
.
fieldValue
+
this
.
file
currentindex
].
push
(
res
.
result
.
fileUpload
);
this
.
secondRuleForm
[
this
.
videocurrentdata
.
fieldValue
+
this
.
video
currentindex
].
push
(
res
.
result
.
fileUpload
);
this
.
isflag
=
0
;
this
.
isflag
=
0
;
}
else
{
}
else
{
this
.
$message
.
error
(
this
.
$t
(
'newprojecttext.uploadfailed'
));
this
.
$message
.
error
(
this
.
$t
(
'newprojecttext.uploadfailed'
));
...
@@ -612,19 +615,19 @@
...
@@ -612,19 +615,19 @@
//删除上传视频
//删除上传视频
handleRemoveview
(
data
){
handleRemoveview
(
data
){
if
(
this
.
filecurrentstate
==
2
){
if
(
this
.
filecurrentstate
==
2
){
if
(
typeof
this
.
secondRuleForm
[
this
.
filecurrentdata
.
fieldValue
+
this
.
filecurrentindex
]
==
"Array"
&&
this
.
secondRuleForm
[
this
.
filecurrentdata
.
fieldValue
+
this
.
file
currentindex
].
length
>
0
){
if
(
typeof
this
.
secondRuleForm
[
this
.
videocurrentdata
.
fieldValue
+
this
.
videocurrentindex
]
==
"Array"
&&
this
.
secondRuleForm
[
this
.
videocurrentdata
.
fieldValue
+
this
.
video
currentindex
].
length
>
0
){
this
.
secondRuleForm
[
this
.
filecurrentdata
.
fieldValue
+
this
.
file
currentindex
].
forEach
((
item
,
ind
)
=>
{
this
.
secondRuleForm
[
this
.
videocurrentdata
.
fieldValue
+
this
.
video
currentindex
].
forEach
((
item
,
ind
)
=>
{
if
(
item
.
uid
==
data
.
uid
){
if
(
item
.
uid
==
data
.
uid
){
this
.
secondRuleForm
[
this
.
filecurrentdata
.
fieldValue
+
this
.
file
currentindex
].
splice
(
ind
,
1
);
this
.
secondRuleForm
[
this
.
videocurrentdata
.
fieldValue
+
this
.
video
currentindex
].
splice
(
ind
,
1
);
}
}
});
});
}
}
}
else
{
}
else
{
if
(
typeof
this
.
ruleForm
[
this
.
filecurrentdata
.
fieldValue
]
==
"Array"
&&
this
.
ruleForm
[
this
.
file
currentdata
.
fieldValue
].
length
>
0
){
if
(
typeof
this
.
ruleForm
[
this
.
videocurrentdata
.
fieldValue
]
==
"Array"
&&
this
.
ruleForm
[
this
.
video
currentdata
.
fieldValue
].
length
>
0
){
this
.
ruleForm
[
this
.
file
currentdata
.
fieldValue
].
forEach
((
item
,
ind
)
=>
{
this
.
ruleForm
[
this
.
video
currentdata
.
fieldValue
].
forEach
((
item
,
ind
)
=>
{
if
(
item
==
data
.
url
){
if
(
item
==
data
.
url
){
this
.
ruleForm
[
this
.
file
currentdata
.
fieldValue
].
splice
(
ind
,
1
);
this
.
ruleForm
[
this
.
video
currentdata
.
fieldValue
].
splice
(
ind
,
1
);
}
}
});
});
}
}
...
@@ -678,6 +681,12 @@
...
@@ -678,6 +681,12 @@
this
.
filecurrentindex
=
index
;
this
.
filecurrentindex
=
index
;
this
.
filecurrentstate
=
state
;
this
.
filecurrentstate
=
state
;
},
},
currentdataVideos
(
val
,
index
,
state
){
this
.
videocurrentdata
=
val
;
this
.
videocurrentindex
=
index
;
this
.
videocurrentstate
=
state
;
},
validateRequirementContent
(
rule
,
value
,
callback
)
{
validateRequirementContent
(
rule
,
value
,
callback
)
{
var
reg1
=
/^
\s
+$/g
;
var
reg1
=
/^
\s
+$/g
;
if
(
value
===
''
||
reg1
.
test
(
value
))
{
if
(
value
===
''
||
reg1
.
test
(
value
))
{
...
...
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