Commit 8de48dd3 authored by syadziy's avatar syadziy

update role

parent 58611953
...@@ -140,18 +140,18 @@ export default class EditRole extends Component { ...@@ -140,18 +140,18 @@ export default class EditRole extends Component {
// let startDate = format(this.state.tempData.start_date, 'yyyy-MM-dd') // let startDate = format(this.state.tempData.start_date, 'yyyy-MM-dd')
// let endDate = format(this.state.tempData.end_date, 'yyyy-MM-dd') // let endDate = format(this.state.tempData.end_date, 'yyyy-MM-dd')
let privileges = this.state.privileges let privileges = this.state.privileges
privileges.push({ // privileges.push({
menu_id: 23, // menu_id: 23,
button_id: [1,2,3,4,5] // button_id: [1,2,3,4,5]
}) // })
privileges.push({ // privileges.push({
menu_id: 24, // menu_id: 24,
button_id: [1,2,3,4,5] // button_id: [1,2,3,4,5]
}) // })
privileges.push({ // privileges.push({
menu_id: 25, // menu_id: 25,
button_id: [1,2,3,4,5] // button_id: [1,2,3,4,5]
}) // })
let payload = { let payload = {
"role_id": this.state.tempData.role_id, "role_id": this.state.tempData.role_id,
"role_name": this.state.tempData.role_name, "role_name": this.state.tempData.role_name,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment