axios.get('http://localhost:8080/akphou/picture/getPictureByType' + '?currentPage=' + _this.currentPage1 + '&' + 'ptype=' + this.$route.query.type).then(function (resp) {
console.log(resp)
_this.pictures = resp.data
})
@RequestMapping(value = "/getPictureByType",params = {"currentPage","ptype"},method = RequestMethod.GET)
@ResponseBody
public List<Picture> getPictureByType(Integer currentPage, String ptype){
axios.get('http://localhost:8080/akphou/picture/picturePage/' + val).then(function (resp) {
@RequestMapping(value = "/picturePage/{currentPage}",method = RequestMethod.GET)
@ResponseBody
public List<Picture> getAllPicturePage(@PathVariable("currentPage") Integer currentPage){
formData.append('file', this.formDataPicture.file)
formData.append('ptitle', this.formDataPicture.picture.ptitle)
formData.append('psize', this.formDataPicture.picture.psize)
formData.append('ptype', this.formDataPicture.picture.ptype)
formData.append('psearch', this.formDataPicture.picture.psearch)
// formData.append('purl', this.formDataPicture.picture.purl)
formData.append('pyear', this.formDataPicture.picture.pyear)
formData.append('plength', this.formDataPicture.picture.plength)
formData.append('author', this.formDataPicture.picture.author)
axios.post('http://localhost:8080/akphou/picture/add', formData)
.then(function (response) {
@RequestMapping(value = "/add",method= RequestMethod.POST)
@ResponseBody
public String add(@RequestParam MultipartFile file, @RequestParam ("ptitle") String ptitle, @RequestParam ("author")String author,
@RequestParam("psize") String psize, @RequestParam("ptype")String ptype, @RequestParam("psearch")String psearch,
@RequestParam("pyear")String pyear, @RequestParam("plength")String plength){
在这里插入代码片
在这里插入代码片
转载请注明原文地址:https://blackberry.8miu.com/read-18884.html