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