提交 0f2666ab 编写于 作者: ibizdev's avatar ibizdev

laizhilong 发布系统代码

上级 02bb2ad9
......@@ -255,6 +255,14 @@
"viewname": "SYS_USERPickupView",
"viewtag": "d53cb0ce933245fae5f0623bac4fbf48"
},
"sys_role_permissioncustomview": {
"title": "角色权限关系自定义视图",
"caption": "角色权限关系",
"viewtype": "DECUSTOMVIEW",
"viewmodule": "uaa",
"viewname": "SYS_ROLE_PERMISSIONCustomView",
"viewtag": "e791be173ed0f4bbe9cce942b6edde63"
},
"sys_permissioneditview": {
"title": "权限表编辑视图",
"caption": "权限/资源",
......
......@@ -40,6 +40,10 @@ export default {
},
editview2: {
caption: "角色权限关系",
title: '角色权限关系',
},
customview: {
caption: "角色权限关系",
title: '角色权限关系',
},
},
......
......@@ -39,6 +39,10 @@ export default {
},
editview2: {
caption: '角色权限关系',
title: '角色权限关系',
},
customview: {
caption: '角色权限关系',
title: '角色权限关系',
},
},
......
......@@ -263,6 +263,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "SYS_USERPickupView",
"viewtag": "d53cb0ce933245fae5f0623bac4fbf48"
},
"sys_role_permissioncustomview": {
"title": "角色权限关系自定义视图",
"caption": "角色权限关系",
"viewtype": "DECUSTOMVIEW",
"viewmodule": "uaa",
"viewname": "SYS_ROLE_PERMISSIONCustomView",
"viewtag": "e791be173ed0f4bbe9cce942b6edde63"
},
"sys_permissioneditview": {
"title": "权限表编辑视图",
"caption": "权限/资源",
......
......@@ -2,6 +2,7 @@ export const PageComponents = {
install(Vue: any, opt: any) {
Vue.component('sys-permissionpickup-grid-view', () => import('@pages/uaa/sys-permissionpickup-grid-view/sys-permissionpickup-grid-view.vue'));
Vue.component('sys-rolepickup-view', () => import('@pages/uaa/sys-rolepickup-view/sys-rolepickup-view.vue'));
Vue.component('sys-role-permissioncustom-view', () => import('@pages/uaa/sys-role-permissioncustom-view/sys-role-permissioncustom-view.vue'));
Vue.component('sys-usermpickup-view', () => import('@pages/uaa/sys-usermpickup-view/sys-usermpickup-view.vue'));
Vue.component('sys-userpickup-grid-view', () => import('@pages/uaa/sys-userpickup-grid-view/sys-userpickup-grid-view.vue'));
Vue.component('sys-roleedit-view', () => import('@pages/uaa/sys-roleedit-view/sys-roleedit-view.vue'));
......
......@@ -60,6 +60,47 @@ const router = new Router({
},
component: () => import('@pages/uaa/sys-rolepickup-view/sys-rolepickup-view.vue'),
},
{
path: 'sys_roles/:sys_role?/sys_role_permissions/:sys_role_permission?/customview/:customview?',
meta: {
caption: 'entities.sys_role_permission.views.customview.caption',
parameters: [
{ pathName: 'index', parameterName: 'index' },
{ pathName: 'sys_roles', parameterName: 'sys_role' },
{ pathName: 'sys_role_permissions', parameterName: 'sys_role_permission' },
{ pathName: 'customview', parameterName: 'customview' },
],
requireAuth: true,
},
component: () => import('@pages/uaa/sys-role-permissioncustom-view/sys-role-permissioncustom-view.vue'),
},
{
path: 'sys_permissions/:sys_permission?/sys_role_permissions/:sys_role_permission?/customview/:customview?',
meta: {
caption: 'entities.sys_role_permission.views.customview.caption',
parameters: [
{ pathName: 'index', parameterName: 'index' },
{ pathName: 'sys_permissions', parameterName: 'sys_permission' },
{ pathName: 'sys_role_permissions', parameterName: 'sys_role_permission' },
{ pathName: 'customview', parameterName: 'customview' },
],
requireAuth: true,
},
component: () => import('@pages/uaa/sys-role-permissioncustom-view/sys-role-permissioncustom-view.vue'),
},
{
path: 'sys_role_permissions/:sys_role_permission?/customview/:customview?',
meta: {
caption: 'entities.sys_role_permission.views.customview.caption',
parameters: [
{ pathName: 'index', parameterName: 'index' },
{ pathName: 'sys_role_permissions', parameterName: 'sys_role_permission' },
{ pathName: 'customview', parameterName: 'customview' },
],
requireAuth: true,
},
component: () => import('@pages/uaa/sys-role-permissioncustom-view/sys-role-permissioncustom-view.vue'),
},
{
path: 'sys_users/:sys_user?/mpickupview/:mpickupview?',
meta: {
......@@ -733,6 +774,44 @@ const router = new Router({
},
component: () => import('@pages/uaa/sys-userpickup-view/sys-userpickup-view.vue'),
},
{
path: '/sys_roles/:sys_role?/sys_role_permissions/:sys_role_permission?/customview/:customview?',
meta: {
caption: 'entities.sys_role_permission.views.customview.caption',
parameters: [
{ pathName: 'sys_roles', parameterName: 'sys_role' },
{ pathName: 'sys_role_permissions', parameterName: 'sys_role_permission' },
{ pathName: 'customview', parameterName: 'customview' },
],
requireAuth: true,
},
component: () => import('@pages/uaa/sys-role-permissioncustom-view/sys-role-permissioncustom-view.vue'),
},
{
path: '/sys_permissions/:sys_permission?/sys_role_permissions/:sys_role_permission?/customview/:customview?',
meta: {
caption: 'entities.sys_role_permission.views.customview.caption',
parameters: [
{ pathName: 'sys_permissions', parameterName: 'sys_permission' },
{ pathName: 'sys_role_permissions', parameterName: 'sys_role_permission' },
{ pathName: 'customview', parameterName: 'customview' },
],
requireAuth: true,
},
component: () => import('@pages/uaa/sys-role-permissioncustom-view/sys-role-permissioncustom-view.vue'),
},
{
path: '/sys_role_permissions/:sys_role_permission?/customview/:customview?',
meta: {
caption: 'entities.sys_role_permission.views.customview.caption',
parameters: [
{ pathName: 'sys_role_permissions', parameterName: 'sys_role_permission' },
{ pathName: 'customview', parameterName: 'customview' },
],
requireAuth: true,
},
component: () => import('@pages/uaa/sys-role-permissioncustom-view/sys-role-permissioncustom-view.vue'),
},
{
path: '/sys_permissions/:sys_permission?/editview/:editview?',
meta: {
......
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import SYS_ROLE_PERMISSIONCustomViewBase from './sys-role-permissioncustom-view-base.vue';
@Component({
components: {
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { fullPath: to.fullPath, viewtag: vm.viewtag });
});
},
})
export default class SYS_ROLE_PERMISSIONCustomView extends SYS_ROLE_PERMISSIONCustomViewBase {
}
</script>
\ No newline at end of file
......@@ -104,7 +104,7 @@ export const viewstate: any = {
viewdatachange: false,
refviews: [
'61a949e3c23ebdda724888662ded1478',
'b8a97c1797a1b91fbb37f8c2d14b1fb6',
'e791be173ed0f4bbe9cce942b6edde63',
'fb89f9af95f2caf92ccc1249025c9a1b',
],
},
......@@ -157,7 +157,7 @@ export const viewstate: any = {
viewdatachange: false,
refviews: [
'61a949e3c23ebdda724888662ded1478',
'b8a97c1797a1b91fbb37f8c2d14b1fb6',
'e791be173ed0f4bbe9cce942b6edde63',
'fb89f9af95f2caf92ccc1249025c9a1b',
],
},
......@@ -330,6 +330,15 @@ export const viewstate: any = {
'936880f60b6ef17d39d5248b5fe390b4',
],
},
{
viewtag: 'e791be173ed0f4bbe9cce942b6edde63',
viewmodule: 'uaa',
viewname: 'SYS_ROLE_PERMISSIONCustomView',
viewaction: '',
viewdatachange: false,
refviews: [
],
},
{
viewtag: 'eb6498ba353f58d0af17bbd39702ccf7',
viewmodule: 'uaa',
......
......@@ -86,6 +86,7 @@ export default class SYS_ROLE_PERMISSIONUIServiceBase extends UIService {
this.allViewMap.set('PICKUPVIEW:',{viewname:'pickupview',srfappde:'sys_role_permissions'});
this.allViewMap.set('EDITVIEW:',{viewname:'editview',srfappde:'sys_role_permissions'});
this.allViewMap.set(':',{viewname:'editview2',srfappde:'sys_role_permissions'});
this.allViewMap.set(':',{viewname:'customview',srfappde:'sys_role_permissions'});
}
/**
......
......@@ -120,17 +120,18 @@
:formState="formState"
:isForbidLoad="this.data.srfuf === '0'"
paramItem='sys_role'
:parentdata='{"srfparentdename":"SYS_ROLE","SRFPARENTTYPE":"CUSTOM"}'
:parentdata='{"srfparentdefname":"SYS_ROLEID","srfparentdename":"SYS_ROLE","SRFPARENTTYPE":"DER1N","srfparentmode":"DER1N_SYS_ROLE_PERMISSION_SYS_ROLE_SYS_ROLEID","SRFDER1NID":"DER1N_SYS_ROLE_PERMISSION_SYS_ROLE_SYS_ROLEID"}'
:parameters="[
{ pathName: 'sys_permissions', parameterName: 'sys_permission' },
]"
:context="context"
:viewparams="viewparams"
parameterName='sys_role'
parentName="SYS_ROLE"
refviewtype='DEMPICKUPVIEW'
refviewtype='DECUSTOMVIEW'
refreshitems=''
:ignorefieldvaluechange="ignorefieldvaluechange"
viewname='sys-permissionmpickup-view'
viewname='sys-role-permissioncustom-view'
:data="JSON.stringify(this.data)"
@drdatasaved="drdatasaved($event)"
style=";overflow: auto;">
......
......@@ -36,7 +36,7 @@
</createTable>
</changeSet>
<!--输出实体[SYS_ROLE_PERMISSION]数据结构 -->
<changeSet author="a_A_5d9d78509" id="tab-sys_role_permission-66-2">
<changeSet author="a_A_5d9d78509" id="tab-sys_role_permission-68-2">
<createTable tableName="IBZROLE_PERMISSION">
<column name="SYS_ROLE_PERMISSIONID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_SYS_ROLE_PERMISSION_SYS_ROL"/>
......@@ -136,7 +136,7 @@
</createTable>
</changeSet>
<!--输出实体[SYS_ROLE]数据结构 -->
<changeSet author="a_A_5d9d78509" id="tab-sys_role-68-7">
<changeSet author="a_A_5d9d78509" id="tab-sys_role-71-7">
<createTable tableName="IBZROLE">
<column name="SYS_ROLEID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_SYS_ROLE_SYS_ROLEID"/>
......@@ -192,7 +192,7 @@
<!--输出实体[SYS_PSDEOPPRIV]外键关系 -->
<!--输出实体[SYS_ROLE_PERMISSION]外键关系 -->
<changeSet author="a_A_5d9d78509" id="fk-sys_role_permission-66-10">
<changeSet author="a_A_5d9d78509" id="fk-sys_role_permission-68-10">
<addForeignKeyConstraint baseColumnNames="SYS_PERMISSIONID" baseTableName="IBZROLE_PERMISSION" constraintName="DER1N_SYS_ROLE_PERMISSION_SYS_" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="SYS_PERMISSIONID" referencedTableName="IBZPERMISSION" validate="true"/>
</changeSet>
<!--输出实体[SYS_USER]外键关系 -->
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册