基本完成,再完善其他的功能与界面就行
This commit is contained in:
parent
34efcf19ee
commit
c9ab7e221a
@ -2,24 +2,24 @@ import axios from "axios";
|
||||
|
||||
export default {
|
||||
getAllOrganizations() {
|
||||
return axios.get('http://localhost:8080/organizations/listAll').then(response => {
|
||||
return axios.get('http://localhost:8080/api/organizations/listAll').then(response => {
|
||||
return response.data;
|
||||
});
|
||||
},
|
||||
addOrganization(organization) {
|
||||
return axios.post('http://localhost:8080/organizations/addOrganization', organization).then(response => {
|
||||
return axios.post('http://localhost:8080/api/organizations/addOrganization', organization).then(response => {
|
||||
return response.data;
|
||||
});
|
||||
},
|
||||
deleteOrganization(organizationId) {
|
||||
return axios.post('http://localhost:8080/organizations/deleteOrganization' , {organizationId:organizationId},{headers: {
|
||||
return axios.post('http://localhost:8080/api/organizations/deleteOrganization' , {organizationId:organizationId},{headers: {
|
||||
'Content-Type': 'application/json' // 设置 Content-Type 为 application/json
|
||||
}}).then(response => {
|
||||
return response.data;
|
||||
});
|
||||
},
|
||||
updateOrganization(organization) {
|
||||
return axios.post('http://localhost:8080/organizations/updateOrganization', organization).then(response => {
|
||||
return axios.post('http://localhost:8080/api/organizations/updateOrganization', organization).then(response => {
|
||||
return response.data;
|
||||
});
|
||||
},
|
||||
|
||||
Loading…
Reference in New Issue
Block a user