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

ibiz4j 发布系统代码

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