|
@@ -218,9 +218,28 @@
|
|
|
this.timeshow=false;
|
|
|
},
|
|
|
submit(){
|
|
|
- this.time = this.confirmTime;
|
|
|
+ let files = [];
|
|
|
+ let that = this;
|
|
|
+ // 通过filter,筛选出上传进度为100的文件(因为某些上传失败的文件,进度值不为100,这个是可选的操作)
|
|
|
+ files = this.$refs.uUpload.lists.filter(val => {
|
|
|
+ return val.progress == 100;
|
|
|
+ });
|
|
|
+ // 如果不需要进行太多的处理,直接如下即可
|
|
|
+ // files = this.$refs.uUpload.lists;
|
|
|
+ files.forEach(function(element) {
|
|
|
+ that.images.push(element.response.data.url);
|
|
|
+ });
|
|
|
+ if(that.images=='' || that.images==null){
|
|
|
+ this.$refs.uToast.show({
|
|
|
+ title: '需完整上传4张取证照片',
|
|
|
+ type: 'error',
|
|
|
+ })
|
|
|
+ }else{
|
|
|
+ this.time = this.confirmTime;
|
|
|
console.log(this.timeList[1].time)
|
|
|
this.timeshow=true;
|
|
|
+ }
|
|
|
+
|
|
|
// this.timeList[0].time = this.inTime;
|
|
|
},
|
|
|
radioGroupChange(){
|