postsManage.js 825 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /**
  2. * long description for the file
  3. *
  4. * @summary 岗位分配角色
  5. * @author wu <308822989@qq.com>
  6. *
  7. * Created at : 2018-08-01 18:01:57
  8. * Last modified : 2018-08-27 14:54:44
  9. */
  10. import axios from '@/config/axios.js';
  11. import { proPath } from '@/config/config.js';
  12. const state = {
  13. }
  14. const getters = {
  15. }
  16. const mutations = {
  17. }
  18. const actions = {
  19. // 岗位查询角色
  20. syspostroles ({ commit, state }, form) {
  21. let res = axios.get(proPath + 'v1/syspostroles/', {
  22. params: form
  23. });
  24. return res;
  25. },
  26. // 岗位绑定多个角色
  27. batchInsertPostRoles ({ commit, state }, obj) {
  28. let res = axios.put(proPath + 'v1/syspostroles/batchInsertPostRoles?postId=' + obj.postId, obj.form);
  29. return res;
  30. }
  31. }
  32. //
  33. export default {
  34. namespaced: true,
  35. state,
  36. getters,
  37. mutations,
  38. actions
  39. }