提交 01d820b9 编写于 作者: ibizdev's avatar ibizdev

zhouweidong 发布系统代码 [ibiz-rt,ibizlab-runtime]

上级 d2c0c3bd
......@@ -51,51 +51,60 @@
]
},
{
"srfkey": "UaaOpenAccessType",
"srfkey": "DynamicModelStatus",
"emptytext": "未定义",
"codelisttype":"static",
"items": [
{
"id": "aliyun",
"label": "阿里云",
"text": "阿里云",
"id": "0",
"label": "未激活",
"text": "未激活",
"class":"",
"data":"",
"codename":"Aliyun",
"value": "aliyun",
"codename":"Item_0",
"color": "rgba(245, 158, 18, 1)",
"value": "0",
"disabled": false
}
, {
"id": "wechat",
"label": "微信开放平台",
"text": "微信开放平台",
"id": "1",
"label": "已激活",
"text": "已激活",
"class":"",
"data":"",
"codename":"Wechat",
"value": "wechat",
"codename":"Item_1",
"color": "rgba(100, 235, 22, 1)",
"value": "1",
"disabled": false
}
, {
"id": "qq",
"label": "QQ互联",
"text": "QQ互联",
]
},
{
"srfkey": "YesNo",
"emptytext": "未定义",
"codelisttype":"static",
"items": [
{
"id": "1",
"label": "是",
"text": "是",
"class":"",
"data":"",
"codename":"Qq",
"value": "qq",
"codename":"Item_1",
"value": "1",
"disabled": false
}
, {
"id": "dingtalk",
"label": "钉钉开放平台",
"text": "钉钉开放平台",
"id": "0",
"label": "",
"text": "",
"class":"",
"data":"",
"codename":"Dingtalk",
"value": "dingtalk",
"codename":"Item_0",
"value": "0",
"disabled": false
}
......@@ -152,35 +161,6 @@
}
]
},
{
"srfkey": "YesNo",
"emptytext": "未定义",
"codelisttype":"static",
"items": [
{
"id": "1",
"label": "是",
"text": "是",
"class":"",
"data":"",
"codename":"Item_1",
"value": "1",
"disabled": false
}
, {
"id": "0",
"label": "否",
"text": "否",
"class":"",
"data":"",
"codename":"Item_0",
"value": "0",
"disabled": false
}
]
},
{
"srfkey": "CLIBZSex",
"emptytext": "",
......@@ -252,57 +232,6 @@
}
]
},
{
"srfkey": "NotifyOpenAccessType",
"emptytext": "未定义",
"codelisttype":"static",
"items": [
{
"id": "aliyun",
"label": "阿里云",
"text": "阿里云",
"class":"",
"data":"",
"codename":"Aliyun",
"value": "aliyun",
"disabled": false
}
, {
"id": "wechat",
"label": "微信开放平台",
"text": "微信开放平台",
"class":"",
"data":"",
"codename":"Wechat",
"value": "wechat",
"disabled": false
}
, {
"id": "qq",
"label": "QQ互联",
"text": "QQ互联",
"class":"",
"data":"",
"codename":"Qq",
"value": "qq",
"disabled": false
}
, {
"id": "dingtalk",
"label": "钉钉开放平台",
"text": "钉钉开放平台",
"class":"",
"data":"",
"codename":"Dingtalk",
"value": "dingtalk",
"disabled": false
}
]
},
{
"srfkey": "CLAuthCode",
"emptytext": "未定义",
......@@ -393,6 +322,108 @@
"codename":"Third_SUB_party",
"value": "THIRD-PARTY",
"disabled": false
}
]
},
{
"srfkey": "NotifyOpenAccessType",
"emptytext": "未定义",
"codelisttype":"static",
"items": [
{
"id": "aliyun",
"label": "阿里云",
"text": "阿里云",
"class":"",
"data":"",
"codename":"Aliyun",
"value": "aliyun",
"disabled": false
}
, {
"id": "wechat",
"label": "微信开放平台",
"text": "微信开放平台",
"class":"",
"data":"",
"codename":"Wechat",
"value": "wechat",
"disabled": false
}
, {
"id": "qq",
"label": "QQ互联",
"text": "QQ互联",
"class":"",
"data":"",
"codename":"Qq",
"value": "qq",
"disabled": false
}
, {
"id": "dingtalk",
"label": "钉钉开放平台",
"text": "钉钉开放平台",
"class":"",
"data":"",
"codename":"Dingtalk",
"value": "dingtalk",
"disabled": false
}
]
},
{
"srfkey": "UaaOpenAccessType",
"emptytext": "未定义",
"codelisttype":"static",
"items": [
{
"id": "aliyun",
"label": "阿里云",
"text": "阿里云",
"class":"",
"data":"",
"codename":"Aliyun",
"value": "aliyun",
"disabled": false
}
, {
"id": "wechat",
"label": "微信开放平台",
"text": "微信开放平台",
"class":"",
"data":"",
"codename":"Wechat",
"value": "wechat",
"disabled": false
}
, {
"id": "qq",
"label": "QQ互联",
"text": "QQ互联",
"class":"",
"data":"",
"codename":"Qq",
"value": "qq",
"disabled": false
}
, {
"id": "dingtalk",
"label": "钉钉开放平台",
"text": "钉钉开放平台",
"class":"",
"data":"",
"codename":"Dingtalk",
"value": "dingtalk",
"disabled": false
}
]
......
......@@ -495,6 +495,14 @@
"viewname": "SysOrganizationOptionView",
"viewtag": "915900ff6a784bf46e91a9a6aec79cf0"
},
"meta_dynamicmodeldynainsteditview": {
"title": "动态模型编辑视图",
"caption": "动态模型",
"viewtype": "DEEDITVIEW",
"viewmodule": "disk",
"viewname": "META_DYNAMICMODELDynaInstEditView",
"viewtag": "92d51d41db51a671793ee8dc8876f9e9"
},
"syspermissionpickupgridview": {
"title": "权限表选择表格视图",
"caption": "权限/资源",
......@@ -575,6 +583,14 @@
"viewname": "SysEmployeeMPickupView",
"viewtag": "af7290279f8b7645020401c1beb9269e"
},
"meta_dynamicmodelgridview": {
"title": "动态模型",
"caption": "动态模型",
"viewtype": "DEGRIDVIEW",
"viewmodule": "disk",
"viewname": "META_DYNAMICMODELGridView",
"viewtag": "af9cfc34d957186380a012e322abff0c"
},
"wfgrouppickupview": {
"title": "角色/用户组数据选择视图",
"caption": "角色/用户组",
......@@ -655,6 +671,14 @@
"viewname": "WFUserPickupGridView",
"viewtag": "c9c73c8d2e61bd29a304622f3d39b522"
},
"meta_dynamicmodeldynainstgridview": {
"title": "动态模型表格视图",
"caption": "动态模型表格视图",
"viewtype": "DEGRIDVIEW",
"viewmodule": "disk",
"viewname": "META_DYNAMICMODELDynaInstGridView",
"viewtag": "cec3236f5a1f742f9b91f313506ccc6c"
},
"sysdepartmentpickupview": {
"title": "部门选择视图",
"caption": "部门",
......
......@@ -48,6 +48,7 @@ export class AuthServiceRegister {
this.allAuthService.set('syspost', () => import('@/authservice/sys-post/sys-post-auth-service'));
this.allAuthService.set('sysuserauth', () => import('@/authservice/sys-user-auth/sys-user-auth-auth-service'));
this.allAuthService.set('sysdepartment', () => import('@/authservice/sys-department/sys-department-auth-service'));
this.allAuthService.set('meta_dynamicmodel', () => import('@/authservice/meta-dynamicmodel/meta-dynamicmodel-auth-service'));
this.allAuthService.set('sysemployee', () => import('@/authservice/sys-employee/sys-employee-auth-service'));
this.allAuthService.set('paytrade', () => import('@/authservice/pay-trade/pay-trade-auth-service'));
this.allAuthService.set('msgtemplate', () => import('@/authservice/msg-template/msg-template-auth-service'));
......
import AuthService from '../auth-service';
/**
* 动态模型权限服务对象基类
*
* @export
* @class META_DYNAMICMODELAuthServiceBase
* @extends {AuthService}
*/
export default class META_DYNAMICMODELAuthServiceBase extends AuthService {
/**
* Creates an instance of META_DYNAMICMODELAuthServiceBase.
*
* @param {*} [opts={}]
* @memberof META_DYNAMICMODELAuthServiceBase
*/
constructor(opts: any = {}) {
super(opts);
}
/**
* 根据当前数据获取实体操作标识
*
* @param {*} mainSateOPPrivs 传入数据操作标识
* @returns {any}
* @memberof META_DYNAMICMODELAuthServiceBase
*/
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 META_DYNAMICMODELAuthServiceBase from './meta-dynamicmodel-auth-service-base';
/**
* 动态模型权限服务对象
*
* @export
* @class META_DYNAMICMODELAuthService
* @extends {META_DYNAMICMODELAuthServiceBase}
*/
export default class META_DYNAMICMODELAuthService extends META_DYNAMICMODELAuthServiceBase {
/**
* Creates an instance of META_DYNAMICMODELAuthService.
*
* @param {*} [opts={}]
* @memberof META_DYNAMICMODELAuthService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
......@@ -7,6 +7,7 @@ import wfmember_BO_CN from '@locale/lanres/entities/wfmember/wfmember_BO_CN';
import syspost_BO_CN from '@locale/lanres/entities/sys-post/sys-post_BO_CN';
import sysuserauth_BO_CN from '@locale/lanres/entities/sys-user-auth/sys-user-auth_BO_CN';
import sysdepartment_BO_CN from '@locale/lanres/entities/sys-department/sys-department_BO_CN';
import meta_dynamicmodel_BO_CN from '@locale/lanres/entities/meta-dynamicmodel/meta-dynamicmodel_BO_CN';
import sysemployee_BO_CN from '@locale/lanres/entities/sys-employee/sys-employee_BO_CN';
import paytrade_BO_CN from '@locale/lanres/entities/pay-trade/pay-trade_BO_CN';
import msgtemplate_BO_CN from '@locale/lanres/entities/msg-template/msg-template_BO_CN';
......@@ -187,6 +188,8 @@ function getAppLocale(){
menuitem28: commonLogic.appcommonhandle("支付管理",null),
menuitem29: commonLogic.appcommonhandle("支付交易",null),
menuitem30: commonLogic.appcommonhandle("支付平台",null),
menuitem31: commonLogic.appcommonhandle("存储管理",null),
menuitem32: commonLogic.appcommonhandle("动态模型",null),
},
},
formpage:{
......@@ -290,6 +293,7 @@ function getAppLocale(){
syspost: syspost_BO_CN(),
sysuserauth: sysuserauth_BO_CN(),
sysdepartment: sysdepartment_BO_CN(),
meta_dynamicmodel: meta_dynamicmodel_BO_CN(),
sysemployee: sysemployee_BO_CN(),
paytrade: paytrade_BO_CN(),
msgtemplate: msgtemplate_BO_CN(),
......
......@@ -7,6 +7,7 @@ import wfmember_en_US from '@locale/lanres/entities/wfmember/wfmember_en_US';
import syspost_en_US from '@locale/lanres/entities/sys-post/sys-post_en_US';
import sysuserauth_en_US from '@locale/lanres/entities/sys-user-auth/sys-user-auth_en_US';
import sysdepartment_en_US from '@locale/lanres/entities/sys-department/sys-department_en_US';
import meta_dynamicmodel_en_US from '@locale/lanres/entities/meta-dynamicmodel/meta-dynamicmodel_en_US';
import sysemployee_en_US from '@locale/lanres/entities/sys-employee/sys-employee_en_US';
import paytrade_en_US from '@locale/lanres/entities/pay-trade/pay-trade_en_US';
import msgtemplate_en_US from '@locale/lanres/entities/msg-template/msg-template_en_US';
......@@ -187,6 +188,8 @@ function getAppLocale(){
menuitem28: commonLogic.appcommonhandle("支付管理",null),
menuitem29: commonLogic.appcommonhandle("支付交易",null),
menuitem30: commonLogic.appcommonhandle("支付平台",null),
menuitem31: commonLogic.appcommonhandle("存储管理",null),
menuitem32: commonLogic.appcommonhandle("动态模型",null),
},
},
formpage:{
......@@ -291,6 +294,7 @@ function getAppLocale(){
syspost: syspost_en_US(),
sysuserauth: sysuserauth_en_US(),
sysdepartment: sysdepartment_en_US(),
meta_dynamicmodel: meta_dynamicmodel_en_US(),
sysemployee: sysemployee_en_US(),
paytrade: paytrade_en_US(),
msgtemplate: msgtemplate_en_US(),
......
......@@ -7,6 +7,7 @@ import wfmember_zh_CN from '@locale/lanres/entities/wfmember/wfmember_zh_CN';
import syspost_zh_CN from '@locale/lanres/entities/sys-post/sys-post_zh_CN';
import sysuserauth_zh_CN from '@locale/lanres/entities/sys-user-auth/sys-user-auth_zh_CN';
import sysdepartment_zh_CN from '@locale/lanres/entities/sys-department/sys-department_zh_CN';
import meta_dynamicmodel_zh_CN from '@locale/lanres/entities/meta-dynamicmodel/meta-dynamicmodel_zh_CN';
import sysemployee_zh_CN from '@locale/lanres/entities/sys-employee/sys-employee_zh_CN';
import paytrade_zh_CN from '@locale/lanres/entities/pay-trade/pay-trade_zh_CN';
import msgtemplate_zh_CN from '@locale/lanres/entities/msg-template/msg-template_zh_CN';
......@@ -187,6 +188,8 @@ function getAppLocale(){
menuitem28: commonLogic.appcommonhandle("支付管理",null),
menuitem29: commonLogic.appcommonhandle("支付交易",null),
menuitem30: commonLogic.appcommonhandle("支付平台",null),
menuitem31: commonLogic.appcommonhandle("存储管理",null),
menuitem32: commonLogic.appcommonhandle("动态模型",null),
},
},
formpage:{
......@@ -290,6 +293,7 @@ function getAppLocale(){
syspost: syspost_zh_CN(),
sysuserauth: sysuserauth_zh_CN(),
sysdepartment: sysdepartment_zh_CN(),
meta_dynamicmodel: meta_dynamicmodel_zh_CN(),
sysemployee: sysemployee_zh_CN(),
paytrade: paytrade_zh_CN(),
msgtemplate: msgtemplate_zh_CN(),
......
......@@ -9,11 +9,14 @@ function getLocaleResourceBase(){
"dingtalk-msg": commonLogic.appcommonhandle("钉钉通知",null),
"empty": commonLogic.appcommonhandle("",null)
},
UaaOpenAccessType: {
"aliyun": commonLogic.appcommonhandle("阿里云",null),
"wechat": commonLogic.appcommonhandle("微信开放平台",null),
"qq": commonLogic.appcommonhandle("QQ互联",null),
"dingtalk": commonLogic.appcommonhandle("钉钉开放平台",null),
DynamicModelStatus: {
"0": commonLogic.appcommonhandle("未激活",null),
"1": commonLogic.appcommonhandle("已激活",null),
"empty": commonLogic.appcommonhandle("",null)
},
YesNo: {
"1": commonLogic.appcommonhandle("是",null),
"0": commonLogic.appcommonhandle("否",null),
"empty": commonLogic.appcommonhandle("",null)
},
PayOpenAccessType: {
......@@ -23,11 +26,6 @@ function getLocaleResourceBase(){
"dingtalk": commonLogic.appcommonhandle("钉钉开放平台",null),
"empty": commonLogic.appcommonhandle("",null)
},
YesNo: {
"1": commonLogic.appcommonhandle("是",null),
"0": commonLogic.appcommonhandle("否",null),
"empty": commonLogic.appcommonhandle("",null)
},
CLIBZSex: {
"男": commonLogic.appcommonhandle("男性",null),
"女": commonLogic.appcommonhandle("女性",null),
......@@ -39,13 +37,6 @@ function getLocaleResourceBase(){
"1": commonLogic.appcommonhandle("DISABLED",null),
"empty": commonLogic.appcommonhandle("",null)
},
NotifyOpenAccessType: {
"aliyun": commonLogic.appcommonhandle("阿里云",null),
"wechat": commonLogic.appcommonhandle("微信开放平台",null),
"qq": commonLogic.appcommonhandle("QQ互联",null),
"dingtalk": commonLogic.appcommonhandle("钉钉开放平台",null),
"empty": commonLogic.appcommonhandle("",null)
},
CLAuthCode: {
"200": commonLogic.appcommonhandle("成功",null),
"400": commonLogic.appcommonhandle("用户不存在",null),
......@@ -59,6 +50,20 @@ function getLocaleResourceBase(){
"THIRD-PARTY": commonLogic.appcommonhandle("第三方应用",null),
"empty": commonLogic.appcommonhandle("",null)
},
NotifyOpenAccessType: {
"aliyun": commonLogic.appcommonhandle("阿里云",null),
"wechat": commonLogic.appcommonhandle("微信开放平台",null),
"qq": commonLogic.appcommonhandle("QQ互联",null),
"dingtalk": commonLogic.appcommonhandle("钉钉开放平台",null),
"empty": commonLogic.appcommonhandle("",null)
},
UaaOpenAccessType: {
"aliyun": commonLogic.appcommonhandle("阿里云",null),
"wechat": commonLogic.appcommonhandle("微信开放平台",null),
"qq": commonLogic.appcommonhandle("QQ互联",null),
"dingtalk": commonLogic.appcommonhandle("钉钉开放平台",null),
"empty": commonLogic.appcommonhandle("",null)
},
};
return data;
}
......
......@@ -9,11 +9,14 @@ function getLocaleResourceBase(){
"dingtalk-msg": commonLogic.appcommonhandle("钉钉通知",null),
"empty": commonLogic.appcommonhandle("",null)
},
UaaOpenAccessType: {
"aliyun": commonLogic.appcommonhandle("阿里云",null),
"wechat": commonLogic.appcommonhandle("微信开放平台",null),
"qq": commonLogic.appcommonhandle("QQ互联",null),
"dingtalk": commonLogic.appcommonhandle("钉钉开放平台",null),
DynamicModelStatus: {
"0": commonLogic.appcommonhandle("未激活",null),
"1": commonLogic.appcommonhandle("已激活",null),
"empty": commonLogic.appcommonhandle("",null)
},
YesNo: {
"1": commonLogic.appcommonhandle("是",null),
"0": commonLogic.appcommonhandle("否",null),
"empty": commonLogic.appcommonhandle("",null)
},
PayOpenAccessType: {
......@@ -23,11 +26,6 @@ function getLocaleResourceBase(){
"dingtalk": commonLogic.appcommonhandle("钉钉开放平台",null),
"empty": commonLogic.appcommonhandle("",null)
},
YesNo: {
"1": commonLogic.appcommonhandle("是",null),
"0": commonLogic.appcommonhandle("否",null),
"empty": commonLogic.appcommonhandle("",null)
},
CLIBZSex: {
"男": commonLogic.appcommonhandle("男性",null),
"女": commonLogic.appcommonhandle("女性",null),
......@@ -39,13 +37,6 @@ function getLocaleResourceBase(){
"1": commonLogic.appcommonhandle("DISABLED",null),
"empty": commonLogic.appcommonhandle("",null)
},
NotifyOpenAccessType: {
"aliyun": commonLogic.appcommonhandle("阿里云",null),
"wechat": commonLogic.appcommonhandle("微信开放平台",null),
"qq": commonLogic.appcommonhandle("QQ互联",null),
"dingtalk": commonLogic.appcommonhandle("钉钉开放平台",null),
"empty": commonLogic.appcommonhandle("",null)
},
CLAuthCode: {
"200": commonLogic.appcommonhandle("成功",null),
"400": commonLogic.appcommonhandle("用户不存在",null),
......@@ -59,6 +50,20 @@ function getLocaleResourceBase(){
"THIRD-PARTY": commonLogic.appcommonhandle("第三方应用",null),
"empty": commonLogic.appcommonhandle("",null)
},
NotifyOpenAccessType: {
"aliyun": commonLogic.appcommonhandle("阿里云",null),
"wechat": commonLogic.appcommonhandle("微信开放平台",null),
"qq": commonLogic.appcommonhandle("QQ互联",null),
"dingtalk": commonLogic.appcommonhandle("钉钉开放平台",null),
"empty": commonLogic.appcommonhandle("",null)
},
UaaOpenAccessType: {
"aliyun": commonLogic.appcommonhandle("阿里云",null),
"wechat": commonLogic.appcommonhandle("微信开放平台",null),
"qq": commonLogic.appcommonhandle("QQ互联",null),
"dingtalk": commonLogic.appcommonhandle("钉钉开放平台",null),
"empty": commonLogic.appcommonhandle("",null)
},
};
return data;
}
......
......@@ -9,11 +9,14 @@ function getLocaleResourceBase(){
"dingtalk-msg": commonLogic.appcommonhandle("钉钉通知",null),
"empty": commonLogic.appcommonhandle("",null),
},
UaaOpenAccessType: {
"aliyun": commonLogic.appcommonhandle("阿里云",null),
"wechat": commonLogic.appcommonhandle("微信开放平台",null),
"qq": commonLogic.appcommonhandle("QQ互联",null),
"dingtalk": commonLogic.appcommonhandle("钉钉开放平台",null),
DynamicModelStatus: {
"0": commonLogic.appcommonhandle("未激活",null),
"1": commonLogic.appcommonhandle("已激活",null),
"empty": commonLogic.appcommonhandle("",null),
},
YesNo: {
"1": commonLogic.appcommonhandle("是",null),
"0": commonLogic.appcommonhandle("否",null),
"empty": commonLogic.appcommonhandle("",null),
},
PayOpenAccessType: {
......@@ -23,11 +26,6 @@ function getLocaleResourceBase(){
"dingtalk": commonLogic.appcommonhandle("钉钉开放平台",null),
"empty": commonLogic.appcommonhandle("",null),
},
YesNo: {
"1": commonLogic.appcommonhandle("是",null),
"0": commonLogic.appcommonhandle("否",null),
"empty": commonLogic.appcommonhandle("",null),
},
CLIBZSex: {
"男": commonLogic.appcommonhandle("男性",null),
"女": commonLogic.appcommonhandle("女性",null),
......@@ -39,13 +37,6 @@ function getLocaleResourceBase(){
"1": commonLogic.appcommonhandle("DISABLED",null),
"empty": commonLogic.appcommonhandle("",null),
},
NotifyOpenAccessType: {
"aliyun": commonLogic.appcommonhandle("阿里云",null),
"wechat": commonLogic.appcommonhandle("微信开放平台",null),
"qq": commonLogic.appcommonhandle("QQ互联",null),
"dingtalk": commonLogic.appcommonhandle("钉钉开放平台",null),
"empty": commonLogic.appcommonhandle("",null),
},
CLAuthCode: {
"200": commonLogic.appcommonhandle("成功",null),
"400": commonLogic.appcommonhandle("用户不存在",null),
......@@ -59,6 +50,20 @@ function getLocaleResourceBase(){
"THIRD-PARTY": commonLogic.appcommonhandle("第三方应用",null),
"empty": commonLogic.appcommonhandle("",null),
},
NotifyOpenAccessType: {
"aliyun": commonLogic.appcommonhandle("阿里云",null),
"wechat": commonLogic.appcommonhandle("微信开放平台",null),
"qq": commonLogic.appcommonhandle("QQ互联",null),
"dingtalk": commonLogic.appcommonhandle("钉钉开放平台",null),
"empty": commonLogic.appcommonhandle("",null),
},
UaaOpenAccessType: {
"aliyun": commonLogic.appcommonhandle("阿里云",null),
"wechat": commonLogic.appcommonhandle("微信开放平台",null),
"qq": commonLogic.appcommonhandle("QQ互联",null),
"dingtalk": commonLogic.appcommonhandle("钉钉开放平台",null),
"empty": commonLogic.appcommonhandle("",null),
},
};
return data;
}
......
import META_DYNAMICMODEL_BO_CN_Base from './meta-dynamicmodel_BO_CN_base';
function getLocaleResource(){
const META_DYNAMICMODEL_BO_CN_OwnData = {};
const targetData = Object.assign(META_DYNAMICMODEL_BO_CN_Base(), META_DYNAMICMODEL_BO_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: {
dynainstid: commonLogic.appcommonhandle("动态实例",null),
system_id: commonLogic.appcommonhandle("系统",null),
configid: commonLogic.appcommonhandle("配置标识",null),
configname: commonLogic.appcommonhandle("配置名称",null),
pdynainstid: commonLogic.appcommonhandle("父实例",null),
modelfile: commonLogic.appcommonhandle("文件",null),
status: commonLogic.appcommonhandle("状态",null),
},
views: {
dynainsteditview: {
caption: commonLogic.appcommonhandle("动态模型",null),
title: commonLogic.appcommonhandle("动态模型编辑视图",null),
},
gridview: {
caption: commonLogic.appcommonhandle("动态模型",null),
title: commonLogic.appcommonhandle("动态模型",null),
},
dynainstgridview: {
caption: commonLogic.appcommonhandle("动态模型表格视图",null),
title: commonLogic.appcommonhandle("动态模型表格视图",null),
},
},
dynainst_form: {
details: {
druipart1: commonLogic.appcommonhandle("副本",null),
tabpage1: commonLogic.appcommonhandle("副本",null),
tabpanel1: commonLogic.appcommonhandle("",null),
group1: commonLogic.appcommonhandle("动态模型基本信息",null),
formpage1: 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),
configname: commonLogic.appcommonhandle("配置名称",null),
formitem: commonLogic.appcommonhandle("文件",null),
systemid: commonLogic.appcommonhandle("系统",null),
configid: commonLogic.appcommonhandle("配置标识",null),
},
uiactions: {
},
},
main_grid: {
columns: {
configname: commonLogic.appcommonhandle("配置名称",null),
systemid: commonLogic.appcommonhandle("系统",null),
dynainstid: commonLogic.appcommonhandle("动态实例",null),
status: commonLogic.appcommonhandle("状态",null),
},
nodata:commonLogic.appcommonhandle("",null),
uiactions: {
},
},
default_searchform: {
details: {
formpage1: commonLogic.appcommonhandle("常规条件",null),
},
uiactions: {
},
},
dynainsteditviewtoolbar_toolbar: {
tbitem3: {
caption: commonLogic.appcommonhandle("保存",null),
tip: commonLogic.appcommonhandle("保存",null),
},
deuiaction1: {
caption: commonLogic.appcommonhandle("保存并关闭",null),
tip: commonLogic.appcommonhandle("保存并关闭",null),
},
deuiaction2: {
caption: commonLogic.appcommonhandle("关闭",null),
tip: commonLogic.appcommonhandle("关闭",null),
},
tbitem6: {
caption: commonLogic.appcommonhandle("-",null),
tip: commonLogic.appcommonhandle("",null),
},
tbitem14: {
caption: commonLogic.appcommonhandle("拷贝",null),
tip: commonLogic.appcommonhandle("拷贝",null),
},
},
gridviewtoolbar_toolbar: {
tbitem1_publish: {
caption: commonLogic.appcommonhandle("发布模型",null),
tip: commonLogic.appcommonhandle("发布模型",null),
},
tbitem2: {
caption: commonLogic.appcommonhandle("-",null),
tip: commonLogic.appcommonhandle("",null),
},
tbitem3: {
caption: commonLogic.appcommonhandle("新建",null),
tip: commonLogic.appcommonhandle("新建",null),
},
tbitem4: {
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),
},
tbitem17: {
caption: commonLogic.appcommonhandle("-",null),
tip: commonLogic.appcommonhandle("",null),
},
tbitem19: {
caption: commonLogic.appcommonhandle("过滤",null),
tip: commonLogic.appcommonhandle("过滤",null),
},
},
dynainstgridviewtoolbar_toolbar: {
tbitem1_publish: {
caption: commonLogic.appcommonhandle("发布模型",null),
tip: commonLogic.appcommonhandle("发布模型",null),
},
tbitem2: {
caption: commonLogic.appcommonhandle("-",null),
tip: commonLogic.appcommonhandle("",null),
},
tbitem3: {
caption: commonLogic.appcommonhandle("新建",null),
tip: commonLogic.appcommonhandle("新建",null),
},
tbitem4: {
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),
},
tbitem17: {
caption: commonLogic.appcommonhandle("-",null),
tip: commonLogic.appcommonhandle("",null),
},
tbitem19: {
caption: commonLogic.appcommonhandle("过滤",null),
tip: commonLogic.appcommonhandle("过滤",null),
},
},
};
return data;
}
export default getLocaleResourceBase;
\ No newline at end of file
import META_DYNAMICMODEL_en_US_Base from './meta-dynamicmodel_en_US_base';
function getLocaleResource(){
const META_DYNAMICMODEL_en_US_OwnData = {};
const targetData = Object.assign(META_DYNAMICMODEL_en_US_Base(), META_DYNAMICMODEL_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: {
dynainstid: commonLogic.appcommonhandle("动态实例",null),
system_id: commonLogic.appcommonhandle("系统",null),
configid: commonLogic.appcommonhandle("配置标识",null),
configname: commonLogic.appcommonhandle("配置名称",null),
pdynainstid: commonLogic.appcommonhandle("父实例",null),
modelfile: commonLogic.appcommonhandle("文件",null),
status: commonLogic.appcommonhandle("状态",null),
},
views: {
dynainsteditview: {
caption: commonLogic.appcommonhandle("动态模型",null),
title: commonLogic.appcommonhandle("动态模型编辑视图",null),
},
gridview: {
caption: commonLogic.appcommonhandle("动态模型",null),
title: commonLogic.appcommonhandle("动态模型",null),
},
dynainstgridview: {
caption: commonLogic.appcommonhandle("动态模型表格视图",null),
title: commonLogic.appcommonhandle("动态模型表格视图",null),
},
},
dynainst_form: {
details: {
druipart1: commonLogic.appcommonhandle("副本",null),
tabpage1: commonLogic.appcommonhandle("副本",null),
tabpanel1: commonLogic.appcommonhandle("",null),
group1: commonLogic.appcommonhandle("动态模型基本信息",null),
formpage1: 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),
configname: commonLogic.appcommonhandle("配置名称",null),
formitem: commonLogic.appcommonhandle("文件",null),
systemid: commonLogic.appcommonhandle("系统",null),
configid: commonLogic.appcommonhandle("配置标识",null),
},
uiactions: {
},
},
main_grid: {
columns: {
configname: commonLogic.appcommonhandle("配置名称",null),
systemid: commonLogic.appcommonhandle("系统",null),
dynainstid: commonLogic.appcommonhandle("动态实例",null),
status: commonLogic.appcommonhandle("状态",null),
},
nodata:commonLogic.appcommonhandle("",null),
uiactions: {
},
},
default_searchform: {
details: {
formpage1: commonLogic.appcommonhandle("常规条件",null),
},
uiactions: {
},
},
dynainsteditviewtoolbar_toolbar: {
tbitem3: {
caption: commonLogic.appcommonhandle("Save",null),
tip: commonLogic.appcommonhandle("Save",null),
},
deuiaction1: {
caption: commonLogic.appcommonhandle("Save And Close",null),
tip: commonLogic.appcommonhandle("Save And Close Window",null),
},
deuiaction2: {
caption: commonLogic.appcommonhandle("关闭",null),
tip: commonLogic.appcommonhandle("关闭",null),
},
tbitem6: {
caption: commonLogic.appcommonhandle("-",null),
tip: commonLogic.appcommonhandle("",null),
},
tbitem14: {
caption: commonLogic.appcommonhandle("Copy",null),
tip: commonLogic.appcommonhandle("Copy {0}",null),
},
},
gridviewtoolbar_toolbar: {
tbitem1_publish: {
caption: commonLogic.appcommonhandle("发布模型",null),
tip: commonLogic.appcommonhandle("发布模型",null),
},
tbitem2: {
caption: commonLogic.appcommonhandle("-",null),
tip: commonLogic.appcommonhandle("",null),
},
tbitem3: {
caption: commonLogic.appcommonhandle("New",null),
tip: commonLogic.appcommonhandle("New",null),
},
tbitem4: {
caption: commonLogic.appcommonhandle("Edit",null),
tip: commonLogic.appcommonhandle("Edit {0}",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),
},
tbitem17: {
caption: commonLogic.appcommonhandle("-",null),
tip: commonLogic.appcommonhandle("",null),
},
tbitem19: {
caption: commonLogic.appcommonhandle("Filter",null),
tip: commonLogic.appcommonhandle("Filter",null),
},
},
dynainstgridviewtoolbar_toolbar: {
tbitem1_publish: {
caption: commonLogic.appcommonhandle("发布模型",null),
tip: commonLogic.appcommonhandle("发布模型",null),
},
tbitem2: {
caption: commonLogic.appcommonhandle("-",null),
tip: commonLogic.appcommonhandle("",null),
},
tbitem3: {
caption: commonLogic.appcommonhandle("New",null),
tip: commonLogic.appcommonhandle("New",null),
},
tbitem4: {
caption: commonLogic.appcommonhandle("Edit",null),
tip: commonLogic.appcommonhandle("Edit {0}",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),
},
tbitem17: {
caption: commonLogic.appcommonhandle("-",null),
tip: commonLogic.appcommonhandle("",null),
},
tbitem19: {
caption: commonLogic.appcommonhandle("Filter",null),
tip: commonLogic.appcommonhandle("Filter",null),
},
},
};
return data;
}
export default getLocaleResourceBase;
\ No newline at end of file
import META_DYNAMICMODEL_zh_CN_Base from './meta-dynamicmodel_zh_CN_base';
function getLocaleResource(){
const META_DYNAMICMODEL_zh_CN_OwnData = {};
const targetData = Object.assign(META_DYNAMICMODEL_zh_CN_Base(), META_DYNAMICMODEL_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: {
dynainstid: commonLogic.appcommonhandle("动态实例",null),
system_id: commonLogic.appcommonhandle("系统",null),
configid: commonLogic.appcommonhandle("配置标识",null),
configname: commonLogic.appcommonhandle("配置名称",null),
pdynainstid: commonLogic.appcommonhandle("父实例",null),
modelfile: commonLogic.appcommonhandle("文件",null),
status: commonLogic.appcommonhandle("状态",null),
},
views: {
dynainsteditview: {
caption: commonLogic.appcommonhandle("动态模型",null),
title: commonLogic.appcommonhandle("动态模型编辑视图",null),
},
gridview: {
caption: commonLogic.appcommonhandle("动态模型",null),
title: commonLogic.appcommonhandle("动态模型",null),
},
dynainstgridview: {
caption: commonLogic.appcommonhandle("动态模型表格视图",null),
title: commonLogic.appcommonhandle("动态模型表格视图",null),
},
},
dynainst_form: {
details: {
druipart1: commonLogic.appcommonhandle("副本",null),
tabpage1: commonLogic.appcommonhandle("副本",null),
tabpanel1: commonLogic.appcommonhandle("",null),
group1: commonLogic.appcommonhandle("动态模型基本信息",null),
formpage1: 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),
configname: commonLogic.appcommonhandle("配置名称",null),
formitem: commonLogic.appcommonhandle("文件",null),
systemid: commonLogic.appcommonhandle("系统",null),
configid: commonLogic.appcommonhandle("配置标识",null),
},
uiactions: {
},
},
main_grid: {
columns: {
configname: commonLogic.appcommonhandle("配置名称",null),
systemid: commonLogic.appcommonhandle("系统",null),
dynainstid: commonLogic.appcommonhandle("动态实例",null),
status: commonLogic.appcommonhandle("状态",null),
},
nodata:commonLogic.appcommonhandle("",null),
uiactions: {
},
},
default_searchform: {
details: {
formpage1: commonLogic.appcommonhandle("常规条件",null),
},
uiactions: {
},
},
dynainsteditviewtoolbar_toolbar: {
tbitem3: {
caption: commonLogic.appcommonhandle("保存",null),
tip: commonLogic.appcommonhandle("保存",null),
},
deuiaction1: {
caption: commonLogic.appcommonhandle("保存并关闭",null),
tip: commonLogic.appcommonhandle("保存并关闭",null),
},
deuiaction2: {
caption: commonLogic.appcommonhandle("关闭",null),
tip: commonLogic.appcommonhandle("关闭",null),
},
tbitem6: {
caption: commonLogic.appcommonhandle("-",null),
tip: commonLogic.appcommonhandle("",null),
},
tbitem14: {
caption: commonLogic.appcommonhandle("拷贝",null),
tip: commonLogic.appcommonhandle("拷贝",null),
},
},
gridviewtoolbar_toolbar: {
tbitem1_publish: {
caption: commonLogic.appcommonhandle("发布模型",null),
tip: commonLogic.appcommonhandle("发布模型",null),
},
tbitem2: {
caption: commonLogic.appcommonhandle("-",null),
tip: commonLogic.appcommonhandle("",null),
},
tbitem3: {
caption: commonLogic.appcommonhandle("新建",null),
tip: commonLogic.appcommonhandle("新建",null),
},
tbitem4: {
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),
},
tbitem17: {
caption: commonLogic.appcommonhandle("-",null),
tip: commonLogic.appcommonhandle("",null),
},
tbitem19: {
caption: commonLogic.appcommonhandle("过滤",null),
tip: commonLogic.appcommonhandle("过滤",null),
},
},
dynainstgridviewtoolbar_toolbar: {
tbitem1_publish: {
caption: commonLogic.appcommonhandle("发布模型",null),
tip: commonLogic.appcommonhandle("发布模型",null),
},
tbitem2: {
caption: commonLogic.appcommonhandle("-",null),
tip: commonLogic.appcommonhandle("",null),
},
tbitem3: {
caption: commonLogic.appcommonhandle("新建",null),
tip: commonLogic.appcommonhandle("新建",null),
},
tbitem4: {
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),
},
tbitem17: {
caption: commonLogic.appcommonhandle("-",null),
tip: commonLogic.appcommonhandle("",null),
},
tbitem19: {
caption: commonLogic.appcommonhandle("过滤",null),
tip: commonLogic.appcommonhandle("过滤",null),
},
},
};
return data;
}
export default getLocaleResourceBase;
\ No newline at end of file
......@@ -435,7 +435,7 @@ mock.onGet('v7/indexappmenu').reply((config: any) => {
],
},
{
id: 'A406ED59-10D8-4482-ACC9-D6E848088905',
id: 'cac3e218f85776f1480fb78159cc61f6',
name: 'menuitem24',
text: '消息通知',
type: 'MENUITEM',
......@@ -453,7 +453,7 @@ mock.onGet('v7/indexappmenu').reply((config: any) => {
resourcetag: '',
items: [
{
id: 'B6F25A0B-B2C3-4291-968E-E311823C9550',
id: 'e671f14ca3bdc88948563f693a299463',
name: 'menuitem25',
text: '第三方平台',
type: 'MENUITEM',
......@@ -471,7 +471,7 @@ mock.onGet('v7/indexappmenu').reply((config: any) => {
resourcetag: '',
},
{
id: '25FB3FBA-6838-4953-AC4F-20C97C6A2F7B',
id: '3c8cc7c3e0d6e37d8ee090f4c35a88b8',
name: 'menuitem26',
text: '消息模板',
type: 'MENUITEM',
......@@ -489,7 +489,7 @@ mock.onGet('v7/indexappmenu').reply((config: any) => {
resourcetag: '',
},
{
id: '1A480358-9C2E-45D7-AA3C-2A2B14C32E7D',
id: '20fd1c8ce747edb94d19b4e6344817dd',
name: 'menuitem27',
text: '消息账户',
type: 'MENUITEM',
......@@ -509,7 +509,7 @@ mock.onGet('v7/indexappmenu').reply((config: any) => {
],
},
{
id: '575A683B-752B-46E7-8F77-EF579FC9829A',
id: 'ad1ef83190eb18e95d5ee3ce9be949ff',
name: 'menuitem28',
text: '支付管理',
type: 'MENUITEM',
......@@ -527,7 +527,7 @@ mock.onGet('v7/indexappmenu').reply((config: any) => {
resourcetag: '',
items: [
{
id: '0B8F512C-A6E7-4103-8DBD-F4594942E8A7',
id: '3389246e944ec9a3dd3bf6c3c26609c1',
name: 'menuitem29',
text: '支付交易',
type: 'MENUITEM',
......@@ -545,7 +545,7 @@ mock.onGet('v7/indexappmenu').reply((config: any) => {
resourcetag: '',
},
{
id: 'D80F5DD5-ABE3-4265-A9A7-8A19BD81C6C3',
id: 'c857f65ec0b4e9f138864eab77a1ee19',
name: 'menuitem30',
text: '支付平台',
type: 'MENUITEM',
......@@ -563,6 +563,44 @@ mock.onGet('v7/indexappmenu').reply((config: any) => {
resourcetag: '',
},
],
},
{
id: '37D46227-986C-4928-8959-1BB010E6F1DE',
name: 'menuitem31',
text: '存储管理',
type: 'MENUITEM',
counterid: '',
tooltip: '存储管理',
expanded: false,
separator: false,
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: '',
icon: '',
textcls: '',
appfunctag: '',
resourcetag: '',
items: [
{
id: '445578D4-C61D-4E9B-A44B-B899E5691707',
name: 'menuitem32',
text: '动态模型',
type: 'MENUITEM',
counterid: '',
tooltip: '动态模型',
expanded: false,
separator: false,
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: '',
icon: '',
textcls: '',
appfunctag: 'AppFunc8',
resourcetag: '',
},
],
},
],
}];
......
......@@ -59,51 +59,60 @@ mock.onGet('./assets/json/data-dictionary.json').reply((config: any) => {
]
},
{
srfkey: "UaaOpenAccessType",
srfkey: "DynamicModelStatus",
emptytext: "未定义",
"codelisttype":"static",
items: [
{
id: "aliyun",
label: "阿里云",
text: "阿里云",
id: "0",
label: "未激活",
text: "未激活",
"class":"",
"data":"",
"codename":"Aliyun",
value: "aliyun",
"codename":"Item_0",
"color": "rgba(245, 158, 18, 1)",
value: "0",
disabled: false,
},
{
id: "wechat",
label: "微信开放平台",
text: "微信开放平台",
id: "1",
label: "已激活",
text: "已激活",
"class":"",
"data":"",
"codename":"Wechat",
value: "wechat",
"codename":"Item_1",
"color": "rgba(100, 235, 22, 1)",
value: "1",
disabled: false,
},
]
},
{
srfkey: "YesNo",
emptytext: "未定义",
"codelisttype":"static",
items: [
{
id: "qq",
label: "QQ互联",
text: "QQ互联",
id: "1",
label: "",
text: "",
"class":"",
"data":"",
"codename":"Qq",
value: "qq",
"codename":"Item_1",
value: "1",
disabled: false,
},
{
id: "dingtalk",
label: "钉钉开放平台",
text: "钉钉开放平台",
id: "0",
label: "",
text: "",
"class":"",
"data":"",
"codename":"Dingtalk",
value: "dingtalk",
"codename":"Item_0",
value: "0",
disabled: false,
},
......@@ -160,35 +169,6 @@ mock.onGet('./assets/json/data-dictionary.json').reply((config: any) => {
},
]
},
{
srfkey: "YesNo",
emptytext: "未定义",
"codelisttype":"static",
items: [
{
id: "1",
label: "是",
text: "是",
"class":"",
"data":"",
"codename":"Item_1",
value: "1",
disabled: false,
},
{
id: "0",
label: "否",
text: "否",
"class":"",
"data":"",
"codename":"Item_0",
value: "0",
disabled: false,
},
]
},
{
srfkey: "CLIBZSex",
emptytext: "",
......@@ -260,57 +240,6 @@ mock.onGet('./assets/json/data-dictionary.json').reply((config: any) => {
},
]
},
{
srfkey: "NotifyOpenAccessType",
emptytext: "未定义",
"codelisttype":"static",
items: [
{
id: "aliyun",
label: "阿里云",
text: "阿里云",
"class":"",
"data":"",
"codename":"Aliyun",
value: "aliyun",
disabled: false,
},
{
id: "wechat",
label: "微信开放平台",
text: "微信开放平台",
"class":"",
"data":"",
"codename":"Wechat",
value: "wechat",
disabled: false,
},
{
id: "qq",
label: "QQ互联",
text: "QQ互联",
"class":"",
"data":"",
"codename":"Qq",
value: "qq",
disabled: false,
},
{
id: "dingtalk",
label: "钉钉开放平台",
text: "钉钉开放平台",
"class":"",
"data":"",
"codename":"Dingtalk",
value: "dingtalk",
disabled: false,
},
]
},
{
srfkey: "CLAuthCode",
emptytext: "未定义",
......@@ -401,6 +330,108 @@ mock.onGet('./assets/json/data-dictionary.json').reply((config: any) => {
"codename":"Third_SUB_party",
value: "THIRD-PARTY",
disabled: false,
},
]
},
{
srfkey: "NotifyOpenAccessType",
emptytext: "未定义",
"codelisttype":"static",
items: [
{
id: "aliyun",
label: "阿里云",
text: "阿里云",
"class":"",
"data":"",
"codename":"Aliyun",
value: "aliyun",
disabled: false,
},
{
id: "wechat",
label: "微信开放平台",
text: "微信开放平台",
"class":"",
"data":"",
"codename":"Wechat",
value: "wechat",
disabled: false,
},
{
id: "qq",
label: "QQ互联",
text: "QQ互联",
"class":"",
"data":"",
"codename":"Qq",
value: "qq",
disabled: false,
},
{
id: "dingtalk",
label: "钉钉开放平台",
text: "钉钉开放平台",
"class":"",
"data":"",
"codename":"Dingtalk",
value: "dingtalk",
disabled: false,
},
]
},
{
srfkey: "UaaOpenAccessType",
emptytext: "未定义",
"codelisttype":"static",
items: [
{
id: "aliyun",
label: "阿里云",
text: "阿里云",
"class":"",
"data":"",
"codename":"Aliyun",
value: "aliyun",
disabled: false,
},
{
id: "wechat",
label: "微信开放平台",
text: "微信开放平台",
"class":"",
"data":"",
"codename":"Wechat",
value: "wechat",
disabled: false,
},
{
id: "qq",
label: "QQ互联",
text: "QQ互联",
"class":"",
"data":"",
"codename":"Qq",
value: "qq",
disabled: false,
},
{
id: "dingtalk",
label: "钉钉开放平台",
text: "钉钉开放平台",
"class":"",
"data":"",
"codename":"Dingtalk",
value: "dingtalk",
disabled: false,
},
]
......
import qs from 'qs';
import { MockAdapter } from '@/mock/mock-adapter';
const mock = MockAdapter.getInstance();
// 模拟数据
const mockDatas: Array<any> = [
];
//getwflink
mock.onGet(new RegExp(/^\/wfcore\/ibzrt-app-web\/meta_dynamicmodels\/[a-zA-Z0-9\-\;]+\/usertasks\/[a-zA-Z0-9\-\;]+\/ways$/)).reply((config: any) => {
console.groupCollapsed("实体:meta_dynamicmodel 方法: getwflink");
console.table({url:config.url, method: config.method, data:config.data});
console.groupEnd();
let status = MockAdapter.mockStatus(config);
if (status !== 200) {
return [status, {}];
}
return [status,[
{"sequenceFlowId":"dfdsfdsfdsfdsfds","sequenceFlowName":"同意",
"taskId":"aaaaddddccccddddd","processDefinitionKey":"support-workorders-approve-v1",
"processInstanceId":"ddlfldldfldsfds","refViewKey":""},
{"sequenceFlowId":"ddssdfdfdfdfsfdf","sequenceFlowName":"不同意",
"taskId":"aaaaddddccccddddd","processDefinitionKey":"support-workorders-approve-v1",
"processInstanceId":"ddfdsldlfdlldsf","refViewKey":"workorder_ltform_editview"}
]];
});
// getwfstep
mock.onGet(new RegExp(/^\/wfcore\/ibzrt-app-web\/meta_dynamicmodels\/process-definitions-nodes$/)).reply((config: any) => {
console.groupCollapsed("实体:meta_dynamicmodel 方法: getwfstep");
console.table({url:config.url, method: config.method, data:config.data});
console.groupEnd();
let status = MockAdapter.mockStatus(config);
if (status !== 200) {
return [status, {}];
}
return [status, [
{"userTaskId":"sddfddfd-dfdf-fdfd-fdf-dfdfd",
"userTaskName":"待审",
"cnt":0,
"processDefinitionKey":"support-workorders-approve-v1",
"processDefinitionName":"工单审批流程v1"
},
{"userTaskId":"sddfddfd-dfdf-fdfd-fdf-87927",
"userTaskName":"待分配",
"cnt":3,
"processDefinitionKey":"support-workorders-approve-v1",
"processDefinitionName":"工单审批流程v1"}
]];
});
// createBatch
mock.onPost(new RegExp(/^\/meta_dynamicmodels\/batch$/)).reply((config: any) => {
console.groupCollapsed("实体:meta_dynamicmodel 方法: createBatch");
console.table({url:config.url, method: config.method, data:config.data});
console.groupEnd();
let status = MockAdapter.mockStatus(config);
if (status !== 200) {
return [status, {}];
}
return [status, {}];
});
// updateBatch
mock.onPut(new RegExp(/^\/meta_dynamicmodels\/batch$/)).reply((config: any) => {
console.groupCollapsed("实体:meta_dynamicmodel 方法: updateBatch");
console.table({url:config.url, method: config.method, data:config.data});
console.groupEnd();
let status = MockAdapter.mockStatus(config);
if (status !== 200) {
return [status, {}];
}
return [status, {}];
});
// removeBatch
mock.onDelete(new RegExp(/^\/meta_dynamicmodels\/batch$/)).reply((config: any) => {
console.groupCollapsed("实体:meta_dynamicmodel 方法: removeBatch");
console.table({url:config.url, method: config.method, data:config.data});
console.groupEnd();
let status = MockAdapter.mockStatus(config);
if (status !== 200) {
return [status, {}];
}
return [status, {}];
});
// Select
mock.onGet(new RegExp(/^\/meta_dynamicmodels\/([a-zA-Z0-9\-\;]{1,35})\/select$/)).reply((config: any) => {
console.groupCollapsed("实体:meta_dynamicmodel 方法: 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> = ['configid'];
const matchArray:any = new RegExp(/^\/meta_dynamicmodels\/([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.configid, tempValue.configid));
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table(_items);
console.groupEnd();
console.groupEnd();
return [status, _items];
});
// Create
mock.onPost(new RegExp(/^\/meta_dynamicmodels\/?([a-zA-Z0-9\-\;]{0,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:meta_dynamicmodel 方法: Create");
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> = ['configid'];
const matchArray:any = new RegExp(/^\/meta_dynamicmodels\/([a-zA-Z0-9\-\;]{1,35})$/).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]
});
});
}
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table(mockDatas[0]);
console.groupEnd();
console.groupEnd();
return [status, mockDatas[0]];
});
// Update
mock.onPut(new RegExp(/^\/meta_dynamicmodels\/?([a-zA-Z0-9\-\;]{0,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:meta_dynamicmodel 方法: Update");
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> = ['configid'];
const matchArray:any = new RegExp(/^\/meta_dynamicmodels\/([a-zA-Z0-9\-\;]{1,35})$/).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.configid, tempValue.configid));
let data = JSON.parse(config.data);
mockDatas.forEach((item)=>{
if(item['configid'] == tempValue['configid'] ){
for(let value in data){
if(item.hasOwnProperty(value)){
item[value] = data[value];
}
}
}
})
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table(data);
console.groupEnd();
console.groupEnd();
return [status, data];
});
// GetDraft
mock.onGet(new RegExp(/^\/meta_dynamicmodels\/getdraft$/)).reply((config: any) => {
console.groupCollapsed("实体:meta_dynamicmodel 方法: GetDraft");
console.table({url:config.url, method: config.method, data:config.data});
// GetDraft
let status = MockAdapter.mockStatus(config);
if (status !== 200) {
return [status, null];
}
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table({});
console.groupEnd();
console.groupEnd();
return [status, {}];
});
// CheckKey
mock.onPost(new RegExp(/^\/meta_dynamicmodels\/?([a-zA-Z0-9\-\;]{0,35})\/checkkey$/)).reply((config: any) => {
console.groupCollapsed("实体:meta_dynamicmodel 方法: CheckKey");
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> = ['configid'];
const matchArray:any = new RegExp(/^\/meta_dynamicmodels\/([a-zA-Z0-9\-\;]{1,35})\/checkkey$/).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.configid, tempValue.configid));
let data = JSON.parse(config.data);
mockDatas.forEach((item)=>{
if(item['configid'] == tempValue['configid'] ){
for(let value in data){
if(item.hasOwnProperty(value)){
item[value] = data[value];
}
}
}
})
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table(data);
console.groupEnd();
console.groupEnd();
return [status, data];
});
// Init
mock.onPost(new RegExp(/^\/meta_dynamicmodels\/?([a-zA-Z0-9\-\;]{0,35})\/init$/)).reply((config: any) => {
console.groupCollapsed("实体:meta_dynamicmodel 方法: Init");
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> = ['configid'];
const matchArray:any = new RegExp(/^\/meta_dynamicmodels\/([a-zA-Z0-9\-\;]{1,35})\/init$/).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.configid, tempValue.configid));
let data = JSON.parse(config.data);
mockDatas.forEach((item)=>{
if(item['configid'] == tempValue['configid'] ){
for(let value in data){
if(item.hasOwnProperty(value)){
item[value] = data[value];
}
}
}
})
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table(data);
console.groupEnd();
console.groupEnd();
return [status, data];
});
// Publish
mock.onPost(new RegExp(/^\/meta_dynamicmodels\/?([a-zA-Z0-9\-\;]{0,35})\/publish$/)).reply((config: any) => {
console.groupCollapsed("实体:meta_dynamicmodel 方法: Publish");
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> = ['configid'];
const matchArray:any = new RegExp(/^\/meta_dynamicmodels\/([a-zA-Z0-9\-\;]{1,35})\/publish$/).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.configid, tempValue.configid));
let data = JSON.parse(config.data);
mockDatas.forEach((item)=>{
if(item['configid'] == tempValue['configid'] ){
for(let value in data){
if(item.hasOwnProperty(value)){
item[value] = data[value];
}
}
}
})
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table(data);
console.groupEnd();
console.groupEnd();
return [status, data];
});
// Save
mock.onPost(new RegExp(/^\/meta_dynamicmodels\/?([a-zA-Z0-9\-\;]{0,35})\/save$/)).reply((config: any) => {
console.groupCollapsed("实体:meta_dynamicmodel 方法: Save");
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> = ['configid'];
const matchArray:any = new RegExp(/^\/meta_dynamicmodels\/([a-zA-Z0-9\-\;]{1,35})\/save$/).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.configid, tempValue.configid));
let data = JSON.parse(config.data);
mockDatas.forEach((item)=>{
if(item['configid'] == tempValue['configid'] ){
for(let value in data){
if(item.hasOwnProperty(value)){
item[value] = data[value];
}
}
}
})
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table(data);
console.groupEnd();
console.groupEnd();
return [status, data];
});
// FetchDefault
mock.onGet(new RegExp(/^\/meta_dynamicmodels\/fetchdefault$/)).reply((config: any) => {
console.groupCollapsed("实体:meta_dynamicmodel 方法: 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(/^\/meta_dynamicmodels\/fetchdefault(\?[\w-./?%&=,]*)*$/)).reply((config: any) => {
console.groupCollapsed("实体:meta_dynamicmodel 方法: 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 : []];
});
// FetchDynaInst
mock.onGet(new RegExp(/^\/meta_dynamicmodels\/fetchdynainst$/)).reply((config: any) => {
console.groupCollapsed("实体:meta_dynamicmodel 方法: FetchDynaInst");
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 : []];
});
// FetchDynaInst
mock.onGet(new RegExp(/^\/meta_dynamicmodels\/fetchdynainst(\?[\w-./?%&=,]*)*$/)).reply((config: any) => {
console.groupCollapsed("实体:meta_dynamicmodel 方法: FetchDynaInst");
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参数传递情况未实现
// Remove
mock.onDelete(new RegExp(/^\/meta_dynamicmodels\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:meta_dynamicmodel 方法: Remove");
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> = ['configid'];
const matchArray:any = new RegExp(/^\/meta_dynamicmodels\/([a-zA-Z0-9\-\;]{1,35})$/).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.configid, tempValue.configid));
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table(_items?_items:{});
console.groupEnd();
console.groupEnd();
return [status, _items?_items:{}];
});
// Get
mock.onGet(new RegExp(/^\/meta_dynamicmodels\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:meta_dynamicmodel 方法: Get");
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> = ['configid'];
const matchArray:any = new RegExp(/^\/meta_dynamicmodels\/([a-zA-Z0-9\-\;]{1,35})$/).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.configid, tempValue.configid));
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table(_items?_items:{});
console.groupEnd();
console.groupEnd();
return [status, _items?_items:{}];
});
......@@ -16,6 +16,7 @@ import './entity/wfmembers/wfmembers';
import './entity/sys-posts/sys-posts';
import './entity/sys-user-auths/sys-user-auths';
import './entity/sys-departments/sys-departments';
import './entity/meta-dynamicmodels/meta-dynamicmodels';
import './entity/sys-employees/sys-employees';
import './entity/pay-trades/pay-trades';
import './entity/msg-templates/msg-templates';
......
......@@ -503,6 +503,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "SysOrganizationOptionView",
"viewtag": "915900ff6a784bf46e91a9a6aec79cf0"
},
"meta_dynamicmodeldynainsteditview": {
"title": "动态模型编辑视图",
"caption": "动态模型",
"viewtype": "DEEDITVIEW",
"viewmodule": "disk",
"viewname": "META_DYNAMICMODELDynaInstEditView",
"viewtag": "92d51d41db51a671793ee8dc8876f9e9"
},
"syspermissionpickupgridview": {
"title": "权限表选择表格视图",
"caption": "权限/资源",
......@@ -583,6 +591,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "SysEmployeeMPickupView",
"viewtag": "af7290279f8b7645020401c1beb9269e"
},
"meta_dynamicmodelgridview": {
"title": "动态模型",
"caption": "动态模型",
"viewtype": "DEGRIDVIEW",
"viewmodule": "disk",
"viewname": "META_DYNAMICMODELGridView",
"viewtag": "af9cfc34d957186380a012e322abff0c"
},
"wfgrouppickupview": {
"title": "角色/用户组数据选择视图",
"caption": "角色/用户组",
......@@ -663,6 +679,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "WFUserPickupGridView",
"viewtag": "c9c73c8d2e61bd29a304622f3d39b522"
},
"meta_dynamicmodeldynainstgridview": {
"title": "动态模型表格视图",
"caption": "动态模型表格视图",
"viewtype": "DEGRIDVIEW",
"viewmodule": "disk",
"viewname": "META_DYNAMICMODELDynaInstGridView",
"viewtag": "cec3236f5a1f742f9b91f313506ccc6c"
},
"sysdepartmentpickupview": {
"title": "部门选择视图",
"caption": "部门",
......
......@@ -27,6 +27,8 @@ export const PageComponents = {
Vue.component('sys-department-grid-view', () => import('@pages/ou/sys-department-grid-view/sys-department-grid-view.vue'));
Vue.component('sys-department-pickup-grid-view', () => import('@pages/ou/sys-department-pickup-grid-view/sys-department-pickup-grid-view.vue'));
Vue.component('sys-open-access-grid-view', () => import('@pages/uaa/sys-open-access-grid-view/sys-open-access-grid-view.vue'));
Vue.component('meta-dynamicmodeldyna-inst-edit-view', () => import('@pages/disk/meta-dynamicmodeldyna-inst-edit-view/meta-dynamicmodeldyna-inst-edit-view.vue'));
Vue.component('meta-dynamicmodelgrid-view', () => import('@pages/disk/meta-dynamicmodelgrid-view/meta-dynamicmodelgrid-view.vue'));
Vue.component('sys-team-grid-view', () => import('@pages/ou/sys-team-grid-view/sys-team-grid-view.vue'));
Vue.component('sys-dept-member-grid-view', () => import('@pages/ou/sys-dept-member-grid-view/sys-dept-member-grid-view.vue'));
Vue.component('sys-employee-pickup-grid-view', () => import('@pages/ou/sys-employee-pickup-grid-view/sys-employee-pickup-grid-view.vue'));
......@@ -78,6 +80,7 @@ export const PageComponents = {
Vue.component('sys-organization-edit-view', () => import('@pages/ou/sys-organization-edit-view/sys-organization-edit-view.vue'));
Vue.component('pay-open-access-edit-view', () => import('@pages/pay/pay-open-access-edit-view/pay-open-access-edit-view.vue'));
Vue.component('sys-role-pickup-view', () => import('@pages/uaa/sys-role-pickup-view/sys-role-pickup-view.vue'));
Vue.component('meta-dynamicmodeldyna-inst-grid-view', () => import('@pages/disk/meta-dynamicmodeldyna-inst-grid-view/meta-dynamicmodeldyna-inst-grid-view.vue'));
Vue.component('sys-app-edit-view', () => import('@pages/uaa/sys-app-edit-view/sys-app-edit-view.vue'));
Vue.component('sys-post-pickup-grid-view', () => import('@pages/ou/sys-post-pickup-grid-view/sys-post-pickup-grid-view.vue'));
Vue.component('dict-option-grid-view', () => import('@pages/dict/dict-option-grid-view/dict-option-grid-view.vue'));
......
......@@ -658,6 +658,34 @@ const router = new Router({
},
component: () => import('@pages/uaa/sys-open-access-grid-view/sys-open-access-grid-view.vue'),
},
{
path: 'meta_dynamicmodels/:meta_dynamicmodel?/dynainsteditview/:dynainsteditview?',
meta: {
caption: 'entities.meta_dynamicmodel.views.dynainsteditview.caption',
info:'',
parameters: [
{ pathName: 'index', parameterName: 'index' },
{ pathName: 'meta_dynamicmodels', parameterName: 'meta_dynamicmodel' },
{ pathName: 'dynainsteditview', parameterName: 'dynainsteditview' },
],
requireAuth: true,
},
component: () => import('@pages/disk/meta-dynamicmodeldyna-inst-edit-view/meta-dynamicmodeldyna-inst-edit-view.vue'),
},
{
path: 'meta_dynamicmodels/:meta_dynamicmodel?/gridview/:gridview?',
meta: {
caption: 'entities.meta_dynamicmodel.views.gridview.caption',
info:'',
parameters: [
{ pathName: 'index', parameterName: 'index' },
{ pathName: 'meta_dynamicmodels', parameterName: 'meta_dynamicmodel' },
{ pathName: 'gridview', parameterName: 'gridview' },
],
requireAuth: true,
},
component: () => import('@pages/disk/meta-dynamicmodelgrid-view/meta-dynamicmodelgrid-view.vue'),
},
{
path: 'systeams/:systeam?/gridview/:gridview?',
meta: {
......@@ -1975,6 +2003,20 @@ const router = new Router({
},
component: () => import('@pages/uaa/sys-role-pickup-view/sys-role-pickup-view.vue'),
},
{
path: 'meta_dynamicmodels/:meta_dynamicmodel?/dynainstgridview/:dynainstgridview?',
meta: {
caption: 'entities.meta_dynamicmodel.views.dynainstgridview.caption',
info:'',
parameters: [
{ pathName: 'index', parameterName: 'index' },
{ pathName: 'meta_dynamicmodels', parameterName: 'meta_dynamicmodel' },
{ pathName: 'dynainstgridview', parameterName: 'dynainstgridview' },
],
requireAuth: true,
},
component: () => import('@pages/disk/meta-dynamicmodeldyna-inst-grid-view/meta-dynamicmodeldyna-inst-grid-view.vue'),
},
{
path: 'sysapps/:sysapp?/editview/:editview?',
meta: {
......
......@@ -48,6 +48,7 @@ export class EntityServiceRegister {
this.allEntityService.set('syspost', () => import('@/service/sys-post/sys-post-service'));
this.allEntityService.set('sysuserauth', () => import('@/service/sys-user-auth/sys-user-auth-service'));
this.allEntityService.set('sysdepartment', () => import('@/service/sys-department/sys-department-service'));
this.allEntityService.set('meta_dynamicmodel', () => import('@/service/meta-dynamicmodel/meta-dynamicmodel-service'));
this.allEntityService.set('sysemployee', () => import('@/service/sys-employee/sys-employee-service'));
this.allEntityService.set('paytrade', () => import('@/service/pay-trade/pay-trade-service'));
this.allEntityService.set('msgtemplate', () => import('@/service/msg-template/msg-template-service'));
......
import { Http,Util } from '@/utils';
import EntityService from '../entity-service';
/**
* 动态模型服务对象基类
*
* @export
* @class META_DYNAMICMODELServiceBase
* @extends {EntityServie}
*/
export default class META_DYNAMICMODELServiceBase extends EntityService {
/**
* Creates an instance of META_DYNAMICMODELServiceBase.
*
* @param {*} [opts={}]
* @memberof META_DYNAMICMODELServiceBase
*/
constructor(opts: any = {}) {
super(opts);
}
/**
* 初始化基础数据
*
* @memberof META_DYNAMICMODELServiceBase
*/
public initBasicData(){
this.APPLYDEKEY ='meta_dynamicmodel';
this.APPDEKEY = 'configid';
this.APPDENAME = 'meta_dynamicmodels';
this.APPDETEXT = 'configname';
this.APPNAME = 'web';
this.SYSTEMNAME = 'ibzrt';
}
// 实体接口
/**
* Select接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof META_DYNAMICMODELServiceBase
*/
public async Select(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = Http.getInstance().get(`/meta_dynamicmodels/${context.meta_dynamicmodel}/select`,isloading);
return res;
}
/**
* Create接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof META_DYNAMICMODELServiceBase
*/
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(`/meta_dynamicmodels`,data,isloading);
return res;
}
/**
* Update接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof META_DYNAMICMODELServiceBase
*/
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(`/meta_dynamicmodels/${context.meta_dynamicmodel}`,data,isloading);
return res;
}
/**
* Remove接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof META_DYNAMICMODELServiceBase
*/
public async Remove(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = Http.getInstance().delete(`/meta_dynamicmodels/${context.meta_dynamicmodel}`,isloading);
return res;
}
/**
* Get接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof META_DYNAMICMODELServiceBase
*/
public async Get(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = await Http.getInstance().get(`/meta_dynamicmodels/${context.meta_dynamicmodel}`,isloading);
return res;
}
/**
* GetDraft接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof META_DYNAMICMODELServiceBase
*/
public async GetDraft(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = await Http.getInstance().get(`/meta_dynamicmodels/getdraft`,isloading);
res.data.meta_dynamicmodel = data.meta_dynamicmodel;
return res;
}
/**
* CheckKey接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof META_DYNAMICMODELServiceBase
*/
public async CheckKey(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = Http.getInstance().post(`/meta_dynamicmodels/${context.meta_dynamicmodel}/checkkey`,data,isloading);
return res;
}
/**
* Init接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof META_DYNAMICMODELServiceBase
*/
public async Init(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = Http.getInstance().post(`/meta_dynamicmodels/${context.meta_dynamicmodel}/init`,data,isloading);
return res;
}
/**
* InitBatch接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof META_DYNAMICMODELServiceBase
*/
public async InitBatch(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let tempData:any = JSON.parse(JSON.stringify(data));
return await Http.getInstance().post(`/meta_dynamicmodels/initbatch`,tempData,isloading);
}
/**
* Publish接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof META_DYNAMICMODELServiceBase
*/
public async Publish(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = Http.getInstance().post(`/meta_dynamicmodels/${context.meta_dynamicmodel}/publish`,data,isloading);
return res;
}
/**
* PublishBatch接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof META_DYNAMICMODELServiceBase
*/
public async PublishBatch(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let tempData:any = JSON.parse(JSON.stringify(data));
return await Http.getInstance().post(`/meta_dynamicmodels/publishbatch`,tempData,isloading);
}
/**
* Save接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof META_DYNAMICMODELServiceBase
*/
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(`/meta_dynamicmodels/${context.meta_dynamicmodel}/save`,data,isloading);
return res;
}
/**
* FetchDefault接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof META_DYNAMICMODELServiceBase
*/
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(`/meta_dynamicmodels/fetchdefault`,tempData,isloading);
return res;
}
/**
* searchDefault接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof META_DYNAMICMODELServiceBase
*/
public async searchDefault(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let tempData:any = JSON.parse(JSON.stringify(data));
return await Http.getInstance().post(`/meta_dynamicmodels/searchdefault`,tempData,isloading);
}
/**
* FetchDynaInst接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof META_DYNAMICMODELServiceBase
*/
public async FetchDynaInst(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let tempData:any = JSON.parse(JSON.stringify(data));
let res:any = Http.getInstance().get(`/meta_dynamicmodels/fetchdynainst`,tempData,isloading);
return res;
}
/**
* searchDynaInst接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof META_DYNAMICMODELServiceBase
*/
public async searchDynaInst(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let tempData:any = JSON.parse(JSON.stringify(data));
return await Http.getInstance().post(`/meta_dynamicmodels/searchdynainst`,tempData,isloading);
}
}
\ No newline at end of file
import { Http,Util } from '@/utils';
import META_DYNAMICMODELServiceBase from './meta-dynamicmodel-service-base';
/**
* 动态模型服务对象
*
* @export
* @class META_DYNAMICMODELService
* @extends {META_DYNAMICMODELServiceBase}
*/
export default class META_DYNAMICMODELService extends META_DYNAMICMODELServiceBase {
/**
* Creates an instance of META_DYNAMICMODELService.
*
* @param {*} [opts={}]
* @memberof META_DYNAMICMODELService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
......@@ -758,6 +758,7 @@ export const viewstate: any = {
'60fe0b9b8535b02baf1a02d5f56c5a9c',
'a186d7dee3d83d5f95c27142bece5df6',
'1f1889a2c3e7f49d9221021499a0f78a',
'cec3236f5a1f742f9b91f313506ccc6c',
'67b4d1e928a08679ce63051ccc88da9c',
'13c174556f45e9b10b66dc51834a6ab5',
'f498dfb24e88df7c70a5c09ecb587647',
......
import { Environment } from '@/environments/environment';
import { UIActionTool,Util } from '@/utils';
import UIService from '../ui-service';
import { Subject } from 'rxjs';
import META_DYNAMICMODELService from '@/service/meta-dynamicmodel/meta-dynamicmodel-service';
import META_DYNAMICMODELAuthService from '@/authservice/meta-dynamicmodel/meta-dynamicmodel-auth-service';
/**
* 动态模型UI服务对象基类
*
* @export
* @class META_DYNAMICMODELUIServiceBase
*/
export default class META_DYNAMICMODELUIServiceBase extends UIService {
/**
* 是否支持工作流
*
* @memberof META_DYNAMICMODELUIServiceBase
*/
public isEnableWorkflow:boolean = false;
/**
* 是否支持实体主状态
*
* @memberof META_DYNAMICMODELUIServiceBase
*/
public isEnableDEMainState:boolean = false;
/**
* 当前UI服务对应的数据服务对象
*
* @memberof META_DYNAMICMODELUIServiceBase
*/
public dataService:META_DYNAMICMODELService = new META_DYNAMICMODELService();
/**
* 所有关联视图
*
* @memberof META_DYNAMICMODELUIServiceBase
*/
public allViewMap: Map<string, Object> = new Map();
/**
* 状态值
*
* @memberof META_DYNAMICMODELUIServiceBase
*/
public stateValue: number = 0;
/**
* 状态属性
*
* @memberof META_DYNAMICMODELUIServiceBase
*/
public stateField: string = "";
/**
* 主状态属性集合
*
* @memberof META_DYNAMICMODELUIServiceBase
*/
public mainStateFields:Array<any> = [];
/**
* 主状态集合Map
*
* @memberof META_DYNAMICMODELUIServiceBase
*/
public allDeMainStateMap:Map<string,string> = new Map();
/**
* 主状态操作标识Map
*
* @memberof META_DYNAMICMODELUIServiceBase
*/
public allDeMainStateOPPrivsMap:Map<string,any> = new Map();
/**
* Creates an instance of META_DYNAMICMODELUIServiceBase.
*
* @param {*} [opts={}]
* @memberof META_DYNAMICMODELUIServiceBase
*/
constructor(opts: any = {}) {
super(opts);
this.authService = new META_DYNAMICMODELAuthService(opts);
this.initViewMap();
this.initDeMainStateMap();
this.initDeMainStateOPPrivsMap();
}
/**
* 初始化视图Map
*
* @memberof META_DYNAMICMODELUIServiceBase
*/
public initViewMap(){
this.allViewMap.set(':',{viewname:'dynainsteditview',srfappde:'meta_dynamicmodels',component:'meta-dynamicmodeldyna-inst-edit-view'});
this.allViewMap.set('MDATAVIEW:',{viewname:'gridview',srfappde:'meta_dynamicmodels',component:'meta-dynamicmodelgrid-view'});
this.allViewMap.set(':',{viewname:'dynainstgridview',srfappde:'meta_dynamicmodels',component:'meta-dynamicmodeldyna-inst-grid-view'});
}
/**
* 初始化主状态集合
*
* @memberof META_DYNAMICMODELUIServiceBase
*/
public initDeMainStateMap(){
}
/**
* 初始化主状态操作标识
*
* @memberof META_DYNAMICMODELUIServiceBase
*/
public initDeMainStateOPPrivsMap(){
}
/**
* 发布模型
*
* @param {any[]} args 当前数据
* @param {any} context 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @param {*} [srfParentDeName] 父实体名称
* @returns {Promise<any>}
*/
public async META_DYNAMICMODEL_publish(args: any[],context:any = {}, params:any = {}, $event?: any, xData?: any,actionContext?: any,srfParentDeName?:string){
let data: any = {};
let parentContext:any = {};
let parentViewParam:any = {};
const _this: any = actionContext;
const _args: any[] = Util.deepCopy(args);
const actionTarget: string | null = 'SINGLEKEY';
Object.assign(context, { meta_dynamicmodel: '%meta_dynamicmodel%' });
Object.assign(params, { configid: '%meta_dynamicmodel%' });
Object.assign(params, { configname: '%configname%' });
if(_this.context){
parentContext = _this.context;
}
if(_this.viewparams){
parentViewParam = _this.viewparams;
}
context = UIActionTool.handleContextParam(actionTarget,_args,parentContext,parentViewParam,context);
data = UIActionTool.handleActionParam(actionTarget,_args,parentContext,parentViewParam,params);
if(Object.is(actionTarget,"MULTIKEY")){
let tempDataArray:Array<any> = [];
if((_args.length >1) && (Object.keys(data).length >0)){
for(let i =0;i<_args.length;i++){
let tempObject:any = {};
Object.keys(data).forEach((key:string) =>{
Object.assign(tempObject,{[key]:data[key].split(',')[i]});
})
tempDataArray.push(tempObject);
}
}else{
tempDataArray.push(data);
}
data = tempDataArray;
}
context = Object.assign({},actionContext.context,context);
let parentObj:any = {srfparentdename:srfParentDeName?srfParentDeName:null,srfparentkey:srfParentDeName?context[srfParentDeName.toLowerCase()]:null};
if(!Object.is(actionTarget,"MULTIKEY")){
Object.assign(data,parentObj);
}
Object.assign(context,parentObj);
// 直接调实体服务需要转换的数据
if(context && context.srfsessionid){
context.srfsessionkey = context.srfsessionid;
delete context.srfsessionid;
}
const backend = () => {
const curService:META_DYNAMICMODELService = new META_DYNAMICMODELService();
curService.Publish(context,data, true).then((response: any) => {
if (!response || response.status !== 200) {
actionContext.$Notice.error({ title: '错误', desc: response.message });
return;
}
actionContext.$Notice.success({ title: '成功', desc: '发布模型成功!' });
const _this: any = actionContext;
if (xData && xData.refresh && xData.refresh instanceof Function) {
xData.refresh(args);
}
return response;
}).catch((response: any) => {
if (response && response.status && response.data) {
actionContext.$Notice.error({ title: (actionContext.$t('app.commonWords.wrong') as string), desc: response.data.message });
return;
}
if (!response || !response.status || !response.data) {
actionContext.$Notice.error({ title: (actionContext.$t('app.commonWords.wrong') as string), desc: (actionContext.$t('app.commonWords.sysException') as string) });
return;
}
return response;
});
};
backend();
}
/**
* 获取指定数据的重定向页面
*
* @param srfkey 数据主键
* @param isEnableWorkflow 重定向视图是否需要处理流程中的数据
* @memberof META_DYNAMICMODELUIServiceBase
*/
public async getRDAppView(srfkey:string,isEnableWorkflow:boolean){
this.isEnableWorkflow = isEnableWorkflow;
// 进行数据查询
let result:any = await this.dataService.Get({meta_dynamicmodel: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 META_DYNAMICMODELUIServiceBase
*/
public getRealDEType(entity:any){
}
/**
* 获取实体单数据实体视图预定义参数
*
* @param curData 当前数据
* @param bDataInWF 是否有数据在工作流中
* @param bWFMode 是否工作流模式
* @memberof META_DYNAMICMODELUIServiceBase
*/
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 META_DYNAMICMODELUIServiceBase
*/
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 META_DYNAMICMODELUIServiceBase
*/
public getDEMainStateOPPrivs(data:any){
if(this.getDEMainStateTag(data)){
return this.allDeMainStateOPPrivsMap.get((this.getDEMainStateTag(data) as string));
}else{
return null;
}
}
/**
* 获取数据对象所有的操作标识
*
* @param data 当前数据
* @memberof META_DYNAMICMODELUIServiceBase
*/
public getAllOPPrivs(data:any){
return this.authService.getOPPrivs(this.getDEMainStateOPPrivs(data));
}
}
\ No newline at end of file
import META_DYNAMICMODELUIServiceBase from './meta-dynamicmodel-ui-service-base';
/**
* 动态模型UI服务对象
*
* @export
* @class META_DYNAMICMODELUIService
*/
export default class META_DYNAMICMODELUIService extends META_DYNAMICMODELUIServiceBase {
/**
* Creates an instance of META_DYNAMICMODELUIService.
*
* @param {*} [opts={}]
* @memberof META_DYNAMICMODELUIService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
......@@ -48,6 +48,7 @@ export class UIServiceRegister {
this.allUIService.set('syspost', () => import('@/uiservice/sys-post/sys-post-ui-service'));
this.allUIService.set('sysuserauth', () => import('@/uiservice/sys-user-auth/sys-user-auth-ui-service'));
this.allUIService.set('sysdepartment', () => import('@/uiservice/sys-department/sys-department-ui-service'));
this.allUIService.set('meta_dynamicmodel', () => import('@/uiservice/meta-dynamicmodel/meta-dynamicmodel-ui-service'));
this.allUIService.set('sysemployee', () => import('@/uiservice/sys-employee/sys-employee-ui-service'));
this.allUIService.set('paytrade', () => import('@/uiservice/pay-trade/pay-trade-ui-service'));
this.allUIService.set('msgtemplate', () => import('@/uiservice/msg-template/msg-template-ui-service'));
......
......@@ -517,12 +517,12 @@ export default class IndexBase extends Vue implements ControlInterface {
navDataService.removeNavData(this.viewtag);
}
switch (item.appfunctag) {
case 'AppFunc6':
this.clickAppFunc6(item);
return;
case 'Auto9':
this.clickAuto9(item);
return;
case 'AppFunc4':
this.clickAppFunc4(item);
return;
case 'Auto12':
this.clickAuto12(item);
return;
......@@ -535,8 +535,8 @@ export default class IndexBase extends Vue implements ControlInterface {
case 'Auto14':
this.clickAuto14(item);
return;
case 'AppFunc4':
this.clickAppFunc4(item);
case 'AppFunc8':
this.clickAppFunc8(item);
return;
case 'Auto16':
this.clickAuto16(item);
......@@ -547,9 +547,15 @@ export default class IndexBase extends Vue implements ControlInterface {
case 'Auto10':
this.clickAuto10(item);
return;
case 'AppFunc3':
this.clickAppFunc3(item);
return;
case 'AppFunc7':
this.clickAppFunc7(item);
return;
case 'AppFunc5':
this.clickAppFunc5(item);
return;
case 'Auto15':
this.clickAuto15(item);
return;
......@@ -559,21 +565,18 @@ export default class IndexBase extends Vue implements ControlInterface {
case 'Auto6':
this.clickAuto6(item);
return;
case 'AppFunc3':
this.clickAppFunc3(item);
return;
case 'Auto8':
this.clickAuto8(item);
return;
case 'AppFunc5':
this.clickAppFunc5(item);
return;
case 'Auto11':
this.clickAuto11(item);
return;
case 'Auto13':
this.clickAuto13(item);
return;
case 'AppFunc6':
this.clickAppFunc6(item);
return;
case 'Auto7':
this.clickAuto7(item);
return;
......@@ -594,17 +597,17 @@ export default class IndexBase extends Vue implements ControlInterface {
/**
* 支付交易TradeGridView表格视图
* 组管理
*
* @param {*} [item={}]
* @memberof Index
*/
public clickAppFunc6(item: any = {}) {
public clickAuto9(item: any = {}) {
const viewparam: any = {};
Object.assign(viewparam, {});
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'paytrades', parameterName: 'paytrade' },
{ pathName: 'systeams', parameterName: 'systeam' },
{ pathName: 'gridview', parameterName: 'gridview' },
];
const path: string = this.$viewTool.buildUpRoutePath(this.$route, {}, deResParameters, parameters, [], viewparam);
......@@ -617,17 +620,17 @@ export default class IndexBase extends Vue implements ControlInterface {
}
/**
* 组管理
* 消息模板TemplateGridView表格视图
*
* @param {*} [item={}]
* @memberof Index
*/
public clickAuto9(item: any = {}) {
public clickAppFunc4(item: any = {}) {
const viewparam: any = {};
Object.assign(viewparam, {});
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'systeams', parameterName: 'systeam' },
{ pathName: 'msgtemplates', parameterName: 'msgtemplate' },
{ pathName: 'gridview', parameterName: 'gridview' },
];
const path: string = this.$viewTool.buildUpRoutePath(this.$route, {}, deResParameters, parameters, [], viewparam);
......@@ -732,18 +735,18 @@ export default class IndexBase extends Vue implements ControlInterface {
}
/**
* 消息模板TemplateGridView表格视图
* 动态模型
*
* @param {*} [item={}]
* @memberof Index
*/
public clickAppFunc4(item: any = {}) {
public clickAppFunc8(item: any = {}) {
const viewparam: any = {};
Object.assign(viewparam, {});
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'msgtemplates', parameterName: 'msgtemplate' },
{ pathName: 'gridview', parameterName: 'gridview' },
{ pathName: 'meta_dynamicmodels', parameterName: 'meta_dynamicmodel' },
{ pathName: 'dynainstgridview', parameterName: 'dynainstgridview' },
];
const path: string = this.$viewTool.buildUpRoutePath(this.$route, {}, deResParameters, parameters, [], viewparam);
if(Object.is(this.$route.fullPath,path)){
......@@ -824,17 +827,17 @@ export default class IndexBase extends Vue implements ControlInterface {
}
/**
* 支付平台OpenAccessGridView表格视图
* 消息通知OpenAccess表格视图
*
* @param {*} [item={}]
* @memberof Index
*/
public clickAppFunc7(item: any = {}) {
public clickAppFunc3(item: any = {}) {
const viewparam: any = {};
Object.assign(viewparam, {});
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'payopenaccesses', parameterName: 'payopenaccess' },
{ pathName: 'msgopenaccesses', parameterName: 'msgopenaccess' },
{ pathName: 'gridview', parameterName: 'gridview' },
];
const path: string = this.$viewTool.buildUpRoutePath(this.$route, {}, deResParameters, parameters, [], viewparam);
......@@ -847,17 +850,17 @@ export default class IndexBase extends Vue implements ControlInterface {
}
/**
* 接入应用
* 支付平台OpenAccessGridView表格视图
*
* @param {*} [item={}]
* @memberof Index
*/
public clickAuto15(item: any = {}) {
public clickAppFunc7(item: any = {}) {
const viewparam: any = {};
Object.assign(viewparam, {});
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'sysapps', parameterName: 'sysapp' },
{ pathName: 'payopenaccesses', parameterName: 'payopenaccess' },
{ pathName: 'gridview', parameterName: 'gridview' },
];
const path: string = this.$viewTool.buildUpRoutePath(this.$route, {}, deResParameters, parameters, [], viewparam);
......@@ -870,17 +873,17 @@ export default class IndexBase extends Vue implements ControlInterface {
}
/**
* 账户绑定
* 消息账户UserAccountGridView表格视图
*
* @param {*} [item={}]
* @memberof Index
*/
public clickAppFunc2(item: any = {}) {
public clickAppFunc5(item: any = {}) {
const viewparam: any = {};
Object.assign(viewparam, {});
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'sysuserauths', parameterName: 'sysuserauth' },
{ pathName: 'msguseraccounts', parameterName: 'msguseraccount' },
{ pathName: 'gridview', parameterName: 'gridview' },
];
const path: string = this.$viewTool.buildUpRoutePath(this.$route, {}, deResParameters, parameters, [], viewparam);
......@@ -893,17 +896,17 @@ export default class IndexBase extends Vue implements ControlInterface {
}
/**
* 认证日志
* 接入应用
*
* @param {*} [item={}]
* @memberof Index
*/
public clickAuto6(item: any = {}) {
public clickAuto15(item: any = {}) {
const viewparam: any = {};
Object.assign(viewparam, {});
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'sysauthlogs', parameterName: 'sysauthlog' },
{ pathName: 'sysapps', parameterName: 'sysapp' },
{ pathName: 'gridview', parameterName: 'gridview' },
];
const path: string = this.$viewTool.buildUpRoutePath(this.$route, {}, deResParameters, parameters, [], viewparam);
......@@ -916,17 +919,17 @@ export default class IndexBase extends Vue implements ControlInterface {
}
/**
* 消息通知OpenAccess表格视图
* 账户绑定
*
* @param {*} [item={}]
* @memberof Index
*/
public clickAppFunc3(item: any = {}) {
public clickAppFunc2(item: any = {}) {
const viewparam: any = {};
Object.assign(viewparam, {});
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'msgopenaccesses', parameterName: 'msgopenaccess' },
{ pathName: 'sysuserauths', parameterName: 'sysuserauth' },
{ pathName: 'gridview', parameterName: 'gridview' },
];
const path: string = this.$viewTool.buildUpRoutePath(this.$route, {}, deResParameters, parameters, [], viewparam);
......@@ -939,17 +942,17 @@ export default class IndexBase extends Vue implements ControlInterface {
}
/**
* 流程定义
* 认证日志
*
* @param {*} [item={}]
* @memberof Index
*/
public clickAuto8(item: any = {}) {
public clickAuto6(item: any = {}) {
const viewparam: any = {};
Object.assign(viewparam, {});
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'wfprocessdefinitions', parameterName: 'wfprocessdefinition' },
{ pathName: 'sysauthlogs', parameterName: 'sysauthlog' },
{ pathName: 'gridview', parameterName: 'gridview' },
];
const path: string = this.$viewTool.buildUpRoutePath(this.$route, {}, deResParameters, parameters, [], viewparam);
......@@ -962,17 +965,17 @@ export default class IndexBase extends Vue implements ControlInterface {
}
/**
* 消息账户UserAccountGridView表格视图
* 流程定义
*
* @param {*} [item={}]
* @memberof Index
*/
public clickAppFunc5(item: any = {}) {
public clickAuto8(item: any = {}) {
const viewparam: any = {};
Object.assign(viewparam, {});
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'msguseraccounts', parameterName: 'msguseraccount' },
{ pathName: 'wfprocessdefinitions', parameterName: 'wfprocessdefinition' },
{ pathName: 'gridview', parameterName: 'gridview' },
];
const path: string = this.$viewTool.buildUpRoutePath(this.$route, {}, deResParameters, parameters, [], viewparam);
......@@ -1030,6 +1033,29 @@ export default class IndexBase extends Vue implements ControlInterface {
})
}
/**
* 支付交易TradeGridView表格视图
*
* @param {*} [item={}]
* @memberof Index
*/
public clickAppFunc6(item: any = {}) {
const viewparam: any = {};
Object.assign(viewparam, {});
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'paytrades', parameterName: 'paytrade' },
{ pathName: 'gridview', parameterName: 'gridview' },
];
const path: string = this.$viewTool.buildUpRoutePath(this.$route, {}, deResParameters, parameters, [], viewparam);
if(Object.is(this.$route.fullPath,path)){
return;
}
this.$nextTick(function(){
this.$router.push(path);
})
}
/**
* 发布新流程
*
......
......@@ -462,7 +462,7 @@ export default class IndexModel {
],
},
{
id: 'A406ED59-10D8-4482-ACC9-D6E848088905',
id: 'cac3e218f85776f1480fb78159cc61f6',
name: 'menuitem24',
text: '消息通知',
type: 'MENUITEM',
......@@ -481,7 +481,7 @@ export default class IndexModel {
authtag:'Web-Index-menuitem24',
items: [
{
id: 'B6F25A0B-B2C3-4291-968E-E311823C9550',
id: 'e671f14ca3bdc88948563f693a299463',
name: 'menuitem25',
text: '第三方平台',
type: 'MENUITEM',
......@@ -500,7 +500,7 @@ export default class IndexModel {
authtag:'Web-Index-menuitem25',
},
{
id: '25FB3FBA-6838-4953-AC4F-20C97C6A2F7B',
id: '3c8cc7c3e0d6e37d8ee090f4c35a88b8',
name: 'menuitem26',
text: '消息模板',
type: 'MENUITEM',
......@@ -519,7 +519,7 @@ export default class IndexModel {
authtag:'Web-Index-menuitem26',
},
{
id: '1A480358-9C2E-45D7-AA3C-2A2B14C32E7D',
id: '20fd1c8ce747edb94d19b4e6344817dd',
name: 'menuitem27',
text: '消息账户',
type: 'MENUITEM',
......@@ -540,7 +540,7 @@ export default class IndexModel {
],
},
{
id: '575A683B-752B-46E7-8F77-EF579FC9829A',
id: 'ad1ef83190eb18e95d5ee3ce9be949ff',
name: 'menuitem28',
text: '支付管理',
type: 'MENUITEM',
......@@ -559,7 +559,7 @@ export default class IndexModel {
authtag:'Web-Index-menuitem28',
items: [
{
id: '0B8F512C-A6E7-4103-8DBD-F4594942E8A7',
id: '3389246e944ec9a3dd3bf6c3c26609c1',
name: 'menuitem29',
text: '支付交易',
type: 'MENUITEM',
......@@ -578,7 +578,7 @@ export default class IndexModel {
authtag:'Web-Index-menuitem29',
},
{
id: 'D80F5DD5-ABE3-4265-A9A7-8A19BD81C6C3',
id: 'c857f65ec0b4e9f138864eab77a1ee19',
name: 'menuitem30',
text: '支付平台',
type: 'MENUITEM',
......@@ -597,6 +597,46 @@ export default class IndexModel {
authtag:'Web-Index-menuitem30',
},
],
},
{
id: '37D46227-986C-4928-8959-1BB010E6F1DE',
name: 'menuitem31',
text: '存储管理',
type: 'MENUITEM',
counterid: '',
tooltip: '存储管理',
expanded: false,
separator: false,
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: '',
icon: '',
textcls: '',
appfunctag: '',
resourcetag: '',
authtag:'Web-Index-menuitem31',
items: [
{
id: '445578D4-C61D-4E9B-A44B-B899E5691707',
name: 'menuitem32',
text: '动态模型',
type: 'MENUITEM',
counterid: '',
tooltip: '动态模型',
expanded: false,
separator: false,
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: '',
icon: '',
textcls: '',
appfunctag: 'AppFunc8',
resourcetag: '',
authtag:'Web-Index-menuitem32',
},
],
},
];
......
......@@ -43,6 +43,10 @@ zuul:
path: /sysdepartments/**
serviceId: ${ibiz.ref.service.ibzou-api:ibzou-api}
stripPrefix: false
meta_dynamicmodel:
path: /meta_dynamicmodels/**
serviceId: ${ibiz.ref.service.ibzdisk-api:ibzdisk-api}
stripPrefix: false
sys_emp:
path: /sysemployees/**
serviceId: ${ibiz.ref.service.ibzou-api:ibzou-api}
......
......@@ -28,6 +28,10 @@ zuul:
path: /jobs_registries/**
serviceId: ${ibiz.ref.service.ibztask-api:ibztask-api}
stripPrefix: false
meta_dynamicmodel:
path: /meta_dynamicmodels/**
serviceId: ${ibiz.ref.service.ibzdisk-api:ibzdisk-api}
stripPrefix: false
msg_body:
path: /msg_bodies/**
serviceId: ${ibiz.ref.service.ibznotify-api:ibznotify-api}
......
package cn.ibizlab.core.disk.client;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.HashMap;
import java.util.Collection;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.web.bind.annotation.*;
import cn.ibizlab.core.disk.domain.META_DYNAMICMODEL;
import cn.ibizlab.core.disk.filter.META_DYNAMICMODELSearchContext;
import org.springframework.stereotype.Component;
/**
* 实体[META_DYNAMICMODEL] 服务对象接口
*/
@Component
public class META_DYNAMICMODELFallback implements META_DYNAMICMODELFeignClient {
public Page<META_DYNAMICMODEL> select() {
return null;
}
public META_DYNAMICMODEL create(META_DYNAMICMODEL meta_dynamicmodel) {
return null;
}
public Boolean createBatch(List<META_DYNAMICMODEL> meta_dynamicmodels) {
return false;
}
public META_DYNAMICMODEL update(String configid, META_DYNAMICMODEL meta_dynamicmodel) {
return null;
}
public Boolean updateBatch(List<META_DYNAMICMODEL> meta_dynamicmodels) {
return false;
}
public Boolean remove(String configid) {
return false;
}
public Boolean removeBatch(Collection<String> idList) {
return false;
}
public META_DYNAMICMODEL get(String configid) {
return null;
}
public META_DYNAMICMODEL getDraft(META_DYNAMICMODEL entity){
return null;
}
public Boolean checkKey(META_DYNAMICMODEL meta_dynamicmodel) {
return false;
}
public META_DYNAMICMODEL init( String configid, META_DYNAMICMODEL meta_dynamicmodel) {
return null;
}
public META_DYNAMICMODEL publish( String configid, META_DYNAMICMODEL meta_dynamicmodel) {
return null;
}
public Object saveEntity(META_DYNAMICMODEL meta_dynamicmodel) {
return null;
}
public Boolean save(META_DYNAMICMODEL meta_dynamicmodel) {
return false;
}
public Boolean saveBatch(List<META_DYNAMICMODEL> meta_dynamicmodels) {
return false;
}
public Page<META_DYNAMICMODEL> searchDefault(META_DYNAMICMODELSearchContext context) {
return null;
}
public Page<META_DYNAMICMODEL> searchDynaInst(META_DYNAMICMODELSearchContext context) {
return null;
}
}
package cn.ibizlab.core.disk.client;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.HashMap;
import java.util.Collection;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.web.bind.annotation.*;
import cn.ibizlab.core.disk.domain.META_DYNAMICMODEL;
import cn.ibizlab.core.disk.filter.META_DYNAMICMODELSearchContext;
import org.springframework.cloud.openfeign.FeignClient;
/**
* 实体[META_DYNAMICMODEL] 服务对象接口
*/
@FeignClient(value = "${ibiz.ref.service.ibzdisk-api:ibzdisk-api}", contextId = "META-DYNAMICMODEL", fallback = META_DYNAMICMODELFallback.class)
public interface META_DYNAMICMODELFeignClient {
@RequestMapping(method = RequestMethod.GET, value = "/meta_dynamicmodels/select")
Page<META_DYNAMICMODEL> select();
@RequestMapping(method = RequestMethod.POST, value = "/meta_dynamicmodels")
META_DYNAMICMODEL create(@RequestBody META_DYNAMICMODEL meta_dynamicmodel);
@RequestMapping(method = RequestMethod.POST, value = "/meta_dynamicmodels/batch")
Boolean createBatch(@RequestBody List<META_DYNAMICMODEL> meta_dynamicmodels);
@RequestMapping(method = RequestMethod.PUT, value = "/meta_dynamicmodels/{configid}")
META_DYNAMICMODEL update(@PathVariable("configid") String configid,@RequestBody META_DYNAMICMODEL meta_dynamicmodel);
@RequestMapping(method = RequestMethod.PUT, value = "/meta_dynamicmodels/batch")
Boolean updateBatch(@RequestBody List<META_DYNAMICMODEL> meta_dynamicmodels);
@RequestMapping(method = RequestMethod.DELETE, value = "/meta_dynamicmodels/{configid}")
Boolean remove(@PathVariable("configid") String configid);
@RequestMapping(method = RequestMethod.DELETE, value = "/meta_dynamicmodels/batch}")
Boolean removeBatch(@RequestBody Collection<String> idList);
@RequestMapping(method = RequestMethod.GET, value = "/meta_dynamicmodels/{configid}")
META_DYNAMICMODEL get(@PathVariable("configid") String configid);
@RequestMapping(method = RequestMethod.GET, value = "/meta_dynamicmodels/getdraft")
META_DYNAMICMODEL getDraft(META_DYNAMICMODEL entity);
@RequestMapping(method = RequestMethod.POST, value = "/meta_dynamicmodels/checkkey")
Boolean checkKey(@RequestBody META_DYNAMICMODEL meta_dynamicmodel);
@RequestMapping(method = RequestMethod.POST, value = "/meta_dynamicmodels/{configid}/init")
META_DYNAMICMODEL init(@PathVariable("configid") String configid,@RequestBody META_DYNAMICMODEL meta_dynamicmodel);
@RequestMapping(method = RequestMethod.POST, value = "/meta_dynamicmodels/{configid}/publish")
META_DYNAMICMODEL publish(@PathVariable("configid") String configid,@RequestBody META_DYNAMICMODEL meta_dynamicmodel);
@RequestMapping(method = RequestMethod.POST, value = "/meta_dynamicmodels/save")
Object saveEntity(@RequestBody META_DYNAMICMODEL meta_dynamicmodel);
default Boolean save(@RequestBody META_DYNAMICMODEL meta_dynamicmodel) { return saveEntity(meta_dynamicmodel)!=null; }
@RequestMapping(method = RequestMethod.POST, value = "/meta_dynamicmodels/savebatch")
Boolean saveBatch(@RequestBody List<META_DYNAMICMODEL> meta_dynamicmodels);
@RequestMapping(method = RequestMethod.POST, value = "/meta_dynamicmodels/searchdefault")
Page<META_DYNAMICMODEL> searchDefault(@RequestBody META_DYNAMICMODELSearchContext context);
@RequestMapping(method = RequestMethod.POST, value = "/meta_dynamicmodels/searchdynainst")
Page<META_DYNAMICMODEL> searchDynaInst(@RequestBody META_DYNAMICMODELSearchContext context);
}
package cn.ibizlab.core.disk.domain;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.math.BigInteger;
import java.util.HashMap;
import java.math.BigDecimal;
import java.text.SimpleDateFormat;
import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.util.ObjectUtils;
import org.springframework.util.DigestUtils;
import cn.ibizlab.util.domain.EntityBase;
import cn.ibizlab.util.annotation.DEField;
import cn.ibizlab.util.enums.DEPredefinedFieldType;
import cn.ibizlab.util.enums.DEFieldDefaultValueType;
import cn.ibizlab.util.helper.DataObject;
import cn.ibizlab.util.enums.DupCheck;
import java.io.Serializable;
import lombok.*;
import org.springframework.data.annotation.Transient;
import cn.ibizlab.util.annotation.Audit;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import cn.ibizlab.util.domain.EntityClient;
/**
* ServiceApi [动态模型] 对象
*/
@Data
@ApiModel("动态模型")
public class META_DYNAMICMODEL extends EntityClient implements Serializable {
/**
* 动态实例
*/
@JSONField(name = "dynainstid")
@JsonProperty("dynainstid")
@ApiModelProperty("动态实例")
private String dynainstid;
/**
* 系统
*/
@JSONField(name = "system_id")
@JsonProperty("system_id")
@ApiModelProperty("系统")
private String systemId;
/**
* 配置标识
*/
@DEField(isKeyField = true)
@JSONField(name = "configid")
@JsonProperty("configid")
@ApiModelProperty("配置标识")
private String configid;
/**
* 配置名称
*/
@JSONField(name = "configname")
@JsonProperty("configname")
@ApiModelProperty("配置名称")
private String configname;
/**
* 父实例
*/
@JSONField(name = "pdynainstid")
@JsonProperty("pdynainstid")
@ApiModelProperty("父实例")
private String pdynainstid;
/**
* 文件
*/
@JSONField(name = "modelfile")
@JsonProperty("modelfile")
@ApiModelProperty("文件")
private String modelfile;
/**
* 状态
*/
@DEField(defaultValue = "0")
@JSONField(name = "status")
@JsonProperty("status")
@ApiModelProperty("状态")
private String status;
/**
* 主实例标识
*/
@JSONField(name = "pdynamicinstid")
@JsonProperty("pdynamicinstid")
private cn.ibizlab.core.disk.domain.META_DYNAMICMODEL pdynamicinstid;
/**
* 设置 [动态实例]
*/
public void setDynainstid(String dynainstid) {
this.dynainstid = dynainstid ;
this.modify("dynainstid",dynainstid);
}
/**
* 设置 [系统]
*/
public void setSystemId(String systemId) {
this.systemId = systemId ;
this.modify("systemid",systemId);
}
/**
* 设置 [配置名称]
*/
public void setConfigname(String configname) {
this.configname = configname ;
this.modify("configname",configname);
}
/**
* 设置 [父实例]
*/
public void setPdynainstid(String pdynainstid) {
this.pdynainstid = pdynainstid ;
this.modify("pdynainstid",pdynainstid);
}
/**
* 设置 [文件]
*/
public void setModelfile(String modelfile) {
this.modelfile = modelfile ;
this.modify("modelfile",modelfile);
}
/**
* 设置 [状态]
*/
public void setStatus(String status) {
this.status = status ;
this.modify("status",status);
}
/**
* 复制当前对象数据到目标对象(粘贴重置)
* @param targetEntity 目标数据对象
* @param bIncEmpty 是否包括空值
* @param <T>
* @return
*/
@Override
public <T> T copyTo(T targetEntity, boolean bIncEmpty) {
this.reset("configid");
return super.copyTo(targetEntity,bIncEmpty);
}
}
package cn.ibizlab.core.disk.filter;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.HashMap;
import lombok.*;
import lombok.extern.slf4j.Slf4j;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.alibaba.fastjson.annotation.JSONField;
import org.springframework.util.ObjectUtils;
import org.springframework.util.StringUtils;
import cn.ibizlab.util.filter.SearchContextBase;
/**
* ServiceApi数据实体[META_DYNAMICMODEL] 查询条件对象
*/
@Slf4j
@Data
public class META_DYNAMICMODELSearchContext extends SearchContextBase {
private String n_systemid_eq;//[系统]
private String n_configname_like;//[配置名称]
private String n_pdynainstid_eq;//[父实例]
private String n_status_eq;//[状态]
}
package cn.ibizlab.core.disk.service;
import java.io.Serializable;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.HashMap;
import java.util.Collection;
import java.math.BigInteger;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.scheduling.annotation.Async;
import com.alibaba.fastjson.JSONObject;
import org.springframework.cache.annotation.CacheEvict;
import cn.ibizlab.core.disk.domain.META_DYNAMICMODEL;
import cn.ibizlab.core.disk.filter.META_DYNAMICMODELSearchContext;
/**
* 实体[META_DYNAMICMODEL] 服务对象接口
*/
public interface IMETA_DYNAMICMODELService {
boolean create(META_DYNAMICMODEL et);
void createBatch(List<META_DYNAMICMODEL> list);
boolean update(META_DYNAMICMODEL et);
void updateBatch(List<META_DYNAMICMODEL> list);
boolean remove(String key);
void removeBatch(Collection<String> idList);
META_DYNAMICMODEL get(String key);
META_DYNAMICMODEL getDraft(META_DYNAMICMODEL et);
boolean checkKey(META_DYNAMICMODEL et);
META_DYNAMICMODEL init(META_DYNAMICMODEL et);
boolean initBatch(List<META_DYNAMICMODEL> etList);
META_DYNAMICMODEL publish(META_DYNAMICMODEL et);
boolean publishBatch(List<META_DYNAMICMODEL> etList);
boolean save(META_DYNAMICMODEL et);
void saveBatch(List<META_DYNAMICMODEL> list);
Page<META_DYNAMICMODEL> searchDefault(META_DYNAMICMODELSearchContext context);
Page<META_DYNAMICMODEL> searchDynaInst(META_DYNAMICMODELSearchContext context);
List<META_DYNAMICMODEL> selectByPdynainstid(String configid);
void removeByPdynainstid(String configid);
}
package cn.ibizlab.core.disk.service.impl;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import java.util.Set;
import java.util.Map;
import java.util.HashSet;
import java.util.HashMap;
import java.util.Collection;
import java.util.Objects;
import java.util.Optional;
import java.math.BigInteger;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cglib.beans.BeanCopier;
import org.springframework.stereotype.Service;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable;
import org.springframework.util.ObjectUtils;
import org.springframework.beans.factory.annotation.Value;
import cn.ibizlab.util.errors.BadRequestAlertException;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Lazy;
import cn.ibizlab.core.disk.domain.META_DYNAMICMODEL;
import cn.ibizlab.core.disk.filter.META_DYNAMICMODELSearchContext;
import cn.ibizlab.core.disk.service.IMETA_DYNAMICMODELService;
import cn.ibizlab.util.helper.CachedBeanCopier;
import cn.ibizlab.util.helper.DEFieldCacheMap;
import cn.ibizlab.core.disk.client.META_DYNAMICMODELFeignClient;
import com.fasterxml.jackson.databind.ObjectMapper;
/**
* 实体[动态模型] 服务对象接口实现
*/
@Slf4j
@Service
public class META_DYNAMICMODELServiceImpl implements IMETA_DYNAMICMODELService {
@Autowired
META_DYNAMICMODELFeignClient mETA_DYNAMICMODELFeignClient;
@Override
public boolean create(META_DYNAMICMODEL et) {
META_DYNAMICMODEL rt = mETA_DYNAMICMODELFeignClient.create(et);
if(rt==null)
return false;
CachedBeanCopier.copy(rt, et);
return true;
}
public void createBatch(List<META_DYNAMICMODEL> list){
mETA_DYNAMICMODELFeignClient.createBatch(list) ;
}
@Override
public boolean update(META_DYNAMICMODEL et) {
META_DYNAMICMODEL rt = mETA_DYNAMICMODELFeignClient.update(et.getConfigid(),et);
if(rt==null)
return false;
CachedBeanCopier.copy(rt, et);
return true;
}
public void updateBatch(List<META_DYNAMICMODEL> list){
mETA_DYNAMICMODELFeignClient.updateBatch(list) ;
}
@Override
public boolean remove(String configid) {
boolean result=mETA_DYNAMICMODELFeignClient.remove(configid) ;
return result;
}
public void removeBatch(Collection<String> idList){
mETA_DYNAMICMODELFeignClient.removeBatch(idList);
}
@Override
public META_DYNAMICMODEL get(String configid) {
META_DYNAMICMODEL et=mETA_DYNAMICMODELFeignClient.get(configid);
if(et==null){
et=new META_DYNAMICMODEL();
et.setConfigid(configid);
}
else{
}
return et;
}
@Override
public META_DYNAMICMODEL getDraft(META_DYNAMICMODEL et) {
et=mETA_DYNAMICMODELFeignClient.getDraft(et);
return et;
}
@Override
public boolean checkKey(META_DYNAMICMODEL et) {
return mETA_DYNAMICMODELFeignClient.checkKey(et);
}
@Override
@Transactional
public META_DYNAMICMODEL init(META_DYNAMICMODEL et) {
//自定义代码
return et;
}
@Override
@Transactional
public boolean initBatch(List<META_DYNAMICMODEL> etList) {
for(META_DYNAMICMODEL et : etList) {
init(et);
}
return true;
}
@Override
@Transactional
public META_DYNAMICMODEL publish(META_DYNAMICMODEL et) {
//自定义代码
return et;
}
@Override
@Transactional
public boolean publishBatch(List<META_DYNAMICMODEL> etList) {
for(META_DYNAMICMODEL et : etList) {
publish(et);
}
return true;
}
@Override
@Transactional
public boolean save(META_DYNAMICMODEL et) {
boolean result = true;
Object rt = mETA_DYNAMICMODELFeignClient.saveEntity(et);
if(rt == null)
return false;
try {
if (rt instanceof Map) {
ObjectMapper mapper = new ObjectMapper();
rt = mapper.readValue(mapper.writeValueAsString(rt), META_DYNAMICMODEL.class);
if (rt != null) {
CachedBeanCopier.copy(rt, et);
}
} else if (rt instanceof Boolean) {
result = (boolean) rt;
}
} catch (Exception e) {
}
return result;
}
@Override
public void saveBatch(List<META_DYNAMICMODEL> list) {
mETA_DYNAMICMODELFeignClient.saveBatch(list) ;
}
@Override
public List<META_DYNAMICMODEL> selectByPdynainstid(String configid) {
META_DYNAMICMODELSearchContext context=new META_DYNAMICMODELSearchContext();
context.setSize(Integer.MAX_VALUE);
context.setN_pdynainstid_eq(configid);
return mETA_DYNAMICMODELFeignClient.searchDefault(context).getContent();
}
@Override
public void removeByPdynainstid(String configid) {
Set<String> delIds=new HashSet<String>();
for(META_DYNAMICMODEL before:selectByPdynainstid(configid)){
delIds.add(before.getConfigid());
}
if(delIds.size()>0)
this.removeBatch(delIds);
}
/**
* 查询集合 数据集
*/
@Override
public Page<META_DYNAMICMODEL> searchDefault(META_DYNAMICMODELSearchContext context) {
Page<META_DYNAMICMODEL> mETA_DYNAMICMODELs=mETA_DYNAMICMODELFeignClient.searchDefault(context);
return mETA_DYNAMICMODELs;
}
/**
* 查询集合 主实例数据查询
*/
@Override
public Page<META_DYNAMICMODEL> searchDynaInst(META_DYNAMICMODELSearchContext context) {
Page<META_DYNAMICMODEL> mETA_DYNAMICMODELs=mETA_DYNAMICMODELFeignClient.searchDynaInst(context);
return mETA_DYNAMICMODELs;
}
}
package cn.ibizlab.core.extensions.service;
import cn.ibizlab.core.disk.service.impl.META_DYNAMICMODELServiceImpl;
import lombok.extern.slf4j.Slf4j;
import cn.ibizlab.core.disk.domain.META_DYNAMICMODEL;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Primary;
import java.util.*;
/**
* 实体[动态模型] 自定义服务对象
*/
@Slf4j
@Primary
@Service("META_DYNAMICMODELExService")
public class META_DYNAMICMODELExService extends META_DYNAMICMODELServiceImpl {
/**
* [Init:初始化副本实例] 行为扩展
* @param et
* @return
*/
@Override
@Transactional
public META_DYNAMICMODEL init(META_DYNAMICMODEL et) {
return super.init(et);
}
/**
* [Publish:发布模型] 行为扩展
* @param et
* @return
*/
@Override
@Transactional
public META_DYNAMICMODEL publish(META_DYNAMICMODEL et) {
return super.publish(et);
}
}
......@@ -52,6 +52,14 @@
"datascope":[{"id":"all","name":"全部数据"}]
}
, {
"dename":"META_DYNAMICMODEL",
"delogicname":"动态模型",
"sysmoudle":{"id":"DISK","name":"disk"},
"dedataset":[{"id":"Default" , "name":"数据集"},{"id":"DynaInst" , "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":"Init" , "name":"初始化副本实例" , "type":"USERCUSTOM" },{"id":"Publish" , "name":"发布模型" , "type":"USERCUSTOM" },{"id":"Save" , "name":"Save" , "type":"BUILTIN" }],
"datascope":[{"id":"all","name":"全部数据"}]
}
, {
"dename":"MsgBody",
"delogicname":"消息",
"sysmoudle":{"id":"NOTIFY","name":"notify"},
......@@ -281,7 +289,7 @@
{
"appid":"Web",
"appname":"ibizlab-runtime",
"appmenu":[{"menuid":"Index", "menuname":"Index", "menuitem":[{ "id":"menuitem7" , "name":"单位人事" , "items":[{ "id":"menuitem1" , "name":"单位管理" },{ "id":"menuitem2" , "name":"部门管理" },{ "id":"menuitem3" , "name":"人员管理" },{ "id":"menuitem12" , "name":"岗位管理" },{ "id":"menuitem13" , "name":"组管理" }]},{ "id":"menuitem8" , "name":"系统权限" , "items":[{ "id":"menuitem4" , "name":"用户角色" },{ "id":"menuitem9" , "name":"认证日志" },{ "id":"menuitem21" , "name":"接入应用" },{ "id":"menuitem22" , "name":"第三方认证" },{ "id":"menuitem23" , "name":"账户绑定" }]},{ "id":"menuitem10" , "name":"流程管理" , "items":[{ "id":"menuitem6" , "name":"流程定义" },{ "id":"menuitem5" , "name":"流程角色" },{ "id":"menuitem11" , "name":"发布新流程" }]},{ "id":"menuitem14" , "name":"任务管理" , "items":[{ "id":"menuitem15" , "name":"注册" },{ "id":"menuitem16" , "name":"任务" },{ "id":"menuitem17" , "name":"日志" }]},{ "id":"menuitem18" , "name":"字典管理" , "items":[{ "id":"menuitem19" , "name":"目录" },{ "id":"menuitem20" , "name":"字典项" }]},{ "id":"menuitem24" , "name":"消息通知" , "items":[{ "id":"menuitem25" , "name":"第三方平台" },{ "id":"menuitem26" , "name":"消息模板" },{ "id":"menuitem27" , "name":"消息账户" }]},{ "id":"menuitem28" , "name":"支付管理" , "items":[{ "id":"menuitem29" , "name":"支付交易" },{ "id":"menuitem30" , "name":"支付平台" }]}] }]
"appmenu":[{"menuid":"Index", "menuname":"Index", "menuitem":[{ "id":"menuitem7" , "name":"单位人事" , "items":[{ "id":"menuitem1" , "name":"单位管理" },{ "id":"menuitem2" , "name":"部门管理" },{ "id":"menuitem3" , "name":"人员管理" },{ "id":"menuitem12" , "name":"岗位管理" },{ "id":"menuitem13" , "name":"组管理" }]},{ "id":"menuitem8" , "name":"系统权限" , "items":[{ "id":"menuitem4" , "name":"用户角色" },{ "id":"menuitem9" , "name":"认证日志" },{ "id":"menuitem21" , "name":"接入应用" },{ "id":"menuitem22" , "name":"第三方认证" },{ "id":"menuitem23" , "name":"账户绑定" }]},{ "id":"menuitem10" , "name":"流程管理" , "items":[{ "id":"menuitem6" , "name":"流程定义" },{ "id":"menuitem5" , "name":"流程角色" },{ "id":"menuitem11" , "name":"发布新流程" }]},{ "id":"menuitem14" , "name":"任务管理" , "items":[{ "id":"menuitem15" , "name":"注册" },{ "id":"menuitem16" , "name":"任务" },{ "id":"menuitem17" , "name":"日志" }]},{ "id":"menuitem18" , "name":"字典管理" , "items":[{ "id":"menuitem19" , "name":"目录" },{ "id":"menuitem20" , "name":"字典项" }]},{ "id":"menuitem24" , "name":"消息通知" , "items":[{ "id":"menuitem25" , "name":"第三方平台" },{ "id":"menuitem26" , "name":"消息模板" },{ "id":"menuitem27" , "name":"消息账户" }]},{ "id":"menuitem28" , "name":"支付管理" , "items":[{ "id":"menuitem29" , "name":"支付交易" },{ "id":"menuitem30" , "name":"支付平台" }]},{ "id":"menuitem31" , "name":"存储管理" , "items":[{ "id":"menuitem32" , "name":"动态模型" }]}] }]
}
]
}
......@@ -883,6 +883,138 @@
],
"parentEntitys":[
]
}
,
{
"entity_name":"META_DYNAMICMODEL",
"logic_name":"动态模型",
"code_name":"META_DYNAMICMODEL",
"table_name":"IBZDYNAMICMODEL",
"system_id":"ibzrt",
"system_name":"ibzrt",
"module_id":"disk",
"module_name":"disk",
"fields":[
{
"fieldname":"DYNAINSTID" ,
"codename":"Dynainstid",
"field_logic_name":"动态实例",
"entity_name":"META_DYNAMICMODEL",
"field_type":"TEXT",
"nullable":1,
"physical_field":1,
"data_type":"VARCHAR",
"data_length":100,
"key_field":0,
"show_order":1,
"major_field":0
},
{
"fieldname":"SYSTEMID" ,
"codename":"System_id",
"field_logic_name":"系统",
"entity_name":"META_DYNAMICMODEL",
"field_type":"TEXT",
"nullable":1,
"physical_field":1,
"data_type":"VARCHAR",
"data_length":100,
"key_field":0,
"show_order":2,
"major_field":0
},
{
"fieldname":"CONFIGID" ,
"codename":"Configid",
"field_logic_name":"配置标识",
"entity_name":"META_DYNAMICMODEL",
"field_type":"TEXT",
"nullable":1,
"physical_field":1,
"data_type":"VARCHAR",
"data_length":100,
"key_field":1,
"show_order":3,
"major_field":0
},
{
"fieldname":"CONFIGNAME" ,
"codename":"Configname",
"field_logic_name":"配置名称",
"entity_name":"META_DYNAMICMODEL",
"field_type":"TEXT",
"nullable":1,
"physical_field":1,
"data_type":"VARCHAR",
"data_length":100,
"key_field":0,
"show_order":4,
"major_field":1
},
{
"fieldname":"PDYNAINSTID" ,
"codename":"Pdynainstid",
"field_logic_name":"父实例",
"entity_name":"META_DYNAMICMODEL",
"ref_de":"META_DYNAMICMODEL",
"ref_field_name":"CONFIGID",
"relation_name":"DER1N_META_DYNAMICMODEL_META_DYNAMICMODEL_PDYNAINSTID",
"relation_codename":"PDynamicInstId",
"field_type":"PICKUP",
"nullable":1,
"physical_field":1,
"data_type":"VARCHAR",
"data_length":100,
"key_field":0,
"show_order":5,
"major_field":0
},
{
"fieldname":"MODELFILE" ,
"codename":"Modelfile",
"field_logic_name":"文件",
"entity_name":"META_DYNAMICMODEL",
"field_type":"TEXT",
"nullable":1,
"physical_field":1,
"data_type":"VARCHAR",
"data_length":1000,
"key_field":0,
"show_order":6,
"major_field":0
},
{
"fieldname":"STATUS" ,
"codename":"Status",
"field_logic_name":"状态",
"entity_name":"META_DYNAMICMODEL",
"field_type":"SSCODELIST",
"dict":"DynamicModelStatus",
"nullable":1,
"physical_field":1,
"data_type":"VARCHAR",
"data_length":60,
"key_field":0,
"show_order":7,
"major_field":0
}
],
"subEntitys":[
{"name":"DER1N_META_DYNAMICMODEL_META_DYNAMICMODEL_PDYNAINSTID",
"relation_type":"DER1N",
"code_name":"PDynamicInstId",
"entity_name":"META_DYNAMICMODEL",
"ref_entity_name":"META_DYNAMICMODEL"
}
],
"parentEntitys":[
{"name":"DER1N_META_DYNAMICMODEL_META_DYNAMICMODEL_PDYNAINSTID",
"relation_type":"DER1N",
"code_name":"PDynamicInstId",
"entity_name":"META_DYNAMICMODEL",
"ref_entity_name":"META_DYNAMICMODEL"
}
]
}
,
{
......
package cn.ibizlab.api.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;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
* 服务DTO对象[META_DYNAMICMODELDTO]
*/
@Data
@ApiModel("动态模型")
public class META_DYNAMICMODELDTO extends DTOBase implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 属性 [DYNAINSTID]
*
*/
@JSONField(name = "dynainstid")
@JsonProperty("dynainstid")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("动态实例")
private String dynainstid;
/**
* 属性 [SYSTEMID]
*
*/
@JSONField(name = "system_id")
@JsonProperty("system_id")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("系统")
private String systemId;
/**
* 属性 [CONFIGID]
*
*/
@JSONField(name = "configid")
@JsonProperty("configid")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("配置标识")
private String configid;
/**
* 属性 [CONFIGNAME]
*
*/
@JSONField(name = "configname")
@JsonProperty("configname")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("配置名称")
private String configname;
/**
* 属性 [PDYNAINSTID]
*
*/
@JSONField(name = "pdynainstid")
@JsonProperty("pdynainstid")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@ApiModelProperty("父实例")
private String pdynainstid;
/**
* 属性 [MODELFILE]
*
*/
@JSONField(name = "modelfile")
@JsonProperty("modelfile")
@Size(min = 0, max = 1000, message = "内容长度必须小于等于[1000]")
@ApiModelProperty("文件")
private String modelfile;
/**
* 属性 [STATUS]
*
*/
@JSONField(name = "status")
@JsonProperty("status")
@Size(min = 0, max = 60, message = "内容长度必须小于等于[60]")
@ApiModelProperty("状态")
private String status;
/**
* 设置 [DYNAINSTID]
*/
public void setDynainstid(String dynainstid){
this.dynainstid = dynainstid ;
this.modify("dynainstid",dynainstid);
}
/**
* 设置 [SYSTEMID]
*/
public void setSystemId(String systemId){
this.systemId = systemId ;
this.modify("systemid",systemId);
}
/**
* 设置 [CONFIGNAME]
*/
public void setConfigname(String configname){
this.configname = configname ;
this.modify("configname",configname);
}
/**
* 设置 [PDYNAINSTID]
*/
public void setPdynainstid(String pdynainstid){
this.pdynainstid = pdynainstid ;
this.modify("pdynainstid",pdynainstid);
}
/**
* 设置 [MODELFILE]
*/
public void setModelfile(String modelfile){
this.modelfile = modelfile ;
this.modify("modelfile",modelfile);
}
/**
* 设置 [STATUS]
*/
public void setStatus(String status){
this.status = status ;
this.modify("status",status);
}
}
package cn.ibizlab.api.mapping;
import org.mapstruct.*;
import cn.ibizlab.core.disk.domain.META_DYNAMICMODEL;
import cn.ibizlab.api.dto.META_DYNAMICMODELDTO;
import cn.ibizlab.util.domain.MappingBase;
@Mapper(componentModel = "spring", uses = {}, implementationName = "apiMETA_DYNAMICMODELMapping",
nullValuePropertyMappingStrategy = NullValuePropertyMappingStrategy.IGNORE,
nullValueCheckStrategy = NullValueCheckStrategy.ALWAYS)
public interface META_DYNAMICMODELMapping extends MappingBase<META_DYNAMICMODELDTO, META_DYNAMICMODEL> {
}
package cn.ibizlab.api.rest;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.math.BigInteger;
import java.util.HashMap;
import lombok.extern.slf4j.Slf4j;
import com.alibaba.fastjson.JSONObject;
import javax.servlet.ServletRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cglib.beans.BeanCopier;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
import org.springframework.http.HttpStatus;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable;
import org.springframework.util.StringUtils;
import org.springframework.context.annotation.Lazy;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.security.access.prepost.PostAuthorize;
import org.springframework.validation.annotation.Validated;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiResponse;
import io.swagger.annotations.ApiResponses;
import cn.ibizlab.api.dto.*;
import cn.ibizlab.api.mapping.*;
import cn.ibizlab.core.disk.domain.META_DYNAMICMODEL;
import cn.ibizlab.core.disk.service.IMETA_DYNAMICMODELService;
import cn.ibizlab.core.disk.filter.META_DYNAMICMODELSearchContext;
import cn.ibizlab.util.annotation.VersionCheck;
@Slf4j
@Api(tags = {"动态模型" })
@RestController("api-meta_dynamicmodel")
@RequestMapping("")
public class META_DYNAMICMODELResource {
@Autowired
public IMETA_DYNAMICMODELService meta_dynamicmodelService;
@Autowired
@Lazy
public META_DYNAMICMODELMapping meta_dynamicmodelMapping;
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzrt-META_DYNAMICMODEL-Create-all')")
@ApiOperation(value = "新建动态模型", tags = {"动态模型" }, notes = "新建动态模型")
@RequestMapping(method = RequestMethod.POST, value = "/meta_dynamicmodels")
public ResponseEntity<META_DYNAMICMODELDTO> create(@Validated @RequestBody META_DYNAMICMODELDTO meta_dynamicmodeldto) {
META_DYNAMICMODEL domain = meta_dynamicmodelMapping.toDomain(meta_dynamicmodeldto);
meta_dynamicmodelService.create(domain);
META_DYNAMICMODELDTO dto = meta_dynamicmodelMapping.toDto(domain);
return ResponseEntity.status(HttpStatus.OK).body(dto);
}
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzrt-META_DYNAMICMODEL-Create-all')")
@ApiOperation(value = "批量新建动态模型", tags = {"动态模型" }, notes = "批量新建动态模型")
@RequestMapping(method = RequestMethod.POST, value = "/meta_dynamicmodels/batch")
public ResponseEntity<Boolean> createBatch(@RequestBody List<META_DYNAMICMODELDTO> meta_dynamicmodeldtos) {
meta_dynamicmodelService.createBatch(meta_dynamicmodelMapping.toDomain(meta_dynamicmodeldtos));
return ResponseEntity.status(HttpStatus.OK).body(true);
}
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzrt-META_DYNAMICMODEL-Update-all')")
@ApiOperation(value = "更新动态模型", tags = {"动态模型" }, notes = "更新动态模型")
@RequestMapping(method = RequestMethod.PUT, value = "/meta_dynamicmodels/{meta_dynamicmodel_id}")
public ResponseEntity<META_DYNAMICMODELDTO> update(@PathVariable("meta_dynamicmodel_id") String meta_dynamicmodel_id, @RequestBody META_DYNAMICMODELDTO meta_dynamicmodeldto) {
META_DYNAMICMODEL domain = meta_dynamicmodelMapping.toDomain(meta_dynamicmodeldto);
domain .setConfigid(meta_dynamicmodel_id);
meta_dynamicmodelService.update(domain );
META_DYNAMICMODELDTO dto = meta_dynamicmodelMapping.toDto(domain);
return ResponseEntity.status(HttpStatus.OK).body(dto);
}
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzrt-META_DYNAMICMODEL-Update-all')")
@ApiOperation(value = "批量更新动态模型", tags = {"动态模型" }, notes = "批量更新动态模型")
@RequestMapping(method = RequestMethod.PUT, value = "/meta_dynamicmodels/batch")
public ResponseEntity<Boolean> updateBatch(@RequestBody List<META_DYNAMICMODELDTO> meta_dynamicmodeldtos) {
meta_dynamicmodelService.updateBatch(meta_dynamicmodelMapping.toDomain(meta_dynamicmodeldtos));
return ResponseEntity.status(HttpStatus.OK).body(true);
}
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzrt-META_DYNAMICMODEL-Remove-all')")
@ApiOperation(value = "删除动态模型", tags = {"动态模型" }, notes = "删除动态模型")
@RequestMapping(method = RequestMethod.DELETE, value = "/meta_dynamicmodels/{meta_dynamicmodel_id}")
public ResponseEntity<Boolean> remove(@PathVariable("meta_dynamicmodel_id") String meta_dynamicmodel_id) {
return ResponseEntity.status(HttpStatus.OK).body(meta_dynamicmodelService.remove(meta_dynamicmodel_id));
}
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzrt-META_DYNAMICMODEL-Remove-all')")
@ApiOperation(value = "批量删除动态模型", tags = {"动态模型" }, notes = "批量删除动态模型")
@RequestMapping(method = RequestMethod.DELETE, value = "/meta_dynamicmodels/batch")
public ResponseEntity<Boolean> removeBatch(@RequestBody List<String> ids) {
meta_dynamicmodelService.removeBatch(ids);
return ResponseEntity.status(HttpStatus.OK).body(true);
}
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzrt-META_DYNAMICMODEL-Get-all')")
@ApiOperation(value = "获取动态模型", tags = {"动态模型" }, notes = "获取动态模型")
@RequestMapping(method = RequestMethod.GET, value = "/meta_dynamicmodels/{meta_dynamicmodel_id}")
public ResponseEntity<META_DYNAMICMODELDTO> get(@PathVariable("meta_dynamicmodel_id") String meta_dynamicmodel_id) {
META_DYNAMICMODEL domain = meta_dynamicmodelService.get(meta_dynamicmodel_id);
META_DYNAMICMODELDTO dto = meta_dynamicmodelMapping.toDto(domain);
return ResponseEntity.status(HttpStatus.OK).body(dto);
}
@ApiOperation(value = "获取动态模型草稿", tags = {"动态模型" }, notes = "获取动态模型草稿")
@RequestMapping(method = RequestMethod.GET, value = "/meta_dynamicmodels/getdraft")
public ResponseEntity<META_DYNAMICMODELDTO> getDraft(META_DYNAMICMODELDTO dto) {
META_DYNAMICMODEL domain = meta_dynamicmodelMapping.toDomain(dto);
return ResponseEntity.status(HttpStatus.OK).body(meta_dynamicmodelMapping.toDto(meta_dynamicmodelService.getDraft(domain)));
}
@ApiOperation(value = "检查动态模型", tags = {"动态模型" }, notes = "检查动态模型")
@RequestMapping(method = RequestMethod.POST, value = "/meta_dynamicmodels/checkkey")
public ResponseEntity<Boolean> checkKey(@RequestBody META_DYNAMICMODELDTO meta_dynamicmodeldto) {
return ResponseEntity.status(HttpStatus.OK).body(meta_dynamicmodelService.checkKey(meta_dynamicmodelMapping.toDomain(meta_dynamicmodeldto)));
}
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzrt-META_DYNAMICMODEL-Init-all')")
@ApiOperation(value = "初始化副本实例", tags = {"动态模型" }, notes = "初始化副本实例")
@RequestMapping(method = RequestMethod.POST, value = "/meta_dynamicmodels/{meta_dynamicmodel_id}/init")
public ResponseEntity<META_DYNAMICMODELDTO> init(@PathVariable("meta_dynamicmodel_id") String meta_dynamicmodel_id, @RequestBody META_DYNAMICMODELDTO meta_dynamicmodeldto) {
META_DYNAMICMODEL domain = meta_dynamicmodelMapping.toDomain(meta_dynamicmodeldto);
domain.setConfigid(meta_dynamicmodel_id);
domain = meta_dynamicmodelService.init(domain);
meta_dynamicmodeldto = meta_dynamicmodelMapping.toDto(domain);
return ResponseEntity.status(HttpStatus.OK).body(meta_dynamicmodeldto);
}
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzrt-META_DYNAMICMODEL-Init-all')")
@ApiOperation(value = "批量处理[初始化副本实例]", tags = {"动态模型" }, notes = "批量处理[初始化副本实例]")
@RequestMapping(method = RequestMethod.POST, value = "/meta_dynamicmodels/initbatch")
public ResponseEntity<Boolean> initBatch(@RequestBody List<META_DYNAMICMODELDTO> meta_dynamicmodeldtos) {
List<META_DYNAMICMODEL> domains = meta_dynamicmodelMapping.toDomain(meta_dynamicmodeldtos);
boolean result = meta_dynamicmodelService.initBatch(domains);
return ResponseEntity.status(HttpStatus.OK).body(result);
}
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzrt-META_DYNAMICMODEL-Publish-all')")
@ApiOperation(value = "发布模型", tags = {"动态模型" }, notes = "发布模型")
@RequestMapping(method = RequestMethod.POST, value = "/meta_dynamicmodels/{meta_dynamicmodel_id}/publish")
public ResponseEntity<META_DYNAMICMODELDTO> publish(@PathVariable("meta_dynamicmodel_id") String meta_dynamicmodel_id, @RequestBody META_DYNAMICMODELDTO meta_dynamicmodeldto) {
META_DYNAMICMODEL domain = meta_dynamicmodelMapping.toDomain(meta_dynamicmodeldto);
domain.setConfigid(meta_dynamicmodel_id);
domain = meta_dynamicmodelService.publish(domain);
meta_dynamicmodeldto = meta_dynamicmodelMapping.toDto(domain);
return ResponseEntity.status(HttpStatus.OK).body(meta_dynamicmodeldto);
}
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzrt-META_DYNAMICMODEL-Publish-all')")
@ApiOperation(value = "批量处理[发布模型]", tags = {"动态模型" }, notes = "批量处理[发布模型]")
@RequestMapping(method = RequestMethod.POST, value = "/meta_dynamicmodels/publishbatch")
public ResponseEntity<Boolean> publishBatch(@RequestBody List<META_DYNAMICMODELDTO> meta_dynamicmodeldtos) {
List<META_DYNAMICMODEL> domains = meta_dynamicmodelMapping.toDomain(meta_dynamicmodeldtos);
boolean result = meta_dynamicmodelService.publishBatch(domains);
return ResponseEntity.status(HttpStatus.OK).body(result);
}
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzrt-META_DYNAMICMODEL-Save-all')")
@ApiOperation(value = "保存动态模型", tags = {"动态模型" }, notes = "保存动态模型")
@RequestMapping(method = RequestMethod.POST, value = "/meta_dynamicmodels/save")
public ResponseEntity<META_DYNAMICMODELDTO> save(@RequestBody META_DYNAMICMODELDTO meta_dynamicmodeldto) {
META_DYNAMICMODEL domain = meta_dynamicmodelMapping.toDomain(meta_dynamicmodeldto);
meta_dynamicmodelService.save(domain);
return ResponseEntity.status(HttpStatus.OK).body(meta_dynamicmodelMapping.toDto(domain));
}
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzrt-META_DYNAMICMODEL-Save-all')")
@ApiOperation(value = "批量保存动态模型", tags = {"动态模型" }, notes = "批量保存动态模型")
@RequestMapping(method = RequestMethod.POST, value = "/meta_dynamicmodels/savebatch")
public ResponseEntity<Boolean> saveBatch(@RequestBody List<META_DYNAMICMODELDTO> meta_dynamicmodeldtos) {
meta_dynamicmodelService.saveBatch(meta_dynamicmodelMapping.toDomain(meta_dynamicmodeldtos));
return ResponseEntity.status(HttpStatus.OK).body(true);
}
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzrt-META_DYNAMICMODEL-searchDefault-all')")
@ApiOperation(value = "获取数据集", tags = {"动态模型" } ,notes = "获取数据集")
@RequestMapping(method= RequestMethod.GET , value="/meta_dynamicmodels/fetchdefault")
public ResponseEntity<List<META_DYNAMICMODELDTO>> fetchDefault(META_DYNAMICMODELSearchContext context) {
Page<META_DYNAMICMODEL> domains = meta_dynamicmodelService.searchDefault(context) ;
List<META_DYNAMICMODELDTO> list = meta_dynamicmodelMapping.toDto(domains.getContent());
return ResponseEntity.status(HttpStatus.OK)
.header("x-page", String.valueOf(context.getPageable().getPageNumber()))
.header("x-per-page", String.valueOf(context.getPageable().getPageSize()))
.header("x-total", String.valueOf(domains.getTotalElements()))
.body(list);
}
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzrt-META_DYNAMICMODEL-searchDefault-all')")
@ApiOperation(value = "查询数据集", tags = {"动态模型" } ,notes = "查询数据集")
@RequestMapping(method= RequestMethod.POST , value="/meta_dynamicmodels/searchdefault")
public ResponseEntity<Page<META_DYNAMICMODELDTO>> searchDefault(@RequestBody META_DYNAMICMODELSearchContext context) {
Page<META_DYNAMICMODEL> domains = meta_dynamicmodelService.searchDefault(context) ;
return ResponseEntity.status(HttpStatus.OK)
.body(new PageImpl(meta_dynamicmodelMapping.toDto(domains.getContent()), context.getPageable(), domains.getTotalElements()));
}
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzrt-META_DYNAMICMODEL-searchDynaInst-all')")
@ApiOperation(value = "获取主实例数据查询", tags = {"动态模型" } ,notes = "获取主实例数据查询")
@RequestMapping(method= RequestMethod.GET , value="/meta_dynamicmodels/fetchdynainst")
public ResponseEntity<List<META_DYNAMICMODELDTO>> fetchDynaInst(META_DYNAMICMODELSearchContext context) {
Page<META_DYNAMICMODEL> domains = meta_dynamicmodelService.searchDynaInst(context) ;
List<META_DYNAMICMODELDTO> list = meta_dynamicmodelMapping.toDto(domains.getContent());
return ResponseEntity.status(HttpStatus.OK)
.header("x-page", String.valueOf(context.getPageable().getPageNumber()))
.header("x-per-page", String.valueOf(context.getPageable().getPageSize()))
.header("x-total", String.valueOf(domains.getTotalElements()))
.body(list);
}
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzrt-META_DYNAMICMODEL-searchDynaInst-all')")
@ApiOperation(value = "查询主实例数据查询", tags = {"动态模型" } ,notes = "查询主实例数据查询")
@RequestMapping(method= RequestMethod.POST , value="/meta_dynamicmodels/searchdynainst")
public ResponseEntity<Page<META_DYNAMICMODELDTO>> searchDynaInst(@RequestBody META_DYNAMICMODELSearchContext context) {
Page<META_DYNAMICMODEL> domains = meta_dynamicmodelService.searchDynaInst(context) ;
return ResponseEntity.status(HttpStatus.OK)
.body(new PageImpl(meta_dynamicmodelMapping.toDto(domains.getContent()), context.getPageable(), domains.getTotalElements()));
}
}
......@@ -71,6 +71,52 @@ public class StaticDict {
/**
* 代码表[第三方平台]
*/
@Getter
public enum PayOpenAccessType {
ALIYUN("aliyun","阿里云"),
WECHAT("wechat","微信开放平台"),
QQ("qq","QQ互联"),
DINGTALK("dingtalk","钉钉开放平台");
private String value;
private String text;
private String valueSeparator="";
private String textSeparator="";
private String emptyText="";
PayOpenAccessType(String value , String text) {
this.value=value;
this.text = text;
}
}
/**
* 代码表[第三方平台]
*/
@Getter
public enum NotifyOpenAccessType {
ALIYUN("aliyun","阿里云"),
WECHAT("wechat","微信开放平台"),
QQ("qq","QQ互联"),
DINGTALK("dingtalk","钉钉开放平台");
private String value;
private String text;
private String valueSeparator="";
private String textSeparator="";
private String emptyText="";
NotifyOpenAccessType(String value , String text) {
this.value=value;
this.text = text;
}
}
/**
* 代码表[审计行为]
*/
......@@ -469,29 +515,6 @@ public class StaticDict {
}
/**
* 代码表[第三方平台]
*/
@Getter
public enum PayOpenAccessType {
ALIYUN("aliyun","阿里云"),
WECHAT("wechat","微信开放平台"),
QQ("qq","QQ互联"),
DINGTALK("dingtalk","钉钉开放平台");
private String value;
private String text;
private String valueSeparator="";
private String textSeparator="";
private String emptyText="";
PayOpenAccessType(String value , String text) {
this.value=value;
this.text = text;
}
}
/**
* 代码表[平台内置流程状态]
*/
......@@ -1491,6 +1514,29 @@ public class StaticDict {
}
/**
* 代码表[第三方平台]
*/
@Getter
public enum UaaOpenAccessType {
ALIYUN("aliyun","阿里云"),
WECHAT("wechat","微信开放平台"),
QQ("qq","QQ互联"),
DINGTALK("dingtalk","钉钉开放平台");
private String value;
private String text;
private String valueSeparator="";
private String textSeparator="";
private String emptyText="";
UaaOpenAccessType(String value , String text) {
this.value=value;
this.text = text;
}
}
/**
* 代码表[缩略界面类型]
*/
......@@ -2374,29 +2420,6 @@ public class StaticDict {
}
/**
* 代码表[第三方平台]
*/
@Getter
public enum NotifyOpenAccessType {
ALIYUN("aliyun","阿里云"),
WECHAT("wechat","微信开放平台"),
QQ("qq","QQ互联"),
DINGTALK("dingtalk","钉钉开放平台");
private String value;
private String text;
private String valueSeparator="";
private String textSeparator="";
private String emptyText="";
NotifyOpenAccessType(String value , String text) {
this.value=value;
this.text = text;
}
}
/**
* 代码表[性能分析指标]
*/
......@@ -2681,29 +2704,6 @@ public class StaticDict {
}
/**
* 代码表[第三方平台]
*/
@Getter
public enum UaaOpenAccessType {
ALIYUN("aliyun","阿里云"),
WECHAT("wechat","微信开放平台"),
QQ("qq","QQ互联"),
DINGTALK("dingtalk","钉钉开放平台");
private String value;
private String text;
private String valueSeparator="";
private String textSeparator="";
private String emptyText="";
UaaOpenAccessType(String value , String text) {
this.value=value;
this.text = text;
}
}
/**
* 代码表[月(1~31)]
*/
......@@ -2803,6 +2803,27 @@ public class StaticDict {
}
/**
* 代码表[动态模型导入状态]
*/
@Getter
public enum DynamicModelStatus {
ITEM_0("0","未激活"),
ITEM_1("1","已激活");
private String value;
private String text;
private String valueSeparator="";
private String textSeparator="";
private String emptyText="";
DynamicModelStatus(String value , String text) {
this.value=value;
this.text = text;
}
}
/**
* 代码表[数据同步方向]
*/
......
package cn.ibizlab.util.helper;
import cn.ibizlab.util.domain.EntityBase;
import java.lang.reflect.Method;
import java.math.BigDecimal;
......@@ -312,6 +311,13 @@ public class RuleUtils
}
public static boolean ge(Object exp, Object finalObject)
{
if(ObjectUtils.isEmpty(exp)){
return false;
}
if(ObjectUtils.isEmpty(finalObject)){
return false;
}
return (!(lt(exp, finalObject)));
}
......@@ -321,6 +327,12 @@ public class RuleUtils
}
public static boolean le(Object exp, Object finalObject)
{
if(ObjectUtils.isEmpty(exp)){
return false;
}
if(ObjectUtils.isEmpty(finalObject)){
return false;
}
return (!(gt(exp, finalObject)));
}
......@@ -330,6 +342,15 @@ public class RuleUtils
}
public static boolean notin(Object expObj, Object finalObject)
{
if (ObjectUtils.isEmpty(finalObject))
return true;
if (ObjectUtils.isEmpty(expObj))
return false;
String tvs=expObj.toString().trim();
if(StringUtils.isEmpty(tvs)){
return false;
}
return (!in(expObj,finalObject));
}
public static boolean in(Object expObj, Object object, String members)
......@@ -340,7 +361,8 @@ public class RuleUtils
{
if (ObjectUtils.isEmpty(finalObject))
return false;
if (ObjectUtils.isEmpty(expObj))
return false;
String tvs=expObj.toString().trim();
if(StringUtils.isEmpty(tvs)){
return false;
......@@ -397,6 +419,16 @@ public class RuleUtils
}
public static boolean notmatchor(Object expObj, Object obj)
{
if(ObjectUtils.isEmpty(obj)){
return true;
}
if(ObjectUtils.isEmpty(expObj)){
return false;
}
String exp=expObj.toString().trim();
if(StringUtils.isEmpty(exp)){
return false;
}
return (!matchor(expObj,obj));
}
......@@ -406,6 +438,16 @@ public class RuleUtils
}
public static boolean notmatchand(Object expObj, Object finalObject)
{
if(ObjectUtils.isEmpty(finalObject)){
return true;
}
if(ObjectUtils.isEmpty(expObj)){
return false;
}
String exp=expObj.toString().trim();
if(StringUtils.isEmpty(exp)){
return false;
}
return (!matchand(expObj,finalObject));
}
......@@ -415,9 +457,12 @@ public class RuleUtils
}
public static boolean matchor(Object expObj, Object obj)
{
if(obj==null){
if(ObjectUtils.isEmpty(obj)){
return false;
}
if(ObjectUtils.isEmpty(expObj)){
return false;
}
String exp=expObj.toString().trim();
if(StringUtils.isEmpty(exp)){
return false;
......@@ -438,8 +483,11 @@ public class RuleUtils
public static boolean leftmatchor(Object expObj, Object obj)
{
if(obj==null){
return false;
if(ObjectUtils.isEmpty(obj)){
return false;
}
if(ObjectUtils.isEmpty(expObj)){
return false;
}
String exp=expObj.toString().trim();
if(StringUtils.isEmpty(exp)){
......@@ -462,8 +510,11 @@ public class RuleUtils
public static boolean rightmatchor(Object expObj, Object obj)
{
if(obj==null){
return false;
if(ObjectUtils.isEmpty(obj)){
return false;
}
if(ObjectUtils.isEmpty(expObj)){
return false;
}
String exp=expObj.toString().trim();
if(StringUtils.isEmpty(exp)){
......@@ -490,10 +541,10 @@ public class RuleUtils
}
public static boolean matchand(Object expObj,Object obj)
{
if(obj==null){
return false;
if(ObjectUtils.isEmpty(obj)){
return false;
}
if(expObj==null){
if(ObjectUtils.isEmpty(expObj)){
return false;
}
String exp=expObj.toString().trim();
......@@ -580,4 +631,56 @@ public class RuleUtils
}
return acts;
}
public static boolean inc2s(String tvs, Object finalObject)
{
if (ObjectUtils.isEmpty(finalObject))
return false;
if(StringUtils.isEmpty(tvs))
return false;
if (finalObject instanceof String)
{
tvs="s:"+tvs;
}
else
return false;
List acts = parseTvs(tvs);
for (Iterator localIterator = acts.iterator(); localIterator.hasNext();)
{
Object act = localIterator.next();
if (equal(c2s(act.toString()),c2s(finalObject.toString())))
return true;
}
return false;
}
public static String c2s(String str)
{
if(str==null)
return null;
if(str.length()<300)
{
str=str.trim();//1234567890()【】〔2018〕
str=str.replace("1","1").replace("2","2").replace("3","3").replace("4","4").
replace("5","5").replace("6","6").replace("7","7")
.replace("8","8").replace("9","9").replace("0","0")
.replace("(","〔").replace(")","〕")
.replace("(","〔").replace(")","〕")
.replace("【","〔").replace("】","〕")
.replace("[","〔").replace("]","〕");
}
return str;
}
public static boolean notinc2s(String tvs, Object finalObject)
{
return (!inc2s(tvs,finalObject));
}
}
\ No newline at end of file
package cn.ibizlab.util.helper;
import cn.ibizlab.util.domain.EntityBase;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.springframework.util.StringUtils;
import java.io.IOException;
import java.io.StringReader;
import java.util.*;
@Getter
@Setter
@NoArgsConstructor
@Accessors(chain = true)
public class Setting {
private String property;
private String value;
public static String getValue(String configString,String propertyName)
{
return DataObject.getStringValue(getMap(configString).get(propertyName),"");
}
public static <T extends EntityBase> T getEntity(String configString,T entityBase)
{
if(entityBase!=null) {
Map map=getMap(configString);
map.keySet().forEach(key->{
entityBase.set(key.toString(),map.get(key));
});
}
return entityBase;
}
public static Map getMap(String configString)
{
Map map=new HashMap();
map.put("param",configString);
if(!(StringUtils.isEmpty(configString)))
{
try
{
Object obj=JSON.parse(configString);
if(obj==null)
return map;
else if (obj instanceof JSONArray)
{
List<Setting> settings= JSONArray.parseArray(configString,Setting.class);
for(Setting setting:settings)
map.put(setting.getProperty(),setting.getValue());
}
else if (obj instanceof JSONObject)
{
JSONObject jo = (JSONObject)obj;
jo.keySet().forEach(key->{
map.put(key,jo.get(key));
});
}
}
catch (Exception ex)
{
if(configString.indexOf("=")>0)
{
Properties proper = new Properties();
try {
proper.load(new StringReader(configString)); //把字符串转为reader
} catch (IOException e) {
}
Enumeration enum1 = proper.propertyNames();
while (enum1.hasMoreElements()) {
String strKey = (String) enum1.nextElement();
String strValue = proper.getProperty(strKey);
map.put(strKey, strValue);
}
}
}
}
return map;
}
}
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册