| | |
| | | } from "@/api/self/index"; |
| | | import {getAllInfo} from "@/api/system/user" |
| | | import {showShareUser} from "@/api/bignote/index"; |
| | | import {listNote,enload,getNote, addNote,updateNote, delNote,uploadPic} from "@/api/memo/index"; |
| | | import {listNote,enload,getNote, addNote,updateNote, delNote,uploadPic,uploadPics} from "@/api/memo/index"; |
| | | |
| | | import { Notification, MessageBox, Message, Loading } from 'element-ui' |
| | | export default { |
| | |
| | | requestUpload(params) |
| | | { |
| | | var file = params.file; |
| | | console.log(file) |
| | | var formData = new FormData(); |
| | | formData.append('uploadFile', file); |
| | | let _this = this |
| | | |
| | | console.log(formData) |
| | | console.log('dddddddd===========') |
| | | // console.log(this.individualList) |
| | | this.$refs.uploadDemo.clearFiles(); |
| | | // alert(234) |
| | | uploadPic(formData).then(response => { |
| | | // alert(response.data.url) |
| | | // alert(response.data.originalFilename) |
| | | uploadPics(formData).then(response => { |
| | | alert(response.data.url) |
| | | // // alert(response.data.originalFilename) |
| | | let pth = response.data.originalFilename.substr(response.data.originalFilename.length-4, response.data.originalFilename.length) |
| | | |
| | | if(_this.fot.includes(pth) === true) |
| | |
| | | } |
| | | _this.individualList.img = response.data.url.replace(process.env.VUE_APP_BASE_TRUE_API,"") |
| | | _this.individualList.url = response.data.url.replace(process.env.VUE_APP_BASE_TRUE_API,"") |
| | | console.log(_this.individualList) |
| | | updateIndividual(_this.individualList).then(response => { |
| | | // 将选中选项的文本设置为"term"字段的值 |
| | | // this.formDat.term = selectedOption.value; |