mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-15 15:37:33 +08:00
get account list api supports only requesting visible accounts
This commit is contained in:
+2
-2
@@ -166,8 +166,8 @@ export default {
|
||||
password
|
||||
});
|
||||
},
|
||||
getAllAccounts: () => {
|
||||
return axios.get('v1/accounts/list.json');
|
||||
getAllAccounts: ({ visibleOnly }) => {
|
||||
return axios.get('v1/accounts/list.json?visible_only=' + !!visibleOnly);
|
||||
},
|
||||
getAccount: ({ id }) => {
|
||||
return axios.get('v1/accounts/get.json?id=' + id);
|
||||
|
||||
@@ -318,7 +318,7 @@ export default {
|
||||
|
||||
self.loading = true;
|
||||
|
||||
self.$services.getAllAccounts().then(response => {
|
||||
self.$services.getAllAccounts({ visibleOnly: false }).then(response => {
|
||||
const data = response.data;
|
||||
|
||||
if (!data || !data.success || !data.result) {
|
||||
@@ -358,7 +358,7 @@ export default {
|
||||
|
||||
const self = this;
|
||||
|
||||
self.$services.getAllAccounts().then(response => {
|
||||
self.$services.getAllAccounts({ visibleOnly: false }).then(response => {
|
||||
if (done) {
|
||||
done();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user