|
|
@@ -300,23 +300,21 @@
|
|
|
},
|
|
|
// 每次改变图片状态返回的回调
|
|
|
uploadChange(file, fileList) {
|
|
|
-
|
|
|
+ this.uploadImg.push(file.raw);
|
|
|
},
|
|
|
handleExceed(files, fileList) {
|
|
|
this.$message.error(`图片上传数量最多4张`);
|
|
|
},
|
|
|
sendMessage() {
|
|
|
+ console.log(this.uploadImg)
|
|
|
this.$refs.upload.submit();
|
|
|
- console.log(this.uploadImg, '图片');
|
|
|
let formData = new FormData();
|
|
|
formData.append("user_id",this.users.id);
|
|
|
formData.append("message_id", this.uid);
|
|
|
formData.append("reply_content", this.leaveInfor);
|
|
|
formData.append("images",this.uploadImg);
|
|
|
-
|
|
|
this.post('/api/service/Message/dealmessage', formData).then(res => {
|
|
|
- console.log(res,'提交成功')
|
|
|
- return false;
|
|
|
+ this.$message.success(res.data.msg);
|
|
|
})
|
|
|
},
|
|
|
|
|
|
@@ -332,7 +330,6 @@
|
|
|
|
|
|
this.post('api' + this.$ports.userInfo.accountInfo, obj).then(res => {
|
|
|
if (res.data.code == 1) {
|
|
|
- // console.log(res.data.data, '用户信息');
|
|
|
this.userInfo = res.data.data;
|
|
|
}
|
|
|
})
|
|
|
@@ -340,7 +337,6 @@
|
|
|
|
|
|
get_vuex_info(){
|
|
|
this.users = this.$store.getters.get_user_info
|
|
|
- console.log(this.users,'用户信息');
|
|
|
},
|
|
|
|
|
|
|