| | |
| | | </template> |
| | | |
| | | <script> |
| | | import PlusApi from '@/api/plus/region.js'; |
| | | import PlusApi from '@/api/plus/operations.js'; |
| | | export default { |
| | | data() { |
| | | return { |
| | |
| | | } |
| | | }; |
| | | }, |
| | | props: ['open','region_user_id'], |
| | | props: ['open','operations_user_id'], |
| | | watch: { |
| | | open: function(n, o) { |
| | | if (n != o) { |
| | |
| | | /*获取数据*/ |
| | | getData() { |
| | | let self = this; |
| | | PlusApi.regionAdminEditInfo({ |
| | | region_user_id: this.region_user_id |
| | | PlusApi.operationsAdminEditInfo({ |
| | | operations_user_id: this.operations_user_id |
| | | }).then(res => { |
| | | self.loading = false; |
| | | self.roleList = res.data.roleList; |
| | |
| | | let self = this; |
| | | self.loading = true; |
| | | let params = self.form; |
| | | PlusApi.regionAdminEdit(params, true) |
| | | PlusApi.operationsAdminEdit(params, true) |
| | | .then(data => { |
| | | self.loading = false; |
| | | self.$message({ |