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

lab_qyk 发布系统代码

上级 90138f50
......@@ -59,6 +59,66 @@
"codename":"Item_3",
"value": "性别不详",
"disabled": false
}
]
},
{
"srfkey": "CLAuthCode",
"emptytext": "未定义",
"codelisttype":"static",
"items": [
{
"id": "200",
"label": "成功",
"text": "成功",
"data":"",
"codename":"Item_200",
"color": "rgba(0, 255, 0, 0)",
"value": "200",
"disabled": false
}
, {
"id": "400",
"label": "用户不存在",
"text": "用户不存在",
"data":"",
"codename":"Item_400",
"value": "400",
"disabled": false
}
, {
"id": "401.1",
"label": "密码错误",
"text": "密码错误",
"data":"",
"codename":"Item_3",
"value": "401.1",
"disabled": false
}
, {
"id": "401.2",
"label": "配置错误",
"text": "配置错误",
"data":"",
"codename":"Item_4",
"color": "rgba(22, 9, 170, 1)",
"value": "401.2",
"disabled": false
}
, {
"id": "403.6",
"label": "地址被拒绝",
"text": "地址被拒绝",
"data":"",
"codename":"Item_5",
"color": "rgba(0, 72, 255, 1)",
"value": "403.6",
"disabled": false
}
]
......
......@@ -31,6 +31,14 @@
"viewname": "SYS_ROLEGridView",
"viewtag": "13c174556f45e9b10b66dc51834a6ab5"
},
"sysauthloggridview": {
"title": "认证日志表格视图",
"caption": "认证日志",
"viewtype": "DEGRIDVIEW",
"viewmodule": "uaa",
"viewname": "SysAuthLogGridView",
"viewtag": "255944d6d1a575d0eda2b68bc19314f3"
},
"sysrolepickupview": {
"title": "角色数据选择视图",
"caption": "系统角色",
......@@ -71,6 +79,14 @@
"viewname": "IBZEmployeeGridView",
"viewtag": "40fe6b28b9f7902341da46bb74a02d59"
},
"wfremodeleditview": {
"title": "流程模型编辑视图",
"caption": "流程模型",
"viewtype": "DEEDITVIEW",
"viewmodule": "workflow",
"viewname": "WFREModelEditView",
"viewtag": "5856bfb8b576cc2ee743801b23e58299"
},
"ibzdeptmembergridview": {
"title": "部门成员表格视图",
"caption": "部门成员",
......
import sysrolepermission_en_US from '@locale/lanres/sys-role-permission/sys-role-permission_en_US';
import sysuser_en_US from '@locale/lanres/sys-user/sys-user_en_US';
import sysauthlog_en_US from '@locale/lanres/sys-auth-log/sys-auth-log_en_US';
import wfmember_en_US from '@locale/lanres/wfmember/wfmember_en_US';
import wfuser_en_US from '@locale/lanres/wfuser/wfuser_en_US';
import ibzorganization_en_US from '@locale/lanres/ibzorganization/ibzorganization_en_US';
import wfgroup_en_US from '@locale/lanres/wfgroup/wfgroup_en_US';
import wfremodel_en_US from '@locale/lanres/wfremodel/wfremodel_en_US';
import sysuserrole_en_US from '@locale/lanres/sys-user-role/sys-user-role_en_US';
import wfprocessdefinition_en_US from '@locale/lanres/wfprocess-definition/wfprocess-definition_en_US';
import sysrole_en_US from '@locale/lanres/sys-role/sys-role_en_US';
......@@ -67,22 +69,29 @@ export default {
},
menus: {
index: {
menuitem7: '组织部门管理',
menuitem1: '单位管理',
menuitem2: '部门管理',
menuitem3: '人员管理',
menuitem8: '权限管理',
menuitem4: '用户角色',
menuitem5: '流程角色',
menuitem9: '认证日志',
menuitem10: '流程管理',
menuitem6: '流程定义',
menuitem5: '流程角色',
menuitem11: '发布新流程',
},
},
},
entities: {
sysrolepermission: sysrolepermission_en_US,
sysuser: sysuser_en_US,
sysauthlog: sysauthlog_en_US,
wfmember: wfmember_en_US,
wfuser: wfuser_en_US,
ibzorganization: ibzorganization_en_US,
wfgroup: wfgroup_en_US,
wfremodel: wfremodel_en_US,
sysuserrole: sysuserrole_en_US,
wfprocessdefinition: wfprocessdefinition_en_US,
sysrole: sysrole_en_US,
......
import sysrolepermission_zh_CN from '@locale/lanres/sys-role-permission/sys-role-permission_zh_CN';
import sysuser_zh_CN from '@locale/lanres/sys-user/sys-user_zh_CN';
import sysauthlog_zh_CN from '@locale/lanres/sys-auth-log/sys-auth-log_zh_CN';
import wfmember_zh_CN from '@locale/lanres/wfmember/wfmember_zh_CN';
import wfuser_zh_CN from '@locale/lanres/wfuser/wfuser_zh_CN';
import ibzorganization_zh_CN from '@locale/lanres/ibzorganization/ibzorganization_zh_CN';
import wfgroup_zh_CN from '@locale/lanres/wfgroup/wfgroup_zh_CN';
import wfremodel_zh_CN from '@locale/lanres/wfremodel/wfremodel_zh_CN';
import sysuserrole_zh_CN from '@locale/lanres/sys-user-role/sys-user-role_zh_CN';
import wfprocessdefinition_zh_CN from '@locale/lanres/wfprocess-definition/wfprocess-definition_zh_CN';
import sysrole_zh_CN from '@locale/lanres/sys-role/sys-role_zh_CN';
......@@ -67,22 +69,29 @@ export default {
},
menus: {
index: {
menuitem7: '组织部门管理',
menuitem1: '单位管理',
menuitem2: '部门管理',
menuitem3: '人员管理',
menuitem8: '权限管理',
menuitem4: '用户角色',
menuitem5: '流程角色',
menuitem9: '认证日志',
menuitem10: '流程管理',
menuitem6: '流程定义',
menuitem5: '流程角色',
menuitem11: '发布新流程',
},
},
},
entities: {
sysrolepermission: sysrolepermission_zh_CN,
sysuser: sysuser_zh_CN,
sysauthlog: sysauthlog_zh_CN,
wfmember: wfmember_zh_CN,
wfuser: wfuser_zh_CN,
ibzorganization: ibzorganization_zh_CN,
wfgroup: wfgroup_zh_CN,
wfremodel: wfremodel_zh_CN,
sysuserrole: sysuserrole_zh_CN,
wfprocessdefinition: wfprocessdefinition_zh_CN,
sysrole: sysrole_zh_CN,
......
......@@ -10,4 +10,12 @@ export default {
'性别不详': '性别不详',
empty: '',
},
CLAuthCode: {
'200': '成功',
'400': '用户不存在',
'401.1': '密码错误',
'401.2': '配置错误',
'403.6': '地址被拒绝',
empty: '',
},
};
\ No newline at end of file
......@@ -10,4 +10,12 @@ export default {
'性别不详': '性别不详',
empty: '',
},
CLAuthCode: {
'200': '成功',
'400': '用户不存在',
'401.1': '密码错误',
'401.2': '配置错误',
'403.6': '地址被拒绝',
empty: '',
},
};
\ No newline at end of file
export default {
fields: {
logid: '标识',
username: '用户全局名',
personname: '用户名称',
domain: '域',
authtime: '认证时间',
ipaddr: 'IP地址',
macaddr: 'MAC地址',
useragent: '客户端',
authcode: '认证结果',
},
views: {
gridview: {
caption: "认证日志",
title: '认证日志',
},
},
main_grid: {
columns: {
username: "用户全局名",
personname: "用户名称",
authtime: "认证时间",
authcode: "认证结果",
ipaddr: "IP地址",
macaddr: "MAC地址",
useragent: "客户端",
domain: "域",
},
uiactions: {
},
},
default_searchform: {
details: {
formpage1: "常规条件",
n_username_like: "用户全局名(文本包含(%))",
n_personname_like: "用户名称(文本包含(%))",
n_authcode_eq: "认证结果(等于(=))",
n_authtime_gtandeq: "认证时间(大于等于(>=))",
n_authtime_ltandeq: "认证时间(小于等于(<=))",
n_domain_like: "域(文本包含(%))",
},
uiactions: {
},
},
};
\ No newline at end of file
export default {
fields: {
logid: '标识',
username: '用户全局名',
personname: '用户名称',
domain: '域',
authtime: '认证时间',
ipaddr: 'IP地址',
macaddr: 'MAC地址',
useragent: '客户端',
authcode: '认证结果',
},
views: {
gridview: {
caption: '认证日志',
title: '认证日志',
},
},
main_grid: {
columns: {
username: '用户全局名',
personname: '用户名称',
authtime: '认证时间',
authcode: '认证结果',
ipaddr: 'IP地址',
macaddr: 'MAC地址',
useragent: '客户端',
domain: '域',
},
uiactions: {
},
},
default_searchform: {
details: {
formpage1: '常规条件',
n_username_like: '用户全局名(文本包含(%))',
n_personname_like: '用户名称(文本包含(%))',
n_authcode_eq: '认证结果(等于(=))',
n_authtime_gtandeq: '认证时间(大于等于(>=))',
n_authtime_ltandeq: '认证时间(小于等于(<=))',
n_domain_like: '域(文本包含(%))',
},
uiactions: {
},
},
};
\ No newline at end of file
export default {
fields: {
id: 'ID',
name: '名称',
bpmnfile: 'BPMN',
},
views: {
editview: {
caption: "流程模型",
title: '流程模型',
},
},
main_form: {
details: {
group1: "流程模型",
formpage1: "基本信息",
srforikey: "",
srfkey: "ID",
srfmajortext: "名称",
srftempmode: "",
srfuf: "",
srfdeid: "",
srfsourcekey: "",
bpmnfile: "BPMN",
modelid: "ID",
},
uiactions: {
},
},
editviewtoolbar_toolbar: {
tbitem1: {
caption: "Save",
tip: "Save",
},
},
};
\ No newline at end of file
export default {
fields: {
id: 'ID',
name: '名称',
bpmnfile: 'BPMN',
},
views: {
editview: {
caption: '流程模型',
title: '流程模型',
},
},
main_form: {
details: {
group1: '流程模型',
formpage1: '基本信息',
srforikey: '',
srfkey: 'ID',
srfmajortext: '名称',
srftempmode: '',
srfuf: '',
srfdeid: '',
srfsourcekey: '',
bpmnfile: 'BPMN',
modelid: 'ID',
},
uiactions: {
},
},
editviewtoolbar_toolbar: {
tbitem1: {
caption: '保存',
tip: '保存',
},
},
};
\ No newline at end of file
......@@ -11,6 +11,24 @@ mock.onGet('v7/indexappmenu').reply((config: any) => {
name: 'appmenu',
items: [
{
id: 'DCCA086F-7A59-4199-9C11-FEC68DDF7E0B',
name: 'menuitem7',
text: '组织部门管理',
type: 'MENUITEM',
counterid: '',
tooltip: '组织部门管理',
expanded: false,
separator: false,
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: 'fa fa-th-large',
icon: '',
textcls: '',
appfunctag: '',
resourcetag: '',
items: [
{
id: '4ea6829eb5066555b9f0a91145dc7502',
name: 'menuitem1',
text: '单位管理',
......@@ -22,13 +40,13 @@ mock.onGet('v7/indexappmenu').reply((config: any) => {
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: '',
iconcls: 'fa fa-university',
icon: '',
textcls: '',
appfunctag: 'Auto3',
resourcetag: '',
},
{
{
id: 'f73183a5dfe125c3461116b4d82c2468',
name: 'menuitem2',
text: '部门管理',
......@@ -40,13 +58,13 @@ mock.onGet('v7/indexappmenu').reply((config: any) => {
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: '',
iconcls: 'fa fa-sitemap',
icon: '',
textcls: '',
appfunctag: 'Auto2',
resourcetag: '',
},
{
{
id: '341bd3aa939665d5c039462456dfce93',
name: 'menuitem3',
text: '人员管理',
......@@ -58,13 +76,33 @@ mock.onGet('v7/indexappmenu').reply((config: any) => {
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: '',
iconcls: 'fa fa-user',
icon: '',
textcls: '',
appfunctag: 'Auto4',
resourcetag: '',
},
],
},
{
id: 'F4C605A6-B7AE-4388-8525-3680E19053E9',
name: 'menuitem8',
text: '权限管理',
type: 'MENUITEM',
counterid: '',
tooltip: '权限管理',
expanded: false,
separator: false,
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: 'fa fa-cubes',
icon: '',
textcls: '',
appfunctag: '',
resourcetag: '',
items: [
{
id: '1e02015a09f1d812fe4640fac320158e',
name: 'menuitem4',
text: '用户角色',
......@@ -76,31 +114,51 @@ mock.onGet('v7/indexappmenu').reply((config: any) => {
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: '',
iconcls: 'fa fa-unlock-alt',
icon: '',
textcls: '',
appfunctag: 'Auto5',
resourcetag: '',
},
{
id: '69b794a51f56bc20947749c2d7629117',
name: 'menuitem5',
text: '流程角色',
{
id: '4999F409-9C7B-4C41-BD3A-B29611EA7E6E',
name: 'menuitem9',
text: '认证日志',
type: 'MENUITEM',
counterid: '',
tooltip: '流程角色',
tooltip: '认证日志',
expanded: false,
separator: false,
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: '',
iconcls: 'fa fa-sort-amount-asc',
icon: '',
textcls: '',
appfunctag: 'Auto1',
appfunctag: '_2',
resourcetag: '',
},
],
},
{
id: 'B3429E51-565E-49F8-BCDB-CE313AFB338E',
name: 'menuitem10',
text: '流程管理',
type: 'MENUITEM',
counterid: '',
tooltip: '流程管理',
expanded: false,
separator: false,
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: 'fa fa-empire',
icon: '',
textcls: '',
appfunctag: '',
resourcetag: '',
items: [
{
id: '6DFB635D-1B8E-47E7-9869-1B7BC2B844C0',
name: 'menuitem6',
text: '流程定义',
......@@ -115,8 +173,46 @@ mock.onGet('v7/indexappmenu').reply((config: any) => {
iconcls: 'fa fa-random',
icon: '',
textcls: '',
appfunctag: '_2',
appfunctag: '_4',
resourcetag: '',
},
{
id: '69b794a51f56bc20947749c2d7629117',
name: 'menuitem5',
text: '流程角色',
type: 'MENUITEM',
counterid: '',
tooltip: '流程角色',
expanded: false,
separator: false,
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: 'fa fa-users',
icon: '',
textcls: '',
appfunctag: 'Auto1',
resourcetag: '',
},
{
id: '8E6D5AC1-9AA9-4F29-83A2-0A9E7EFACE09',
name: 'menuitem11',
text: '发布新流程',
type: 'MENUITEM',
counterid: '',
tooltip: '发布新流程',
expanded: false,
separator: false,
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: 'fa fa-arrow-circle-o-up',
icon: '',
textcls: '',
appfunctag: '_3',
resourcetag: '',
},
],
},
],
}];
......
......@@ -67,6 +67,66 @@ mock.onGet('./assets/json/data-dictionary.json').reply((config: any) => {
"codename":"Item_3",
value: '性别不详',
disabled: false,
},
]
},
{
srfkey: 'CLAuthCode',
emptytext: '未定义',
"codelisttype":"static",
items: [
{
id: '200',
label: '成功',
text: '成功',
"data":"",
"codename":"Item_200",
"color": "rgba(0, 255, 0, 0)",
value: '200',
disabled: false,
},
{
id: '400',
label: '用户不存在',
text: '用户不存在',
"data":"",
"codename":"Item_400",
value: '400',
disabled: false,
},
{
id: '401.1',
label: '密码错误',
text: '密码错误',
"data":"",
"codename":"Item_3",
value: '401.1',
disabled: false,
},
{
id: '401.2',
label: '配置错误',
text: '配置错误',
"data":"",
"codename":"Item_4",
"color": "rgba(22, 9, 170, 1)",
value: '401.2',
disabled: false,
},
{
id: '403.6',
label: '地址被拒绝',
text: '地址被拒绝',
"data":"",
"codename":"Item_5",
"color": "rgba(0, 72, 255, 1)",
value: '403.6',
disabled: false,
},
]
......
此差异已折叠。
此差异已折叠。
......@@ -9,10 +9,12 @@ import './upload/upload';
// 实体级接口对象
import './entity/sys-role-permissions/sys-role-permissions';
import './entity/sys-users/sys-users';
import './entity/sys-auth-logs/sys-auth-logs';
import './entity/wfmembers/wfmembers';
import './entity/wfusers/wfusers';
import './entity/ibzorganizations/ibzorganizations';
import './entity/wfgroups/wfgroups';
import './entity/wfremodels/wfremodels';
import './entity/sys-user-roles/sys-user-roles';
import './entity/wfprocess-definitions/wfprocess-definitions';
import './entity/sys-roles/sys-roles';
......
......@@ -39,6 +39,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "SYS_ROLEGridView",
"viewtag": "13c174556f45e9b10b66dc51834a6ab5"
},
"sysauthloggridview": {
"title": "认证日志表格视图",
"caption": "认证日志",
"viewtype": "DEGRIDVIEW",
"viewmodule": "uaa",
"viewname": "SysAuthLogGridView",
"viewtag": "255944d6d1a575d0eda2b68bc19314f3"
},
"sysrolepickupview": {
"title": "角色数据选择视图",
"caption": "系统角色",
......@@ -79,6 +87,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "IBZEmployeeGridView",
"viewtag": "40fe6b28b9f7902341da46bb74a02d59"
},
"wfremodeleditview": {
"title": "流程模型编辑视图",
"caption": "流程模型",
"viewtype": "DEEDITVIEW",
"viewmodule": "workflow",
"viewname": "WFREModelEditView",
"viewtag": "5856bfb8b576cc2ee743801b23e58299"
},
"ibzdeptmembergridview": {
"title": "部门成员表格视图",
"caption": "部门成员",
......
export const PageComponents = {
install(Vue: any, opt: any) {
Vue.component('ibzorganization-grid-view', () => import('@pages/ou/ibzorganization-grid-view/ibzorganization-grid-view.vue'));
Vue.component('wfremodel-edit-view', () => import('@pages/workflow/wfremodel-edit-view/wfremodel-edit-view.vue'));
Vue.component('ibzemployee-pickup-view', () => import('@pages/ou/ibzemployee-pickup-view/ibzemployee-pickup-view.vue'));
Vue.component('sys-auth-log-grid-view', () => import('@pages/uaa/sys-auth-log-grid-view/sys-auth-log-grid-view.vue'));
Vue.component('ibzemployee-pickup-grid-view', () => import('@pages/ou/ibzemployee-pickup-grid-view/ibzemployee-pickup-grid-view.vue'));
Vue.component('ibzorganization-edit-view', () => import('@pages/ou/ibzorganization-edit-view/ibzorganization-edit-view.vue'));
Vue.component('ibzemployee-option-view', () => import('@pages/ou/ibzemployee-option-view/ibzemployee-option-view.vue'));
......
......@@ -47,6 +47,19 @@ const router = new Router({
},
component: () => import('@pages/ou/ibzorganization-grid-view/ibzorganization-grid-view.vue'),
},
{
path: 'wfremodels/:wfremodel?/editview/:editview?',
meta: {
caption: 'entities.wfremodel.views.editview.caption',
parameters: [
{ pathName: 'index', parameterName: 'index' },
{ pathName: 'wfremodels', parameterName: 'wfremodel' },
{ pathName: 'editview', parameterName: 'editview' },
],
requireAuth: true,
},
component: () => import('@pages/workflow/wfremodel-edit-view/wfremodel-edit-view.vue'),
},
{
path: 'ibzemployees/:ibzemployee?/pickupview/:pickupview?',
meta: {
......@@ -60,6 +73,19 @@ const router = new Router({
},
component: () => import('@pages/ou/ibzemployee-pickup-view/ibzemployee-pickup-view.vue'),
},
{
path: 'sysauthlogs/:sysauthlog?/gridview/:gridview?',
meta: {
caption: 'entities.sysauthlog.views.gridview.caption',
parameters: [
{ pathName: 'index', parameterName: 'index' },
{ pathName: 'sysauthlogs', parameterName: 'sysauthlog' },
{ pathName: 'gridview', parameterName: 'gridview' },
],
requireAuth: true,
},
component: () => import('@pages/uaa/sys-auth-log-grid-view/sys-auth-log-grid-view.vue'),
},
{
path: 'ibzemployees/:ibzemployee?/pickupgridview/:pickupgridview?',
meta: {
......@@ -635,6 +661,18 @@ const router = new Router({
},
component: () => import('@pages/uaa/sys-rolegrid-view/sys-rolegrid-view.vue'),
},
{
path: '/sysauthlogs/:sysauthlog?/gridview/:gridview?',
meta: {
caption: 'entities.sysauthlog.views.gridview.caption',
parameters: [
{ pathName: 'sysauthlogs', parameterName: 'sysauthlog' },
{ pathName: 'gridview', parameterName: 'gridview' },
],
requireAuth: true,
},
component: () => import('@pages/uaa/sys-auth-log-grid-view/sys-auth-log-grid-view.vue'),
},
{
path: '/sysroles/:sysrole?/pickupview/:pickupview?',
meta: {
......@@ -695,6 +733,18 @@ const router = new Router({
},
component: () => import('@pages/ou/ibzemployee-grid-view/ibzemployee-grid-view.vue'),
},
{
path: '/wfremodels/:wfremodel?/editview/:editview?',
meta: {
caption: 'entities.wfremodel.views.editview.caption',
parameters: [
{ pathName: 'wfremodels', parameterName: 'wfremodel' },
{ pathName: 'editview', parameterName: 'editview' },
],
requireAuth: true,
},
component: () => import('@pages/workflow/wfremodel-edit-view/wfremodel-edit-view.vue'),
},
{
path: '/ibzdeptmembers/:ibzdeptmember?/gridview/:gridview?',
meta: {
......
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import SysAuthLogGridViewBase from './sys-auth-log-grid-view-base.vue';
import view_grid from '@widgets/sys-auth-log/main-grid/main-grid.vue';
import view_searchform from '@widgets/sys-auth-log/default-searchform/default-searchform.vue';
@Component({
components: {
view_grid,
view_searchform,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { fullPath: to.fullPath, viewtag: vm.viewtag });
});
},
})
export default class SysAuthLogGridView extends SysAuthLogGridViewBase {
}
</script>
\ No newline at end of file
.view-card {
>.ivu-card-extra {
top: 5px;
right: 0px;
}
}
.wfremodel-edit-view{
position: relative;
}
.toolbar-container {
button {
margin: 6px 0px 4px 4px;
.caption {
margin-left: 4px;
}
}
.seperator {
color: #dcdee2;
margin: 0 0px 0 4px;
}
}
// this is less
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import WFREModelEditViewBase from './wfremodel-edit-view-base.vue';
import view_form from '@widgets/wfremodel/main-form/main-form.vue';
@Component({
components: {
view_form,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { fullPath: to.fullPath, viewtag: vm.viewtag });
});
},
})
export default class WFREModelEditView extends WFREModelEditViewBase {
}
</script>
\ No newline at end of file
......@@ -41,10 +41,12 @@ export class EntityServiceRegister {
protected init(): void {
this.allEntityService.set('sysrolepermission', () => import('@/service/sys-role-permission/sys-role-permission-service'));
this.allEntityService.set('sysuser', () => import('@/service/sys-user/sys-user-service'));
this.allEntityService.set('sysauthlog', () => import('@/service/sys-auth-log/sys-auth-log-service'));
this.allEntityService.set('wfmember', () => import('@/service/wfmember/wfmember-service'));
this.allEntityService.set('wfuser', () => import('@/service/wfuser/wfuser-service'));
this.allEntityService.set('ibzorganization', () => import('@/service/ibzorganization/ibzorganization-service'));
this.allEntityService.set('wfgroup', () => import('@/service/wfgroup/wfgroup-service'));
this.allEntityService.set('wfremodel', () => import('@/service/wfremodel/wfremodel-service'));
this.allEntityService.set('sysuserrole', () => import('@/service/sys-user-role/sys-user-role-service'));
this.allEntityService.set('wfprocessdefinition', () => import('@/service/wfprocess-definition/wfprocess-definition-service'));
this.allEntityService.set('sysrole', () => import('@/service/sys-role/sys-role-service'));
......
import { Http,Util } from '@/utils';
import EntityService from '../entity-service';
/**
* 认证日志服务对象基类
*
* @export
* @class SysAuthLogServiceBase
* @extends {EntityServie}
*/
export default class SysAuthLogServiceBase extends EntityService {
/**
* Creates an instance of SysAuthLogServiceBase.
*
* @param {*} [opts={}]
* @memberof SysAuthLogServiceBase
*/
constructor(opts: any = {}) {
super(opts);
}
/**
* 初始化基础数据
*
* @memberof SysAuthLogServiceBase
*/
public initBasicData(){
this.APPLYDEKEY ='sysauthlog';
this.APPDEKEY = 'logid';
this.APPDENAME = 'sysauthlogs';
this.APPDETEXT = 'username';
this.APPNAME = 'web';
this.SYSTEMNAME = 'ibzrt';
}
// 实体接口
/**
* Select接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof SysAuthLogServiceBase
*/
public async Select(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
return Http.getInstance().get(`/sysauthlogs/${context.sysauthlog}/select`,isloading);
}
/**
* CheckKey接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof SysAuthLogServiceBase
*/
public async CheckKey(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
return Http.getInstance().post(`/sysauthlogs/${context.sysauthlog}/checkkey`,data,isloading);
}
/**
* Remove接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof SysAuthLogServiceBase
*/
public async Remove(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
return Http.getInstance().delete(`/sysauthlogs/${context.sysauthlog}`,isloading);
}
/**
* GetDraft接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof SysAuthLogServiceBase
*/
public async GetDraft(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = await Http.getInstance().get(`/sysauthlogs/getdraft`,isloading);
res.data.sysauthlog = data.sysauthlog;
return res;
}
/**
* Update接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof SysAuthLogServiceBase
*/
public async Update(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().put(`/sysauthlogs/${context.sysauthlog}`,data,isloading);
return res;
}
/**
* Save接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof SysAuthLogServiceBase
*/
public async Save(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/sysauthlogs/${context.sysauthlog}/save`,data,isloading);
return res;
}
/**
* Create接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof SysAuthLogServiceBase
*/
public async Create(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let masterData:any = {};
Object.assign(data,masterData);
if(!data.srffrontuf || data.srffrontuf !== "1"){
data[this.APPDEKEY] = null;
}
if(data.srffrontuf){
delete data.srffrontuf;
}
let tempContext:any = JSON.parse(JSON.stringify(context));
let res:any = await Http.getInstance().post(`/sysauthlogs`,data,isloading);
return res;
}
/**
* Get接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof SysAuthLogServiceBase
*/
public async Get(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = await Http.getInstance().get(`/sysauthlogs/${context.sysauthlog}`,isloading);
return res;
}
/**
* FetchDefault接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof SysAuthLogServiceBase
*/
public async FetchDefault(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let tempData:any = JSON.parse(JSON.stringify(data));
return Http.getInstance().get(`/sysauthlogs/fetchdefault`,tempData,isloading);
}
}
\ No newline at end of file
import { Http,Util } from '@/utils';
import SysAuthLogServiceBase from './sys-auth-log-service-base';
/**
* 认证日志服务对象
*
* @export
* @class SysAuthLogService
* @extends {SysAuthLogServiceBase}
*/
export default class SysAuthLogService extends SysAuthLogServiceBase {
/**
* Creates an instance of SysAuthLogService.
*
* @param {*} [opts={}]
* @memberof SysAuthLogService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
import { Http,Util } from '@/utils';
import EntityService from '../entity-service';
/**
* 流程模型服务对象基类
*
* @export
* @class WFREModelServiceBase
* @extends {EntityServie}
*/
export default class WFREModelServiceBase extends EntityService {
/**
* Creates an instance of WFREModelServiceBase.
*
* @param {*} [opts={}]
* @memberof WFREModelServiceBase
*/
constructor(opts: any = {}) {
super(opts);
}
/**
* 初始化基础数据
*
* @memberof WFREModelServiceBase
*/
public initBasicData(){
this.APPLYDEKEY ='wfremodel';
this.APPDEKEY = 'id';
this.APPDENAME = 'wfremodels';
this.APPDETEXT = 'name';
this.APPNAME = 'web';
this.SYSTEMNAME = 'ibzrt';
}
// 实体接口
/**
* Select接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof WFREModelServiceBase
*/
public async Select(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
return Http.getInstance().get(`/wfremodels/${context.wfremodel}/select`,isloading);
}
/**
* Create接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof WFREModelServiceBase
*/
public async Create(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let masterData:any = {};
Object.assign(data,masterData);
if(!data.srffrontuf || data.srffrontuf !== "1"){
data[this.APPDEKEY] = null;
}
if(data.srffrontuf){
delete data.srffrontuf;
}
let tempContext:any = JSON.parse(JSON.stringify(context));
let res:any = await Http.getInstance().post(`/wfremodels`,data,isloading);
return res;
}
/**
* Get接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof WFREModelServiceBase
*/
public async Get(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = await Http.getInstance().get(`/wfremodels/${context.wfremodel}`,isloading);
return res;
}
/**
* Save接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof WFREModelServiceBase
*/
public async Save(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/wfremodels/${context.wfremodel}/save`,data,isloading);
return res;
}
/**
* Update接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof WFREModelServiceBase
*/
public async Update(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().put(`/wfremodels/${context.wfremodel}`,data,isloading);
return res;
}
/**
* GetDraft接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof WFREModelServiceBase
*/
public async GetDraft(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = await Http.getInstance().get(`/wfremodels/getdraft`,isloading);
res.data.wfremodel = data.wfremodel;
return res;
}
/**
* Remove接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof WFREModelServiceBase
*/
public async Remove(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
return Http.getInstance().delete(`/wfremodels/${context.wfremodel}`,isloading);
}
/**
* CheckKey接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof WFREModelServiceBase
*/
public async CheckKey(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
return Http.getInstance().post(`/wfremodels/${context.wfremodel}/checkkey`,data,isloading);
}
/**
* FetchDefault接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof WFREModelServiceBase
*/
public async FetchDefault(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let tempData:any = JSON.parse(JSON.stringify(data));
return Http.getInstance().get(`/wfremodels/fetchdefault`,tempData,isloading);
}
}
\ No newline at end of file
import { Http,Util } from '@/utils';
import WFREModelServiceBase from './wfremodel-service-base';
/**
* 流程模型服务对象
*
* @export
* @class WFREModelService
* @extends {WFREModelServiceBase}
*/
export default class WFREModelService extends WFREModelServiceBase {
/**
* Creates an instance of WFREModelService.
*
* @param {*} [opts={}]
* @memberof WFREModelService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
......@@ -45,6 +45,15 @@ export const viewstate: any = {
'6bd0981f6dd67a59f211b5cf97ac8f30',
],
},
{
viewtag: '255944d6d1a575d0eda2b68bc19314f3',
viewmodule: 'uaa',
viewname: 'SysAuthLogGridView',
viewaction: '',
viewdatachange: false,
refviews: [
],
},
{
viewtag: '26cc2d5c69f1525eaa415b7de1a0d4a6',
viewmodule: 'uaa',
......@@ -95,6 +104,15 @@ export const viewstate: any = {
'9cf7a70099bff83a10f6ae65c4d54692',
],
},
{
viewtag: '5856bfb8b576cc2ee743801b23e58299',
viewmodule: 'workflow',
viewname: 'WFREModelEditView',
viewaction: '',
viewdatachange: false,
refviews: [
],
},
{
viewtag: '61541167ccebbc3f174242ce73e436dd',
viewmodule: 'ou',
......@@ -265,8 +283,10 @@ export const viewstate: any = {
viewdatachange: false,
refviews: [
'c42bc30741bd6add20b00494231dfa24',
'5856bfb8b576cc2ee743801b23e58299',
'c0cdac5d5b5691ae8a326f5972aec67f',
'6435e95f9bd03acceda6b7fd610873db',
'255944d6d1a575d0eda2b68bc19314f3',
'13c174556f45e9b10b66dc51834a6ab5',
'f498dfb24e88df7c70a5c09ecb587647',
'bfa86be8c02420f87d5cf4ff9a768948',
......
import { Environment } from '@/environments/environment';
import { UIActionTool,Util } from '@/utils';
import UIService from '../ui-service';
import { Subject } from 'rxjs';
import SysAuthLogService from '@/service/sys-auth-log/sys-auth-log-service';
/**
* 认证日志UI服务对象基类
*
* @export
* @class SysAuthLogUIServiceBase
*/
export default class SysAuthLogUIServiceBase extends UIService {
/**
* 是否支持工作流
*
* @memberof SysAuthLogUIServiceBase
*/
public isEnableWorkflow:boolean = false;
/**
* 当前UI服务对应的数据服务对象
*
* @memberof SysAuthLogUIServiceBase
*/
public dataService:SysAuthLogService = new SysAuthLogService();
/**
* 所有关联视图
*
* @memberof SysAuthLogUIServiceBase
*/
public allViewMap: Map<string, Object> = new Map();
/**
* 状态值
*
* @memberof SysAuthLogUIServiceBase
*/
public stateValue: number = 0;
/**
* 状态属性
*
* @memberof SysAuthLogUIServiceBase
*/
public stateField: string = "";
/**
* 主状态属性集合
*
* @memberof SysAuthLogUIServiceBase
*/
public mainStateFields:Array<any> = [];
/**
* 主状态集合Map
*
* @memberof SysAuthLogUIServiceBase
*/
public allDeMainStateMap:Map<string,string> = new Map();
/**
* Creates an instance of SysAuthLogUIServiceBase.
*
* @param {*} [opts={}]
* @memberof SysAuthLogUIServiceBase
*/
constructor(opts: any = {}) {
super(opts);
this.initViewMap();
this.initDeMainStateMap();
}
/**
* 初始化视图Map
*
* @memberof SysAuthLogUIServiceBase
*/
public initViewMap(){
this.allViewMap.set('MDATAVIEW:',{viewname:'gridview',srfappde:'sysauthlogs'});
}
/**
* 初始化主状态集合
*
* @memberof SysAuthLogUIServiceBase
*/
public initDeMainStateMap(){
}
/**
* 获取指定数据的重定向页面
*
* @param srfkey 数据主键
* @param isEnableWorkflow 重定向视图是否需要处理流程中的数据
* @memberof SysAuthLogUIServiceBase
*/
public async getRDAppView(srfkey:string,isEnableWorkflow:boolean){
this.isEnableWorkflow = isEnableWorkflow;
// 进行数据查询
let result:any = await this.dataService.Get({sysauthlog:srfkey});
const curData:any = result.data;
//判断当前数据模式,默认为true,todo
const iRealDEModel:boolean = true;
let bDataInWF:boolean = false;
let bWFMode:any = false;
// 计算数据模式
if (this.isEnableWorkflow) {
bDataInWF = await this.dataService.testDataInWF({stateValue:this.stateValue,stateField:this.stateField},curData);
if (bDataInWF) {
bDataInWF = true;
bWFMode = await this.dataService.testUserExistWorklist(null,curData);
}
}
let strPDTViewParam:string = await this.getDESDDEViewPDTParam(curData, bDataInWF, bWFMode);
//若不是当前数据模式,处理strPDTViewParam,todo
//查找视图
//返回视图
return this.allViewMap.get(strPDTViewParam);
}
/**
* 获取实际的数据类型
*
* @memberof SysAuthLogUIServiceBase
*/
public getRealDEType(entity:any){
}
/**
* 获取实体单数据实体视图预定义参数
*
* @param curData 当前数据
* @param bDataInWF 是否有数据在工作流中
* @param bWFMode 是否工作流模式
* @memberof SysAuthLogUIServiceBase
*/
public async getDESDDEViewPDTParam(curData:any, bDataInWF:boolean, bWFMode:boolean){
let strPDTParam:string = '';
if (bDataInWF) {
// 判断数据是否在流程中
}
//多表单,todo
const isEnableMultiForm:boolean = false;
const multiFormDEField:string|null =null;
if (isEnableMultiForm && multiFormDEField) {
const objFormValue:string = curData[multiFormDEField];
if(!Environment.isAppMode){
return 'MOBEDITVIEW'+objFormValue;
}
return 'EDITVIEW'+objFormValue;
}
if(!Environment.isAppMode){
if(this.getDEMainStateTag(curData)){
return `MOBEDITVIEW:MSTAG:${ await this.getDEMainStateTag(curData)}`;
}
return 'MOBEDITVIEW:';
}
if(this.getDEMainStateTag(curData)){
return `EDITVIEW:MSTAG:${ await this.getDEMainStateTag(curData)}`;
}
return 'EDITVIEW:';
}
/**
* 获取数据对象的主状态标识
*
* @param curData 当前数据
* @memberof SysAuthLogUIServiceBase
*/
public async getDEMainStateTag(curData:any){
if(this.mainStateFields.length === 0) return null;
this.mainStateFields.forEach((singleMainField:any) =>{
if(!(singleMainField in curData)){
console.error(`当前数据对象不包含属性singleMainField,可能会发生错误`);
}
})
let strTag:String = "";
for (let i = 0; i <= 1; i++) {
let strTag:string = (curData[this.mainStateFields[0]])?(i == 0) ? curData[this.mainStateFields[0]] : "":"";
if (this.mainStateFields.length >= 2) {
for (let j = 0; j <= 1; j++) {
let strTag2:string = (curData[this.mainStateFields[1]])?`${strTag}__${(j == 0) ? curData[this.mainStateFields[1]] : ""}`:strTag;
if (this.mainStateFields.length >= 3) {
for (let k = 0; k <= 1; k++) {
let strTag3:string = (curData[this.mainStateFields[2]])?`${strTag2}__${(k == 0) ? curData[this.mainStateFields[2]] : ""}`:strTag2;
// 判断是否存在
return this.allDeMainStateMap.get(strTag3);
}
}else{
return this.allDeMainStateMap.get(strTag2);
}
}
}else{
return this.allDeMainStateMap.get(strTag);
}
}
return null;
}
}
\ No newline at end of file
import SysAuthLogUIServiceBase from './sys-auth-log-ui-service-base';
/**
* 认证日志UI服务对象
*
* @export
* @class SysAuthLogUIService
*/
export default class SysAuthLogUIService extends SysAuthLogUIServiceBase {
/**
* Creates an instance of SysAuthLogUIService.
*
* @param {*} [opts={}]
* @memberof SysAuthLogUIService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
......@@ -41,10 +41,12 @@ export class UIServiceRegister {
protected init(): void {
this.allUIService.set('sysrolepermission', () => import('@/uiservice/sys-role-permission/sys-role-permission-ui-service'));
this.allUIService.set('sysuser', () => import('@/uiservice/sys-user/sys-user-ui-service'));
this.allUIService.set('sysauthlog', () => import('@/uiservice/sys-auth-log/sys-auth-log-ui-service'));
this.allUIService.set('wfmember', () => import('@/uiservice/wfmember/wfmember-ui-service'));
this.allUIService.set('wfuser', () => import('@/uiservice/wfuser/wfuser-ui-service'));
this.allUIService.set('ibzorganization', () => import('@/uiservice/ibzorganization/ibzorganization-ui-service'));
this.allUIService.set('wfgroup', () => import('@/uiservice/wfgroup/wfgroup-ui-service'));
this.allUIService.set('wfremodel', () => import('@/uiservice/wfremodel/wfremodel-ui-service'));
this.allUIService.set('sysuserrole', () => import('@/uiservice/sys-user-role/sys-user-role-ui-service'));
this.allUIService.set('wfprocessdefinition', () => import('@/uiservice/wfprocess-definition/wfprocess-definition-ui-service'));
this.allUIService.set('sysrole', () => import('@/uiservice/sys-role/sys-role-ui-service'));
......
import { Environment } from '@/environments/environment';
import { UIActionTool,Util } from '@/utils';
import UIService from '../ui-service';
import { Subject } from 'rxjs';
import WFREModelService from '@/service/wfremodel/wfremodel-service';
/**
* 流程模型UI服务对象基类
*
* @export
* @class WFREModelUIServiceBase
*/
export default class WFREModelUIServiceBase extends UIService {
/**
* 是否支持工作流
*
* @memberof WFREModelUIServiceBase
*/
public isEnableWorkflow:boolean = false;
/**
* 当前UI服务对应的数据服务对象
*
* @memberof WFREModelUIServiceBase
*/
public dataService:WFREModelService = new WFREModelService();
/**
* 所有关联视图
*
* @memberof WFREModelUIServiceBase
*/
public allViewMap: Map<string, Object> = new Map();
/**
* 状态值
*
* @memberof WFREModelUIServiceBase
*/
public stateValue: number = 0;
/**
* 状态属性
*
* @memberof WFREModelUIServiceBase
*/
public stateField: string = "";
/**
* 主状态属性集合
*
* @memberof WFREModelUIServiceBase
*/
public mainStateFields:Array<any> = [];
/**
* 主状态集合Map
*
* @memberof WFREModelUIServiceBase
*/
public allDeMainStateMap:Map<string,string> = new Map();
/**
* Creates an instance of WFREModelUIServiceBase.
*
* @param {*} [opts={}]
* @memberof WFREModelUIServiceBase
*/
constructor(opts: any = {}) {
super(opts);
this.initViewMap();
this.initDeMainStateMap();
}
/**
* 初始化视图Map
*
* @memberof WFREModelUIServiceBase
*/
public initViewMap(){
this.allViewMap.set('EDITVIEW:',{viewname:'editview',srfappde:'wfremodels'});
}
/**
* 初始化主状态集合
*
* @memberof WFREModelUIServiceBase
*/
public initDeMainStateMap(){
}
/**
* 获取指定数据的重定向页面
*
* @param srfkey 数据主键
* @param isEnableWorkflow 重定向视图是否需要处理流程中的数据
* @memberof WFREModelUIServiceBase
*/
public async getRDAppView(srfkey:string,isEnableWorkflow:boolean){
this.isEnableWorkflow = isEnableWorkflow;
// 进行数据查询
let result:any = await this.dataService.Get({wfremodel:srfkey});
const curData:any = result.data;
//判断当前数据模式,默认为true,todo
const iRealDEModel:boolean = true;
let bDataInWF:boolean = false;
let bWFMode:any = false;
// 计算数据模式
if (this.isEnableWorkflow) {
bDataInWF = await this.dataService.testDataInWF({stateValue:this.stateValue,stateField:this.stateField},curData);
if (bDataInWF) {
bDataInWF = true;
bWFMode = await this.dataService.testUserExistWorklist(null,curData);
}
}
let strPDTViewParam:string = await this.getDESDDEViewPDTParam(curData, bDataInWF, bWFMode);
//若不是当前数据模式,处理strPDTViewParam,todo
//查找视图
//返回视图
return this.allViewMap.get(strPDTViewParam);
}
/**
* 获取实际的数据类型
*
* @memberof WFREModelUIServiceBase
*/
public getRealDEType(entity:any){
}
/**
* 获取实体单数据实体视图预定义参数
*
* @param curData 当前数据
* @param bDataInWF 是否有数据在工作流中
* @param bWFMode 是否工作流模式
* @memberof WFREModelUIServiceBase
*/
public async getDESDDEViewPDTParam(curData:any, bDataInWF:boolean, bWFMode:boolean){
let strPDTParam:string = '';
if (bDataInWF) {
// 判断数据是否在流程中
}
//多表单,todo
const isEnableMultiForm:boolean = false;
const multiFormDEField:string|null =null;
if (isEnableMultiForm && multiFormDEField) {
const objFormValue:string = curData[multiFormDEField];
if(!Environment.isAppMode){
return 'MOBEDITVIEW'+objFormValue;
}
return 'EDITVIEW'+objFormValue;
}
if(!Environment.isAppMode){
if(this.getDEMainStateTag(curData)){
return `MOBEDITVIEW:MSTAG:${ await this.getDEMainStateTag(curData)}`;
}
return 'MOBEDITVIEW:';
}
if(this.getDEMainStateTag(curData)){
return `EDITVIEW:MSTAG:${ await this.getDEMainStateTag(curData)}`;
}
return 'EDITVIEW:';
}
/**
* 获取数据对象的主状态标识
*
* @param curData 当前数据
* @memberof WFREModelUIServiceBase
*/
public async getDEMainStateTag(curData:any){
if(this.mainStateFields.length === 0) return null;
this.mainStateFields.forEach((singleMainField:any) =>{
if(!(singleMainField in curData)){
console.error(`当前数据对象不包含属性singleMainField,可能会发生错误`);
}
})
let strTag:String = "";
for (let i = 0; i <= 1; i++) {
let strTag:string = (curData[this.mainStateFields[0]])?(i == 0) ? curData[this.mainStateFields[0]] : "":"";
if (this.mainStateFields.length >= 2) {
for (let j = 0; j <= 1; j++) {
let strTag2:string = (curData[this.mainStateFields[1]])?`${strTag}__${(j == 0) ? curData[this.mainStateFields[1]] : ""}`:strTag;
if (this.mainStateFields.length >= 3) {
for (let k = 0; k <= 1; k++) {
let strTag3:string = (curData[this.mainStateFields[2]])?`${strTag2}__${(k == 0) ? curData[this.mainStateFields[2]] : ""}`:strTag2;
// 判断是否存在
return this.allDeMainStateMap.get(strTag3);
}
}else{
return this.allDeMainStateMap.get(strTag2);
}
}
}else{
return this.allDeMainStateMap.get(strTag);
}
}
return null;
}
}
\ No newline at end of file
import WFREModelUIServiceBase from './wfremodel-ui-service-base';
/**
* 流程模型UI服务对象
*
* @export
* @class WFREModelUIService
*/
export default class WFREModelUIService extends WFREModelUIServiceBase {
/**
* Creates an instance of WFREModelUIService.
*
* @param {*} [opts={}]
* @memberof WFREModelUIService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
......@@ -489,12 +489,18 @@ export default class IndexBase extends Vue implements ControlInterface {
case 'Auto2':
this.clickAuto2(item);
return;
case '_4':
this.click_4(item);
return;
case '_2':
this.click_2(item);
return;
case 'Auto1':
this.clickAuto1(item);
return;
case '_3':
this.click_3(item);
return;
case 'Auto4':
this.clickAuto4(item);
return;
......@@ -565,7 +571,7 @@ export default class IndexBase extends Vue implements ControlInterface {
* @param {*} [item={}]
* @memberof Index
*/
public click_2(item: any = {}) {
public click_4(item: any = {}) {
const viewparam: any = {};
Object.assign(viewparam, {});
const deResParameters: any[] = [];
......@@ -577,6 +583,24 @@ export default class IndexBase extends Vue implements ControlInterface {
this.$router.push(path);
}
/**
* 认证日志
*
* @param {*} [item={}]
* @memberof Index
*/
public click_2(item: any = {}) {
const viewparam: any = {};
Object.assign(viewparam, {});
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'sysauthlogs', parameterName: 'sysauthlog' },
{ pathName: 'gridview', parameterName: 'gridview' },
];
const path: string = this.$viewTool.buildUpRoutePath(this.$route, {}, deResParameters, parameters, [], viewparam);
this.$router.push(path);
}
/**
* 流程角色
*
......@@ -595,6 +619,24 @@ export default class IndexBase extends Vue implements ControlInterface {
this.$router.push(path);
}
/**
* 发布新流程
*
* @param {*} [item={}]
* @memberof Index
*/
public click_3(item: any = {}) {
const viewparam: any = {};
Object.assign(viewparam, {});
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'wfremodels', parameterName: 'wfremodel' },
{ pathName: 'editview', parameterName: 'editview' },
];
const path: string = this.$viewTool.buildUpRoutePath(this.$route, {}, deResParameters, parameters, [], viewparam);
this.$router.push(path);
}
/**
* 人员管理
*
......
......@@ -15,6 +15,24 @@ export default class IndexModel {
*/
public items: any[] = [
{
id: 'DCCA086F-7A59-4199-9C11-FEC68DDF7E0B',
name: 'menuitem7',
text: '组织部门管理',
type: 'MENUITEM',
counterid: '',
tooltip: '组织部门管理',
expanded: false,
separator: false,
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: 'fa fa-th-large',
icon: '',
textcls: '',
appfunctag: '',
resourcetag: '',
items: [
{
id: '4ea6829eb5066555b9f0a91145dc7502',
name: 'menuitem1',
text: '单位管理',
......@@ -26,13 +44,13 @@ export default class IndexModel {
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: '',
iconcls: 'fa fa-university',
icon: '',
textcls: '',
appfunctag: 'Auto3',
resourcetag: '',
},
{
{
id: 'f73183a5dfe125c3461116b4d82c2468',
name: 'menuitem2',
text: '部门管理',
......@@ -44,13 +62,13 @@ export default class IndexModel {
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: '',
iconcls: 'fa fa-sitemap',
icon: '',
textcls: '',
appfunctag: 'Auto2',
resourcetag: '',
},
{
{
id: '341bd3aa939665d5c039462456dfce93',
name: 'menuitem3',
text: '人员管理',
......@@ -62,13 +80,33 @@ export default class IndexModel {
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: '',
iconcls: 'fa fa-user',
icon: '',
textcls: '',
appfunctag: 'Auto4',
resourcetag: '',
},
],
},
{
id: 'F4C605A6-B7AE-4388-8525-3680E19053E9',
name: 'menuitem8',
text: '权限管理',
type: 'MENUITEM',
counterid: '',
tooltip: '权限管理',
expanded: false,
separator: false,
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: 'fa fa-cubes',
icon: '',
textcls: '',
appfunctag: '',
resourcetag: '',
items: [
{
id: '1e02015a09f1d812fe4640fac320158e',
name: 'menuitem4',
text: '用户角色',
......@@ -80,31 +118,51 @@ export default class IndexModel {
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: '',
iconcls: 'fa fa-unlock-alt',
icon: '',
textcls: '',
appfunctag: 'Auto5',
resourcetag: '',
},
{
id: '69b794a51f56bc20947749c2d7629117',
name: 'menuitem5',
text: '流程角色',
{
id: '4999F409-9C7B-4C41-BD3A-B29611EA7E6E',
name: 'menuitem9',
text: '认证日志',
type: 'MENUITEM',
counterid: '',
tooltip: '流程角色',
tooltip: '认证日志',
expanded: false,
separator: false,
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: '',
iconcls: 'fa fa-sort-amount-asc',
icon: '',
textcls: '',
appfunctag: 'Auto1',
appfunctag: '_2',
resourcetag: '',
},
],
},
{
id: 'B3429E51-565E-49F8-BCDB-CE313AFB338E',
name: 'menuitem10',
text: '流程管理',
type: 'MENUITEM',
counterid: '',
tooltip: '流程管理',
expanded: false,
separator: false,
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: 'fa fa-empire',
icon: '',
textcls: '',
appfunctag: '',
resourcetag: '',
items: [
{
id: '6DFB635D-1B8E-47E7-9869-1B7BC2B844C0',
name: 'menuitem6',
text: '流程定义',
......@@ -119,8 +177,46 @@ export default class IndexModel {
iconcls: 'fa fa-random',
icon: '',
textcls: '',
appfunctag: '_2',
appfunctag: '_4',
resourcetag: '',
},
{
id: '69b794a51f56bc20947749c2d7629117',
name: 'menuitem5',
text: '流程角色',
type: 'MENUITEM',
counterid: '',
tooltip: '流程角色',
expanded: false,
separator: false,
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: 'fa fa-users',
icon: '',
textcls: '',
appfunctag: 'Auto1',
resourcetag: '',
},
{
id: '8E6D5AC1-9AA9-4F29-83A2-0A9E7EFACE09',
name: 'menuitem11',
text: '发布新流程',
type: 'MENUITEM',
counterid: '',
tooltip: '发布新流程',
expanded: false,
separator: false,
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: 'fa fa-arrow-circle-o-up',
icon: '',
textcls: '',
appfunctag: '_3',
resourcetag: '',
},
],
},
];
......
/**
* Default 部件模型
*
* @export
* @class DefaultModel
*/
export default class DefaultModel {
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof DefaultModel
*/
public getDataItems(): any[] {
return [
{
name: 'srfwfmemo',
prop: 'srfwfmemo',
dataType: 'TEXT',
},
// 前端新增修改标识,新增为"0",修改为"1"或未设值
{
name: 'srffrontuf',
prop: 'srffrontuf',
dataType: 'TEXT',
},
{
name: 'n_username_like',
prop: 'username',
dataType: 'TEXT',
},
{
name: 'n_personname_like',
prop: 'personname',
dataType: 'TEXT',
},
{
name: 'n_authcode_eq',
prop: 'authcode',
dataType: 'SSCODELIST',
},
{
name: 'n_authtime_gtandeq',
prop: 'authtime',
dataType: 'DATETIME',
},
{
name: 'n_authtime_ltandeq',
prop: 'authtime',
dataType: 'DATETIME',
},
{
name: 'n_domain_like',
prop: 'domain',
dataType: 'TEXT',
},
]
}
}
\ No newline at end of file
.ivu-tabs-no-animation>.ivu-tabs-content{
padding: 0 16px;
}
.ivu-card-head{
padding: 14px 0;
}
.app-search-form {
padding: 8px 14px 0;
.ivu-form-item{
margin-bottom: 8px;
}
.search_reset {
margin-right: 12px;
margin-bottom: 8px;
}
.search-button{
text-align: right;
}
}
.app-search-form-flex {
height: 100%;
> .ivu-row {
height: 100%;
> .ivu-tabs {
height: 100%;
display: flex;
flex-direction: column;
> .ivu-tabs-content {
flex-grow: 1;
overflow: auto;
> .ivu-tabs-tabpane {
height: 100%;
}
}
}
}
}
.app-tabpanel-flex {
height: 100%;
> .ivu-tabs-content {
height: calc(100% - 52px);
> .ivu-tabs-tabpane {
height: 100%;
}
}
}
// this is less
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import DefaultBase from './default-searchform-base.vue';
@Component({
components: {
}
})
export default class Default extends DefaultBase {
}
</script>
\ No newline at end of file
/**
* Main 部件模型
*
* @export
* @class MainModel
*/
export default class MainModel {
/**
* 是否是实体数据导出
*
* @returns {any[]}
* @memberof MainGridMode
*/
public isDEExport: boolean = false;
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof MainGridMode
*/
public getDataItems(): any[] {
if(this.isDEExport){
return [
]
}else{
return [
{
name: 'macaddr',
prop: 'macaddr',
dataType: 'TEXT',
},
{
name: 'authtime',
prop: 'authtime',
dataType: 'DATETIME',
},
{
name: 'username',
prop: 'username',
dataType: 'TEXT',
},
{
name: 'useragent',
prop: 'useragent',
dataType: 'TEXT',
},
{
name: 'ipaddr',
prop: 'ipaddr',
dataType: 'TEXT',
},
{
name: 'authcode',
prop: 'authcode',
dataType: 'SSCODELIST',
},
{
name: 'domain',
prop: 'domain',
dataType: 'TEXT',
},
{
name: 'personname',
prop: 'personname',
dataType: 'TEXT',
},
{
name: 'srfmajortext',
prop: 'username',
dataType: 'TEXT',
},
{
name: 'srfdataaccaction',
prop: 'logid',
dataType: 'TEXT',
},
{
name: 'srfkey',
prop: 'logid',
dataType: 'TEXT',
},
{
name: 'sysauthlog',
prop: 'logid',
},
{
name: 'n_username_like',
prop: 'n_username_like',
dataType: 'TEXT',
},
{
name: 'n_personname_like',
prop: 'n_personname_like',
dataType: 'TEXT',
},
{
name: 'n_authcode_eq',
prop: 'n_authcode_eq',
dataType: 'SSCODELIST',
},
{
name: 'n_authtime_gtandeq',
prop: 'n_authtime_gtandeq',
dataType: 'DATETIME',
},
{
name: 'n_authtime_ltandeq',
prop: 'n_authtime_ltandeq',
dataType: 'DATETIME',
},
{
name: 'n_domain_like',
prop: 'n_domain_like',
dataType: 'TEXT',
},
{
name:'size',
prop:'size'
},
{
name:'query',
prop:'query'
},
{
name:'page',
prop:'page'
},
{
name:'sort',
prop:'sort'
},
{
name:'srfparentdata',
prop:'srfparentdata'
},
// 前端新增修改标识,新增为"0",修改为"1"或未设值
{
name: 'srffrontuf',
prop: 'srffrontuf',
dataType: 'TEXT',
},
]
}
}
}
\ No newline at end of file
.grid {
flex-grow: 1;
height: 100%;
overflow: auto;
.el-table__body-wrapper::-webkit-scrollbar {
/*滚动条整体样式*/
width : 10px !important; /*高宽分别对应横竖滚动条的尺寸*/
height: 10px !important;
}
.el-table__body-wrapper::-webkit-scrollbar-thumb {
/*滚动条颜色*/
border-radius : 10px !important;
background-color: #cecece !important;
}
.el-table__body-wrapper::-webkit-scrollbar-track {
/*滚动条里面轨道*/
box-shadow : inset 0 0 5px rgba(0, 0, 0, 0.2) !important;
background : #ededed !important;
border-radius: 10px !important;
}
/*表格文字过长省略*/
.el-table th>.cell, .el-table td>.cell{
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
word-break: break-all;
}
.el-table-column--selection .cell {
padding-left: 0px;
padding-right: 0px;
}
.app-column-link, .app-format-data{
display: inline;
}
.el-table {
.quick-toolbar{
display: inline-block;
button{
background: #ebf3fb;
color: #2575ca;
border: 0;
}
}
.el-tooltip{
.ivu-form-item{
margin-bottom: unset !important;
}
}
}
.grid-pagination {
height: 50px;
padding: 6px 0px;
.page-button {
button {
padding: 0;
font-size: 16px;
min-width: 32px;
height: 32px;
margin-right: 4px;
}
}
.page-column {
position: absolute;
left: 0;
}
.batch-toolbar{
position: absolute;
left: 105px;
>.toolbar-container{
button {
font-size: 16px;
min-width: 32px;
height: 32px;
margin-right: 4px;
margin-top: 0;
margin-bottom: 0;
}
}
}
}
.el-table__body-wrapper{
height: calc(100% - 45px) !important;
}
}
.ivu-modal-content{
.footer{
.ivu-row{
text-align: right;
}
}
}
// this is less
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import MainBase from './main-grid-base.vue';
@Component({
components: {
}
})
export default class Main extends MainBase {
}
</script>
\ No newline at end of file
.ivu-tabs-no-animation>.ivu-tabs-content{
padding: 0 16px;
}
.ivu-card-head{
padding: 14px 0;
}
.app-form {
overflow: auto;
> .ivu-row {
> .ivu-tabs {
height: 100%;
display: flex;
flex-direction: column;
> .ivu-tabs-content {
flex-grow: 1;
overflow: auto;
> .ivu-tabs-tabpane {
height: 100%;
}
}
}
}
}
.app-tabpanel-flex {
height: 100%;
> .ivu-tabs-content {
height: calc(100% - 52px);
> .ivu-tabs-tabpane {
height: 100%;
}
}
}
.app-form {
>.ivu-row:nth-child(2) {
>.ivu-col:nth-child(1) {
>.ivu-row.app-form-group.app-group-hiddden-caption:nth-child(1) {
margin-top: 12px;
}
}
}
}
// 表单行间距
.app-form{
.app-form-item{
margin-bottom: 20px;
}
}
// this is less
此差异已折叠。
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册