提交 2097c555 编写于 作者: ibizdev's avatar ibizdev

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

上级 d121d9d6
......@@ -78,6 +78,7 @@ export class AuthServiceRegister {
this.allAuthService.set('ibizcustom', () => import('@/authservice/ibizcustom/ibizcustom-auth-service'));
this.allAuthService.set('ibizsample0005', () => import('@/authservice/ibizsample0005/ibizsample0005-auth-service'));
this.allAuthService.set('ibizuniproduct', () => import('@/authservice/ibizuniproduct/ibizuniproduct-auth-service'));
this.allAuthService.set('dynadashboard', () => import('@/authservice/dynadashboard/dynadashboard-auth-service'));
}
/**
......
import AuthService from '../auth-service';
/**
* 动态数据看板权限服务对象基类
*
* @export
* @class DYNADASHBOARDAuthServiceBase
* @extends {AuthService}
*/
export default class DYNADASHBOARDAuthServiceBase extends AuthService {
/**
* Creates an instance of DYNADASHBOARDAuthServiceBase.
*
* @param {*} [opts={}]
* @memberof DYNADASHBOARDAuthServiceBase
*/
constructor(opts: any = {}) {
super(opts);
}
/**
* 根据当前数据获取实体操作标识
*
* @param {*} mainSateOPPrivs 传入数据操作标识
* @returns {any}
* @memberof DYNADASHBOARDAuthServiceBase
*/
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 DYNADASHBOARDAuthServiceBase from './dynadashboard-auth-service-base';
/**
* 动态数据看板权限服务对象
*
* @export
* @class DYNADASHBOARDAuthService
* @extends {DYNADASHBOARDAuthServiceBase}
*/
export default class DYNADASHBOARDAuthService extends DYNADASHBOARDAuthServiceBase {
/**
* Creates an instance of DYNADASHBOARDAuthService.
*
* @param {*} [opts={}]
* @memberof DYNADASHBOARDAuthService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
......@@ -37,6 +37,7 @@ import ibizcustomer_en_US from '@locale/lanres/entities/ibizcustomer/ibizcustome
import ibizcustom_en_US from '@locale/lanres/entities/ibizcustom/ibizcustom_en_US';
import ibizsample0005_en_US from '@locale/lanres/entities/ibizsample0005/ibizsample0005_en_US';
import ibizuniproduct_en_US from '@locale/lanres/entities/ibizuniproduct/ibizuniproduct_en_US';
import dynadashboard_en_US from '@locale/lanres/entities/dynadashboard/dynadashboard_en_US';
import components_en_US from '@locale/lanres/components/components_en_US';
import codelist_en_US from '@locale/lanres/codelist/codelist_en_US';
import userCustom_en_US from '@locale/lanres/userCustom/userCustom_en_US';
......@@ -490,6 +491,7 @@ export default {
ibizcustom: ibizcustom_en_US,
ibizsample0005: ibizsample0005_en_US,
ibizuniproduct: ibizuniproduct_en_US,
dynadashboard: dynadashboard_en_US,
},
components: components_en_US,
codelist: codelist_en_US,
......
......@@ -37,6 +37,7 @@ import ibizcustomer_zh_CN from '@locale/lanres/entities/ibizcustomer/ibizcustome
import ibizcustom_zh_CN from '@locale/lanres/entities/ibizcustom/ibizcustom_zh_CN';
import ibizsample0005_zh_CN from '@locale/lanres/entities/ibizsample0005/ibizsample0005_zh_CN';
import ibizuniproduct_zh_CN from '@locale/lanres/entities/ibizuniproduct/ibizuniproduct_zh_CN';
import dynadashboard_zh_CN from '@locale/lanres/entities/dynadashboard/dynadashboard_zh_CN';
import components_zh_CN from '@locale/lanres/components/components_zh_CN';
import codelist_zh_CN from '@locale/lanres/codelist/codelist_zh_CN';
import userCustom_zh_CN from '@locale/lanres/userCustom/userCustom_zh_CN';
......@@ -489,6 +490,7 @@ export default {
ibizcustom: ibizcustom_zh_CN,
ibizsample0005: ibizsample0005_zh_CN,
ibizuniproduct: ibizuniproduct_zh_CN,
dynadashboard: dynadashboard_zh_CN,
},
components: components_zh_CN,
codelist: codelist_zh_CN,
......
export default {
fields: {
dynadashboardid: "动态数据看板标识",
dynadashboardname: "动态数据看板名称",
createman: "建立人",
updateman: "更新人",
updatedate: "更新时间",
createdate: "建立时间",
userid: "用户标识",
modelid: "模型标识",
appid: "应用标识",
model: "模型",
},
};
\ No newline at end of file
export default {
fields: {
dynadashboardid: "动态数据看板标识",
dynadashboardname: "动态数据看板名称",
createman: "建立人",
updateman: "更新人",
updatedate: "更新时间",
createdate: "建立时间",
userid: "用户标识",
modelid: "模型标识",
appid: "应用标识",
model: "模型",
},
};
\ No newline at end of file
......@@ -46,3 +46,4 @@ import './entity/ibizcustomers/ibizcustomers';
import './entity/ibizcustoms/ibizcustoms';
import './entity/ibizsample0005s/ibizsample0005s';
import './entity/ibizuniproducts/ibizuniproducts';
import './entity/dynadashboards/dynadashboards';
此差异已折叠。
......@@ -13,7 +13,7 @@
:viewState="viewState"
:viewparams="viewparams"
:context="JSON.parse(JSON.stringify(context))"
:isEnableCustomized = "false"
:isEnableCustomized = "true"
name="dashboard"
ref='dashboard'
@closeview="closeView($event)">
......
import IBIZOrderPortalComponentsWeb from '@/widgets/ibizorder/portal-components-web-portlet/portal-components-web-portlet.vue';
import IBIZAPPVIEWAppViewList from '@/widgets/ibizappview/app-view-list-portlet/app-view-list-portlet.vue';
import IBIZAPPVIEWViewChart from '@/widgets/ibizappview/view-chart-portlet/view-chart-portlet.vue';
import IBIZAPPVIEWAppViewAmount from '@/widgets/ibizappview/app-view-amount-portlet/app-view-amount-portlet.vue';
import IBIZOrderDetailPortalComponentsList5 from '@/widgets/ibizorder-detail/portal-components-list5-portlet/portal-components-list5-portlet.vue';
import IBIZOrderDetailPortalComponentsListView from '@/widgets/ibizorder-detail/portal-components-list-view-portlet/portal-components-list-view-portlet.vue';
import IBIZOrderDetailPortalComponentsList4 from '@/widgets/ibizorder-detail/portal-components-list4-portlet/portal-components-list4-portlet.vue';
import IBIZOrderDetailPortalComponentsList3 from '@/widgets/ibizorder-detail/portal-components-list3-portlet/portal-components-list3-portlet.vue';
import IBIZOrderDetailPortalComponentsHistogram from '@/widgets/ibizorder-detail/portal-components-histogram-portlet/portal-components-histogram-portlet.vue';
import IBIZOrderPortalComponentsChart from '@/widgets/ibizorder/portal-components-chart-portlet/portal-components-chart-portlet.vue';
import IBIZOrderPortalComponentsOperation from '@/widgets/ibizorder/portal-components-operation-portlet/portal-components-operation-portlet.vue';
import IBIZAPPEDITORAppExtendEditor from '@/widgets/ibizappeditor/app-extend-editor-portlet/app-extend-editor-portlet.vue';
import IBIZAPPEDITORAppEditorListView from '@/widgets/ibizappeditor/app-editor-list-view-portlet/app-editor-list-view-portlet.vue';
import IBIZAPPEDITOREditorChart from '@/widgets/ibizappeditor/editor-chart-portlet/editor-chart-portlet.vue';
import IBIZAPPEDITORAppEditorAmount from '@/widgets/ibizappeditor/app-editor-amount-portlet/app-editor-amount-portlet.vue';
import IBIZBOOKPortalComponentsList from '@/widgets/ibizbook/portal-components-list-portlet/portal-components-list-portlet.vue';
import IBIZBOOKPortalComponentsView from '@/widgets/ibizbook/portal-components-view-portlet/portal-components-view-portlet.vue';
import IBIZAPPCTRLAppCtrlListView from '@/widgets/ibizappctrl/app-ctrl-list-view-portlet/app-ctrl-list-view-portlet.vue';
import IBIZAPPCTRLCtrlChart from '@/widgets/ibizappctrl/ctrl-chart-portlet/ctrl-chart-portlet.vue';
import IBIZAPPCTRLAppCtrlAmount from '@/widgets/ibizappctrl/app-ctrl-amount-portlet/app-ctrl-amount-portlet.vue';
export const PortletComponent = {
install(v: any, opt: any) {
v.component('app-ibizorder-portal-components-chart-portlet', IBIZOrderPortalComponentsChart);
v.component('app-ibizbook-portal-components-list-portlet', IBIZBOOKPortalComponentsList);
v.component('app-ibizbook-portal-components-view-portlet', IBIZBOOKPortalComponentsView);
v.component('app-ibizorder-detail-portal-components-list3-portlet', IBIZOrderDetailPortalComponentsList3);
v.component('app-ibizorder-detail-portal-components-list5-portlet', IBIZOrderDetailPortalComponentsList5);
v.component('app-ibizorder-detail-portal-components-list4-portlet', IBIZOrderDetailPortalComponentsList4);
v.component('app-ibizorder-portal-components-operation-portlet', IBIZOrderPortalComponentsOperation);
v.component('app-ibizorder-detail-portal-components-histogram-portlet', IBIZOrderDetailPortalComponentsHistogram);
v.component('app-ibizorder-detail-portal-components-list-view-portlet', IBIZOrderDetailPortalComponentsListView);
v.component('app-ibizorder-portal-components-web-portlet', IBIZOrderPortalComponentsWeb);
v.component('app-ibizappview-app-view-amount-portlet', IBIZAPPVIEWAppViewAmount);
v.component('app-ibizappctrl-app-ctrl-amount-portlet', IBIZAPPCTRLAppCtrlAmount);
v.component('app-ibizappeditor-app-editor-amount-portlet', IBIZAPPEDITORAppEditorAmount);
v.component('app-ibizappeditor-app-extend-editor-portlet', IBIZAPPEDITORAppExtendEditor);
v.component('app-ibizappview-view-chart-portlet', IBIZAPPVIEWViewChart);
v.component('app-ibizappview-app-view-list-portlet', IBIZAPPVIEWAppViewList);
v.component('app-ibizappctrl-ctrl-chart-portlet', IBIZAPPCTRLCtrlChart);
v.component('app-ibizappctrl-app-ctrl-list-view-portlet', IBIZAPPCTRLAppCtrlListView);
v.component('app-ibizappeditor-editor-chart-portlet', IBIZAPPEDITOREditorChart);
v.component('app-ibizappeditor-app-editor-list-view-portlet', IBIZAPPEDITORAppEditorListView);
v.component('ibizappview-app-view-list-portlet', IBIZAPPVIEWAppViewList);
v.component('ibizappview-view-chart-portlet', IBIZAPPVIEWViewChart);
v.component('ibizappview-app-view-amount-portlet', IBIZAPPVIEWAppViewAmount);
v.component('ibizorder-detail-portal-components-list5-portlet', IBIZOrderDetailPortalComponentsList5);
v.component('ibizorder-detail-portal-components-list-view-portlet', IBIZOrderDetailPortalComponentsListView);
v.component('ibizorder-detail-portal-components-list4-portlet', IBIZOrderDetailPortalComponentsList4);
v.component('ibizorder-detail-portal-components-list3-portlet', IBIZOrderDetailPortalComponentsList3);
v.component('ibizorder-detail-portal-components-histogram-portlet', IBIZOrderDetailPortalComponentsHistogram);
v.component('ibizorder-portal-components-chart-portlet', IBIZOrderPortalComponentsChart);
v.component('ibizorder-portal-components-operation-portlet', IBIZOrderPortalComponentsOperation);
v.component('ibizappeditor-app-extend-editor-portlet', IBIZAPPEDITORAppExtendEditor);
v.component('ibizappeditor-app-editor-list-view-portlet', IBIZAPPEDITORAppEditorListView);
v.component('ibizappeditor-editor-chart-portlet', IBIZAPPEDITOREditorChart);
v.component('ibizappeditor-app-editor-amount-portlet', IBIZAPPEDITORAppEditorAmount);
v.component('ibizbook-portal-components-list-portlet', IBIZBOOKPortalComponentsList);
v.component('ibizbook-portal-components-view-portlet', IBIZBOOKPortalComponentsView);
v.component('ibizappctrl-app-ctrl-list-view-portlet', IBIZAPPCTRLAppCtrlListView);
v.component('ibizappctrl-ctrl-chart-portlet', IBIZAPPCTRLCtrlChart);
v.component('ibizappctrl-app-ctrl-amount-portlet', IBIZAPPCTRLAppCtrlAmount);
}
};
\ No newline at end of file
import { Http,Util } from '@/utils';
import EntityService from '../entity-service';
/**
* 动态数据看板服务对象基类
*
* @export
* @class DYNADASHBOARDServiceBase
* @extends {EntityServie}
*/
export default class DYNADASHBOARDServiceBase extends EntityService {
/**
* Creates an instance of DYNADASHBOARDServiceBase.
*
* @param {*} [opts={}]
* @memberof DYNADASHBOARDServiceBase
*/
constructor(opts: any = {}) {
super(opts);
}
/**
* 初始化基础数据
*
* @memberof DYNADASHBOARDServiceBase
*/
public initBasicData(){
this.APPLYDEKEY ='dynadashboard';
this.APPDEKEY = 'dynadashboardid';
this.APPDENAME = 'dynadashboards';
this.APPDETEXT = 'dynadashboardname';
this.APPNAME = 'web';
this.SYSTEMNAME = 'demosys';
}
// 实体接口
/**
* Select接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof DYNADASHBOARDServiceBase
*/
public async Select(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = Http.getInstance().get(`/dynadashboards/${context.dynadashboard}/select`,isloading);
return res;
}
/**
* Create接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof DYNADASHBOARDServiceBase
*/
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(`/dynadashboards`,data,isloading);
return res;
}
/**
* Update接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof DYNADASHBOARDServiceBase
*/
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(`/dynadashboards/${context.dynadashboard}`,data,isloading);
return res;
}
/**
* Remove接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof DYNADASHBOARDServiceBase
*/
public async Remove(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = Http.getInstance().delete(`/dynadashboards/${context.dynadashboard}`,isloading);
return res;
}
/**
* Get接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof DYNADASHBOARDServiceBase
*/
public async Get(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = await Http.getInstance().get(`/dynadashboards/${context.dynadashboard}`,isloading);
return res;
}
/**
* GetDraft接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof DYNADASHBOARDServiceBase
*/
public async GetDraft(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = await Http.getInstance().get(`/dynadashboards/getdraft`,isloading);
res.data.dynadashboard = data.dynadashboard;
return res;
}
/**
* CheckKey接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof DYNADASHBOARDServiceBase
*/
public async CheckKey(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = Http.getInstance().post(`/dynadashboards/${context.dynadashboard}/checkkey`,data,isloading);
return res;
}
/**
* Save接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof DYNADASHBOARDServiceBase
*/
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(`/dynadashboards/${context.dynadashboard}/save`,data,isloading);
return res;
}
/**
* FetchDefault接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof DYNADASHBOARDServiceBase
*/
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(`/dynadashboards/fetchdefault`,tempData,isloading);
return res;
}
/**
* searchDefault接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof DYNADASHBOARDServiceBase
*/
public async searchDefault(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let tempData:any = JSON.parse(JSON.stringify(data));
return await Http.getInstance().post(`/dynadashboards/searchdefault`,tempData,isloading);
}
}
\ No newline at end of file
import { Http,Util } from '@/utils';
import DYNADASHBOARDServiceBase from './dynadashboard-service-base';
/**
* 动态数据看板服务对象
*
* @export
* @class DYNADASHBOARDService
* @extends {DYNADASHBOARDServiceBase}
*/
export default class DYNADASHBOARDService extends DYNADASHBOARDServiceBase {
/**
* Creates an instance of DYNADASHBOARDService.
*
* @param {*} [opts={}]
* @memberof DYNADASHBOARDService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
......@@ -78,6 +78,7 @@ export class EntityServiceRegister {
this.allEntityService.set('ibizcustom', () => import('@/service/ibizcustom/ibizcustom-service'));
this.allEntityService.set('ibizsample0005', () => import('@/service/ibizsample0005/ibizsample0005-service'));
this.allEntityService.set('ibizuniproduct', () => import('@/service/ibizuniproduct/ibizuniproduct-service'));
this.allEntityService.set('dynadashboard', () => import('@/service/dynadashboard/dynadashboard-service'));
}
/**
......
import { Environment } from '@/environments/environment';
import { UIActionTool,Util } from '@/utils';
import UIService from '../ui-service';
import { Subject } from 'rxjs';
import DYNADASHBOARDService from '@/service/dynadashboard/dynadashboard-service';
import DYNADASHBOARDAuthService from '@/authservice/dynadashboard/dynadashboard-auth-service';
/**
* 动态数据看板UI服务对象基类
*
* @export
* @class DYNADASHBOARDUIServiceBase
*/
export default class DYNADASHBOARDUIServiceBase extends UIService {
/**
* 是否支持工作流
*
* @memberof DYNADASHBOARDUIServiceBase
*/
public isEnableWorkflow:boolean = false;
/**
* 是否支持实体主状态
*
* @memberof DYNADASHBOARDUIServiceBase
*/
public isEnableDEMainState:boolean = false;
/**
* 当前UI服务对应的数据服务对象
*
* @memberof DYNADASHBOARDUIServiceBase
*/
public dataService:DYNADASHBOARDService = new DYNADASHBOARDService();
/**
* 所有关联视图
*
* @memberof DYNADASHBOARDUIServiceBase
*/
public allViewMap: Map<string, Object> = new Map();
/**
* 状态值
*
* @memberof DYNADASHBOARDUIServiceBase
*/
public stateValue: number = 0;
/**
* 状态属性
*
* @memberof DYNADASHBOARDUIServiceBase
*/
public stateField: string = "";
/**
* 主状态属性集合
*
* @memberof DYNADASHBOARDUIServiceBase
*/
public mainStateFields:Array<any> = [];
/**
* 主状态集合Map
*
* @memberof DYNADASHBOARDUIServiceBase
*/
public allDeMainStateMap:Map<string,string> = new Map();
/**
* 主状态操作标识Map
*
* @memberof DYNADASHBOARDUIServiceBase
*/
public allDeMainStateOPPrivsMap:Map<string,any> = new Map();
/**
* Creates an instance of DYNADASHBOARDUIServiceBase.
*
* @param {*} [opts={}]
* @memberof DYNADASHBOARDUIServiceBase
*/
constructor(opts: any = {}) {
super(opts);
this.authService = new DYNADASHBOARDAuthService(opts);
this.initViewMap();
this.initDeMainStateMap();
this.initDeMainStateOPPrivsMap();
}
/**
* 初始化视图Map
*
* @memberof DYNADASHBOARDUIServiceBase
*/
public initViewMap(){
}
/**
* 初始化主状态集合
*
* @memberof DYNADASHBOARDUIServiceBase
*/
public initDeMainStateMap(){
}
/**
* 初始化主状态操作标识
*
* @memberof DYNADASHBOARDUIServiceBase
*/
public initDeMainStateOPPrivsMap(){
}
/**
* 获取指定数据的重定向页面
*
* @param srfkey 数据主键
* @param isEnableWorkflow 重定向视图是否需要处理流程中的数据
* @memberof DYNADASHBOARDUIServiceBase
*/
public async getRDAppView(srfkey:string,isEnableWorkflow:boolean){
this.isEnableWorkflow = isEnableWorkflow;
// 进行数据查询
let result:any = await this.dataService.Get({dynadashboard: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 DYNADASHBOARDUIServiceBase
*/
public getRealDEType(entity:any){
}
/**
* 获取实体单数据实体视图预定义参数
*
* @param curData 当前数据
* @param bDataInWF 是否有数据在工作流中
* @param bWFMode 是否工作流模式
* @memberof DYNADASHBOARDUIServiceBase
*/
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 DYNADASHBOARDUIServiceBase
*/
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 DYNADASHBOARDUIServiceBase
*/
public getDEMainStateOPPrivs(data:any){
if(this.getDEMainStateTag(data)){
return this.allDeMainStateOPPrivsMap.get((this.getDEMainStateTag(data) as string));
}else{
return null;
}
}
/**
* 获取数据对象所有的操作标识
*
* @param data 当前数据
* @memberof DYNADASHBOARDUIServiceBase
*/
public getAllOPPrivs(data:any){
return this.authService.getOPPrivs(this.getDEMainStateOPPrivs(data));
}
}
\ No newline at end of file
import DYNADASHBOARDUIServiceBase from './dynadashboard-ui-service-base';
/**
* 动态数据看板UI服务对象
*
* @export
* @class DYNADASHBOARDUIService
*/
export default class DYNADASHBOARDUIService extends DYNADASHBOARDUIServiceBase {
/**
* Creates an instance of DYNADASHBOARDUIService.
*
* @param {*} [opts={}]
* @memberof DYNADASHBOARDUIService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
......@@ -78,6 +78,7 @@ export class UIServiceRegister {
this.allUIService.set('ibizcustom', () => import('@/uiservice/ibizcustom/ibizcustom-ui-service'));
this.allUIService.set('ibizsample0005', () => import('@/uiservice/ibizsample0005/ibizsample0005-ui-service'));
this.allUIService.set('ibizuniproduct', () => import('@/uiservice/ibizuniproduct/ibizuniproduct-ui-service'));
this.allUIService.set('dynadashboard', () => import('@/uiservice/dynadashboard/dynadashboard-ui-service'));
}
/**
......
import UtilService from '../util-service';
import DYNADASHBOARDService from '@/service/dynadashboard/dynadashboard-service';
/**
* 动态数据看板功能服务对象基类
*
* @export
* @class DynaDashboardUtilServiceBase
*/
export default class DynaDashboardUtilServiceBase extends UtilService {
/**
* 存储数据服务
*
* @memberof DynaDashboardUtilServiceBase
*/
public stoageDataService: DYNADASHBOARDService = new DYNADASHBOARDService();
/**
* 获取数据行为
*
* @memberof DynaDashboardUtilServiceBase
*/
public loadAction: string = "Get";
/**
* 建立数据行为
*
* @memberof DynaDashboardUtilServiceBase
*/
public createAction: string = "Create";
/**
* 更新数据行为
*
* @memberof DynaDashboardUtilServiceBase
*/
public updateAction: string = "Update";
/**
* 删除数据行为
*
* @memberof DynaDashboardUtilServiceBase
*/
public removeAction: string = "Remove";
/**
* Creates an instance of DynaDashboardUtilServiceBase.
*
* @param {*} [opts={}]
* @memberof DynaDashboardUtilServiceBase
*/
constructor(opts: any = {}) {
super(opts);
}
/**
* 初始化基础参数
*
* @memberof DynaDashboardUtilServiceBase
*/
public initBasicParam(){
this.modelIdField = "modelid";
this.modelField = "model";
this.appIdField = "appid";
this.userIdField = "userid";
this.stoageEntityName ="dynadashboard";
this.stoageEntityKey ="dynadashboardid";
}
/**
* 获取模型数据
*
* @param context 应用上下文
* @param data 传入模型数据
* @param isloading 是否加载
* @memberof DynaDashboardUtilServiceBase
*/
public loadModelData(context: any = {},data: any = {}, isloading?: boolean): Promise<any>{
return new Promise((resolve: any, reject: any) => {
//从接口加载
if(data && data.utilServiceName){
const requestParam:any ={configType:data.utilServiceName,targetType:data.modelid};
this.stoageDataService.getDynaModel(context,requestParam).then((res:any) =>{
if(res && res.status === 200){
const data: any = res.data;
resolve({status:200,data:(data && data.model)?data.model:[]});
}
}).catch((error:any) =>{
reject(error);
})
}else{
let dataStr = window.localStorage.getItem(data.modelid);
if(dataStr) {
const data: any = JSON.parse(dataStr);
resolve({status:200,data:data.model});
} else {
resolve({status:200,data:[]});
}
}
});
}
/**
* 保存模型数据
*
* @param context 应用上下文
* @param action 操作行为 Update|Create
* @param data 传入模型数据
* @param isloading 是否加载
* @memberof DynaDashboardUtilServiceBase
*/
public saveModelData(context: any = {},action:string,data: any = {}, isloading?: boolean):Promise<any>{
return new Promise((resolve: any, reject: any) => {
// 存储到数据库
if(data && data.utilServiceName){
const requestParam:any ={configType:data.utilServiceName,targetType:data.modelid,model:data.model};
this.stoageDataService.setDynaModel(context,requestParam).then((res:any) =>{
if(res && res.status === 200){
resolve({status:200,data:data.model});
}
}).catch((error:any) =>{
reject(error);
})
}else{
window.localStorage.setItem(data.modelid, JSON.stringify(data));
resolve({status:200,data:data.model});
}
});
}
}
\ No newline at end of file
import DynaDashboardUtilServiceBase from './dyna-dashboard-util-service-base';
/**
* 动态数据看板功能服务对象
*
* @export
* @class DynaDashboardUtilService
*/
export default class DynaDashboardUtilService extends DynaDashboardUtilServiceBase {
/**
* Creates an instance of DynaDashboardUtilService.
*
* @param {*} [opts={}]
* @memberof DynaDashboardUtilService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
......@@ -39,7 +39,8 @@ export class UtilServiceRegister {
* @memberof UtilServiceRegister
*/
protected init(): void {
}
this.allUtilService.set('dynadashboard', () => import('@/utilservice/dyna-dashboard/dyna-dashboard-util-service'));
}
/**
* 加载服务实体
......
......@@ -343,7 +343,7 @@ export default class AppPortalView_dbBase extends Vue implements ControlInterfac
* @type {string}
* @memberof AppPortalView_dbBase
*/
public utilServiceName:string = "";
public utilServiceName:string = "dynadashboard";
/**
* 获取多项数据
......
......@@ -193,7 +193,7 @@ export default class AppPortalView2_dbBase extends Vue implements ControlInterfa
* @type {string}
* @memberof AppPortalView2_dbBase
*/
public utilServiceName:string = "";
public utilServiceName:string = "dynadashboard";
/**
* 获取多项数据
......
......@@ -930,10 +930,10 @@ export default class Gridexpbar_gridBase extends Vue implements ControlInterface
serviceName:'ibizbook',
appDeLogicName:'图书',
importData:{
"IBIZBOOKNAME":{"headername":"图书名称","isuniqueitem":false,"name":"ibizbookname","order":1000},
"PRESS":{"headername":"图书出版社","isuniqueitem":false,"name":"press","order":1000},
"UPDATEMAN":{"codelist":{"type":"DYNAMIC","tag":"SysOperator","isnumber":false},"headername":"更新人","isuniqueitem":false,"name":"updateman","order":1000},
"IBIZBOOKNAME":{"headername":"图书名称","isuniqueitem":false,"name":"ibizbookname","order":1000},
"AUTHOR":{"headername":"图书作者","isuniqueitem":false,"name":"author","order":1000},
"UPDATEMAN":{"codelist":{"type":"DYNAMIC","tag":"SysOperator","isnumber":false},"headername":"更新人","isuniqueitem":false,"name":"updateman","order":1000},
"PRICE":{"headername":"图书价格","isuniqueitem":false,"name":"price","order":1000},
"BOOKNUMBER":{"headername":"图书数量","isuniqueitem":false,"name":"booknumber","order":1000},
"CREATEMAN":{"codelist":{"type":"DYNAMIC","tag":"SysOperator","isnumber":false},"headername":"建立人","isuniqueitem":false,"name":"createman","order":1000},
......
......@@ -1201,10 +1201,10 @@ export default class InternalFuncBase extends Vue implements ControlInterface {
serviceName:'ibizbook',
appDeLogicName:'图书',
importData:{
"IBIZBOOKNAME":{"headername":"图书名称","isuniqueitem":false,"name":"ibizbookname","order":1000},
"PRESS":{"headername":"图书出版社","isuniqueitem":false,"name":"press","order":1000},
"UPDATEMAN":{"codelist":{"type":"DYNAMIC","tag":"SysOperator","isnumber":false},"headername":"更新人","isuniqueitem":false,"name":"updateman","order":1000},
"IBIZBOOKNAME":{"headername":"图书名称","isuniqueitem":false,"name":"ibizbookname","order":1000},
"AUTHOR":{"headername":"图书作者","isuniqueitem":false,"name":"author","order":1000},
"UPDATEMAN":{"codelist":{"type":"DYNAMIC","tag":"SysOperator","isnumber":false},"headername":"更新人","isuniqueitem":false,"name":"updateman","order":1000},
"PRICE":{"headername":"图书价格","isuniqueitem":false,"name":"price","order":1000},
"BOOKNUMBER":{"headername":"图书数量","isuniqueitem":false,"name":"booknumber","order":1000},
"CREATEMAN":{"codelist":{"type":"DYNAMIC","tag":"SysOperator","isnumber":false},"headername":"建立人","isuniqueitem":false,"name":"createman","order":1000},
......
......@@ -1081,10 +1081,10 @@ export default class Main2Base extends Vue implements ControlInterface {
serviceName:'ibizbook',
appDeLogicName:'图书',
importData:{
"IBIZBOOKNAME":{"headername":"图书名称","isuniqueitem":false,"name":"ibizbookname","order":1000},
"PRESS":{"headername":"图书出版社","isuniqueitem":false,"name":"press","order":1000},
"UPDATEMAN":{"codelist":{"type":"DYNAMIC","tag":"SysOperator","isnumber":false},"headername":"更新人","isuniqueitem":false,"name":"updateman","order":1000},
"IBIZBOOKNAME":{"headername":"图书名称","isuniqueitem":false,"name":"ibizbookname","order":1000},
"AUTHOR":{"headername":"图书作者","isuniqueitem":false,"name":"author","order":1000},
"UPDATEMAN":{"codelist":{"type":"DYNAMIC","tag":"SysOperator","isnumber":false},"headername":"更新人","isuniqueitem":false,"name":"updateman","order":1000},
"PRICE":{"headername":"图书价格","isuniqueitem":false,"name":"price","order":1000},
"BOOKNUMBER":{"headername":"图书数量","isuniqueitem":false,"name":"booknumber","order":1000},
"CREATEMAN":{"codelist":{"type":"DYNAMIC","tag":"SysOperator","isnumber":false},"headername":"建立人","isuniqueitem":false,"name":"createman","order":1000},
......
......@@ -1081,10 +1081,10 @@ export default class Main3Base extends Vue implements ControlInterface {
serviceName:'ibizbook',
appDeLogicName:'图书',
importData:{
"IBIZBOOKNAME":{"headername":"图书名称","isuniqueitem":false,"name":"ibizbookname","order":1000},
"PRESS":{"headername":"图书出版社","isuniqueitem":false,"name":"press","order":1000},
"UPDATEMAN":{"codelist":{"type":"DYNAMIC","tag":"SysOperator","isnumber":false},"headername":"更新人","isuniqueitem":false,"name":"updateman","order":1000},
"IBIZBOOKNAME":{"headername":"图书名称","isuniqueitem":false,"name":"ibizbookname","order":1000},
"AUTHOR":{"headername":"图书作者","isuniqueitem":false,"name":"author","order":1000},
"UPDATEMAN":{"codelist":{"type":"DYNAMIC","tag":"SysOperator","isnumber":false},"headername":"更新人","isuniqueitem":false,"name":"updateman","order":1000},
"PRICE":{"headername":"图书价格","isuniqueitem":false,"name":"price","order":1000},
"BOOKNUMBER":{"headername":"图书数量","isuniqueitem":false,"name":"booknumber","order":1000},
"CREATEMAN":{"codelist":{"type":"DYNAMIC","tag":"SysOperator","isnumber":false},"headername":"建立人","isuniqueitem":false,"name":"createman","order":1000},
......
......@@ -1072,10 +1072,10 @@ export default class Main4Base extends Vue implements ControlInterface {
serviceName:'ibizbook',
appDeLogicName:'图书',
importData:{
"IBIZBOOKNAME":{"headername":"图书名称","isuniqueitem":false,"name":"ibizbookname","order":1000},
"PRESS":{"headername":"图书出版社","isuniqueitem":false,"name":"press","order":1000},
"UPDATEMAN":{"codelist":{"type":"DYNAMIC","tag":"SysOperator","isnumber":false},"headername":"更新人","isuniqueitem":false,"name":"updateman","order":1000},
"IBIZBOOKNAME":{"headername":"图书名称","isuniqueitem":false,"name":"ibizbookname","order":1000},
"AUTHOR":{"headername":"图书作者","isuniqueitem":false,"name":"author","order":1000},
"UPDATEMAN":{"codelist":{"type":"DYNAMIC","tag":"SysOperator","isnumber":false},"headername":"更新人","isuniqueitem":false,"name":"updateman","order":1000},
"PRICE":{"headername":"图书价格","isuniqueitem":false,"name":"price","order":1000},
"BOOKNUMBER":{"headername":"图书数量","isuniqueitem":false,"name":"booknumber","order":1000},
"CREATEMAN":{"codelist":{"type":"DYNAMIC","tag":"SysOperator","isnumber":false},"headername":"建立人","isuniqueitem":false,"name":"createman","order":1000},
......
......@@ -1088,10 +1088,10 @@ export default class Main5Base extends Vue implements ControlInterface {
serviceName:'ibizbook',
appDeLogicName:'图书',
importData:{
"IBIZBOOKNAME":{"headername":"图书名称","isuniqueitem":false,"name":"ibizbookname","order":1000},
"PRESS":{"headername":"图书出版社","isuniqueitem":false,"name":"press","order":1000},
"UPDATEMAN":{"codelist":{"type":"DYNAMIC","tag":"SysOperator","isnumber":false},"headername":"更新人","isuniqueitem":false,"name":"updateman","order":1000},
"IBIZBOOKNAME":{"headername":"图书名称","isuniqueitem":false,"name":"ibizbookname","order":1000},
"AUTHOR":{"headername":"图书作者","isuniqueitem":false,"name":"author","order":1000},
"UPDATEMAN":{"codelist":{"type":"DYNAMIC","tag":"SysOperator","isnumber":false},"headername":"更新人","isuniqueitem":false,"name":"updateman","order":1000},
"PRICE":{"headername":"图书价格","isuniqueitem":false,"name":"price","order":1000},
"BOOKNUMBER":{"headername":"图书数量","isuniqueitem":false,"name":"booknumber","order":1000},
"CREATEMAN":{"codelist":{"type":"DYNAMIC","tag":"SysOperator","isnumber":false},"headername":"建立人","isuniqueitem":false,"name":"createman","order":1000},
......
......@@ -1287,10 +1287,10 @@ export default class Main6Base extends Vue implements ControlInterface {
serviceName:'ibizbook',
appDeLogicName:'图书',
importData:{
"IBIZBOOKNAME":{"headername":"图书名称","isuniqueitem":false,"name":"ibizbookname","order":1000},
"PRESS":{"headername":"图书出版社","isuniqueitem":false,"name":"press","order":1000},
"UPDATEMAN":{"codelist":{"type":"DYNAMIC","tag":"SysOperator","isnumber":false},"headername":"更新人","isuniqueitem":false,"name":"updateman","order":1000},
"IBIZBOOKNAME":{"headername":"图书名称","isuniqueitem":false,"name":"ibizbookname","order":1000},
"AUTHOR":{"headername":"图书作者","isuniqueitem":false,"name":"author","order":1000},
"UPDATEMAN":{"codelist":{"type":"DYNAMIC","tag":"SysOperator","isnumber":false},"headername":"更新人","isuniqueitem":false,"name":"updateman","order":1000},
"PRICE":{"headername":"图书价格","isuniqueitem":false,"name":"price","order":1000},
"BOOKNUMBER":{"headername":"图书数量","isuniqueitem":false,"name":"booknumber","order":1000},
"CREATEMAN":{"codelist":{"type":"DYNAMIC","tag":"SysOperator","isnumber":false},"headername":"建立人","isuniqueitem":false,"name":"createman","order":1000},
......
......@@ -1158,10 +1158,10 @@ export default class Main7Base extends Vue implements ControlInterface {
serviceName:'ibizbook',
appDeLogicName:'图书',
importData:{
"IBIZBOOKNAME":{"headername":"图书名称","isuniqueitem":false,"name":"ibizbookname","order":1000},
"PRESS":{"headername":"图书出版社","isuniqueitem":false,"name":"press","order":1000},
"UPDATEMAN":{"codelist":{"type":"DYNAMIC","tag":"SysOperator","isnumber":false},"headername":"更新人","isuniqueitem":false,"name":"updateman","order":1000},
"IBIZBOOKNAME":{"headername":"图书名称","isuniqueitem":false,"name":"ibizbookname","order":1000},
"AUTHOR":{"headername":"图书作者","isuniqueitem":false,"name":"author","order":1000},
"UPDATEMAN":{"codelist":{"type":"DYNAMIC","tag":"SysOperator","isnumber":false},"headername":"更新人","isuniqueitem":false,"name":"updateman","order":1000},
"PRICE":{"headername":"图书价格","isuniqueitem":false,"name":"price","order":1000},
"BOOKNUMBER":{"headername":"图书数量","isuniqueitem":false,"name":"booknumber","order":1000},
"CREATEMAN":{"codelist":{"type":"DYNAMIC","tag":"SysOperator","isnumber":false},"headername":"建立人","isuniqueitem":false,"name":"createman","order":1000},
......
......@@ -1206,10 +1206,10 @@ export default class NewDefaultBase extends Vue implements ControlInterface {
serviceName:'ibizbook',
appDeLogicName:'图书',
importData:{
"IBIZBOOKNAME":{"headername":"图书名称","isuniqueitem":false,"name":"ibizbookname","order":1000},
"PRESS":{"headername":"图书出版社","isuniqueitem":false,"name":"press","order":1000},
"UPDATEMAN":{"codelist":{"type":"DYNAMIC","tag":"SysOperator","isnumber":false},"headername":"更新人","isuniqueitem":false,"name":"updateman","order":1000},
"IBIZBOOKNAME":{"headername":"图书名称","isuniqueitem":false,"name":"ibizbookname","order":1000},
"AUTHOR":{"headername":"图书作者","isuniqueitem":false,"name":"author","order":1000},
"UPDATEMAN":{"codelist":{"type":"DYNAMIC","tag":"SysOperator","isnumber":false},"headername":"更新人","isuniqueitem":false,"name":"updateman","order":1000},
"PRICE":{"headername":"图书价格","isuniqueitem":false,"name":"price","order":1000},
"BOOKNUMBER":{"headername":"图书数量","isuniqueitem":false,"name":"booknumber","order":1000},
"CREATEMAN":{"codelist":{"type":"DYNAMIC","tag":"SysOperator","isnumber":false},"headername":"建立人","isuniqueitem":false,"name":"createman","order":1000},
......
......@@ -1287,10 +1287,10 @@ export default class RowEditBase extends Vue implements ControlInterface {
serviceName:'ibizbook',
appDeLogicName:'图书',
importData:{
"IBIZBOOKNAME":{"headername":"图书名称","isuniqueitem":false,"name":"ibizbookname","order":1000},
"PRESS":{"headername":"图书出版社","isuniqueitem":false,"name":"press","order":1000},
"UPDATEMAN":{"codelist":{"type":"DYNAMIC","tag":"SysOperator","isnumber":false},"headername":"更新人","isuniqueitem":false,"name":"updateman","order":1000},
"IBIZBOOKNAME":{"headername":"图书名称","isuniqueitem":false,"name":"ibizbookname","order":1000},
"AUTHOR":{"headername":"图书作者","isuniqueitem":false,"name":"author","order":1000},
"UPDATEMAN":{"codelist":{"type":"DYNAMIC","tag":"SysOperator","isnumber":false},"headername":"更新人","isuniqueitem":false,"name":"updateman","order":1000},
"PRICE":{"headername":"图书价格","isuniqueitem":false,"name":"price","order":1000},
"BOOKNUMBER":{"headername":"图书数量","isuniqueitem":false,"name":"booknumber","order":1000},
"CREATEMAN":{"codelist":{"type":"DYNAMIC","tag":"SysOperator","isnumber":false},"headername":"建立人","isuniqueitem":false,"name":"createman","order":1000},
......
......@@ -1183,10 +1183,10 @@ export default class RowRulesBase extends Vue implements ControlInterface {
serviceName:'ibizbook',
appDeLogicName:'图书',
importData:{
"IBIZBOOKNAME":{"headername":"图书名称","isuniqueitem":false,"name":"ibizbookname","order":1000},
"PRESS":{"headername":"图书出版社","isuniqueitem":false,"name":"press","order":1000},
"UPDATEMAN":{"codelist":{"type":"DYNAMIC","tag":"SysOperator","isnumber":false},"headername":"更新人","isuniqueitem":false,"name":"updateman","order":1000},
"IBIZBOOKNAME":{"headername":"图书名称","isuniqueitem":false,"name":"ibizbookname","order":1000},
"AUTHOR":{"headername":"图书作者","isuniqueitem":false,"name":"author","order":1000},
"UPDATEMAN":{"codelist":{"type":"DYNAMIC","tag":"SysOperator","isnumber":false},"headername":"更新人","isuniqueitem":false,"name":"updateman","order":1000},
"PRICE":{"headername":"图书价格","isuniqueitem":false,"name":"price","order":1000},
"BOOKNUMBER":{"headername":"图书数量","isuniqueitem":false,"name":"booknumber","order":1000},
"CREATEMAN":{"codelist":{"type":"DYNAMIC","tag":"SysOperator","isnumber":false},"headername":"建立人","isuniqueitem":false,"name":"createman","order":1000},
......
......@@ -15,6 +15,11 @@
<template slot="empty">
{{$t('entities.ibizbook.treetable_treegridex.nodata')}}
</template>
<el-table-column show-overflow-tooltip prop="author" label="作者" :width="50" :align="''">
<template v-slot="{ row }">
<span>{{ getColumnValue(row, 'author') }}</span>
</template>
</el-table-column>
<el-table-column show-overflow-tooltip prop="subtext" label="图书描述" :width="50" :align="''">
<template v-slot="{ row }">
<span>{{ getColumnValue(row, 'subtext') }}</span>
......@@ -25,11 +30,6 @@
<span>{{ getColumnValue(row, 'ibizbookname') }}</span>
</template>
</el-table-column>
<el-table-column show-overflow-tooltip prop="author" label="作者" :width="50" :align="''">
<template v-slot="{ row }">
<span>{{ getColumnValue(row, 'author') }}</span>
</template>
</el-table-column>
</el-table>
</template>
......
......@@ -1206,10 +1206,10 @@ export default class UpdateDefaultBase extends Vue implements ControlInterface {
serviceName:'ibizbook',
appDeLogicName:'图书',
importData:{
"IBIZBOOKNAME":{"headername":"图书名称","isuniqueitem":false,"name":"ibizbookname","order":1000},
"PRESS":{"headername":"图书出版社","isuniqueitem":false,"name":"press","order":1000},
"UPDATEMAN":{"codelist":{"type":"DYNAMIC","tag":"SysOperator","isnumber":false},"headername":"更新人","isuniqueitem":false,"name":"updateman","order":1000},
"IBIZBOOKNAME":{"headername":"图书名称","isuniqueitem":false,"name":"ibizbookname","order":1000},
"AUTHOR":{"headername":"图书作者","isuniqueitem":false,"name":"author","order":1000},
"UPDATEMAN":{"codelist":{"type":"DYNAMIC","tag":"SysOperator","isnumber":false},"headername":"更新人","isuniqueitem":false,"name":"updateman","order":1000},
"PRICE":{"headername":"图书价格","isuniqueitem":false,"name":"price","order":1000},
"BOOKNUMBER":{"headername":"图书数量","isuniqueitem":false,"name":"booknumber","order":1000},
"CREATEMAN":{"codelist":{"type":"DYNAMIC","tag":"SysOperator","isnumber":false},"headername":"建立人","isuniqueitem":false,"name":"createman","order":1000},
......
......@@ -253,14 +253,6 @@ export default class UsrBase extends Vue implements ControlInterface {
},
width: 200,
},
{
label: '归还日期',
value: 'returntime',
render: (task: any) => {
return this.getColumnValue(task, 'returntime')
},
width: 200,
},
{
label: '作者',
value: 'author',
......@@ -277,6 +269,14 @@ export default class UsrBase extends Vue implements ControlInterface {
},
width: 200,
},
{
label: '归还日期',
value: 'returntime',
render: (task: any) => {
return this.getColumnValue(task, 'returntime')
},
width: 200,
},
]
}
};
......
......@@ -37,11 +37,6 @@
git clone -b master $para2 demosys/
export NODE_OPTIONS=--max-old-space-size=4096
cd demosys/
mvn clean package -Pweb
cd demo-app/demo-app-web
mvn -Pweb docker:build
mvn -Pweb docker:push
docker -H $para1 stack deploy --compose-file=src/main/docker/demo-app-web.yaml iBizDemo --with-registry-auth
</command>
</hudson.tasks.Shell>
</builders>
......
......@@ -12,6 +12,6 @@ CMD echo "The application will start in ${IBIZ_SLEEP}s..." && \
sleep ${IBIZ_SLEEP} && \
java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /demo-app-web.jar
EXPOSE 51001
EXPOSE 8080
ADD demo-app-web.jar /demo-app-web.jar
......@@ -3,24 +3,9 @@ services:
demo-app-web:
image: registry.cn-shanghai.aliyuncs.com/ibizsys/demo-app-web:latest
ports:
- "51001:51001"
- "8080:8080"
networks:
- agent_network
environment:
- SPRING_CLOUD_NACOS_DISCOVERY_IP=172.16.240.110
- SERVER_PORT=51001
- SPRING_CLOUD_NACOS_DISCOVERY_SERVER-ADDR=172.16.240.110:8848
- SPRING_REDIS_HOST=172.16.240.110
- SPRING_REDIS_PORT=6379
- SPRING_REDIS_DATABASE=0
- SPRING_DATASOURCE_USERNAME=a_LAB01_df847bdfd
- SPRING_DATASOURCE_PASSWORD=3d6@460A
- SPRING_DATASOURCE_URL=jdbc:mysql://172.16.186.185:3306/a_LAB01_df847bdfd?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&useOldAliasMetadataBehavior=true&allowMultiQueries=true
- SPRING_DATASOURCE_DRIVER-CLASS-NAME=com.mysql.jdbc.Driver
- SPRING_DATASOURCE_DEFAULTSCHEMA=a_LAB01_df847bdfd
- NACOS=172.16.240.110:8848
- SEATA_REGISTRY_NACOS_SERVER-ADDR=172.16.240.110:8848
- SEATA_ENABLED=true
deploy:
resources:
limits:
......
......@@ -163,6 +163,10 @@ zuul:
path: /ibizuniproducts/**
serviceId: ${ibiz.ref.service.demosys-demoapi:demosys-demoapi}
stripPrefix: false
dynadashboard:
path: /dynadashboards/**
serviceId: ${ibiz.ref.service.demosys-demoapi:demosys-demoapi}
stripPrefix: false
wfcore:
path: /wfcore/**
serviceId: ${ibiz.ref.service.wf:ibzwf-api}
......
......@@ -8,15 +8,15 @@ import java.util.List;
public interface IBIZBOOKDataImport {
@Mappings({
@Mapping(target = "ibizbookid", source = "ibizbookid"),
@Mapping(target = "createdate", source = "createdate"),
@Mapping(target = "ibizbookname", source = "ibizbookname"),
@Mapping(target = "press", source = "press"),
@Mapping(target = "updateman", source = "updateman"),
@Mapping(target = "author", source = "author"),
@Mapping(target = "price", source = "price"),
@Mapping(target = "booknumber", source = "booknumber"),
@Mapping(target = "createman", source = "createman"),
@Mapping(target = "createdate", source = "createdate"),
@Mapping(target = "ibizbookname", source = "ibizbookname"),
@Mapping(target = "updateman", source = "updateman"),
@Mapping(target = "updatedate", source = "updatedate"),
@Mapping(target = "createman", source = "createman"),
@Mapping(target = "type", source = "type"),
})
@BeanMapping(ignoreByDefault = true)
......
......@@ -8,10 +8,10 @@ import java.util.List;
public interface IBIZOrderImport {
@Mappings({
@Mapping(target = "ibizorderid", source = "ibizorderid"),
@Mapping(target = "ibizordername", source = "ibizordername"),
@Mapping(target = "ordertype", source = "ordertype"),
@Mapping(target = "ordertime", source = "ordertime"),
@Mapping(target = "orderuid", source = "orderuid"),
@Mapping(target = "ibizordername", source = "ibizordername"),
})
@BeanMapping(ignoreByDefault = true)
IBIZOrder toDomain(IBIZOrder entity);
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册