提交 43f88204 编写于 作者: ibizdev's avatar ibizdev

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

上级 de9f6949
......@@ -81,6 +81,7 @@ export class AuthServiceRegister {
this.allAuthService.set('ibizsample0005', () => import('@/authservice/ibizsample0005/ibizsample0005-auth-service'));
this.allAuthService.set('ibizuniproduct', () => import('@/authservice/ibizuniproduct/ibizuniproduct-auth-service'));
this.allAuthService.set('dynadashboard', () => import('@/authservice/dynadashboard/dynadashboard-auth-service'));
this.allAuthService.set('ibizappextendeditor', () => import('@/authservice/ibizappextendeditor/ibizappextendeditor-auth-service'));
}
/**
......
import AuthService from '../auth-service';
/**
* 扩展编辑器权限服务对象基类
*
* @export
* @class IBIZAPPEXTENDEDITORAuthServiceBase
* @extends {AuthService}
*/
export default class IBIZAPPEXTENDEDITORAuthServiceBase extends AuthService {
/**
* Creates an instance of IBIZAPPEXTENDEDITORAuthServiceBase.
*
* @param {*} [opts={}]
* @memberof IBIZAPPEXTENDEDITORAuthServiceBase
*/
constructor(opts: any = {}) {
super(opts);
}
/**
* 根据当前数据获取实体操作标识
*
* @param {*} mainSateOPPrivs 传入数据操作标识
* @returns {any}
* @memberof IBIZAPPEXTENDEDITORAuthServiceBase
*/
public getOPPrivs(mainSateOPPrivs:any):any{
let curDefaultOPPrivs:any = this.getSysOPPrivs();
let copyDefaultOPPrivs:any = JSON.parse(JSON.stringify(curDefaultOPPrivs));
if(mainSateOPPrivs){
Object.assign(curDefaultOPPrivs,mainSateOPPrivs);
}
// 统一资源优先
Object.keys(curDefaultOPPrivs).forEach((name:string) => {
if(this.sysOPPrivsMap.get(name) && copyDefaultOPPrivs[name] === 0){
curDefaultOPPrivs[name] = copyDefaultOPPrivs[name];
}
});
return curDefaultOPPrivs;
}
}
\ No newline at end of file
import IBIZAPPEXTENDEDITORAuthServiceBase from './ibizappextendeditor-auth-service-base';
/**
* 扩展编辑器权限服务对象
*
* @export
* @class IBIZAPPEXTENDEDITORAuthService
* @extends {IBIZAPPEXTENDEDITORAuthServiceBase}
*/
export default class IBIZAPPEXTENDEDITORAuthService extends IBIZAPPEXTENDEDITORAuthServiceBase {
/**
* Creates an instance of IBIZAPPEXTENDEDITORAuthService.
*
* @param {*} [opts={}]
* @memberof IBIZAPPEXTENDEDITORAuthService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
......@@ -40,6 +40,7 @@ import ibizcustom_en_US from '@locale/lanres/entities/ibizcustom/ibizcustom_en_U
import ibizsample0005_en_US from '@locale/lanres/entities/ibizsample0005/ibizsample0005_en_US';
import ibizuniproduct_en_US from '@locale/lanres/entities/ibizuniproduct/ibizuniproduct_en_US';
import dynadashboard_en_US from '@locale/lanres/entities/dynadashboard/dynadashboard_en_US';
import ibizappextendeditor_en_US from '@locale/lanres/entities/ibizappextendeditor/ibizappextendeditor_en_US';
import components_en_US from '@locale/lanres/components/components_en_US';
import codelist_en_US from '@locale/lanres/codelist/codelist_en_US';
import userCustom_en_US from '@locale/lanres/userCustom/userCustom_en_US';
......@@ -492,6 +493,7 @@ function getAppLocale(){
ibizsample0005: ibizsample0005_en_US(),
ibizuniproduct: ibizuniproduct_en_US(),
dynadashboard: dynadashboard_en_US(),
ibizappextendeditor: ibizappextendeditor_en_US(),
},
components: components_en_US(),
codelist: codelist_en_US(),
......
......@@ -40,6 +40,7 @@ import ibizcustom_zh_CN from '@locale/lanres/entities/ibizcustom/ibizcustom_zh_C
import ibizsample0005_zh_CN from '@locale/lanres/entities/ibizsample0005/ibizsample0005_zh_CN';
import ibizuniproduct_zh_CN from '@locale/lanres/entities/ibizuniproduct/ibizuniproduct_zh_CN';
import dynadashboard_zh_CN from '@locale/lanres/entities/dynadashboard/dynadashboard_zh_CN';
import ibizappextendeditor_zh_CN from '@locale/lanres/entities/ibizappextendeditor/ibizappextendeditor_zh_CN';
import components_zh_CN from '@locale/lanres/components/components_zh_CN';
import codelist_zh_CN from '@locale/lanres/codelist/codelist_zh_CN';
import userCustom_zh_CN from '@locale/lanres/userCustom/userCustom_zh_CN';
......@@ -491,6 +492,7 @@ function getAppLocale(){
ibizsample0005: ibizsample0005_zh_CN(),
ibizuniproduct: ibizuniproduct_zh_CN(),
dynadashboard: dynadashboard_zh_CN(),
ibizappextendeditor: ibizappextendeditor_zh_CN(),
},
components: components_zh_CN(),
codelist: codelist_zh_CN(),
......
import IBIZAPPEXTENDEDITOR_en_US_Base from './ibizappextendeditor_en_US_base';
function getLocaleResource(){
const IBIZAPPEXTENDEDITOR_en_US_OwnData = {};
const targetData = Object.assign(IBIZAPPEXTENDEDITOR_en_US_Base(), IBIZAPPEXTENDEDITOR_en_US_OwnData);
return targetData;
}
export default getLocaleResource;
\ No newline at end of file
import commonLogic from '@/locale/logic/common/common-logic';
function getLocaleResourceBase(){
const data:any = {
fields: {
createman: commonLogic.appcommonhandle("建立人",null),
updatedate: commonLogic.appcommonhandle("更新时间",null),
createdate: commonLogic.appcommonhandle("建立时间",null),
updateman: commonLogic.appcommonhandle("更新人",null),
ibizappextendeditorname: commonLogic.appcommonhandle("扩展编辑器名称",null),
ibizappextendeditorid: commonLogic.appcommonhandle("扩展编辑器标识",null),
extensionflag: commonLogic.appcommonhandle("扩展标识",null),
documentaddress: commonLogic.appcommonhandle("文档地址",null),
extendeditordescription: commonLogic.appcommonhandle("扩展编辑器描述",null),
amount: commonLogic.appcommonhandle("数量",null),
extendeditortype: commonLogic.appcommonhandle("扩展编辑器类型",null),
},
};
return data;
}
export default getLocaleResourceBase;
\ No newline at end of file
import IBIZAPPEXTENDEDITOR_zh_CN_Base from './ibizappextendeditor_zh_CN_base';
function getLocaleResource(){
const IBIZAPPEXTENDEDITOR_zh_CN_OwnData = {};
const targetData = Object.assign(IBIZAPPEXTENDEDITOR_zh_CN_Base(), IBIZAPPEXTENDEDITOR_zh_CN_OwnData);
return targetData;
}
export default getLocaleResource;
\ No newline at end of file
import commonLogic from '@/locale/logic/common/common-logic';
function getLocaleResourceBase(){
const data:any = {
fields: {
createman: commonLogic.appcommonhandle("建立人",null),
updatedate: commonLogic.appcommonhandle("更新时间",null),
createdate: commonLogic.appcommonhandle("建立时间",null),
updateman: commonLogic.appcommonhandle("更新人",null),
ibizappextendeditorname: commonLogic.appcommonhandle("扩展编辑器名称",null),
ibizappextendeditorid: commonLogic.appcommonhandle("扩展编辑器标识",null),
extensionflag: commonLogic.appcommonhandle("扩展标识",null),
documentaddress: commonLogic.appcommonhandle("文档地址",null),
extendeditordescription: commonLogic.appcommonhandle("扩展编辑器描述",null),
amount: commonLogic.appcommonhandle("数量",null),
extendeditortype: commonLogic.appcommonhandle("扩展编辑器类型",null),
},
};
return data;
}
export default getLocaleResourceBase;
\ No newline at end of file
......@@ -136,56 +136,6 @@ function getLocaleResourceBase(){
uiactions: {
},
},
gridviewtoolbar_toolbar: {
tbitem3: {
caption: commonLogic.appcommonhandle("New",null),
tip: commonLogic.appcommonhandle("New",null),
},
tbitem4: {
caption: commonLogic.appcommonhandle("Edit",null),
tip: commonLogic.appcommonhandle("Edit {0}",null),
},
deuiaction1: {
caption: commonLogic.appcommonhandle("刷新",null),
tip: commonLogic.appcommonhandle("刷新",null),
},
tbitem6: {
caption: commonLogic.appcommonhandle("Copy",null),
tip: commonLogic.appcommonhandle("Copy {0}",null),
},
tbitem7: {
caption: commonLogic.appcommonhandle("-",null),
tip: commonLogic.appcommonhandle("",null),
},
tbitem8: {
caption: commonLogic.appcommonhandle("Remove",null),
tip: commonLogic.appcommonhandle("Remove {0}",null),
},
tbitem9: {
caption: commonLogic.appcommonhandle("-",null),
tip: commonLogic.appcommonhandle("",null),
},
tbitem13: {
caption: commonLogic.appcommonhandle("Export",null),
tip: commonLogic.appcommonhandle("Export {0} Data To Excel",null),
},
tbitem10: {
caption: commonLogic.appcommonhandle("-",null),
tip: commonLogic.appcommonhandle("",null),
},
tbitem16: {
caption: commonLogic.appcommonhandle("其它",null),
tip: commonLogic.appcommonhandle("其它",null),
},
tbitem21: {
caption: commonLogic.appcommonhandle("Export Data Model",null),
tip: commonLogic.appcommonhandle("导出数据模型",null),
},
tbitem23: {
caption: commonLogic.appcommonhandle("数据导入",null),
tip: commonLogic.appcommonhandle("数据导入",null),
},
},
editviewtoolbar_toolbar: {
tbitem3: {
caption: commonLogic.appcommonhandle("Save",null),
......
......@@ -136,56 +136,6 @@ function getLocaleResourceBase(){
uiactions: {
},
},
gridviewtoolbar_toolbar: {
tbitem3: {
caption: commonLogic.appcommonhandle("新建",null),
tip: commonLogic.appcommonhandle("新建",null),
},
tbitem4: {
caption: commonLogic.appcommonhandle("编辑",null),
tip: commonLogic.appcommonhandle("编辑",null),
},
deuiaction1: {
caption: commonLogic.appcommonhandle("刷新",null),
tip: commonLogic.appcommonhandle("刷新",null),
},
tbitem6: {
caption: commonLogic.appcommonhandle("拷贝",null),
tip: commonLogic.appcommonhandle("拷贝",null),
},
tbitem7: {
caption: commonLogic.appcommonhandle("-",null),
tip: commonLogic.appcommonhandle("",null),
},
tbitem8: {
caption: commonLogic.appcommonhandle("删除",null),
tip: commonLogic.appcommonhandle("删除",null),
},
tbitem9: {
caption: commonLogic.appcommonhandle("-",null),
tip: commonLogic.appcommonhandle("",null),
},
tbitem13: {
caption: commonLogic.appcommonhandle("导出",null),
tip: commonLogic.appcommonhandle("导出",null),
},
tbitem10: {
caption: commonLogic.appcommonhandle("-",null),
tip: commonLogic.appcommonhandle("",null),
},
tbitem16: {
caption: commonLogic.appcommonhandle("其它",null),
tip: commonLogic.appcommonhandle("其它",null),
},
tbitem21: {
caption: commonLogic.appcommonhandle("导出数据模型",null),
tip: commonLogic.appcommonhandle("导出数据模型",null),
},
tbitem23: {
caption: commonLogic.appcommonhandle("数据导入",null),
tip: commonLogic.appcommonhandle("数据导入",null),
},
},
editviewtoolbar_toolbar: {
tbitem3: {
caption: commonLogic.appcommonhandle("保存",null),
......
......@@ -49,3 +49,4 @@ import './entity/ibizcustoms/ibizcustoms';
import './entity/ibizsample0005s/ibizsample0005s';
import './entity/ibizuniproducts/ibizuniproducts';
import './entity/dynadashboards/dynadashboards';
import './entity/ibizappextendeditors/ibizappextendeditors';
.micro-component-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
.deepskyblueToolBar {color:white !important;background-color:#108cee !important;}
......@@ -81,6 +81,7 @@ export class EntityServiceRegister {
this.allEntityService.set('ibizsample0005', () => import('@/service/ibizsample0005/ibizsample0005-service'));
this.allEntityService.set('ibizuniproduct', () => import('@/service/ibizuniproduct/ibizuniproduct-service'));
this.allEntityService.set('dynadashboard', () => import('@/service/dynadashboard/dynadashboard-service'));
this.allEntityService.set('ibizappextendeditor', () => import('@/service/ibizappextendeditor/ibizappextendeditor-service'));
}
/**
......
import { Http,Util } from '@/utils';
import EntityService from '../entity-service';
/**
* 扩展编辑器服务对象基类
*
* @export
* @class IBIZAPPEXTENDEDITORServiceBase
* @extends {EntityServie}
*/
export default class IBIZAPPEXTENDEDITORServiceBase extends EntityService {
/**
* Creates an instance of IBIZAPPEXTENDEDITORServiceBase.
*
* @param {*} [opts={}]
* @memberof IBIZAPPEXTENDEDITORServiceBase
*/
constructor(opts: any = {}) {
super(opts);
}
/**
* 初始化基础数据
*
* @memberof IBIZAPPEXTENDEDITORServiceBase
*/
public initBasicData(){
this.APPLYDEKEY ='ibizappextendeditor';
this.APPDEKEY = 'ibizappextendeditorid';
this.APPDENAME = 'ibizappextendeditors';
this.APPDETEXT = 'ibizappextendeditorname';
this.APPNAME = 'web';
this.SYSTEMNAME = 'demosys';
}
// 实体接口
/**
* Select接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBIZAPPEXTENDEDITORServiceBase
*/
public async Select(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = Http.getInstance().get(`/ibizappextendeditors/${context.ibizappextendeditor}/select`,isloading);
return res;
}
/**
* Create接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBIZAPPEXTENDEDITORServiceBase
*/
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(`/ibizappextendeditors`,data,isloading);
return res;
}
/**
* Update接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBIZAPPEXTENDEDITORServiceBase
*/
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(`/ibizappextendeditors/${context.ibizappextendeditor}`,data,isloading);
return res;
}
/**
* Remove接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBIZAPPEXTENDEDITORServiceBase
*/
public async Remove(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = Http.getInstance().delete(`/ibizappextendeditors/${context.ibizappextendeditor}`,isloading);
return res;
}
/**
* Get接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBIZAPPEXTENDEDITORServiceBase
*/
public async Get(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = await Http.getInstance().get(`/ibizappextendeditors/${context.ibizappextendeditor}`,isloading);
return res;
}
/**
* GetDraft接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBIZAPPEXTENDEDITORServiceBase
*/
public async GetDraft(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = await Http.getInstance().get(`/ibizappextendeditors/getdraft`,isloading);
res.data.ibizappextendeditor = data.ibizappextendeditor;
return res;
}
/**
* CheckKey接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBIZAPPEXTENDEDITORServiceBase
*/
public async CheckKey(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = Http.getInstance().post(`/ibizappextendeditors/${context.ibizappextendeditor}/checkkey`,data,isloading);
return res;
}
/**
* Save接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBIZAPPEXTENDEDITORServiceBase
*/
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(`/ibizappextendeditors/${context.ibizappextendeditor}/save`,data,isloading);
return res;
}
/**
* FetchDefault接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBIZAPPEXTENDEDITORServiceBase
*/
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(`/ibizappextendeditors/fetchdefault`,tempData,isloading);
return res;
}
/**
* searchDefault接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBIZAPPEXTENDEDITORServiceBase
*/
public async searchDefault(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let tempData:any = JSON.parse(JSON.stringify(data));
return await Http.getInstance().post(`/ibizappextendeditors/searchdefault`,tempData,isloading);
}
}
\ No newline at end of file
import { Http,Util } from '@/utils';
import IBIZAPPEXTENDEDITORServiceBase from './ibizappextendeditor-service-base';
/**
* 扩展编辑器服务对象
*
* @export
* @class IBIZAPPEXTENDEDITORService
* @extends {IBIZAPPEXTENDEDITORServiceBase}
*/
export default class IBIZAPPEXTENDEDITORService extends IBIZAPPEXTENDEDITORServiceBase {
/**
* Creates an instance of IBIZAPPEXTENDEDITORService.
*
* @param {*} [opts={}]
* @memberof IBIZAPPEXTENDEDITORService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
import { Environment } from '@/environments/environment';
import { UIActionTool,Util } from '@/utils';
import UIService from '../ui-service';
import { Subject } from 'rxjs';
import IBIZAPPEXTENDEDITORService from '@/service/ibizappextendeditor/ibizappextendeditor-service';
import IBIZAPPEXTENDEDITORAuthService from '@/authservice/ibizappextendeditor/ibizappextendeditor-auth-service';
/**
* 扩展编辑器UI服务对象基类
*
* @export
* @class IBIZAPPEXTENDEDITORUIServiceBase
*/
export default class IBIZAPPEXTENDEDITORUIServiceBase extends UIService {
/**
* 是否支持工作流
*
* @memberof IBIZAPPEXTENDEDITORUIServiceBase
*/
public isEnableWorkflow:boolean = false;
/**
* 是否支持实体主状态
*
* @memberof IBIZAPPEXTENDEDITORUIServiceBase
*/
public isEnableDEMainState:boolean = false;
/**
* 当前UI服务对应的数据服务对象
*
* @memberof IBIZAPPEXTENDEDITORUIServiceBase
*/
public dataService:IBIZAPPEXTENDEDITORService = new IBIZAPPEXTENDEDITORService();
/**
* 所有关联视图
*
* @memberof IBIZAPPEXTENDEDITORUIServiceBase
*/
public allViewMap: Map<string, Object> = new Map();
/**
* 状态值
*
* @memberof IBIZAPPEXTENDEDITORUIServiceBase
*/
public stateValue: number = 0;
/**
* 状态属性
*
* @memberof IBIZAPPEXTENDEDITORUIServiceBase
*/
public stateField: string = "";
/**
* 主状态属性集合
*
* @memberof IBIZAPPEXTENDEDITORUIServiceBase
*/
public mainStateFields:Array<any> = [];
/**
* 主状态集合Map
*
* @memberof IBIZAPPEXTENDEDITORUIServiceBase
*/
public allDeMainStateMap:Map<string,string> = new Map();
/**
* 主状态操作标识Map
*
* @memberof IBIZAPPEXTENDEDITORUIServiceBase
*/
public allDeMainStateOPPrivsMap:Map<string,any> = new Map();
/**
* Creates an instance of IBIZAPPEXTENDEDITORUIServiceBase.
*
* @param {*} [opts={}]
* @memberof IBIZAPPEXTENDEDITORUIServiceBase
*/
constructor(opts: any = {}) {
super(opts);
this.authService = new IBIZAPPEXTENDEDITORAuthService(opts);
this.initViewMap();
this.initDeMainStateMap();
this.initDeMainStateOPPrivsMap();
}
/**
* 初始化视图Map
*
* @memberof IBIZAPPEXTENDEDITORUIServiceBase
*/
public initViewMap(){
}
/**
* 初始化主状态集合
*
* @memberof IBIZAPPEXTENDEDITORUIServiceBase
*/
public initDeMainStateMap(){
}
/**
* 初始化主状态操作标识
*
* @memberof IBIZAPPEXTENDEDITORUIServiceBase
*/
public initDeMainStateOPPrivsMap(){
}
/**
* 获取指定数据的重定向页面
*
* @param srfkey 数据主键
* @param isEnableWorkflow 重定向视图是否需要处理流程中的数据
* @memberof IBIZAPPEXTENDEDITORUIServiceBase
*/
public async getRDAppView(srfkey:string,isEnableWorkflow:boolean){
this.isEnableWorkflow = isEnableWorkflow;
// 进行数据查询
let result:any = await this.dataService.Get({ibizappextendeditor: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 IBIZAPPEXTENDEDITORUIServiceBase
*/
public getRealDEType(entity:any){
}
/**
* 获取实体单数据实体视图预定义参数
*
* @param curData 当前数据
* @param bDataInWF 是否有数据在工作流中
* @param bWFMode 是否工作流模式
* @memberof IBIZAPPEXTENDEDITORUIServiceBase
*/
public async getDESDDEViewPDTParam(curData:any, bDataInWF:boolean, bWFMode:boolean){
let strPDTParam:string = '';
if (bDataInWF) {
// 判断数据是否在流程中
}
//多表单,todo
const multiFormDEField:string|null =null;
if (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:${ this.getDEMainStateTag(curData)}`;
}
return 'MOBEDITVIEW:';
}
if(this.getDEMainStateTag(curData)){
return `EDITVIEW:MSTAG:${ this.getDEMainStateTag(curData)}`;
}
return 'EDITVIEW:';
}
/**
* 获取数据对象的主状态标识
*
* @param curData 当前数据
* @memberof IBIZAPPEXTENDEDITORUIServiceBase
*/
public getDEMainStateTag(curData:any){
if(this.mainStateFields.length === 0) return null;
this.mainStateFields.forEach((singleMainField:any) =>{
if(!(singleMainField in curData)){
console.warn(`当前数据对象不包含属性「${singleMainField}」,根据「${singleMainField}」属性进行的主状态计算默认为空值`);
}
})
for (let i = 0; i <= 1; i++) {
let strTag:string = (curData[this.mainStateFields[0]] != null && 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]] != null && 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]] != null && 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;
}
/**
* 获取数据对象当前操作标识
*
* @param data 当前数据
* @memberof IBIZAPPEXTENDEDITORUIServiceBase
*/
public getDEMainStateOPPrivs(data:any){
if(this.getDEMainStateTag(data)){
return this.allDeMainStateOPPrivsMap.get((this.getDEMainStateTag(data) as string));
}else{
return null;
}
}
/**
* 获取数据对象所有的操作标识
*
* @param data 当前数据
* @memberof IBIZAPPEXTENDEDITORUIServiceBase
*/
public getAllOPPrivs(data:any){
return this.authService.getOPPrivs(this.getDEMainStateOPPrivs(data));
}
}
\ No newline at end of file
import IBIZAPPEXTENDEDITORUIServiceBase from './ibizappextendeditor-ui-service-base';
/**
* 扩展编辑器UI服务对象
*
* @export
* @class IBIZAPPEXTENDEDITORUIService
*/
export default class IBIZAPPEXTENDEDITORUIService extends IBIZAPPEXTENDEDITORUIServiceBase {
/**
* Creates an instance of IBIZAPPEXTENDEDITORUIService.
*
* @param {*} [opts={}]
* @memberof IBIZAPPEXTENDEDITORUIService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
......@@ -81,6 +81,7 @@ export class UIServiceRegister {
this.allUIService.set('ibizsample0005', () => import('@/uiservice/ibizsample0005/ibizsample0005-ui-service'));
this.allUIService.set('ibizuniproduct', () => import('@/uiservice/ibizuniproduct/ibizuniproduct-ui-service'));
this.allUIService.set('dynadashboard', () => import('@/uiservice/dynadashboard/dynadashboard-ui-service'));
this.allUIService.set('ibizappextendeditor', () => import('@/uiservice/ibizappextendeditor/ibizappextendeditor-ui-service'));
}
/**
......
......@@ -175,6 +175,10 @@ zuul:
path: /dynadashboards/**
serviceId: ${ibiz.ref.service.demosys-demoapi:demosys-demoapi}
stripPrefix: false
ibizappextendeditor:
path: /ibizappextendeditors/**
serviceId: ${ibiz.ref.service.demosys-demoapi:demosys-demoapi}
stripPrefix: false
wfcore:
path: /wfcore/**
serviceId: ${ibiz.ref.service.wf:ibzwf-api}
......
......@@ -60,7 +60,7 @@
<!--输出实体[IBIZAPPEDITOR]数据结构 -->
<changeSet author="a_LAB01_df847bdfd" id="tab-ibizappeditor-90-3">
<changeSet author="a_LAB01_df847bdfd" id="tab-ibizappeditor-92-3">
<createTable tableName="T_IBIZAPPEDITOR">
<column name="CREATEMAN" remarks="" type="VARCHAR(60)">
</column>
......@@ -88,7 +88,7 @@
<!--输出实体[IBIZAPPEXTENDEDITOR]数据结构 -->
<changeSet author="a_LAB01_df847bdfd" id="tab-ibizappextendeditor-8-4">
<changeSet author="a_LAB01_df847bdfd" id="tab-ibizappextendeditor-17-4">
<createTable tableName="T_IBIZAPPEXTENDEDITOR">
<column name="CREATEMAN" remarks="" type="VARCHAR(60)">
</column>
......@@ -528,7 +528,7 @@
<!--输出实体[IBIZSAMPLE0001]数据结构 -->
<changeSet author="a_LAB01_df847bdfd" id="tab-ibizsample0001-420-19">
<changeSet author="a_LAB01_df847bdfd" id="tab-ibizsample0001-428-19">
<createTable tableName="T_IBIZSAMPLE0001">
<column name="FIELD01" remarks="" type="VARCHAR(100)">
</column>
......@@ -1308,7 +1308,7 @@
<!--输出实体[MICROCOMPONENT]数据结构 -->
<changeSet author="a_LAB01_df847bdfd" id="tab-microcomponent-76-45">
<changeSet author="a_LAB01_df847bdfd" id="tab-microcomponent-77-45">
<createTable tableName="T_MICROCOMPONENT">
<column name="CREATEDATE" remarks="" type="DATETIME">
</column>
......@@ -1425,7 +1425,7 @@
<!--输出实体[IBIZQJ]外键关系 -->
<!--输出实体[IBIZSAMPLE]外键关系 -->
<!--输出实体[IBIZSAMPLE0001]外键关系 -->
<changeSet author="a_LAB01_df847bdfd" id="fk-ibizsample0001-420-46">
<changeSet author="a_LAB01_df847bdfd" id="fk-ibizsample0001-428-46">
<addForeignKeyConstraint baseColumnNames="IBIZSAMPLE0002ID" baseTableName="T_IBIZSAMPLE0001" constraintName="DER1N_IBIZSAMPLE0001_IBIZSAMPL" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="IBIZSAMPLE0002ID" referencedTableName="T_IBIZSAMPLE0002" validate="true"/>
</changeSet>
<!--输出实体[IBIZSAMPLE0002]外键关系 -->
......
......@@ -67,7 +67,7 @@
</createView>
</changeSet>
<!--输出实体[IBIZSAMPLE0001]视图结构信息 runOnChange="true" 当视图发生变更时,通过liquibase强刷prod的视图,实现视图的同步-->
<changeSet author="a_LAB01_df847bdfd" id="view-ibizsample0001-420-13" runOnChange="true">
<changeSet author="a_LAB01_df847bdfd" id="view-ibizsample0001-428-13" runOnChange="true">
<createView fullDefinition="false" replaceIfExists="true" viewName="V_IBIZSAMPLE0001">
<![CDATA[ SELECT t1.[CREATEDATE], t1.[CREATEMAN], t1.[FIELD01], t1.[FIELD02], t1.[FIELD05], t1.[FIELD06], t1.[FIELD07], t1.[FIELD08], t1.[FIELD09], t1.[FIELD10], t1.[FIELD11], t1.[FIELD12], t1.[FIELD13], t1.[FIELD14], t1.[FIELD15], t1.[FIELD16], t1.[FIELD17], t1.[FIELD18], t1.[FIELD19], t1.[FIELD20], t1.[FIELD21], t1.[FIELD22], t1.[FIELD23], t1.[FIELD24], t1.[FIELD25], t1.[FIELD26], t1.[FIELD27], t1.[IBIZSAMPLE0001ID], t1.[IBIZSAMPLE0001NAME], t1.[UPDATEDATE], t1.[UPDATEMAN] FROM [T_IBIZSAMPLE0001] t1 ]]>
</createView>
......
......@@ -33,6 +33,14 @@
"datascope":[{"id":"all","name":"全部数据"}, {"id":"createman","name":"创建人"}]
}
, {
"dename":"IBIZAPPEXTENDEDITOR",
"delogicname":"扩展编辑器",
"sysmoudle":{"id":"SAMPLE","name":"示例"},
"dedataset":[{"id":"Default" , "name":"数据集"}],
"deaction":[{"id":"Create" , "name":"Create" , "type":"BUILTIN" },{"id":"Update" , "name":"Update" , "type":"BUILTIN" },{"id":"Remove" , "name":"Remove" , "type":"BUILTIN" },{"id":"Get" , "name":"Get" , "type":"BUILTIN" },{"id":"GetDraft" , "name":"GetDraft" , "type":"BUILTIN" },{"id":"CheckKey" , "name":"CheckKey" , "type":"BUILTIN" },{"id":"Save" , "name":"Save" , "type":"BUILTIN" }],
"datascope":[{"id":"all","name":"全部数据"}, {"id":"createman","name":"创建人"}]
}
, {
"dename":"IBIZAPPVIEW",
"delogicname":"应用视图",
"sysmoudle":{"id":"SAMPLE","name":"示例"},
......
......@@ -653,6 +653,7 @@
"field_logic_name":"扩展编辑器类型",
"entity_name":"IBIZAPPEXTENDEDITOR",
"field_type":"TEXT",
"dict":"CodeList43",
"nullable":1,
"physical_field":1,
"data_type":"VARCHAR",
......
package cn.ibizlab.demoapi.dto;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.math.BigInteger;
import java.util.Map;
import java.util.HashMap;
import java.io.Serializable;
import java.math.BigDecimal;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.alibaba.fastjson.annotation.JSONField;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import cn.ibizlab.util.domain.DTOBase;
import cn.ibizlab.util.domain.DTOClient;
import lombok.Data;
/**
* 服务DTO对象[IBIZAPPEXTENDEDITORDTO]
*/
@Data
public class IBIZAPPEXTENDEDITORDTO extends DTOBase implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 属性 [CREATEMAN]
*
*/
@JSONField(name = "createman")
@JsonProperty("createman")
@Size(min = 0, max = 60, message = "内容长度必须小于等于[60]")
private String createman;
/**
* 属性 [UPDATEDATE]
*
*/
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", locale = "zh" , timezone="GMT+8")
@JSONField(name = "updatedate" , format="yyyy-MM-dd HH:mm:ss")
@JsonProperty("updatedate")
private Timestamp updatedate;
/**
* 属性 [CREATEDATE]
*
*/
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", locale = "zh" , timezone="GMT+8")
@JSONField(name = "createdate" , format="yyyy-MM-dd HH:mm:ss")
@JsonProperty("createdate")
private Timestamp createdate;
/**
* 属性 [UPDATEMAN]
*
*/
@JSONField(name = "updateman")
@JsonProperty("updateman")
@Size(min = 0, max = 60, message = "内容长度必须小于等于[60]")
private String updateman;
/**
* 属性 [IBIZAPPEXTENDEDITORNAME]
*
*/
@JSONField(name = "ibizappextendeditorname")
@JsonProperty("ibizappextendeditorname")
@Size(min = 0, max = 200, message = "内容长度必须小于等于[200]")
private String ibizappextendeditorname;
/**
* 属性 [IBIZAPPEXTENDEDITORID]
*
*/
@JSONField(name = "ibizappextendeditorid")
@JsonProperty("ibizappextendeditorid")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
private String ibizappextendeditorid;
/**
* 属性 [EXTENSIONFLAG]
*
*/
@JSONField(name = "extensionflag")
@JsonProperty("extensionflag")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
private String extensionflag;
/**
* 属性 [DOCUMENTADDRESS]
*
*/
@JSONField(name = "documentaddress")
@JsonProperty("documentaddress")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
private String documentaddress;
/**
* 属性 [EXTENDEDITORDESCRIPTION]
*
*/
@JSONField(name = "extendeditordescription")
@JsonProperty("extendeditordescription")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
private String extendeditordescription;
/**
* 属性 [AMOUNT]
*
*/
@JSONField(name = "amount")
@JsonProperty("amount")
private Integer amount;
/**
* 属性 [EXTENDEDITORTYPE]
*
*/
@JSONField(name = "extendeditortype")
@JsonProperty("extendeditortype")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
private String extendeditortype;
/**
* 设置 [IBIZAPPEXTENDEDITORNAME]
*/
public void setIbizappextendeditorname(String ibizappextendeditorname){
this.ibizappextendeditorname = ibizappextendeditorname ;
this.modify("ibizappextendeditorname",ibizappextendeditorname);
}
/**
* 设置 [EXTENSIONFLAG]
*/
public void setExtensionflag(String extensionflag){
this.extensionflag = extensionflag ;
this.modify("extensionflag",extensionflag);
}
/**
* 设置 [DOCUMENTADDRESS]
*/
public void setDocumentaddress(String documentaddress){
this.documentaddress = documentaddress ;
this.modify("documentaddress",documentaddress);
}
/**
* 设置 [EXTENDEDITORDESCRIPTION]
*/
public void setExtendeditordescription(String extendeditordescription){
this.extendeditordescription = extendeditordescription ;
this.modify("extendeditordescription",extendeditordescription);
}
/**
* 设置 [AMOUNT]
*/
public void setAmount(Integer amount){
this.amount = amount ;
this.modify("amount",amount);
}
/**
* 设置 [EXTENDEDITORTYPE]
*/
public void setExtendeditortype(String extendeditortype){
this.extendeditortype = extendeditortype ;
this.modify("extendeditortype",extendeditortype);
}
}
package cn.ibizlab.demoapi.mapping;
import org.mapstruct.*;
import cn.ibizlab.core.sample.domain.IBIZAPPEXTENDEDITOR;
import cn.ibizlab.demoapi.dto.IBIZAPPEXTENDEDITORDTO;
import cn.ibizlab.util.domain.MappingBase;
@Mapper(componentModel = "spring", uses = {}, implementationName = "DemoAPIIBIZAPPEXTENDEDITORMapping",
nullValuePropertyMappingStrategy = NullValuePropertyMappingStrategy.IGNORE,
nullValueCheckStrategy = NullValueCheckStrategy.ALWAYS)
public interface IBIZAPPEXTENDEDITORMapping extends MappingBase<IBIZAPPEXTENDEDITORDTO, IBIZAPPEXTENDEDITOR> {
}
......@@ -836,7 +836,12 @@ public class StaticDict {
*/
@Getter
public enum CodeList43 {
HTMLEDITOR("HTMLeditor","HTML编辑器"),
DROPLIST("droplist","下拉列表框"),
PICTURECONTROL("picturecontrol","图片控件"),
TEXTAREA("textarea","多行输入框"),
PICKER("picker","数据选择"),
FILEUPLOAD("fileupload","文件上传控件"),
TEXTBOX("textbox","文本框"),
LABEL("label","标签");
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册