提交 4577fe2a 编写于 作者: ibizdev's avatar ibizdev

ibiz4j 发布系统代码

上级 2272f3c5
...@@ -44,25 +44,28 @@ export default { ...@@ -44,25 +44,28 @@ export default {
columns: { columns: {
deptname: "部门", deptname: "部门",
personname: "成员", personname: "成员",
postname: "岗位名称",
deptid: "部门标识", deptid: "部门标识",
postid: "岗位标识",
userid: "用户标识",
}, },
uiactions: { uiactions: {
}, },
}, },
gridviewtoolbar_toolbar: { gridviewtoolbar_toolbar: {
tbitem3: { tbitem24: {
caption: "New", caption: "行编辑",
tip: "New", tip: "行编辑",
}, },
tbitem4: { tbitem25: {
caption: "Edit", caption: "新建行",
tip: "Edit {0}", tip: "新建行",
}, },
tbitem6: { deuiaction1: {
caption: "Copy", caption: "保存行",
tip: "Copy {0}", tip: "保存行",
}, },
tbitem7: { tbitem26: {
caption: "-", caption: "-",
tip: "", tip: "",
}, },
...@@ -70,30 +73,6 @@ export default { ...@@ -70,30 +73,6 @@ export default {
caption: "Remove", caption: "Remove",
tip: "Remove {0}", 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: "数据导入",
},
}, },
editviewtoolbar_toolbar: { editviewtoolbar_toolbar: {
tbitem3: { tbitem3: {
......
...@@ -43,25 +43,28 @@ export default { ...@@ -43,25 +43,28 @@ export default {
columns: { columns: {
deptname: "部门", deptname: "部门",
personname: "成员", personname: "成员",
postname: "岗位名称",
deptid: "部门标识", deptid: "部门标识",
postid: "岗位标识",
userid: "用户标识",
}, },
uiactions: { uiactions: {
}, },
}, },
gridviewtoolbar_toolbar: { gridviewtoolbar_toolbar: {
tbitem3: { tbitem24: {
caption: "新建", caption: "行编辑",
tip: "新建", tip: "行编辑",
}, },
tbitem4: { tbitem25: {
caption: "编辑", caption: "新建行",
tip: "编辑", tip: "新建行",
}, },
tbitem6: { deuiaction1: {
caption: "拷贝", caption: "保存行",
tip: "拷贝", tip: "保存行",
}, },
tbitem7: { tbitem26: {
caption: "-", caption: "-",
tip: "", tip: "",
}, },
...@@ -69,30 +72,6 @@ export default { ...@@ -69,30 +72,6 @@ export default {
caption: "删除", caption: "删除",
tip: "删除", tip: "删除",
}, },
tbitem9: {
caption: "-",
tip: "",
},
tbitem13: {
caption: "导出",
tip: "导出",
},
tbitem10: {
caption: "-",
tip: "",
},
tbitem16: {
caption: "其它",
tip: "其它",
},
tbitem21: {
caption: "导出数据模型",
tip: "导出数据模型",
},
tbitem23: {
caption: "数据导入",
tip: "数据导入",
},
}, },
editviewtoolbar_toolbar: { editviewtoolbar_toolbar: {
tbitem3: { tbitem3: {
......
...@@ -264,7 +264,9 @@ export const viewstate: any = { ...@@ -264,7 +264,9 @@ export const viewstate: any = {
viewdatachange: false, viewdatachange: false,
refviews: [ refviews: [
'd946240b09028ae684e1eb31281a4caf', 'd946240b09028ae684e1eb31281a4caf',
'9ffa35efe3d70cf4b9fa4e83dd1979c6',
'bf5e850471bab461fbb6739578e510c5', 'bf5e850471bab461fbb6739578e510c5',
'7e3fbce8277ad89674307e6a0d7ddd43',
'97224ac0397dbe38b4679b4060ee29e5', '97224ac0397dbe38b4679b4060ee29e5',
], ],
}, },
......
...@@ -36,6 +36,11 @@ export default class MainModel { ...@@ -36,6 +36,11 @@ export default class MainModel {
prop: 'deptid', prop: 'deptid',
dataType: 'PICKUP', dataType: 'PICKUP',
}, },
{
name: 'postname',
prop: 'postname',
dataType: 'PICKUPTEXT',
},
{ {
name: 'userid', name: 'userid',
prop: 'userid', prop: 'userid',
......
...@@ -2,6 +2,8 @@ import { Http,Util,Errorlog } from '@/utils'; ...@@ -2,6 +2,8 @@ import { Http,Util,Errorlog } from '@/utils';
import ControlService from '@/widgets/control-service'; import ControlService from '@/widgets/control-service';
import IBZDeptMemberService from '@/service/ibzdept-member/ibzdept-member-service'; import IBZDeptMemberService from '@/service/ibzdept-member/ibzdept-member-service';
import MainModel from './main-grid-model'; import MainModel from './main-grid-model';
import IBZPostService from '@/service/ibzpost/ibzpost-service';
import IBZEmployeeService from '@/service/ibzemployee/ibzemployee-service';
/** /**
...@@ -42,6 +44,22 @@ export default class MainService extends ControlService { ...@@ -42,6 +44,22 @@ export default class MainService extends ControlService {
} }
/**
* 岗位服务对象
*
* @type {IBZPostService}
* @memberof MainService
*/
public ibzpostService: IBZPostService = new IBZPostService();
/**
* 人员服务对象
*
* @type {IBZEmployeeService}
* @memberof MainService
*/
public ibzemployeeService: IBZEmployeeService = new IBZEmployeeService();
/** /**
* 处理数据 * 处理数据
* *
...@@ -83,6 +101,12 @@ export default class MainService extends ControlService { ...@@ -83,6 +101,12 @@ export default class MainService extends ControlService {
public getItems(serviceName: string, interfaceName: string, context: any = {}, data: any, isloading?: boolean): Promise<any[]> { public getItems(serviceName: string, interfaceName: string, context: any = {}, data: any, isloading?: boolean): Promise<any[]> {
data.page = data.page ? data.page : 0; data.page = data.page ? data.page : 0;
data.size = data.size ? data.size : 1000; data.size = data.size ? data.size : 1000;
if (Object.is(serviceName, 'IBZPostService') && Object.is(interfaceName, 'FetchDefault')) {
return this.doItems(this.ibzpostService.FetchDefault(JSON.parse(JSON.stringify(context)),data, isloading), 'postid', 'ibzpost');
}
if (Object.is(serviceName, 'IBZEmployeeService') && Object.is(interfaceName, 'FetchDefault')) {
return this.doItems(this.ibzemployeeService.FetchDefault(JSON.parse(JSON.stringify(context)),data, isloading), 'userid', 'ibzemployee');
}
return Promise.reject([]) return Promise.reject([])
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册