|
@@ -111,7 +111,7 @@
|
|
|
async mounted() {
|
|
|
// await this.getCityHouseList();
|
|
|
console.warn("***viewAI***")
|
|
|
- Indicator.open('加载中...');
|
|
|
+ // Indicator.open('加载中...');
|
|
|
this.getDatalist(0);
|
|
|
this.getDatalist(1);
|
|
|
this.getDatalist(3);
|
|
@@ -214,7 +214,7 @@
|
|
|
//上传图片
|
|
|
var file = e.target.files[0];
|
|
|
var fileSize = file.size / 1024 / 1024;
|
|
|
- // alert('**文件**' + e.target.value + "-fileName=" + file.name);
|
|
|
+ // alert('**文件**' + e.target.value + "-fileName=" + file.name+ "-fileSize="+fileSize);
|
|
|
if (!/\.(MP4|mp4|MOV|mov)$/.test(e.target.value)) {
|
|
|
this.$message.warning('文件类型必须是mp4或者mov');
|
|
|
var videoForm = document.getElementById(form); //获取表单对象
|
|
@@ -368,16 +368,20 @@
|
|
|
formData.append('file', item.file);
|
|
|
formData.append('brandId', $config.brandId);
|
|
|
formData.append('userId', this.userId);
|
|
|
- console.warn("***uploadMaterielFile***");
|
|
|
+ console.warn("****uploadMaterielFile**",$config.brandId,this.userId)
|
|
|
+ // alert("***uploadMaterielFile***"+$config.brandId+this.userId);
|
|
|
this.uploadStatus = 1;//上传中
|
|
|
this.showPersonView = false;
|
|
|
this.addSilhouette();//添加剪影视频
|
|
|
let res = await requestConfig('robust_video', formData, true, false,'post',this.uploadProgress,this.cancel)
|
|
|
+ // alert("***uploadMaterielFile1***"+JSON.stringify(res));
|
|
|
if (axios.isCancel(res)) {//取消上传处理
|
|
|
this.initStatus();//还原初始状态
|
|
|
- }else if (res.success && res.single) {
|
|
|
+ }else if (res && res.success && res.single) {
|
|
|
this.videoId = res.single;//根据Id查询结果
|
|
|
this.startInterval();//开始轮询获取结果
|
|
|
+ }else{
|
|
|
+ this.initStatus();//还原初始状态
|
|
|
}
|
|
|
var videoForm = document.getElementById(form); //获取表单对象
|
|
|
videoForm && videoForm.reset(); // 重置表单
|
|
@@ -590,7 +594,7 @@
|
|
|
typeName = "Virtual_Pet";
|
|
|
} else if (type == 3) {
|
|
|
typeName = "Virtual_Music";
|
|
|
- Indicator.close();
|
|
|
+ // Indicator.close();
|
|
|
}
|
|
|
var parmas = {
|
|
|
"type": typeName,
|