| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- <html>
- <head>
- </head>
- <body>
- <div id="space-content">
- <div class="space-form-infor">
- <el-form action='@service{ name:`authorization_post_menu_save`, page:`toTips` }@' method="post" :model="obj"
- :rules="appRules" ref="obj" label-width="100px">
- <el-form-item label="角色" prop="role" style="margin-top: 36px;">
- <space-select v-model="obj.role" predefine="role" datasize="10"></space-select>
- </el-form-item>
- </el-form>
- </div>
- <div class="space-form-btn">
- <el-button type="primary" icon="el-icon-circle-check" :loading="loading" onclick="space.forms.submit();">保存</el-button>
- <el-button icon="el-icon-circle-close" onclick="space.allFunction.closeDialog();">关闭</el-button>
- </div>
- </div>
- </body>
- <script type="text/javascript">
- space.vue = new Vue({
- el: space.appContent,
- data() {
- return {
- obj: {
- role: [],
- },
- appRules: {},
- loading: false
- };
- },
- created: function() {
- var _this = this;
- space.utils.ajax({
- type: "post",
- url: '@service{ name:`authorization_post_menu_role`}@',
- dataType: 'json',
- callback: function(data) {
- data.data.forEach(function(item) {
- space.vue.$data.obj.role.push(item.roleid);
- });
- }
- });
- }
- })
- </script>
- <script>
- $(document).ready(function() {
- space.plugins.helpMsg.warning("设置后,对应的角色将拥有对岗位进行授权的功能菜单「岗位授权」");
- });
- </script>
- </html>
|