| | |
| | | </template> |
| | | |
| | | <script> |
| | | import PlusApi from '@/api/plus/region.js'; |
| | | import PlusApi from '@/api/plus/operations.js'; |
| | | |
| | | export default { |
| | | data() { |
| | |
| | | self.$refs.form.validate(valid => { |
| | | if (valid) { |
| | | self.loading = true; |
| | | PlusApi.regionRoleEdit({ |
| | | PlusApi.operationsRoleEdit({ |
| | | role_id: self.role_id, |
| | | params: JSON.stringify(form) |
| | | }, true) |
| | |
| | | message: '修改成功', |
| | | type: 'success' |
| | | }); |
| | | self.$router.push('/plus/region/auth/role/index'); |
| | | self.$router.push('/plus/operations/auth/role/index'); |
| | | }) |
| | | .catch(error => { |
| | | self.loading = false; |
| | |
| | | /*获取所有的数据*/ |
| | | getData() { |
| | | let self = this; |
| | | PlusApi.regionRoleEditInfo({ |
| | | PlusApi.operationsRoleEditInfo({ |
| | | role_id: self.role_id |
| | | }) |
| | | .then(data => { |