pet/index.js中删除了alert
pet/petInfo.vue调用了查询getPetnoteList,之前调用接口调用错了
2个文件已修改
15 ■■■■ 已修改文件
ruoyi-ui/src/api/pet/index.js 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-ui/src/views/pet/petInfo.vue 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-ui/src/api/pet/index.js
@@ -48,7 +48,6 @@
  //根据宠物id查询主人信息
  export function getPetowner(id) {
    alert(id)
    return request({
      url: '/zfMaster/' + id,
      method: 'get',
@@ -100,7 +99,7 @@
// 根据id查询所有魅宠备忘录信息
export function getPetnoteList(id) {
return request({
  url: '/family/zfPetNote/' + id,
  url: '/family/zfPetNote/?pid=' + id,
  method: 'get',
})
ruoyi-ui/src/views/pet/petInfo.vue
@@ -414,17 +414,11 @@
      this.loading = true;
    //   this.queryParams.happenStartTime = this.dateRange.length > 0 && this.dateRange[0]
    //   this.queryParams.happenEndTime = this.dateRange.length > 0 && this.dateRange[1]
      // console.log(this.queryParams)
      this.queryParams.pid = this.pid;
      //  listProperty(this.addDateRange(this.queryParams, this.dateRange)).then(response => {
      listPetnote(this.queryParams).then(response => {
          //  alert(123)
          //   console.log(response.data)
          console.log(response.data)
          this.PetNoteList = response.data.data;
          this.total = response.data.total;
      getPetnoteList(this.pid).then(response => {
          this.PetNoteList = response.data;
          this.total = response.data.length;
          this.loading = false;
        }
      );