Commit d5abfc7c authored by zhangyanni's avatar zhangyanni

提交报名

parent a21fa688
...@@ -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="currentdataVideos(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.filecurrentindex]:[]; this.secondRuleForm[this.videocurrentdata.fieldValue+this.videocurrentindex] = this.secondRuleForm[this.videocurrentdata.fieldValue+this.videocurrentindex]?this.secondRuleForm[this.videocurrentdata.fieldValue+this.videocurrentindex]:[];
this.secondRuleForm[this.filecurrentdata.fieldValue+this.filecurrentindex].push(res.result.fileUpload); this.secondRuleForm[this.videocurrentdata.fieldValue+this.videocurrentindex].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.filecurrentindex].length>0){ if(typeof this.secondRuleForm[this.videocurrentdata.fieldValue+this.videocurrentindex]=="Array"&&this.secondRuleForm[this.videocurrentdata.fieldValue+this.videocurrentindex].length>0){
this.secondRuleForm[this.filecurrentdata.fieldValue+this.filecurrentindex].forEach((item,ind)=>{ this.secondRuleForm[this.videocurrentdata.fieldValue+this.videocurrentindex].forEach((item,ind)=>{
if(item.uid==data.uid){ if(item.uid==data.uid){
this.secondRuleForm[this.filecurrentdata.fieldValue+this.filecurrentindex].splice(ind,1); this.secondRuleForm[this.videocurrentdata.fieldValue+this.videocurrentindex].splice(ind,1);
} }
}); });
} }
}else{ }else{
if(typeof this.ruleForm[this.filecurrentdata.fieldValue]=="Array"&&this.ruleForm[this.filecurrentdata.fieldValue].length>0){ if(typeof this.ruleForm[this.videocurrentdata.fieldValue]=="Array"&&this.ruleForm[this.videocurrentdata.fieldValue].length>0){
this.ruleForm[this.filecurrentdata.fieldValue].forEach((item,ind)=>{ this.ruleForm[this.videocurrentdata.fieldValue].forEach((item,ind)=>{
if(item==data.url){ if(item==data.url){
this.ruleForm[this.filecurrentdata.fieldValue].splice(ind,1); this.ruleForm[this.videocurrentdata.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)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment