@@ -54,6 +54,7 @@ export default {
}); //选择桶
var _this = this;
_this.progress?_this.progress.show = true:'';
+ _this.progress?_this.progress.value = 0:'';
if (file) {
var params = {
Key:
@@ -96,10 +97,6 @@ export default {
}
size = Math.floor(size);
_this.$emit('getFile',{fileName:file.name,size:`${size}${unit}`,uploadTime:getNowDate(),url:data.Location})
- if(_this.progress&&_this.progress.value==100){
- _this.progress?_this.progress.show = false:"";
- _this.progress?_this.progress.value=0:"";
- }
});
@@ -340,6 +340,7 @@ import beUpload from '../../components/tool/beUpload'
methods:{
getFile(val) {//上传文件
this.endTable.file.push(val);
+ this.progress.show = false;
},
delEndTableFile(url){
this.endTable.file = this.endTable.file.filter(item=>item.url!=url);
@@ -492,7 +493,7 @@ import beUpload from '../../components/tool/beUpload'
//精度条样式
ProgressFormat(value){
- return value ==100?this.progress.show = false :`${value}%`
+ return value ==100?'':`${value}%`
mounted() {
@@ -396,9 +396,11 @@ export default {
if(res.data==1){
this.$message.success("添加成功");
this.getData();
}else{
this.$message.error("添加失败")
+
}).catch(err=>{
this.$message.error(err.message);
})
@@ -628,7 +630,7 @@ export default {
mounted(){