|
|
@@ -66,7 +66,7 @@ |
|
|
|
@delete="deleteFile1" |
|
|
|
/> |
|
|
|
|
|
|
|
<van-field readonly required label="视频线索" :border="false" /> |
|
|
|
<van-field readonly label="视频线索" :border="false" /> |
|
|
|
<van-uploader |
|
|
|
v-model="videoList" |
|
|
|
style="margin-top: 10PX;" |
|
|
@@ -210,15 +210,24 @@ |
|
|
|
}, |
|
|
|
onSubmit(){ |
|
|
|
var that = this; |
|
|
|
console.log(that.openPic2) |
|
|
|
if (that.openPic2.length<1){ |
|
|
|
that.$notify({ type: 'warning', message: '图片线索不能为空' }); |
|
|
|
return; |
|
|
|
} |
|
|
|
that.form.fileUrl = that.openPic2.join(',') |
|
|
|
that.form.videoUrl = that.videoUrl.join(',') |
|
|
|
that.form.adviceTime = that.format(new Date(),'yyyy-MM-dd HH:mm:ss') |
|
|
|
addAdvice(that.form).then((r1) => { |
|
|
|
if (r1.code == 200){ |
|
|
|
that.$notify({ type: 'success', message: '新增成功' }); |
|
|
|
setTimeout(function(){ |
|
|
|
history.back(-1); |
|
|
|
},2000) |
|
|
|
that.$notify({ type: 'success', message: '提交成功' }); |
|
|
|
if(this.$route.query.type != 'code'){ |
|
|
|
location.reload(); |
|
|
|
}else{ |
|
|
|
setTimeout(function(){ |
|
|
|
history.back(-1); |
|
|
|
},2000) |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|