|
|
|
@ -198,7 +198,8 @@ class index extends Component {
|
|
|
|
|
name: data.name, |
|
|
|
|
description: data.description, |
|
|
|
|
default_page: data.selectedMenu, |
|
|
|
|
company_id: data.company_id |
|
|
|
|
company_id: data.company_id, |
|
|
|
|
all_project: data.all_project |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const result = await axios.post(ROLE_ADD, formData, this.config) |
|
|
|
@ -219,7 +220,8 @@ class index extends Component {
|
|
|
|
|
name: data.name, |
|
|
|
|
description: data.description, |
|
|
|
|
default_page: data.selectedMenu, |
|
|
|
|
company_id: data.company_id |
|
|
|
|
company_id: data.company_id, |
|
|
|
|
all_project: data.all_project |
|
|
|
|
} |
|
|
|
|
const url = ROLE_EDIT(data.id) |
|
|
|
|
const result = await axios.put(url, formData, this.config) |
|
|
|
|