集团编辑功能完善
This commit is contained in:
parent
b96ffa4205
commit
44715650db
|
|
@ -5,7 +5,7 @@ import {
|
||||||
|
|
||||||
|
|
||||||
export const edit = (params) => {
|
export const edit = (params) => {
|
||||||
return fetch('/api/bs/hrmorganization/scheme/updateScheme', {
|
return fetch('/api/bs/hrmorganization/group/updateGroup', {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
mode: 'cors',
|
mode: 'cors',
|
||||||
headers: {
|
headers: {
|
||||||
|
|
|
||||||
|
|
@ -81,28 +81,27 @@ export class GroupStore {
|
||||||
|
|
||||||
|
|
||||||
edit() {
|
edit() {
|
||||||
|
let params = { ...this.form.getFormParams(), id: 1 };
|
||||||
// let params = { ...this.form.getFormParams(), id: this.schemeId };
|
this.form.validateForm().then(f => {
|
||||||
// this.form.validateForm().then(f => {
|
if (f.isValid) {
|
||||||
// if (f.isValid) {
|
Api.edit(params).then(response => {
|
||||||
// Api.edit(params).then(response => {
|
return response.json()
|
||||||
// return response.json()
|
}).then(data => {
|
||||||
// }).then(data => {
|
if (data.code === 200) {
|
||||||
// if (data.code === 200) {
|
message.success(data.msg);
|
||||||
// message.success(data.msg);
|
this.getGroupForm();
|
||||||
// this.getTableInfo();
|
this.setVisible(false);
|
||||||
// this.setVisible(false);
|
} else {
|
||||||
// } else {
|
message.warning(data.msg);
|
||||||
// message.warning(data.msg);
|
}
|
||||||
// }
|
}).catch(error => {
|
||||||
// }).catch(error => {
|
message.warning(error.msg);
|
||||||
// message.warning(error.msg);
|
})
|
||||||
// })
|
} else {
|
||||||
// } else {
|
f.showErrors();
|
||||||
// f.showErrors();
|
this.setDate(new Date());
|
||||||
// this.setDate(new Date());
|
}
|
||||||
// }
|
});
|
||||||
// });
|
|
||||||
}
|
}
|
||||||
|
|
||||||
getForm() {
|
getForm() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue