1000910152_edit.jsp 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <html>
  2. <head>
  3. </head>
  4. <body>
  5. <div id="space-content">
  6. <div class="space-form-infor">
  7. <el-form action='@service{ name:`authorization_post_menu_save`, page:`toTips` }@' method="post" :model="obj"
  8. :rules="appRules" ref="obj" label-width="100px">
  9. <el-form-item label="角色" prop="role" style="margin-top: 36px;">
  10. <space-select v-model="obj.role" predefine="role" datasize="10"></space-select>
  11. </el-form-item>
  12. </el-form>
  13. </div>
  14. <div class="space-form-btn">
  15. <el-button type="primary" icon="el-icon-circle-check" :loading="loading" onclick="space.forms.submit();">保存</el-button>
  16. <el-button icon="el-icon-circle-close" onclick="space.allFunction.closeDialog();">关闭</el-button>
  17. </div>
  18. </div>
  19. </body>
  20. <script type="text/javascript">
  21. space.vue = new Vue({
  22. el: space.appContent,
  23. data() {
  24. return {
  25. obj: {
  26. role: [],
  27. },
  28. appRules: {},
  29. loading: false
  30. };
  31. },
  32. created: function() {
  33. var _this = this;
  34. space.utils.ajax({
  35. type: "post",
  36. url: '@service{ name:`authorization_post_menu_role`}@',
  37. dataType: 'json',
  38. callback: function(data) {
  39. data.data.forEach(function(item) {
  40. space.vue.$data.obj.role.push(item.roleid);
  41. });
  42. }
  43. });
  44. }
  45. })
  46. </script>
  47. <script>
  48. $(document).ready(function() {
  49. space.plugins.helpMsg.warning("设置后,对应的角色将拥有对岗位进行授权的功能菜单「岗位授权」");
  50. });
  51. </script>
  52. </html>