Jelajahi Sumber

上传时,禁止再次上传

zjs_project 1 tahun lalu
induk
melakukan
e1c7505d9a

+ 0 - 4
src/components/newBottomCom/viewAI/viewAI.html

@@ -28,10 +28,6 @@
 								define-back-color="#fff" color="#92CE8B" 
 								text-color="#92CE8B" type="circle" :percentage="ktProgress"></el-progress>
 							</div>
-							<!-- <form id='uploadVideoFrom' class="uploadVideoFrom">
-								<input type="file" ref="uploadModuleImage1Form" @change.stop="uploadImgObj($event,'uploadVideoFrom')"
-								 name="file" accept="video/*" class="el-upload__input">
-							</form> -->
 						</div>
 						<div class="item-name rows justify-center empty-text" v-if="uploadStatus==0">个人形象</div>
 						<div class="item-name rows justify-center empty-text" v-else-if="uploadStatus==1 || uploadStatus==2"  @click.stop="showPopViewHandle">

+ 5 - 0
src/components/newBottomCom/viewAI/viewAI.vue

@@ -272,6 +272,7 @@
 				this.stopFlag = true;//停止上传标志打开
 				if(this.uploadStatus == 1){
 					this.cancelTokenSource.cancel('上传已取消');//通知取消上传
+					alert("上传取消")
 				}
 				else if(this.uploadStatus==2 || this.uploadStatus==3){//绿幕抠图中 或者已经完成
 					let data = {
@@ -471,6 +472,10 @@
 			},
 			
 			showMask(){
+				//上传过程中,不允许再次上传
+				if(this.uploadStatus==1 || this.uploadStatus == 2){
+					return false;
+				}
 				this.showPersonView = true;
 				console.warn("***showMask***",this.showPersonView)
 			},