From 2b0835030cc4a95319512841a14b6f60f18693de Mon Sep 17 00:00:00 2001
From: feige <feige@qq.com>
Date: 星期四, 04 五月 2023 16:43:17 +0800
Subject: [PATCH] pet/index.js中删除了alert pet/petInfo.vue调用了查询getPetnoteList,之前调用接口调用错了
---
ruoyi-ui/src/api/pet/index.js | 5 ++---
ruoyi-ui/src/views/pet/petInfo.vue | 12 +++---------
2 files changed, 5 insertions(+), 12 deletions(-)
diff --git a/ruoyi-ui/src/api/pet/index.js b/ruoyi-ui/src/api/pet/index.js
index c2a27fe..44d11f3 100644
--- a/ruoyi-ui/src/api/pet/index.js
+++ b/ruoyi-ui/src/api/pet/index.js
@@ -10,7 +10,7 @@
params: query
})
}
-
+
//澧炲姞榄呭疇璁板綍
export function addPet(data)
{
@@ -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',
})
diff --git a/ruoyi-ui/src/views/pet/petInfo.vue b/ruoyi-ui/src/views/pet/petInfo.vue
index cef38a2..7a4f7f2 100644
--- a/ruoyi-ui/src/views/pet/petInfo.vue
+++ b/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;
}
);
--
Gitblit v1.9.1