diff --git a/src/api/dashboard.js b/src/api/dashboard.js index ad0a916..6f56e28 100644 --- a/src/api/dashboard.js +++ b/src/api/dashboard.js @@ -80,9 +80,9 @@ } // 用水事记查询 -export function getNoteList() { +export function getNoteList(type) { return request({ - url: '/note/list', + url: '/note/list/' + type, method: 'get' }) } @@ -91,7 +91,6 @@ export function updateNoteList(data) { return request({ url: '/note/edit', - // url: 'waterMeterData/count', method: 'post', data }) diff --git a/src/api/dashboard.js b/src/api/dashboard.js index ad0a916..6f56e28 100644 --- a/src/api/dashboard.js +++ b/src/api/dashboard.js @@ -80,9 +80,9 @@ } // 用水事记查询 -export function getNoteList() { +export function getNoteList(type) { return request({ - url: '/note/list', + url: '/note/list/' + type, method: 'get' }) } @@ -91,7 +91,6 @@ export function updateNoteList(data) { return request({ url: '/note/edit', - // url: 'waterMeterData/count', method: 'post', data }) diff --git a/src/api/gasOverview.js b/src/api/gasOverview.js index 7b689ce..a8996f5 100644 --- a/src/api/gasOverview.js +++ b/src/api/gasOverview.js @@ -83,8 +83,8 @@ // 用气事记查询 export function getNoteList(type) { return request({ - // url: '/note/list/' + type, - url: '/note/list', + url: '/note/list/' + type, + // url: '/note/list', method: 'get' }) } diff --git a/src/api/dashboard.js b/src/api/dashboard.js index ad0a916..6f56e28 100644 --- a/src/api/dashboard.js +++ b/src/api/dashboard.js @@ -80,9 +80,9 @@ } // 用水事记查询 -export function getNoteList() { +export function getNoteList(type) { return request({ - url: '/note/list', + url: '/note/list/' + type, method: 'get' }) } @@ -91,7 +91,6 @@ export function updateNoteList(data) { return request({ url: '/note/edit', - // url: 'waterMeterData/count', method: 'post', data }) diff --git a/src/api/gasOverview.js b/src/api/gasOverview.js index 7b689ce..a8996f5 100644 --- a/src/api/gasOverview.js +++ b/src/api/gasOverview.js @@ -83,8 +83,8 @@ // 用气事记查询 export function getNoteList(type) { return request({ - // url: '/note/list/' + type, - url: '/note/list', + url: '/note/list/' + type, + // url: '/note/list', method: 'get' }) } diff --git a/src/views/gasDashboard/components/waterNote.vue b/src/views/gasDashboard/components/waterNote.vue index b12d9f4..a356a37 100644 --- a/src/views/gasDashboard/components/waterNote.vue +++ b/src/views/gasDashboard/components/waterNote.vue @@ -29,7 +29,7 @@