提交 4badda97 编写于 作者: ibizdev's avatar ibizdev

tony001 发布系统代码 [后台服务,演示应用]

上级 1c4927b3
......@@ -315,7 +315,7 @@
"appCodeName":"Web",
"appName":"演示应用",
"portletCodeName": "QUICKMENUBAR",
"portletName": "快捷菜单",
"portletName": "快捷菜单测试",
"groupCodeName":"Ungroup",
"groupName":"(未分类)",
},
......
......@@ -663,6 +663,14 @@
"viewname": "IBIZBOOKUsr2MEditView9",
"viewtag": "5686558064d641b7ff599746970461cd"
},
"ibiztaskteamgridview9": {
"title": "任务团队表格视图(临时模式)",
"caption": "临时模式",
"viewtype": "DEGRIDVIEW9",
"viewmodule": "Sample",
"viewname": "IBIZTASKTEAMGridView9",
"viewtag": "5771b0186bb2e13fc7a3250097357bf0"
},
"ibizsample0002pickupview": {
"title": "首页图表数据源数据选择视图",
"caption": "示例实体02",
......@@ -951,6 +959,14 @@
"viewname": "IBIZSample0003SF3EditView",
"viewtag": "84904c93ceea3ab6551555ee20c41e27"
},
"ibiztaskteameditview9": {
"title": "任务团队编辑视图(临时模式)",
"caption": "临时模式",
"viewtype": "DEEDITVIEW9",
"viewmodule": "Sample",
"viewname": "IBIZTASKTEAMEditView9",
"viewtag": "84c014dfd34effc8379f367fa62139ea"
},
"ibizuniproductindexpickupview": {
"title": "统一产品数据选择视图",
"caption": "统一产品(索引主实体)",
......
......@@ -75,11 +75,11 @@ function getLocaleResourceBase(){
title: commonLogic.appcommonhandle("表格列更新",null),
},
groupbycodelistkanbanview: {
caption: commonLogic.appcommonhandle("图书",null),
caption: commonLogic.appcommonhandle("Code Table Grouping",null),
title: commonLogic.appcommonhandle("图书看板视图(代码表分组)",null),
},
usr5dataview: {
caption: commonLogic.appcommonhandle("图书",null),
caption: commonLogic.appcommonhandle("Custom Plug In",null),
title: commonLogic.appcommonhandle("图书数据视图(自定义插件)",null),
},
usr2editview: {
......@@ -147,7 +147,7 @@ function getLocaleResourceBase(){
title: commonLogic.appcommonhandle("图书日历视图(自定义插件)",null),
},
interfunckanbanview: {
caption: commonLogic.appcommonhandle("实体看板视图(内置功能)",null),
caption: commonLogic.appcommonhandle("Built In Features",null),
title: commonLogic.appcommonhandle("实体看板视图(内置功能)",null),
},
usr8gridview: {
......@@ -159,7 +159,7 @@ function getLocaleResourceBase(){
title: commonLogic.appcommonhandle("实体向导视图",null),
},
haspanelkanbanview: {
caption: commonLogic.appcommonhandle("图书",null),
caption: commonLogic.appcommonhandle("Item Layout Panel",null),
title: commonLogic.appcommonhandle("图书看板视图(嵌入视图面板)",null),
},
listview: {
......@@ -199,7 +199,7 @@ function getLocaleResourceBase(){
title: commonLogic.appcommonhandle("图书表格视图(主状态)",null),
},
usr4dataview: {
caption: commonLogic.appcommonhandle("图书",null),
caption: commonLogic.appcommonhandle("Item Layout Panel",null),
title: commonLogic.appcommonhandle("图书数据视图(项布局面板)",null),
},
usr3gridview: {
......@@ -207,7 +207,7 @@ function getLocaleResourceBase(){
title: commonLogic.appcommonhandle("表格代码表分组",null),
},
dataview: {
caption: commonLogic.appcommonhandle("实体数据视图(内置功能)",null),
caption: commonLogic.appcommonhandle("Built In Features",null),
title: commonLogic.appcommonhandle("实体数据视图(内置功能)",null),
},
interfunceditview: {
......@@ -215,7 +215,7 @@ function getLocaleResourceBase(){
title: commonLogic.appcommonhandle("图书编辑视图(内置功能)",null),
},
usr3dataview: {
caption: commonLogic.appcommonhandle("图书",null),
caption: commonLogic.appcommonhandle("Code Table Grouping",null),
title: commonLogic.appcommonhandle("图书数据视图(代码表分组)",null),
},
usr2treeview: {
......@@ -235,7 +235,7 @@ function getLocaleResourceBase(){
title: commonLogic.appcommonhandle("图书甘特视图",null),
},
usr2dataview: {
caption: commonLogic.appcommonhandle("图书",null),
caption: commonLogic.appcommonhandle("Automatic Grouping",null),
title: commonLogic.appcommonhandle("图书数据视图(自动分组)",null),
},
usr4listview: {
......
......@@ -56,7 +56,7 @@ function getLocaleResourceBase(){
title: commonLogic.appcommonhandle("订单数据选择视图",null),
},
treegridexview: {
caption: commonLogic.appcommonhandle("实体树表格视图(增强)",null),
caption: commonLogic.appcommonhandle("Tree Grid",null),
title: commonLogic.appcommonhandle("实体树表格视图(增强)",null),
},
dataviewexpview: {
......@@ -76,7 +76,7 @@ function getLocaleResourceBase(){
title: commonLogic.appcommonhandle("订单编辑视图",null),
},
ganttview: {
caption: commonLogic.appcommonhandle("实体甘特视图",null),
caption: commonLogic.appcommonhandle("GanttChart",null),
title: commonLogic.appcommonhandle("实体甘特视图",null),
},
odsp_d20_wfgridview: {
......@@ -136,7 +136,7 @@ function getLocaleResourceBase(){
title: commonLogic.appcommonhandle("实体表格视图",null),
},
barchartview: {
caption: commonLogic.appcommonhandle("订单",null),
caption: commonLogic.appcommonhandle("Bar Chart",null),
title: commonLogic.appcommonhandle("订单图表视图",null),
},
dashboardview: {
......
......@@ -28,7 +28,7 @@ function getLocaleResourceBase(){
title: commonLogic.appcommonhandle("IBIZSAMPLE0003数据选择视图",null),
},
f3treeexpview: {
caption: commonLogic.appcommonhandle("示例实体03",null),
caption: commonLogic.appcommonhandle("Dynamic Node (entity)",null),
title: commonLogic.appcommonhandle("示例实体03树导航视图",null),
},
streeexpview: {
......@@ -40,7 +40,7 @@ function getLocaleResourceBase(){
title: commonLogic.appcommonhandle("示例实体03树导航视图",null),
},
f4treeexpview: {
caption: commonLogic.appcommonhandle("示例实体03",null),
caption: commonLogic.appcommonhandle("RightClickOperation",null),
title: commonLogic.appcommonhandle("示例实体03树导航视图",null),
},
pickupgridview: {
......@@ -76,7 +76,7 @@ function getLocaleResourceBase(){
title: commonLogic.appcommonhandle("IBIZSAMPLE0003数据多项选择视图",null),
},
f2treeexpview: {
caption: commonLogic.appcommonhandle("示例实体03",null),
caption: commonLogic.appcommonhandle("Dynamic Node (code table)",null),
title: commonLogic.appcommonhandle("示例实体03树导航视图",null),
},
spickupview2: {
......@@ -88,7 +88,7 @@ function getLocaleResourceBase(){
title: commonLogic.appcommonhandle("示例实体03编辑视图",null),
},
f1treeexpview: {
caption: commonLogic.appcommonhandle("示例实体03",null),
caption: commonLogic.appcommonhandle("Static Node",null),
title: commonLogic.appcommonhandle("示例实体03树导航视图",null),
},
sf2editview: {
......
......@@ -19,10 +19,9 @@ function getLocaleResourceBase(){
},
main_form: {
details: {
druipart1: commonLogic.appcommonhandle("",null),
group1: commonLogic.appcommonhandle("任务基本信息",null),
formpage1: commonLogic.appcommonhandle("基本信息",null),
group2: commonLogic.appcommonhandle("操作信息",null),
formpage2: commonLogic.appcommonhandle("其它",null),
srfupdatedate: commonLogic.appcommonhandle("更新时间",null),
srforikey: commonLogic.appcommonhandle("",null),
srfkey: commonLogic.appcommonhandle("任务标识",null),
......@@ -32,10 +31,7 @@ function getLocaleResourceBase(){
srfdeid: commonLogic.appcommonhandle("",null),
srfsourcekey: commonLogic.appcommonhandle("",null),
ibiztaskname: commonLogic.appcommonhandle("任务名称",null),
createman: commonLogic.appcommonhandle("建立人",null),
createdate: commonLogic.appcommonhandle("建立时间",null),
updateman: commonLogic.appcommonhandle("更新人",null),
updatedate: commonLogic.appcommonhandle("更新时间",null),
taskteam: commonLogic.appcommonhandle("任务团队",null),
ibiztaskid: commonLogic.appcommonhandle("任务标识",null),
},
uiactions: {
......
......@@ -19,10 +19,9 @@ function getLocaleResourceBase(){
},
main_form: {
details: {
druipart1: commonLogic.appcommonhandle("",null),
group1: commonLogic.appcommonhandle("任务基本信息",null),
formpage1: commonLogic.appcommonhandle("基本信息",null),
group2: commonLogic.appcommonhandle("操作信息",null),
formpage2: commonLogic.appcommonhandle("其它",null),
srfupdatedate: commonLogic.appcommonhandle("更新时间",null),
srforikey: commonLogic.appcommonhandle("",null),
srfkey: commonLogic.appcommonhandle("任务标识",null),
......@@ -32,10 +31,7 @@ function getLocaleResourceBase(){
srfdeid: commonLogic.appcommonhandle("",null),
srfsourcekey: commonLogic.appcommonhandle("",null),
ibiztaskname: commonLogic.appcommonhandle("任务名称",null),
createman: commonLogic.appcommonhandle("建立人",null),
createdate: commonLogic.appcommonhandle("建立时间",null),
updateman: commonLogic.appcommonhandle("更新人",null),
updatedate: commonLogic.appcommonhandle("更新时间",null),
taskteam: commonLogic.appcommonhandle("任务团队",null),
ibiztaskid: commonLogic.appcommonhandle("任务标识",null),
},
uiactions: {
......
......@@ -10,7 +10,56 @@ function getLocaleResourceBase(){
createdate: commonLogic.appcommonhandle("建立时间",null),
updatedate: commonLogic.appcommonhandle("更新时间",null),
root: commonLogic.appcommonhandle("任务标识",null),
account: commonLogic.appcommonhandle("用户",null),
role: commonLogic.appcommonhandle("角色",null),
},
views: {
gridview9: {
caption: commonLogic.appcommonhandle("临时模式",null),
title: commonLogic.appcommonhandle("任务团队表格视图(临时模式)",null),
},
editview9: {
caption: commonLogic.appcommonhandle("临时模式",null),
title: commonLogic.appcommonhandle("任务团队编辑视图(临时模式)",null),
},
},
main_form: {
details: {
group1: commonLogic.appcommonhandle("任务团队基本信息",null),
formpage1: commonLogic.appcommonhandle("基本信息",null),
group2: commonLogic.appcommonhandle("操作信息",null),
formpage2: commonLogic.appcommonhandle("其它",null),
srfupdatedate: commonLogic.appcommonhandle("更新时间",null),
srforikey: commonLogic.appcommonhandle("",null),
srfkey: commonLogic.appcommonhandle("任务团队标识",null),
srfmajortext: commonLogic.appcommonhandle("任务团队名称",null),
srftempmode: commonLogic.appcommonhandle("",null),
srfuf: commonLogic.appcommonhandle("",null),
srfdeid: commonLogic.appcommonhandle("",null),
srfsourcekey: commonLogic.appcommonhandle("",null),
ibiztaskteamname: commonLogic.appcommonhandle("任务团队名称",null),
createman: commonLogic.appcommonhandle("建立人",null),
createdate: commonLogic.appcommonhandle("建立时间",null),
updateman: commonLogic.appcommonhandle("更新人",null),
updatedate: commonLogic.appcommonhandle("更新时间",null),
ibiztaskteamid: commonLogic.appcommonhandle("任务团队标识",null),
},
uiactions: {
},
},
main_grid: {
columns: {
account: commonLogic.appcommonhandle("用户",null),
role: commonLogic.appcommonhandle("角色",null),
},
nodata:commonLogic.appcommonhandle("",null),
uiactions: {
},
},
gridview9toolbar_toolbar: {
},
editview9toolbar_toolbar: {
},
};
return data;
}
......
......@@ -10,7 +10,56 @@ function getLocaleResourceBase(){
createdate: commonLogic.appcommonhandle("建立时间",null),
updatedate: commonLogic.appcommonhandle("更新时间",null),
root: commonLogic.appcommonhandle("任务标识",null),
account: commonLogic.appcommonhandle("用户",null),
role: commonLogic.appcommonhandle("角色",null),
},
views: {
gridview9: {
caption: commonLogic.appcommonhandle("临时模式",null),
title: commonLogic.appcommonhandle("任务团队表格视图(临时模式)",null),
},
editview9: {
caption: commonLogic.appcommonhandle("临时模式",null),
title: commonLogic.appcommonhandle("任务团队编辑视图(临时模式)",null),
},
},
main_form: {
details: {
group1: commonLogic.appcommonhandle("任务团队基本信息",null),
formpage1: commonLogic.appcommonhandle("基本信息",null),
group2: commonLogic.appcommonhandle("操作信息",null),
formpage2: commonLogic.appcommonhandle("其它",null),
srfupdatedate: commonLogic.appcommonhandle("更新时间",null),
srforikey: commonLogic.appcommonhandle("",null),
srfkey: commonLogic.appcommonhandle("任务团队标识",null),
srfmajortext: commonLogic.appcommonhandle("任务团队名称",null),
srftempmode: commonLogic.appcommonhandle("",null),
srfuf: commonLogic.appcommonhandle("",null),
srfdeid: commonLogic.appcommonhandle("",null),
srfsourcekey: commonLogic.appcommonhandle("",null),
ibiztaskteamname: commonLogic.appcommonhandle("任务团队名称",null),
createman: commonLogic.appcommonhandle("建立人",null),
createdate: commonLogic.appcommonhandle("建立时间",null),
updateman: commonLogic.appcommonhandle("更新人",null),
updatedate: commonLogic.appcommonhandle("更新时间",null),
ibiztaskteamid: commonLogic.appcommonhandle("任务团队标识",null),
},
uiactions: {
},
},
main_grid: {
columns: {
account: commonLogic.appcommonhandle("用户",null),
role: commonLogic.appcommonhandle("角色",null),
},
nodata:commonLogic.appcommonhandle("",null),
uiactions: {
},
},
gridview9toolbar_toolbar: {
},
editview9toolbar_toolbar: {
},
};
return data;
}
......
......@@ -87,89 +87,3 @@ mock.onDelete(new RegExp(/^\/ibiztaskteams\/batch$/)).reply((config: any) => {
});
// Select
mock.onGet(new RegExp(/^\/ibiztaskteams\/([a-zA-Z0-9\-\;]{1,35})\/select$/)).reply((config: any) => {
console.groupCollapsed("实体:ibiztaskteam 方法: Select");
console.table({url:config.url, method: config.method, data:config.data});
let status = MockAdapter.mockStatus(config);
if (status !== 200) {
return [status, null];
}
const paramArray:Array<any> = ['ibiztaskteamid'];
const matchArray:any = new RegExp(/^\/ibiztaskteams\/([a-zA-Z0-9\-\;]{1,35})\/select$/).exec(config.url);
let tempValue: any = {};
if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){
paramArray.forEach((item: any, index: number) => {
Object.defineProperty(tempValue, item, {
enumerable: true,
value: matchArray[index + 1]
});
});
}
let items = mockDatas ? mockDatas : [];
let _items = items.find((item: any) => Object.is(item.ibiztaskteamid, tempValue.ibiztaskteamid));
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table(_items);
console.groupEnd();
console.groupEnd();
return [status, _items];
});
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// FetchDefault
mock.onGet(new RegExp(/^\/ibiztaskteams\/select$/)).reply((config: any) => {
console.groupCollapsed("实体:ibiztaskteam 方法: FetchDefault");
console.table({url:config.url, method: config.method, data:config.data});
let status = MockAdapter.mockStatus(config);
if (status !== 200) {
return [status, null];
}
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table(mockDatas);
console.groupEnd();
console.groupEnd();
return [status, mockDatas ? mockDatas : []];
});
// FetchDefault
mock.onGet(new RegExp(/^\/ibiztaskteams\/select(\?[\w-./?%&=,]*)*$/)).reply((config: any) => {
console.groupCollapsed("实体:ibiztaskteam 方法: FetchDefault");
console.table({url:config.url, method: config.method, data:config.data});
if(config.url.includes('page')){
let url = config.url.split('?')[1];
let params = qs.parse(url);
Object.assign(config, params);
}
let status = MockAdapter.mockStatus(config);
if (status !== 200) {
return [status, null];
}
let total = mockDatas.length;
let records: Array<any> = [];
if(!config.page || !config.size){
records = mockDatas;
}else{
if((config.page-1)*config.size < total){
records = mockDatas.slice(config.page,config.size);
}
}
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table(records ? records : []);
console.groupEnd();
console.groupEnd();
return [status, records ? records : []];
});
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
......@@ -325,7 +325,7 @@ mock.onGet('./assets/json/portlet-data.json').reply((config: any) => {
"appCodeName":"Web",
"appName":"演示应用",
"portletCodeName": "QUICKMENUBAR",
"portletName": "快捷菜单",
"portletName": "快捷菜单测试",
"groupCodeName":"Ungroup",
"groupName":"(未分类)",
},
......
......@@ -671,6 +671,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "IBIZBOOKUsr2MEditView9",
"viewtag": "5686558064d641b7ff599746970461cd"
},
"ibiztaskteamgridview9": {
"title": "任务团队表格视图(临时模式)",
"caption": "临时模式",
"viewtype": "DEGRIDVIEW9",
"viewmodule": "Sample",
"viewname": "IBIZTASKTEAMGridView9",
"viewtag": "5771b0186bb2e13fc7a3250097357bf0"
},
"ibizsample0002pickupview": {
"title": "首页图表数据源数据选择视图",
"caption": "示例实体02",
......@@ -959,6 +967,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "IBIZSample0003SF3EditView",
"viewtag": "84904c93ceea3ab6551555ee20c41e27"
},
"ibiztaskteameditview9": {
"title": "任务团队编辑视图(临时模式)",
"caption": "临时模式",
"viewtype": "DEEDITVIEW9",
"viewmodule": "Sample",
"viewname": "IBIZTASKTEAMEditView9",
"viewtag": "84c014dfd34effc8379f367fa62139ea"
},
"ibizuniproductindexpickupview": {
"title": "统一产品数据选择视图",
"caption": "统一产品(索引主实体)",
......
......@@ -53,6 +53,176 @@ export default class IBIZTASKServiceBase extends EntityService {
return res;
}
/**
* Create接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBIZTASKServiceBase
*/
public async Create(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let masterData:any = {};
let ibiztaskteamsData:any = [];
if(!Object.is(this.tempStorage.getItem(context.srfsessionkey+'_ibiztaskteams'),'undefined')){
ibiztaskteamsData = JSON.parse(this.tempStorage.getItem(context.srfsessionkey+'_ibiztaskteams') as any);
if(ibiztaskteamsData && ibiztaskteamsData.length && ibiztaskteamsData.length > 0){
ibiztaskteamsData.forEach((item:any) => {
if(item.srffrontuf){
if(Object.is(item.srffrontuf,"0")){
item.ibiztaskteamid = null;
if(item.hasOwnProperty('ibiztaskid') && item.ibiztaskid) item.ibiztaskid = null;
}
delete item.srffrontuf;
}
});
}
}
masterData.ibiztaskteams = ibiztaskteamsData;
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(`/ibiztasks`,data,isloading);
this.tempStorage.setItem(tempContext.srfsessionkey+'_ibiztaskteams',JSON.stringify(res.data.ibiztaskteams?res.data.ibiztaskteams:[]));
return res;
}
/**
* Update接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBIZTASKServiceBase
*/
public async Update(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let masterData:any = {};
let ibiztaskteamsData:any = [];
if(!Object.is(this.tempStorage.getItem(context.srfsessionkey+'_ibiztaskteams'),'undefined')){
ibiztaskteamsData = JSON.parse(this.tempStorage.getItem(context.srfsessionkey+'_ibiztaskteams') as any);
if(ibiztaskteamsData && ibiztaskteamsData.length && ibiztaskteamsData.length > 0){
ibiztaskteamsData.forEach((item:any) => {
if(item.srffrontuf){
if(Object.is(item.srffrontuf,"0")){
item.ibiztaskteamid = null;
if(item.hasOwnProperty('ibiztaskid') && item.ibiztaskid) item.ibiztaskid = null;
}
delete item.srffrontuf;
}
});
}
}
masterData.ibiztaskteams = ibiztaskteamsData;
Object.assign(data,masterData);
let res:any = await Http.getInstance().put(`/ibiztasks/${context.ibiztask}`,data,isloading);
this.tempStorage.setItem(context.srfsessionkey+'_ibiztaskteams',JSON.stringify(res.data.ibiztaskteams?res.data.ibiztaskteams:[]));
return res;
}
/**
* Remove接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBIZTASKServiceBase
*/
public async Remove(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = Http.getInstance().delete(`/ibiztasks/${context.ibiztask}`,isloading);
return res;
}
/**
* Get接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBIZTASKServiceBase
*/
public async Get(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = await Http.getInstance().get(`/ibiztasks/${context.ibiztask}`,isloading);
this.tempStorage.setItem(context.srfsessionkey+'_ibiztaskteams',JSON.stringify(res.data.ibiztaskteams?res.data.ibiztaskteams:[]));
return res;
}
/**
* GetDraft接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBIZTASKServiceBase
*/
public async GetDraft(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = await Http.getInstance().get(`/ibiztasks/getdraft`,isloading);
res.data.ibiztask = data.ibiztask;
this.tempStorage.setItem(context.srfsessionkey+'_ibiztaskteams',JSON.stringify(res.data.ibiztaskteams?res.data.ibiztaskteams:[]));
return res;
}
/**
* CheckKey接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBIZTASKServiceBase
*/
public async CheckKey(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = Http.getInstance().post(`/ibiztasks/${context.ibiztask}/checkkey`,data,isloading);
return res;
}
/**
* Save接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBIZTASKServiceBase
*/
public async Save(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let masterData:any = {};
let ibiztaskteamsData:any = [];
if(!Object.is(this.tempStorage.getItem(context.srfsessionkey+'_ibiztaskteams'),'undefined')){
ibiztaskteamsData = JSON.parse(this.tempStorage.getItem(context.srfsessionkey+'_ibiztaskteams') as any);
if(ibiztaskteamsData && ibiztaskteamsData.length && ibiztaskteamsData.length > 0){
ibiztaskteamsData.forEach((item:any) => {
if(item.srffrontuf){
if(Object.is(item.srffrontuf,"0")){
item.ibiztaskteamid = null;
if(item.hasOwnProperty('ibiztaskid') && item.ibiztaskid) item.ibiztaskid = null;
}
delete item.srffrontuf;
}
});
}
}
masterData.ibiztaskteams = ibiztaskteamsData;
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/ibiztasks/${context.ibiztask}/save`,data,isloading);
this.tempStorage.setItem(context.srfsessionkey+'_ibiztaskteams',JSON.stringify(res.data.ibiztaskteams?res.data.ibiztaskteams:[]));
return res;
}
/**
* FetchDefault接口方法
*
......@@ -63,6 +233,9 @@ export default class IBIZTASKServiceBase extends EntityService {
* @memberof IBIZTASKServiceBase
*/
public async FetchDefault(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let tempData:any = JSON.parse(JSON.stringify(data));
let res:any = Http.getInstance().get(`/ibiztasks/fetchdefault`,tempData,isloading);
return res;
}
/**
......@@ -78,4 +251,16 @@ export default class IBIZTASKServiceBase extends EntityService {
let tempData:any = JSON.parse(JSON.stringify(data));
return await Http.getInstance().post(`/ibiztasks/searchdefault`,tempData,isloading);
}
/**
* FetchTempDefault接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBIZTASKServiceBase
*/
public async FetchTempDefault(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
}
}
\ No newline at end of file
......@@ -39,7 +39,7 @@ export default class IBIZTASKTEAMServiceBase extends EntityService {
// 实体接口
/**
* Select接口方法
* FetchDefault接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
......@@ -47,14 +47,22 @@ export default class IBIZTASKTEAMServiceBase extends EntityService {
* @returns {Promise<any>}
* @memberof IBIZTASKTEAMServiceBase
*/
public async Select(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = Http.getInstance().get(`/ibiztaskteams/${context.ibiztaskteam}/select`,isloading);
return res;
public async FetchDefault(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
// FetchDefault ---FETCH
if(context.srfsessionkey && !Object.is(this.tempStorage.getItem(context.srfsessionkey+'_ibiztaskteams'),'undefined')){
let result:any = JSON.parse(this.tempStorage.getItem(context.srfsessionkey+'_ibiztaskteams') as any);
if(result){
return {"status":200,"data":result};
}else{
return {"status":200,"data":[]};
}
}else{
return {"status":200,"data":[]};
}
}
/**
* FetchDefault接口方法
* searchDefault接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
......@@ -62,11 +70,11 @@ export default class IBIZTASKTEAMServiceBase extends EntityService {
* @returns {Promise<any>}
* @memberof IBIZTASKTEAMServiceBase
*/
public async FetchDefault(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
public async searchDefault(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
}
/**
* searchDefault接口方法
* FetchTempDefault接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
......@@ -74,8 +82,17 @@ export default class IBIZTASKTEAMServiceBase extends EntityService {
* @returns {Promise<any>}
* @memberof IBIZTASKTEAMServiceBase
*/
public async searchDefault(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let tempData:any = JSON.parse(JSON.stringify(data));
return await Http.getInstance().post(`/ibiztaskteams/searchdefault`,tempData,isloading);
public async FetchTempDefault(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
// FetchTempDefault ---FETCHTEMP
if(context.srfsessionkey && !Object.is(this.tempStorage.getItem(context.srfsessionkey+'_ibiztaskteams'),'undefined')){
let result:any = JSON.parse(this.tempStorage.getItem(context.srfsessionkey+'_ibiztaskteams') as any);
if(result){
return {"status":200,"data":result};
}else{
return {"status":200,"data":[]};
}
}else{
return {"status":200,"data":[]};
}
}
}
\ No newline at end of file
......@@ -96,6 +96,8 @@ export default class IBIZTASKTEAMUIServiceBase extends UIService {
* @memberof IBIZTASKTEAMUIServiceBase
*/
public initViewMap(){
this.allViewMap.set(':',{viewname:'gridview9',srfappde:'ibiztaskteams',component:'ibiztaskteamgrid-view9'});
this.allViewMap.set(':',{viewname:'editview9',srfappde:'ibiztaskteams',component:'ibiztaskteamedit-view9'});
}
/**
......
......@@ -3,7 +3,7 @@
<p class='portlet-title'>
<span>
快捷菜单
快捷菜单测试
</span>
</p>
<el-divider class="divider"></el-divider>
......
......@@ -37,11 +37,6 @@
git clone -b master $para2 demosys/
export NODE_OPTIONS=--max-old-space-size=4096
cd demosys/
mvn clean package -Pdemoapi
cd demo-provider/demo-provider-demoapi
mvn -Pdemoapi docker:build
mvn -Pdemoapi docker:push
docker -H $para1 stack deploy --compose-file=src/main/docker/demo-provider-demoapi.yaml iBizDemo --with-registry-auth
</command>
</hudson.tasks.Shell>
</builders>
......
......@@ -12,6 +12,6 @@ CMD echo "The application will start in ${IBIZ_SLEEP}s..." && \
sleep ${IBIZ_SLEEP} && \
java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /demo-provider-demoapi.jar
EXPOSE 51000
EXPOSE 8081
ADD demo-provider-demoapi.jar /demo-provider-demoapi.jar
......@@ -3,24 +3,9 @@ services:
demo-provider-demoapi:
image: registry.cn-shanghai.aliyuncs.com/ibizsys/demo-provider-demoapi:latest
ports:
- "51000:51000"
- "8081:8081"
networks:
- agent_network
environment:
- SPRING_CLOUD_NACOS_DISCOVERY_IP=172.16.240.110
- SERVER_PORT=51000
- SPRING_CLOUD_NACOS_DISCOVERY_SERVER-ADDR=172.16.240.110:8848
- SPRING_REDIS_HOST=172.16.240.110
- SPRING_REDIS_PORT=6379
- SPRING_REDIS_DATABASE=0
- SPRING_DATASOURCE_USERNAME=a_LAB01_df847bdfd
- SPRING_DATASOURCE_PASSWORD=3d6@460A
- SPRING_DATASOURCE_URL=jdbc:mysql://172.16.186.185:3306/a_LAB01_df847bdfd?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&useOldAliasMetadataBehavior=true&allowMultiQueries=true
- SPRING_DATASOURCE_DRIVER-CLASS-NAME=com.mysql.jdbc.Driver
- SPRING_DATASOURCE_DEFAULTSCHEMA=a_LAB01_df847bdfd
- NACOS=172.16.240.110:8848
- SEATA_REGISTRY_NACOS_SERVER-ADDR=172.16.240.110:8848
- SEATA_ENABLED=true
deploy:
resources:
limits:
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册