提交 90138f50 编写于 作者: ibizdev's avatar ibizdev

ibiz4j 发布系统代码

上级 71ffc6c5
[
{
"srfkey": "YesNo",
"emptytext": "未定义",
"codelisttype":"static",
"items": [
{
"id": "1",
"label": "是",
"text": "是",
"data":"",
"codename":"Item_1",
"value": "1",
"disabled": false
}
, {
"id": "0",
"label": "否",
"text": "否",
"data":"",
"codename":"Item_0",
"value": "0",
"disabled": false
}
]
},
{
"srfkey": "CLIBZSex",
"emptytext": "",
"codelisttype":"static",
......
......@@ -55,6 +55,14 @@
"viewname": "SysUserPickupView",
"viewtag": "32fe9ab4a9e1b8d62b9ee802e4746965"
},
"wfprocessdefinitioneditview": {
"title": "实体编辑视图",
"caption": "流程定义",
"viewtype": "DEEDITVIEW",
"viewmodule": "workflow",
"viewname": "WFProcessDefinitionEditView",
"viewtag": "3fcd491c13d05ab7dcce8d2c920d0aec"
},
"ibzemployeegridview": {
"title": "人员表格视图",
"caption": "人员",
......@@ -207,6 +215,14 @@
"viewname": "IBZDeptMemberEditView",
"viewtag": "bf5e850471bab461fbb6739578e510c5"
},
"wfprocessdefinitiongridview": {
"title": "实体表格视图",
"caption": "流程定义",
"viewtype": "DEGRIDVIEW",
"viewmodule": "workflow",
"viewname": "WFProcessDefinitionGridView",
"viewtag": "bfa86be8c02420f87d5cf4ff9a768948"
},
"ibzdepartmenttreeexpview": {
"title": "部门树导航视图",
"caption": "人员管理",
......
......@@ -5,6 +5,7 @@ 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 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';
import ibzdeptmember_en_US from '@locale/lanres/ibzdept-member/ibzdept-member_en_US';
import ibzdepartment_en_US from '@locale/lanres/ibzdepartment/ibzdepartment_en_US';
......@@ -71,6 +72,7 @@ export default {
menuitem3: '人员管理',
menuitem4: '用户角色',
menuitem5: '流程角色',
menuitem6: '流程定义',
},
},
},
......@@ -82,6 +84,7 @@ export default {
ibzorganization: ibzorganization_en_US,
wfgroup: wfgroup_en_US,
sysuserrole: sysuserrole_en_US,
wfprocessdefinition: wfprocessdefinition_en_US,
sysrole: sysrole_en_US,
ibzdeptmember: ibzdeptmember_en_US,
ibzdepartment: ibzdepartment_en_US,
......
......@@ -5,6 +5,7 @@ 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 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';
import ibzdeptmember_zh_CN from '@locale/lanres/ibzdept-member/ibzdept-member_zh_CN';
import ibzdepartment_zh_CN from '@locale/lanres/ibzdepartment/ibzdepartment_zh_CN';
......@@ -71,6 +72,7 @@ export default {
menuitem3: '人员管理',
menuitem4: '用户角色',
menuitem5: '流程角色',
menuitem6: '流程定义',
},
},
},
......@@ -82,6 +84,7 @@ export default {
ibzorganization: ibzorganization_zh_CN,
wfgroup: wfgroup_zh_CN,
sysuserrole: sysuserrole_zh_CN,
wfprocessdefinition: wfprocessdefinition_zh_CN,
sysrole: sysrole_zh_CN,
ibzdeptmember: ibzdeptmember_zh_CN,
ibzdepartment: ibzdepartment_zh_CN,
......
export default {
YesNo: {
'1': '是',
'0': '否',
empty: '',
},
CLIBZSex: {
'男': '男性',
'女': '女性',
......
export default {
YesNo: {
'1': '是',
'0': '否',
empty: '',
},
CLIBZSex: {
'男': '男性',
'女': '女性',
......
export default {
fields: {
definitionkey: 'DefinitionKey',
definitionname: '流程定义名称',
modelversion: '模型版本',
modelenable: '模型是否启用',
pssystemid: '系统标识',
md5check: '校验',
bpmnfile: 'BPMN',
deploykey: 'DeployKey',
},
views: {
editview: {
caption: "流程定义",
title: '流程定义',
},
gridview: {
caption: "流程定义",
title: '流程定义',
},
},
main_form: {
details: {
group1: "模型基本信息",
formpage1: "基本信息",
srforikey: "",
srfkey: "DefinitionKey",
srfmajortext: "流程定义名称",
srftempmode: "",
srfuf: "",
srfdeid: "",
srfsourcekey: "",
definitionkey: "DefinitionKey",
deploykey: "DefinitionKey",
definitionname: "流程定义名称",
pssystemid: "系统标识",
modelversion: "模型版本",
modelenable: "模型是否启用",
bpmnfile: "BPMN",
md5check: "校验",
},
uiactions: {
},
},
main_grid: {
columns: {
definitionkey: "DefinitionKey",
definitionname: "流程定义名称",
pssystemid: "系统标识",
modelversion: "模型版本",
modelenable: "模型是否启用",
},
uiactions: {
},
},
default_searchform: {
details: {
formpage1: "常规条件",
n_deploykey_like: "DefinitionKey",
n_definitionname_like: "流程定义名称",
},
uiactions: {
},
},
editviewtoolbar_toolbar: {
tbitem3: {
caption: "Save",
tip: "Save",
},
tbitem4: {
caption: "Save And New",
tip: "Save And New",
},
tbitem5: {
caption: "Save And Close",
tip: "Save And Close Window",
},
tbitem6: {
caption: "-",
tip: "",
},
tbitem7: {
caption: "Remove And Close",
tip: "Remove And Close Window",
},
tbitem8: {
caption: "-",
tip: "",
},
tbitem12: {
caption: "New",
tip: "New",
},
tbitem13: {
caption: "-",
tip: "",
},
tbitem14: {
caption: "Copy",
tip: "Copy {0}",
},
tbitem16: {
caption: "-",
tip: "",
},
tbitem23: {
caption: "第一个记录",
tip: "第一个记录",
},
tbitem24: {
caption: "上一个记录",
tip: "上一个记录",
},
tbitem25: {
caption: "下一个记录",
tip: "下一个记录",
},
tbitem26: {
caption: "最后一个记录",
tip: "最后一个记录",
},
tbitem21: {
caption: "-",
tip: "",
},
tbitem22: {
caption: "Help",
tip: "Help",
},
},
gridviewtoolbar_toolbar: {
tbitem3: {
caption: "New",
tip: "New",
},
tbitem4: {
caption: "Edit",
tip: "Edit {0}",
},
tbitem6: {
caption: "Copy",
tip: "Copy {0}",
},
tbitem7: {
caption: "-",
tip: "",
},
tbitem8: {
caption: "Remove",
tip: "Remove {0}",
},
tbitem9: {
caption: "-",
tip: "",
},
tbitem13: {
caption: "Export",
tip: "Export {0} Data To Excel",
},
tbitem10: {
caption: "-",
tip: "",
},
tbitem16: {
caption: "其它",
tip: "其它",
},
tbitem21: {
caption: "Export Data Model",
tip: "导出数据模型",
},
tbitem23: {
caption: "数据导入",
tip: "数据导入",
},
tbitem17: {
caption: "-",
tip: "",
},
tbitem19: {
caption: "Filter",
tip: "Filter",
},
tbitem18: {
caption: "Help",
tip: "Help",
},
},
};
\ No newline at end of file
export default {
fields: {
definitionkey: 'DefinitionKey',
definitionname: '流程定义名称',
modelversion: '模型版本',
modelenable: '模型是否启用',
pssystemid: '系统标识',
md5check: '校验',
bpmnfile: 'BPMN',
deploykey: 'DeployKey',
},
views: {
editview: {
caption: '流程定义',
title: '流程定义',
},
gridview: {
caption: '流程定义',
title: '流程定义',
},
},
main_form: {
details: {
group1: '模型基本信息',
formpage1: '基本信息',
srforikey: '',
srfkey: 'DefinitionKey',
srfmajortext: '流程定义名称',
srftempmode: '',
srfuf: '',
srfdeid: '',
srfsourcekey: '',
definitionkey: 'DefinitionKey',
deploykey: 'DefinitionKey',
definitionname: '流程定义名称',
pssystemid: '系统标识',
modelversion: '模型版本',
modelenable: '模型是否启用',
bpmnfile: 'BPMN',
md5check: '校验',
},
uiactions: {
},
},
main_grid: {
columns: {
definitionkey: 'DefinitionKey',
definitionname: '流程定义名称',
pssystemid: '系统标识',
modelversion: '模型版本',
modelenable: '模型是否启用',
},
uiactions: {
},
},
default_searchform: {
details: {
formpage1: '常规条件',
n_deploykey_like: 'DefinitionKey',
n_definitionname_like: '流程定义名称',
},
uiactions: {
},
},
editviewtoolbar_toolbar: {
tbitem3: {
caption: '保存',
tip: '保存',
},
tbitem4: {
caption: '保存并新建',
tip: '保存并新建',
},
tbitem5: {
caption: '保存并关闭',
tip: '保存并关闭',
},
tbitem6: {
caption: '-',
tip: '',
},
tbitem7: {
caption: '删除并关闭',
tip: '删除并关闭',
},
tbitem8: {
caption: '-',
tip: '',
},
tbitem12: {
caption: '新建',
tip: '新建',
},
tbitem13: {
caption: '-',
tip: '',
},
tbitem14: {
caption: '拷贝',
tip: '拷贝',
},
tbitem16: {
caption: '-',
tip: '',
},
tbitem23: {
caption: '第一个记录',
tip: '第一个记录',
},
tbitem24: {
caption: '上一个记录',
tip: '上一个记录',
},
tbitem25: {
caption: '下一个记录',
tip: '下一个记录',
},
tbitem26: {
caption: '最后一个记录',
tip: '最后一个记录',
},
tbitem21: {
caption: '-',
tip: '',
},
tbitem22: {
caption: '帮助',
tip: '帮助',
},
},
gridviewtoolbar_toolbar: {
tbitem3: {
caption: '新建',
tip: '新建',
},
tbitem4: {
caption: '编辑',
tip: '编辑',
},
tbitem6: {
caption: '拷贝',
tip: '拷贝',
},
tbitem7: {
caption: '-',
tip: '',
},
tbitem8: {
caption: '删除',
tip: '删除',
},
tbitem9: {
caption: '-',
tip: '',
},
tbitem13: {
caption: '导出',
tip: '导出',
},
tbitem10: {
caption: '-',
tip: '',
},
tbitem16: {
caption: '其它',
tip: '其它',
},
tbitem21: {
caption: '导出数据模型',
tip: '导出数据模型',
},
tbitem23: {
caption: '数据导入',
tip: '数据导入',
},
tbitem17: {
caption: '-',
tip: '',
},
tbitem19: {
caption: '过滤',
tip: '过滤',
},
tbitem18: {
caption: '帮助',
tip: '帮助',
},
},
};
\ No newline at end of file
......@@ -99,6 +99,24 @@ mock.onGet('v7/indexappmenu').reply((config: any) => {
textcls: '',
appfunctag: 'Auto1',
resourcetag: '',
},
{
id: '6DFB635D-1B8E-47E7-9869-1B7BC2B844C0',
name: 'menuitem6',
text: '流程定义',
type: 'MENUITEM',
counterid: '',
tooltip: '流程定义',
expanded: false,
separator: false,
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: 'fa fa-random',
icon: '',
textcls: '',
appfunctag: '_2',
resourcetag: '',
},
],
}];
......
......@@ -8,6 +8,33 @@ mock.onGet('./assets/json/data-dictionary.json').reply((config: any) => {
let status = MockAdapter.mockStatus(config);
return [status, [
{
srfkey: 'YesNo',
emptytext: '未定义',
"codelisttype":"static",
items: [
{
id: '1',
label: '是',
text: '是',
"data":"",
"codename":"Item_1",
value: '1',
disabled: false,
},
{
id: '0',
label: '否',
text: '否',
"data":"",
"codename":"Item_0",
value: '0',
disabled: false,
},
]
},
{
srfkey: 'CLIBZSex',
emptytext: '',
"codelisttype":"static",
......
......@@ -14,6 +14,7 @@ import './entity/wfusers/wfusers';
import './entity/ibzorganizations/ibzorganizations';
import './entity/wfgroups/wfgroups';
import './entity/sys-user-roles/sys-user-roles';
import './entity/wfprocess-definitions/wfprocess-definitions';
import './entity/sys-roles/sys-roles';
import './entity/ibzdept-members/ibzdept-members';
import './entity/ibzdepartments/ibzdepartments';
......
......@@ -63,6 +63,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "SysUserPickupView",
"viewtag": "32fe9ab4a9e1b8d62b9ee802e4746965"
},
"wfprocessdefinitioneditview": {
"title": "实体编辑视图",
"caption": "流程定义",
"viewtype": "DEEDITVIEW",
"viewmodule": "workflow",
"viewname": "WFProcessDefinitionEditView",
"viewtag": "3fcd491c13d05ab7dcce8d2c920d0aec"
},
"ibzemployeegridview": {
"title": "人员表格视图",
"caption": "人员",
......@@ -215,6 +223,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "IBZDeptMemberEditView",
"viewtag": "bf5e850471bab461fbb6739578e510c5"
},
"wfprocessdefinitiongridview": {
"title": "实体表格视图",
"caption": "流程定义",
"viewtype": "DEGRIDVIEW",
"viewmodule": "workflow",
"viewname": "WFProcessDefinitionGridView",
"viewtag": "bfa86be8c02420f87d5cf4ff9a768948"
},
"ibzdepartmenttreeexpview": {
"title": "部门树导航视图",
"caption": "人员管理",
......
......@@ -6,6 +6,7 @@ export const PageComponents = {
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'));
Vue.component('sys-user-pickup-view', () => import('@pages/uaa/sys-user-pickup-view/sys-user-pickup-view.vue'));
Vue.component('wfprocess-definition-grid-view', () => import('@pages/workflow/wfprocess-definition-grid-view/wfprocess-definition-grid-view.vue'));
Vue.component('ibzemployee-grid-view', () => import('@pages/ou/ibzemployee-grid-view/ibzemployee-grid-view.vue'));
Vue.component('ibzdept-member-grid-view', () => import('@pages/ou/ibzdept-member-grid-view/ibzdept-member-grid-view.vue'));
Vue.component('ibzdepartment-pickup-grid-view', () => import('@pages/ou/ibzdepartment-pickup-grid-view/ibzdepartment-pickup-grid-view.vue'));
......@@ -15,14 +16,15 @@ export const PageComponents = {
Vue.component('wfmember-edit-view', () => import('@pages/workflow/wfmember-edit-view/wfmember-edit-view.vue'));
Vue.component('sys-role-pickup-grid-view', () => import('@pages/uaa/sys-role-pickup-grid-view/sys-role-pickup-grid-view.vue'));
Vue.component('wfmember-grid-view', () => import('@pages/workflow/wfmember-grid-view/wfmember-grid-view.vue'));
Vue.component('wfprocess-definition-edit-view', () => import('@pages/workflow/wfprocess-definition-edit-view/wfprocess-definition-edit-view.vue'));
Vue.component('wfuser-pickup-grid-view', () => import('@pages/workflow/wfuser-pickup-grid-view/wfuser-pickup-grid-view.vue'));
Vue.component('sys-role-edit-view', () => import('@pages/uaa/sys-role-edit-view/sys-role-edit-view.vue'));
Vue.component('ibzemployee-edit-view', () => import('@pages/ou/ibzemployee-edit-view/ibzemployee-edit-view.vue'));
Vue.component('ibzorganization-tree-exp-view', () => import('@pages/ou/ibzorganization-tree-exp-view/ibzorganization-tree-exp-view.vue'));
Vue.component('ibzdepartment-option-view', () => import('@pages/ou/ibzdepartment-option-view/ibzdepartment-option-view.vue'));
Vue.component('ibzdepartment-edit-view', () => import('@pages/ou/ibzdepartment-edit-view/ibzdepartment-edit-view.vue'));
Vue.component('wfgroup-edit-view', () => import('@pages/workflow/wfgroup-edit-view/wfgroup-edit-view.vue'));
Vue.component('sys-user-role-edit-view', () => import('@pages/uaa/sys-user-role-edit-view/sys-user-role-edit-view.vue'));
Vue.component('wfgroup-edit-view', () => import('@pages/workflow/wfgroup-edit-view/wfgroup-edit-view.vue'));
Vue.component('sys-role-permission-custom-view', () => import('@pages/uaa/sys-role-permission-custom-view/sys-role-permission-custom-view.vue'));
Vue.component('ibzdepartment-tree-exp-view', () => import('@pages/ou/ibzdepartment-tree-exp-view/ibzdepartment-tree-exp-view.vue'));
Vue.component('ibzdept-member-edit-view', () => import('@pages/ou/ibzdept-member-edit-view/ibzdept-member-edit-view.vue'));
......
.view-card {
>.ivu-card-extra {
top: 5px;
right: 0px;
}
}
.wfprocess-definition-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 WFProcessDefinitionEditViewBase from './wfprocess-definition-edit-view-base.vue';
import view_form from '@widgets/wfprocess-definition/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 WFProcessDefinitionEditView extends WFProcessDefinitionEditViewBase {
}
</script>
\ No newline at end of file
.wfprocess-definition-grid-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 WFProcessDefinitionGridViewBase from './wfprocess-definition-grid-view-base.vue';
import view_grid from '@widgets/wfprocess-definition/main-grid/main-grid.vue';
import view_searchform from '@widgets/wfprocess-definition/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 WFProcessDefinitionGridView extends WFProcessDefinitionGridViewBase {
}
</script>
\ No newline at end of file
......@@ -46,6 +46,7 @@ export class EntityServiceRegister {
this.allEntityService.set('ibzorganization', () => import('@/service/ibzorganization/ibzorganization-service'));
this.allEntityService.set('wfgroup', () => import('@/service/wfgroup/wfgroup-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'));
this.allEntityService.set('ibzdeptmember', () => import('@/service/ibzdept-member/ibzdept-member-service'));
this.allEntityService.set('ibzdepartment', () => import('@/service/ibzdepartment/ibzdepartment-service'));
......
import { Http,Util } from '@/utils';
import EntityService from '../entity-service';
/**
* 流程定义服务对象基类
*
* @export
* @class WFProcessDefinitionServiceBase
* @extends {EntityServie}
*/
export default class WFProcessDefinitionServiceBase extends EntityService {
/**
* Creates an instance of WFProcessDefinitionServiceBase.
*
* @param {*} [opts={}]
* @memberof WFProcessDefinitionServiceBase
*/
constructor(opts: any = {}) {
super(opts);
}
/**
* 初始化基础数据
*
* @memberof WFProcessDefinitionServiceBase
*/
public initBasicData(){
this.APPLYDEKEY ='wfprocessdefinition';
this.APPDEKEY = 'definitionkey';
this.APPDENAME = 'wfprocessdefinitions';
this.APPDETEXT = 'definitionname';
this.APPNAME = 'web';
this.SYSTEMNAME = 'ibzrt';
}
// 实体接口
/**
* Select接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof WFProcessDefinitionServiceBase
*/
public async Select(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
return Http.getInstance().get(`/wfprocessdefinitions/${context.wfprocessdefinition}/select`,isloading);
}
/**
* CheckKey接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof WFProcessDefinitionServiceBase
*/
public async CheckKey(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
return Http.getInstance().post(`/wfprocessdefinitions/${context.wfprocessdefinition}/checkkey`,data,isloading);
}
/**
* Remove接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof WFProcessDefinitionServiceBase
*/
public async Remove(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
return Http.getInstance().delete(`/wfprocessdefinitions/${context.wfprocessdefinition}`,isloading);
}
/**
* Save接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof WFProcessDefinitionServiceBase
*/
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(`/wfprocessdefinitions/${context.wfprocessdefinition}/save`,data,isloading);
return res;
}
/**
* Create接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof WFProcessDefinitionServiceBase
*/
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(`/wfprocessdefinitions`,data,isloading);
return res;
}
/**
* GetDraft接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof WFProcessDefinitionServiceBase
*/
public async GetDraft(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = await Http.getInstance().get(`/wfprocessdefinitions/getdraft`,isloading);
res.data.wfprocessdefinition = data.wfprocessdefinition;
return res;
}
/**
* Update接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof WFProcessDefinitionServiceBase
*/
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(`/wfprocessdefinitions/${context.wfprocessdefinition}`,data,isloading);
return res;
}
/**
* Get接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof WFProcessDefinitionServiceBase
*/
public async Get(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = await Http.getInstance().get(`/wfprocessdefinitions/${context.wfprocessdefinition}`,isloading);
return res;
}
/**
* FetchDefault接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof WFProcessDefinitionServiceBase
*/
public async FetchDefault(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let tempData:any = JSON.parse(JSON.stringify(data));
return Http.getInstance().get(`/wfprocessdefinitions/fetchdefault`,tempData,isloading);
}
}
\ No newline at end of file
import { Http,Util } from '@/utils';
import WFProcessDefinitionServiceBase from './wfprocess-definition-service-base';
/**
* 流程定义服务对象
*
* @export
* @class WFProcessDefinitionService
* @extends {WFProcessDefinitionServiceBase}
*/
export default class WFProcessDefinitionService extends WFProcessDefinitionServiceBase {
/**
* Creates an instance of WFProcessDefinitionService.
*
* @param {*} [opts={}]
* @memberof WFProcessDefinitionService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
......@@ -46,6 +46,7 @@ export class UIServiceRegister {
this.allUIService.set('ibzorganization', () => import('@/uiservice/ibzorganization/ibzorganization-ui-service'));
this.allUIService.set('wfgroup', () => import('@/uiservice/wfgroup/wfgroup-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'));
this.allUIService.set('ibzdeptmember', () => import('@/uiservice/ibzdept-member/ibzdept-member-ui-service'));
this.allUIService.set('ibzdepartment', () => import('@/uiservice/ibzdepartment/ibzdepartment-ui-service'));
......
import WFProcessDefinitionUIServiceBase from './wfprocess-definition-ui-service-base';
/**
* 流程定义UI服务对象
*
* @export
* @class WFProcessDefinitionUIService
*/
export default class WFProcessDefinitionUIService extends WFProcessDefinitionUIServiceBase {
/**
* Creates an instance of WFProcessDefinitionUIService.
*
* @param {*} [opts={}]
* @memberof WFProcessDefinitionUIService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
......@@ -489,6 +489,9 @@ export default class IndexBase extends Vue implements ControlInterface {
case 'Auto2':
this.clickAuto2(item);
return;
case '_2':
this.click_2(item);
return;
case 'Auto1':
this.clickAuto1(item);
return;
......@@ -556,6 +559,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: 'wfprocessdefinitions', parameterName: 'wfprocessdefinition' },
{ pathName: 'gridview', parameterName: 'gridview' },
];
const path: string = this.$viewTool.buildUpRoutePath(this.$route, {}, deResParameters, parameters, [], viewparam);
this.$router.push(path);
}
/**
* 流程角色
*
......
......@@ -103,6 +103,24 @@ export default class IndexModel {
textcls: '',
appfunctag: 'Auto1',
resourcetag: '',
},
{
id: '6DFB635D-1B8E-47E7-9869-1B7BC2B844C0',
name: 'menuitem6',
text: '流程定义',
type: 'MENUITEM',
counterid: '',
tooltip: '流程定义',
expanded: false,
separator: false,
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: 'fa fa-random',
icon: '',
textcls: '',
appfunctag: '_2',
resourcetag: '',
},
];
......
<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
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册