Bläddra i källkod

投诉建议

rongxin_prod
庞东旭 2 år sedan
förälder
incheckning
91359e29d3
1 ändrade filer med 14 tillägg och 5 borttagningar
  1. +14
    -5
      src/views/sunVillage_info/list_complaint_add.vue

+ 14
- 5
src/views/sunVillage_info/list_complaint_add.vue Visa fil

@@ -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)
}
}
})
},


Laddar…
Avbryt
Spara