提交 1e571950 编写于 作者: ibizdev's avatar ibizdev

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

上级 81687ca1
...@@ -237,6 +237,14 @@ export default class AppPanelViewBase extends Vue implements ControlInterface { ...@@ -237,6 +237,14 @@ export default class AppPanelViewBase extends Vue implements ControlInterface {
*/ */
public layoutModelDetails:any = {}; public layoutModelDetails:any = {};
/**
* 视图布局顶级成员名称
*
* @public
* @memberof PanelBase
*/
public rootLayoutDetailNames: string[] = [ ];
/** /**
* 初始化布局 * 初始化布局
* *
...@@ -329,7 +337,7 @@ export default class AppPanelViewBase extends Vue implements ControlInterface { ...@@ -329,7 +337,7 @@ export default class AppPanelViewBase extends Vue implements ControlInterface {
this.computedUIData(newVal); this.computedUIData(newVal);
this.layoutData = Util.deepCopy(newVal); this.layoutData = Util.deepCopy(newVal);
this.computeButtonState(newVal); this.computeButtonState(newVal);
this.panelLogic({ name: '', newVal: null, oldVal: null }); this.panelLogic('');
this.$forceUpdate(); this.$forceUpdate();
} }
} }
...@@ -371,17 +379,6 @@ export default class AppPanelViewBase extends Vue implements ControlInterface { ...@@ -371,17 +379,6 @@ export default class AppPanelViewBase extends Vue implements ControlInterface {
} }
} }
/**
* 界面行为
*
* @param {*} row
* @param {*} tag
* @param {*} $event
* @memberof AppPanelViewBase
*/
public uiAction(row: any, tag: any, $event: any) {
}
/** /**
* 打开编辑数据视图 * 打开编辑数据视图
* *
...@@ -446,7 +443,7 @@ export default class AppPanelViewBase extends Vue implements ControlInterface { ...@@ -446,7 +443,7 @@ export default class AppPanelViewBase extends Vue implements ControlInterface {
this.layoutData[name] = value; this.layoutData[name] = value;
this.layoutModelDetails[name].setData(value); this.layoutModelDetails[name].setData(value);
this.panelLogic(name); this.panelLogic(name);
this.panelEditItemChange(data, name, name); this.panelEditItemChange(this.data, name, value);
} }
/** /**
...@@ -482,6 +479,62 @@ export default class AppPanelViewBase extends Vue implements ControlInterface { ...@@ -482,6 +479,62 @@ export default class AppPanelViewBase extends Vue implements ControlInterface {
} }
/**
* 获取按钮行为xData
*
* @public
* @memberof PanelBase
*/
public getButtonXData(name: string): any {
let xData = null;
let curLayoutModel = null;
Object.values(this.layoutModelDetails).forEach((layoutModel: any) => {
if (layoutModel.name == name) {
curLayoutModel = layoutModel;
}
})
// 获取数据容器
if (curLayoutModel) {
const getDataArea = (cLayoutModel: any): any => {
let dataArea = null;
let parentLayoutModel = null;
Object.values(this.layoutModelDetails).forEach((pLayoutModel: any) => {
if (pLayoutModel.name == cLayoutModel.parentName) {
parentLayoutModel = pLayoutModel;
if (parentLayoutModel.dataRegionType == 'SINGLEDATA' || parentLayoutModel.dataRegionType == 'MULTIDATA') {
dataArea = parentLayoutModel;
}
}
})
if (!dataArea && parentLayoutModel) {
dataArea = getDataArea(parentLayoutModel);
}
return dataArea;
}
xData = getDataArea(curLayoutModel);
}
// 获取当前视图
if (!xData) {
xData = this;
}
return xData;
}
/**
* 处理按钮点击
*
* @public
* @memberof PanelBase
*/
public handleButtonClick(name: string, $event?: any) {
const datas: any[] = [this.layoutData];
const xData: any = this.getButtonXData(name);
const paramJO: any = {};
const contextJO: any = {};
const _this: any = this;
}
} }
</script> </script>
......
...@@ -271,6 +271,14 @@ export default class Auto1Base extends Vue implements ControlInterface { ...@@ -271,6 +271,14 @@ export default class Auto1Base extends Vue implements ControlInterface {
*/ */
public layoutModelDetails:any = {}; public layoutModelDetails:any = {};
/**
* 视图布局顶级成员名称
*
* @public
* @memberof Item1layoutpanelBase
*/
public rootLayoutDetailNames: string[] = [ 'container1' ];
/** /**
* 初始化布局 * 初始化布局
* *
...@@ -379,7 +387,7 @@ export default class Auto1Base extends Vue implements ControlInterface { ...@@ -379,7 +387,7 @@ export default class Auto1Base extends Vue implements ControlInterface {
this.computedUIData(newVal); this.computedUIData(newVal);
this.layoutData = Util.deepCopy(newVal); this.layoutData = Util.deepCopy(newVal);
this.computeButtonState(newVal); this.computeButtonState(newVal);
this.panelLogic({ name: '', newVal: null, oldVal: null }); this.panelLogic('');
this.$forceUpdate(); this.$forceUpdate();
} }
} }
...@@ -421,17 +429,6 @@ export default class Auto1Base extends Vue implements ControlInterface { ...@@ -421,17 +429,6 @@ export default class Auto1Base extends Vue implements ControlInterface {
} }
} }
/**
* 界面行为
*
* @param {*} row
* @param {*} tag
* @param {*} $event
* @memberof Auto1Base
*/
public uiAction(row: any, tag: any, $event: any) {
}
/** /**
* 打开编辑数据视图 * 打开编辑数据视图
* *
...@@ -496,7 +493,7 @@ export default class Auto1Base extends Vue implements ControlInterface { ...@@ -496,7 +493,7 @@ export default class Auto1Base extends Vue implements ControlInterface {
this.layoutData[name] = value; this.layoutData[name] = value;
this.layoutModelDetails[name].setData(value); this.layoutModelDetails[name].setData(value);
this.panelLogic(name); this.panelLogic(name);
this.panelEditItemChange(data, name, name); this.panelEditItemChange(this.data, name, value);
} }
/** /**
...@@ -536,6 +533,62 @@ export default class Auto1Base extends Vue implements ControlInterface { ...@@ -536,6 +533,62 @@ export default class Auto1Base extends Vue implements ControlInterface {
} }
/**
* 获取按钮行为xData
*
* @public
* @memberof Item1layoutpanelBase
*/
public getButtonXData(name: string): any {
let xData = null;
let curLayoutModel = null;
Object.values(this.layoutModelDetails).forEach((layoutModel: any) => {
if (layoutModel.name == name) {
curLayoutModel = layoutModel;
}
})
// 获取数据容器
if (curLayoutModel) {
const getDataArea = (cLayoutModel: any): any => {
let dataArea = null;
let parentLayoutModel = null;
Object.values(this.layoutModelDetails).forEach((pLayoutModel: any) => {
if (pLayoutModel.name == cLayoutModel.parentName) {
parentLayoutModel = pLayoutModel;
if (parentLayoutModel.dataRegionType == 'SINGLEDATA' || parentLayoutModel.dataRegionType == 'MULTIDATA') {
dataArea = parentLayoutModel;
}
}
})
if (!dataArea && parentLayoutModel) {
dataArea = getDataArea(parentLayoutModel);
}
return dataArea;
}
xData = getDataArea(curLayoutModel);
}
// 获取当前视图
if (!xData) {
xData = this;
}
return xData;
}
/**
* 处理按钮点击
*
* @public
* @memberof Item1layoutpanelBase
*/
public handleButtonClick(name: string, $event?: any) {
const datas: any[] = [this.layoutData];
const xData: any = this.getButtonXData(name);
const paramJO: any = {};
const contextJO: any = {};
const _this: any = this;
}
} }
</script> </script>
......
...@@ -271,6 +271,14 @@ export default class HasPanelKanBanBase extends Vue implements ControlInterface ...@@ -271,6 +271,14 @@ export default class HasPanelKanBanBase extends Vue implements ControlInterface
*/ */
public layoutModelDetails:any = {}; public layoutModelDetails:any = {};
/**
* 视图布局顶级成员名称
*
* @public
* @memberof ItemlayoutpanelBase
*/
public rootLayoutDetailNames: string[] = [ 'container1' ];
/** /**
* 初始化布局 * 初始化布局
* *
...@@ -379,7 +387,7 @@ export default class HasPanelKanBanBase extends Vue implements ControlInterface ...@@ -379,7 +387,7 @@ export default class HasPanelKanBanBase extends Vue implements ControlInterface
this.computedUIData(newVal); this.computedUIData(newVal);
this.layoutData = Util.deepCopy(newVal); this.layoutData = Util.deepCopy(newVal);
this.computeButtonState(newVal); this.computeButtonState(newVal);
this.panelLogic({ name: '', newVal: null, oldVal: null }); this.panelLogic('');
this.$forceUpdate(); this.$forceUpdate();
} }
} }
...@@ -421,17 +429,6 @@ export default class HasPanelKanBanBase extends Vue implements ControlInterface ...@@ -421,17 +429,6 @@ export default class HasPanelKanBanBase extends Vue implements ControlInterface
} }
} }
/**
* 界面行为
*
* @param {*} row
* @param {*} tag
* @param {*} $event
* @memberof HasPanelKanBanBase
*/
public uiAction(row: any, tag: any, $event: any) {
}
/** /**
* 打开编辑数据视图 * 打开编辑数据视图
* *
...@@ -496,7 +493,7 @@ export default class HasPanelKanBanBase extends Vue implements ControlInterface ...@@ -496,7 +493,7 @@ export default class HasPanelKanBanBase extends Vue implements ControlInterface
this.layoutData[name] = value; this.layoutData[name] = value;
this.layoutModelDetails[name].setData(value); this.layoutModelDetails[name].setData(value);
this.panelLogic(name); this.panelLogic(name);
this.panelEditItemChange(data, name, name); this.panelEditItemChange(this.data, name, value);
} }
/** /**
...@@ -536,6 +533,62 @@ export default class HasPanelKanBanBase extends Vue implements ControlInterface ...@@ -536,6 +533,62 @@ export default class HasPanelKanBanBase extends Vue implements ControlInterface
} }
/**
* 获取按钮行为xData
*
* @public
* @memberof ItemlayoutpanelBase
*/
public getButtonXData(name: string): any {
let xData = null;
let curLayoutModel = null;
Object.values(this.layoutModelDetails).forEach((layoutModel: any) => {
if (layoutModel.name == name) {
curLayoutModel = layoutModel;
}
})
// 获取数据容器
if (curLayoutModel) {
const getDataArea = (cLayoutModel: any): any => {
let dataArea = null;
let parentLayoutModel = null;
Object.values(this.layoutModelDetails).forEach((pLayoutModel: any) => {
if (pLayoutModel.name == cLayoutModel.parentName) {
parentLayoutModel = pLayoutModel;
if (parentLayoutModel.dataRegionType == 'SINGLEDATA' || parentLayoutModel.dataRegionType == 'MULTIDATA') {
dataArea = parentLayoutModel;
}
}
})
if (!dataArea && parentLayoutModel) {
dataArea = getDataArea(parentLayoutModel);
}
return dataArea;
}
xData = getDataArea(curLayoutModel);
}
// 获取当前视图
if (!xData) {
xData = this;
}
return xData;
}
/**
* 处理按钮点击
*
* @public
* @memberof ItemlayoutpanelBase
*/
public handleButtonClick(name: string, $event?: any) {
const datas: any[] = [this.layoutData];
const xData: any = this.getButtonXData(name);
const paramJO: any = {};
const contextJO: any = {};
const _this: any = this;
}
} }
</script> </script>
......
...@@ -271,6 +271,14 @@ export default class HasPanelListBase extends Vue implements ControlInterface { ...@@ -271,6 +271,14 @@ export default class HasPanelListBase extends Vue implements ControlInterface {
*/ */
public layoutModelDetails:any = {}; public layoutModelDetails:any = {};
/**
* 视图布局顶级成员名称
*
* @public
* @memberof List_itempanelBase
*/
public rootLayoutDetailNames: string[] = [ 'container1' ];
/** /**
* 初始化布局 * 初始化布局
* *
...@@ -379,7 +387,7 @@ export default class HasPanelListBase extends Vue implements ControlInterface { ...@@ -379,7 +387,7 @@ export default class HasPanelListBase extends Vue implements ControlInterface {
this.computedUIData(newVal); this.computedUIData(newVal);
this.layoutData = Util.deepCopy(newVal); this.layoutData = Util.deepCopy(newVal);
this.computeButtonState(newVal); this.computeButtonState(newVal);
this.panelLogic({ name: '', newVal: null, oldVal: null }); this.panelLogic('');
this.$forceUpdate(); this.$forceUpdate();
} }
} }
...@@ -421,17 +429,6 @@ export default class HasPanelListBase extends Vue implements ControlInterface { ...@@ -421,17 +429,6 @@ export default class HasPanelListBase extends Vue implements ControlInterface {
} }
} }
/**
* 界面行为
*
* @param {*} row
* @param {*} tag
* @param {*} $event
* @memberof HasPanelListBase
*/
public uiAction(row: any, tag: any, $event: any) {
}
/** /**
* 打开编辑数据视图 * 打开编辑数据视图
* *
...@@ -496,7 +493,7 @@ export default class HasPanelListBase extends Vue implements ControlInterface { ...@@ -496,7 +493,7 @@ export default class HasPanelListBase extends Vue implements ControlInterface {
this.layoutData[name] = value; this.layoutData[name] = value;
this.layoutModelDetails[name].setData(value); this.layoutModelDetails[name].setData(value);
this.panelLogic(name); this.panelLogic(name);
this.panelEditItemChange(data, name, name); this.panelEditItemChange(this.data, name, value);
} }
/** /**
...@@ -536,6 +533,62 @@ export default class HasPanelListBase extends Vue implements ControlInterface { ...@@ -536,6 +533,62 @@ export default class HasPanelListBase extends Vue implements ControlInterface {
} }
/**
* 获取按钮行为xData
*
* @public
* @memberof List_itempanelBase
*/
public getButtonXData(name: string): any {
let xData = null;
let curLayoutModel = null;
Object.values(this.layoutModelDetails).forEach((layoutModel: any) => {
if (layoutModel.name == name) {
curLayoutModel = layoutModel;
}
})
// 获取数据容器
if (curLayoutModel) {
const getDataArea = (cLayoutModel: any): any => {
let dataArea = null;
let parentLayoutModel = null;
Object.values(this.layoutModelDetails).forEach((pLayoutModel: any) => {
if (pLayoutModel.name == cLayoutModel.parentName) {
parentLayoutModel = pLayoutModel;
if (parentLayoutModel.dataRegionType == 'SINGLEDATA' || parentLayoutModel.dataRegionType == 'MULTIDATA') {
dataArea = parentLayoutModel;
}
}
})
if (!dataArea && parentLayoutModel) {
dataArea = getDataArea(parentLayoutModel);
}
return dataArea;
}
xData = getDataArea(curLayoutModel);
}
// 获取当前视图
if (!xData) {
xData = this;
}
return xData;
}
/**
* 处理按钮点击
*
* @public
* @memberof List_itempanelBase
*/
public handleButtonClick(name: string, $event?: any) {
const datas: any[] = [this.layoutData];
const xData: any = this.getButtonXData(name);
const paramJO: any = {};
const contextJO: any = {};
const _this: any = this;
}
} }
</script> </script>
......
...@@ -135,62 +135,6 @@ export default class ListpanelBase extends Vue implements ControlInterface { ...@@ -135,62 +135,6 @@ export default class ListpanelBase extends Vue implements ControlInterface {
public appEntityService: IBIZBOOKEntityService = new IBIZBOOKEntityService({ $store: this.$store }); public appEntityService: IBIZBOOKEntityService = new IBIZBOOKEntityService({ $store: this.$store });
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public list_itempanel_button_link1_click(params: any = {}, tag?: any, $event?: any) {
// 取数
let datas: any[] = [];
let xData: any = null;
// _this 指向容器对象
const _this: any = this;
let paramJO:any = {};
let contextJO:any = {};
xData = this;
if (_this.getDatas && _this.getDatas instanceof Function) {
datas = [..._this.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
const curUIService:IBIZBOOKUIService = new IBIZBOOKUIService();
curUIService.IBIZBOOK_panel_Listpanel_button_link1_click(datas,contextJO, paramJO, $event, xData,this,"IBIZBOOK");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public list_itempanel_button_calluilogic1_click(params: any = {}, tag?: any, $event?: any) {
// 取数
let datas: any[] = [];
let xData: any = null;
// _this 指向容器对象
const _this: any = this;
let paramJO:any = {};
let contextJO:any = {};
xData = this;
if (_this.getDatas && _this.getDatas instanceof Function) {
datas = [..._this.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
const curUIService:IBIZBOOKUIService = new IBIZBOOKUIService();
curUIService.IBIZBOOK_openDocument(datas,contextJO, paramJO, $event, xData,this,"IBIZBOOK");
}
/** /**
* 转化数据 * 转化数据
...@@ -336,6 +280,14 @@ export default class ListpanelBase extends Vue implements ControlInterface { ...@@ -336,6 +280,14 @@ export default class ListpanelBase extends Vue implements ControlInterface {
*/ */
public layoutModelDetails:any = {}; public layoutModelDetails:any = {};
/**
* 视图布局顶级成员名称
*
* @public
* @memberof List_itempanelBase
*/
public rootLayoutDetailNames: string[] = [ 'container1' ];
/** /**
* 初始化布局 * 初始化布局
* *
...@@ -443,7 +395,7 @@ export default class ListpanelBase extends Vue implements ControlInterface { ...@@ -443,7 +395,7 @@ export default class ListpanelBase extends Vue implements ControlInterface {
this.computedUIData(newVal); this.computedUIData(newVal);
this.layoutData = Util.deepCopy(newVal); this.layoutData = Util.deepCopy(newVal);
this.computeButtonState(newVal); this.computeButtonState(newVal);
this.panelLogic({ name: '', newVal: null, oldVal: null }); this.panelLogic('');
this.$forceUpdate(); this.$forceUpdate();
} }
} }
...@@ -485,23 +437,6 @@ export default class ListpanelBase extends Vue implements ControlInterface { ...@@ -485,23 +437,6 @@ export default class ListpanelBase extends Vue implements ControlInterface {
} }
} }
/**
* 界面行为
*
* @param {*} row
* @param {*} tag
* @param {*} $event
* @memberof ListpanelBase
*/
public uiAction(row: any, tag: any, $event: any) {
if(Object.is('panel_Listpanel_button_link1_click', tag)) {
this.list_itempanel_button_link1_click(row, tag, $event);
}
if(Object.is('openDocument', tag)) {
this.list_itempanel_button_calluilogic1_click(row, tag, $event);
}
}
/** /**
* 打开编辑数据视图 * 打开编辑数据视图
* *
...@@ -566,7 +501,7 @@ export default class ListpanelBase extends Vue implements ControlInterface { ...@@ -566,7 +501,7 @@ export default class ListpanelBase extends Vue implements ControlInterface {
this.layoutData[name] = value; this.layoutData[name] = value;
this.layoutModelDetails[name].setData(value); this.layoutModelDetails[name].setData(value);
this.panelLogic(name); this.panelLogic(name);
this.panelEditItemChange(data, name, name); this.panelEditItemChange(this.data, name, value);
} }
/** /**
...@@ -609,6 +544,70 @@ export default class ListpanelBase extends Vue implements ControlInterface { ...@@ -609,6 +544,70 @@ export default class ListpanelBase extends Vue implements ControlInterface {
} }
/**
* 获取按钮行为xData
*
* @public
* @memberof List_itempanelBase
*/
public getButtonXData(name: string): any {
let xData = null;
let curLayoutModel = null;
Object.values(this.layoutModelDetails).forEach((layoutModel: any) => {
if (layoutModel.name == name) {
curLayoutModel = layoutModel;
}
})
// 获取数据容器
if (curLayoutModel) {
const getDataArea = (cLayoutModel: any): any => {
let dataArea = null;
let parentLayoutModel = null;
Object.values(this.layoutModelDetails).forEach((pLayoutModel: any) => {
if (pLayoutModel.name == cLayoutModel.parentName) {
parentLayoutModel = pLayoutModel;
if (parentLayoutModel.dataRegionType == 'SINGLEDATA' || parentLayoutModel.dataRegionType == 'MULTIDATA') {
dataArea = parentLayoutModel;
}
}
})
if (!dataArea && parentLayoutModel) {
dataArea = getDataArea(parentLayoutModel);
}
return dataArea;
}
xData = getDataArea(curLayoutModel);
}
// 获取当前视图
if (!xData) {
xData = this;
}
return xData;
}
/**
* 处理按钮点击
*
* @public
* @memberof List_itempanelBase
*/
public handleButtonClick(name: string, $event?: any) {
const datas: any[] = [this.layoutData];
const xData: any = this.getButtonXData(name);
const paramJO: any = {};
const contextJO: any = {};
const _this: any = this;
if (Object.is(name, 'button_link1')) {
const curUIService: IBIZBOOKUIService = new IBIZBOOKUIService();
curUIService.IBIZBOOK_panel_Listpanel_button_link1_click(datas, contextJO, paramJO, $event, xData, this, undefined);
}
if (Object.is(name, 'button_calluilogic1')) {
const curUIService: IBIZBOOKUIService = new IBIZBOOKUIService();
curUIService.IBIZBOOK_openDocument(datas, contextJO, paramJO, $event, xData, this, undefined);
}
}
} }
</script> </script>
......
...@@ -446,7 +446,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -446,7 +446,7 @@ export default class MainBase extends Vue implements ControlInterface {
*/ */
public load(data: any): void { public load(data: any): void {
if(!this.fetchAction){ if(!this.fetchAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKMEditView9' + (this.$t('app.multiEditView.notConfig.fetchAction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKUsr2MEditView9_layout' + (this.$t('app.multiEditView.notConfig.fetchAction') as string) });
return; return;
} }
let arg: any = {}; let arg: any = {};
...@@ -481,7 +481,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -481,7 +481,7 @@ export default class MainBase extends Vue implements ControlInterface {
*/ */
public handleAdd(){ public handleAdd(){
if(!this.loaddraftAction){ if(!this.loaddraftAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKMEditView9' + (this.$t('app.multiEditView.notConfig.loaddraftAction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKUsr2MEditView9_layout' + (this.$t('app.multiEditView.notConfig.loaddraftAction') as string) });
return; return;
} }
const promice: Promise<any> = this.service.loadDraft(this.loaddraftAction,JSON.parse(JSON.stringify(this.context)),{viewparams:this.viewparams}, this.showBusyIndicator); const promice: Promise<any> = this.service.loadDraft(this.loaddraftAction,JSON.parse(JSON.stringify(this.context)),{viewparams:this.viewparams}, this.showBusyIndicator);
......
...@@ -629,7 +629,7 @@ export default class QUICKSEARCHFORMBase extends Vue implements ControlInterface ...@@ -629,7 +629,7 @@ export default class QUICKSEARCHFORMBase extends Vue implements ControlInterface
*/ */
public load(opt: any = {}): void { public load(opt: any = {}): void {
if(!this.loadAction){ if(!this.loadAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKCalendarView' + (this.$t('app.searchForm.notConfig.loadAction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKListView' + (this.$t('app.searchForm.notConfig.loadAction') as string) });
return; return;
} }
const arg: any = { ...opt }; const arg: any = { ...opt };
...@@ -665,7 +665,7 @@ export default class QUICKSEARCHFORMBase extends Vue implements ControlInterface ...@@ -665,7 +665,7 @@ export default class QUICKSEARCHFORMBase extends Vue implements ControlInterface
*/ */
public loadDraft(opt: any = {},mode?:string): void { public loadDraft(opt: any = {},mode?:string): void {
if(!this.loaddraftAction){ if(!this.loaddraftAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKCalendarView' + (this.$t('app.searchForm.notConfig.loaddraftAction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKListView' + (this.$t('app.searchForm.notConfig.loaddraftAction') as string) });
return; return;
} }
const arg: any = { ...opt } ; const arg: any = { ...opt } ;
......
...@@ -262,6 +262,14 @@ export default class TIMELINEITEMLAYOUTPANELBase extends Vue implements ControlI ...@@ -262,6 +262,14 @@ export default class TIMELINEITEMLAYOUTPANELBase extends Vue implements ControlI
*/ */
public layoutModelDetails:any = {}; public layoutModelDetails:any = {};
/**
* 视图布局顶级成员名称
*
* @public
* @memberof ItemlayoutpanelBase
*/
public rootLayoutDetailNames: string[] = [ 'container1' ];
/** /**
* 初始化布局 * 初始化布局
* *
...@@ -355,7 +363,7 @@ export default class TIMELINEITEMLAYOUTPANELBase extends Vue implements ControlI ...@@ -355,7 +363,7 @@ export default class TIMELINEITEMLAYOUTPANELBase extends Vue implements ControlI
this.computedUIData(newVal); this.computedUIData(newVal);
this.layoutData = Util.deepCopy(newVal); this.layoutData = Util.deepCopy(newVal);
this.computeButtonState(newVal); this.computeButtonState(newVal);
this.panelLogic({ name: '', newVal: null, oldVal: null }); this.panelLogic('');
this.$forceUpdate(); this.$forceUpdate();
} }
} }
...@@ -397,17 +405,6 @@ export default class TIMELINEITEMLAYOUTPANELBase extends Vue implements ControlI ...@@ -397,17 +405,6 @@ export default class TIMELINEITEMLAYOUTPANELBase extends Vue implements ControlI
} }
} }
/**
* 界面行为
*
* @param {*} row
* @param {*} tag
* @param {*} $event
* @memberof TIMELINEITEMLAYOUTPANELBase
*/
public uiAction(row: any, tag: any, $event: any) {
}
/** /**
* 打开编辑数据视图 * 打开编辑数据视图
* *
...@@ -472,7 +469,7 @@ export default class TIMELINEITEMLAYOUTPANELBase extends Vue implements ControlI ...@@ -472,7 +469,7 @@ export default class TIMELINEITEMLAYOUTPANELBase extends Vue implements ControlI
this.layoutData[name] = value; this.layoutData[name] = value;
this.layoutModelDetails[name].setData(value); this.layoutModelDetails[name].setData(value);
this.panelLogic(name); this.panelLogic(name);
this.panelEditItemChange(data, name, name); this.panelEditItemChange(this.data, name, value);
} }
/** /**
...@@ -509,6 +506,62 @@ export default class TIMELINEITEMLAYOUTPANELBase extends Vue implements ControlI ...@@ -509,6 +506,62 @@ export default class TIMELINEITEMLAYOUTPANELBase extends Vue implements ControlI
} }
/**
* 获取按钮行为xData
*
* @public
* @memberof ItemlayoutpanelBase
*/
public getButtonXData(name: string): any {
let xData = null;
let curLayoutModel = null;
Object.values(this.layoutModelDetails).forEach((layoutModel: any) => {
if (layoutModel.name == name) {
curLayoutModel = layoutModel;
}
})
// 获取数据容器
if (curLayoutModel) {
const getDataArea = (cLayoutModel: any): any => {
let dataArea = null;
let parentLayoutModel = null;
Object.values(this.layoutModelDetails).forEach((pLayoutModel: any) => {
if (pLayoutModel.name == cLayoutModel.parentName) {
parentLayoutModel = pLayoutModel;
if (parentLayoutModel.dataRegionType == 'SINGLEDATA' || parentLayoutModel.dataRegionType == 'MULTIDATA') {
dataArea = parentLayoutModel;
}
}
})
if (!dataArea && parentLayoutModel) {
dataArea = getDataArea(parentLayoutModel);
}
return dataArea;
}
xData = getDataArea(curLayoutModel);
}
// 获取当前视图
if (!xData) {
xData = this;
}
return xData;
}
/**
* 处理按钮点击
*
* @public
* @memberof ItemlayoutpanelBase
*/
public handleButtonClick(name: string, $event?: any) {
const datas: any[] = [this.layoutData];
const xData: any = this.getButtonXData(name);
const paramJO: any = {};
const contextJO: any = {};
const _this: any = this;
}
} }
</script> </script>
......
...@@ -262,6 +262,14 @@ export default class UsrBase extends Vue implements ControlInterface { ...@@ -262,6 +262,14 @@ export default class UsrBase extends Vue implements ControlInterface {
*/ */
public layoutModelDetails:any = {}; public layoutModelDetails:any = {};
/**
* 视图布局顶级成员名称
*
* @public
* @memberof List_itempanelBase
*/
public rootLayoutDetailNames: string[] = [ 'container1' ];
/** /**
* 初始化布局 * 初始化布局
* *
...@@ -355,7 +363,7 @@ export default class UsrBase extends Vue implements ControlInterface { ...@@ -355,7 +363,7 @@ export default class UsrBase extends Vue implements ControlInterface {
this.computedUIData(newVal); this.computedUIData(newVal);
this.layoutData = Util.deepCopy(newVal); this.layoutData = Util.deepCopy(newVal);
this.computeButtonState(newVal); this.computeButtonState(newVal);
this.panelLogic({ name: '', newVal: null, oldVal: null }); this.panelLogic('');
this.$forceUpdate(); this.$forceUpdate();
} }
} }
...@@ -397,17 +405,6 @@ export default class UsrBase extends Vue implements ControlInterface { ...@@ -397,17 +405,6 @@ export default class UsrBase extends Vue implements ControlInterface {
} }
} }
/**
* 界面行为
*
* @param {*} row
* @param {*} tag
* @param {*} $event
* @memberof UsrBase
*/
public uiAction(row: any, tag: any, $event: any) {
}
/** /**
* 打开编辑数据视图 * 打开编辑数据视图
* *
...@@ -472,7 +469,7 @@ export default class UsrBase extends Vue implements ControlInterface { ...@@ -472,7 +469,7 @@ export default class UsrBase extends Vue implements ControlInterface {
this.layoutData[name] = value; this.layoutData[name] = value;
this.layoutModelDetails[name].setData(value); this.layoutModelDetails[name].setData(value);
this.panelLogic(name); this.panelLogic(name);
this.panelEditItemChange(data, name, name); this.panelEditItemChange(this.data, name, value);
} }
/** /**
...@@ -509,6 +506,62 @@ export default class UsrBase extends Vue implements ControlInterface { ...@@ -509,6 +506,62 @@ export default class UsrBase extends Vue implements ControlInterface {
} }
/**
* 获取按钮行为xData
*
* @public
* @memberof List_itempanelBase
*/
public getButtonXData(name: string): any {
let xData = null;
let curLayoutModel = null;
Object.values(this.layoutModelDetails).forEach((layoutModel: any) => {
if (layoutModel.name == name) {
curLayoutModel = layoutModel;
}
})
// 获取数据容器
if (curLayoutModel) {
const getDataArea = (cLayoutModel: any): any => {
let dataArea = null;
let parentLayoutModel = null;
Object.values(this.layoutModelDetails).forEach((pLayoutModel: any) => {
if (pLayoutModel.name == cLayoutModel.parentName) {
parentLayoutModel = pLayoutModel;
if (parentLayoutModel.dataRegionType == 'SINGLEDATA' || parentLayoutModel.dataRegionType == 'MULTIDATA') {
dataArea = parentLayoutModel;
}
}
})
if (!dataArea && parentLayoutModel) {
dataArea = getDataArea(parentLayoutModel);
}
return dataArea;
}
xData = getDataArea(curLayoutModel);
}
// 获取当前视图
if (!xData) {
xData = this;
}
return xData;
}
/**
* 处理按钮点击
*
* @public
* @memberof List_itempanelBase
*/
public handleButtonClick(name: string, $event?: any) {
const datas: any[] = [this.layoutData];
const xData: any = this.getButtonXData(name);
const paramJO: any = {};
const contextJO: any = {};
const _this: any = this;
}
} }
</script> </script>
......
...@@ -657,7 +657,7 @@ export default class Usr4Base extends Vue implements ControlInterface { ...@@ -657,7 +657,7 @@ export default class Usr4Base extends Vue implements ControlInterface {
*/ */
public load(opt: any = {}, isReset: boolean = false): void { public load(opt: any = {}, isReset: boolean = false): void {
if(!this.fetchAction){ if(!this.fetchAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKTestCLDataView' + (this.$t('app.list.notConfig.fetchAction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKUsr4DataView' + (this.$t('app.list.notConfig.fetchAction') as string) });
return; return;
} }
const arg: any = {...opt}; const arg: any = {...opt};
...@@ -736,7 +736,7 @@ export default class Usr4Base extends Vue implements ControlInterface { ...@@ -736,7 +736,7 @@ export default class Usr4Base extends Vue implements ControlInterface {
*/ */
public async remove(datas: any[]): Promise<any> { public async remove(datas: any[]): Promise<any> {
if(!this.removeAction){ if(!this.removeAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKTestCLDataView' + (this.$t('app.gridpage.notConfig.removeAction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKUsr4DataView' + (this.$t('app.gridpage.notConfig.removeAction') as string) });
return; return;
} }
let _datas:any[] = []; let _datas:any[] = [];
...@@ -845,7 +845,7 @@ export default class Usr4Base extends Vue implements ControlInterface { ...@@ -845,7 +845,7 @@ export default class Usr4Base extends Vue implements ControlInterface {
try { try {
if(Object.is(item.rowDataState, 'create')){ if(Object.is(item.rowDataState, 'create')){
if(!this.createAction){ if(!this.createAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKTestCLDataView' + (this.$t('app.list.notConfig.createAction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKUsr4DataView' + (this.$t('app.list.notConfig.createAction') as string) });
}else{ }else{
Object.assign(item,{viewparams:this.viewparams}); Object.assign(item,{viewparams:this.viewparams});
let response = await this.service.add(this.createAction, JSON.parse(JSON.stringify(this.context)),item, this.showBusyIndicator); let response = await this.service.add(this.createAction, JSON.parse(JSON.stringify(this.context)),item, this.showBusyIndicator);
...@@ -853,7 +853,7 @@ export default class Usr4Base extends Vue implements ControlInterface { ...@@ -853,7 +853,7 @@ export default class Usr4Base extends Vue implements ControlInterface {
} }
}else if(Object.is(item.rowDataState, 'update')){ }else if(Object.is(item.rowDataState, 'update')){
if(!this.updateAction){ if(!this.updateAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKTestCLDataView' + (this.$t('app.list.notConfig.updateAction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKUsr4DataView' + (this.$t('app.list.notConfig.updateAction') as string) });
}else{ }else{
Object.assign(item,{viewparams:this.viewparams}); Object.assign(item,{viewparams:this.viewparams});
if(item.ibizbook){ if(item.ibizbook){
......
...@@ -69,6 +69,11 @@ export default class Usr4Model { ...@@ -69,6 +69,11 @@ export default class Usr4Model {
prop: 'n_ibizbookname_like', prop: 'n_ibizbookname_like',
dataType: 'QUERYPARAM' dataType: 'QUERYPARAM'
}, },
{
name: 'n_price_gtandeq',
prop: 'n_price_gtandeq',
dataType: 'QUERYPARAM'
},
{ {
......
...@@ -271,6 +271,14 @@ export default class Usr4Base extends Vue implements ControlInterface { ...@@ -271,6 +271,14 @@ export default class Usr4Base extends Vue implements ControlInterface {
*/ */
public layoutModelDetails:any = {}; public layoutModelDetails:any = {};
/**
* 视图布局顶级成员名称
*
* @public
* @memberof ItemlayoutpanelBase
*/
public rootLayoutDetailNames: string[] = [ 'container1' ];
/** /**
* 初始化布局 * 初始化布局
* *
...@@ -379,7 +387,7 @@ export default class Usr4Base extends Vue implements ControlInterface { ...@@ -379,7 +387,7 @@ export default class Usr4Base extends Vue implements ControlInterface {
this.computedUIData(newVal); this.computedUIData(newVal);
this.layoutData = Util.deepCopy(newVal); this.layoutData = Util.deepCopy(newVal);
this.computeButtonState(newVal); this.computeButtonState(newVal);
this.panelLogic({ name: '', newVal: null, oldVal: null }); this.panelLogic('');
this.$forceUpdate(); this.$forceUpdate();
} }
} }
...@@ -421,17 +429,6 @@ export default class Usr4Base extends Vue implements ControlInterface { ...@@ -421,17 +429,6 @@ export default class Usr4Base extends Vue implements ControlInterface {
} }
} }
/**
* 界面行为
*
* @param {*} row
* @param {*} tag
* @param {*} $event
* @memberof Usr4Base
*/
public uiAction(row: any, tag: any, $event: any) {
}
/** /**
* 打开编辑数据视图 * 打开编辑数据视图
* *
...@@ -496,7 +493,7 @@ export default class Usr4Base extends Vue implements ControlInterface { ...@@ -496,7 +493,7 @@ export default class Usr4Base extends Vue implements ControlInterface {
this.layoutData[name] = value; this.layoutData[name] = value;
this.layoutModelDetails[name].setData(value); this.layoutModelDetails[name].setData(value);
this.panelLogic(name); this.panelLogic(name);
this.panelEditItemChange(data, name, name); this.panelEditItemChange(this.data, name, value);
} }
/** /**
...@@ -536,6 +533,62 @@ export default class Usr4Base extends Vue implements ControlInterface { ...@@ -536,6 +533,62 @@ export default class Usr4Base extends Vue implements ControlInterface {
} }
/**
* 获取按钮行为xData
*
* @public
* @memberof ItemlayoutpanelBase
*/
public getButtonXData(name: string): any {
let xData = null;
let curLayoutModel = null;
Object.values(this.layoutModelDetails).forEach((layoutModel: any) => {
if (layoutModel.name == name) {
curLayoutModel = layoutModel;
}
})
// 获取数据容器
if (curLayoutModel) {
const getDataArea = (cLayoutModel: any): any => {
let dataArea = null;
let parentLayoutModel = null;
Object.values(this.layoutModelDetails).forEach((pLayoutModel: any) => {
if (pLayoutModel.name == cLayoutModel.parentName) {
parentLayoutModel = pLayoutModel;
if (parentLayoutModel.dataRegionType == 'SINGLEDATA' || parentLayoutModel.dataRegionType == 'MULTIDATA') {
dataArea = parentLayoutModel;
}
}
})
if (!dataArea && parentLayoutModel) {
dataArea = getDataArea(parentLayoutModel);
}
return dataArea;
}
xData = getDataArea(curLayoutModel);
}
// 获取当前视图
if (!xData) {
xData = this;
}
return xData;
}
/**
* 处理按钮点击
*
* @public
* @memberof ItemlayoutpanelBase
*/
public handleButtonClick(name: string, $event?: any) {
const datas: any[] = [this.layoutData];
const xData: any = this.getButtonXData(name);
const paramJO: any = {};
const contextJO: any = {};
const _this: any = this;
}
} }
</script> </script>
......
...@@ -262,6 +262,14 @@ export default class Usr5Base extends Vue implements ControlInterface { ...@@ -262,6 +262,14 @@ export default class Usr5Base extends Vue implements ControlInterface {
*/ */
public layoutModelDetails:any = {}; public layoutModelDetails:any = {};
/**
* 视图布局顶级成员名称
*
* @public
* @memberof ItemlayoutpanelBase
*/
public rootLayoutDetailNames: string[] = [ 'container1' ];
/** /**
* 初始化布局 * 初始化布局
* *
...@@ -355,7 +363,7 @@ export default class Usr5Base extends Vue implements ControlInterface { ...@@ -355,7 +363,7 @@ export default class Usr5Base extends Vue implements ControlInterface {
this.computedUIData(newVal); this.computedUIData(newVal);
this.layoutData = Util.deepCopy(newVal); this.layoutData = Util.deepCopy(newVal);
this.computeButtonState(newVal); this.computeButtonState(newVal);
this.panelLogic({ name: '', newVal: null, oldVal: null }); this.panelLogic('');
this.$forceUpdate(); this.$forceUpdate();
} }
} }
...@@ -397,17 +405,6 @@ export default class Usr5Base extends Vue implements ControlInterface { ...@@ -397,17 +405,6 @@ export default class Usr5Base extends Vue implements ControlInterface {
} }
} }
/**
* 界面行为
*
* @param {*} row
* @param {*} tag
* @param {*} $event
* @memberof Usr5Base
*/
public uiAction(row: any, tag: any, $event: any) {
}
/** /**
* 打开编辑数据视图 * 打开编辑数据视图
* *
...@@ -472,7 +469,7 @@ export default class Usr5Base extends Vue implements ControlInterface { ...@@ -472,7 +469,7 @@ export default class Usr5Base extends Vue implements ControlInterface {
this.layoutData[name] = value; this.layoutData[name] = value;
this.layoutModelDetails[name].setData(value); this.layoutModelDetails[name].setData(value);
this.panelLogic(name); this.panelLogic(name);
this.panelEditItemChange(data, name, name); this.panelEditItemChange(this.data, name, value);
} }
/** /**
...@@ -509,6 +506,62 @@ export default class Usr5Base extends Vue implements ControlInterface { ...@@ -509,6 +506,62 @@ export default class Usr5Base extends Vue implements ControlInterface {
} }
/**
* 获取按钮行为xData
*
* @public
* @memberof ItemlayoutpanelBase
*/
public getButtonXData(name: string): any {
let xData = null;
let curLayoutModel = null;
Object.values(this.layoutModelDetails).forEach((layoutModel: any) => {
if (layoutModel.name == name) {
curLayoutModel = layoutModel;
}
})
// 获取数据容器
if (curLayoutModel) {
const getDataArea = (cLayoutModel: any): any => {
let dataArea = null;
let parentLayoutModel = null;
Object.values(this.layoutModelDetails).forEach((pLayoutModel: any) => {
if (pLayoutModel.name == cLayoutModel.parentName) {
parentLayoutModel = pLayoutModel;
if (parentLayoutModel.dataRegionType == 'SINGLEDATA' || parentLayoutModel.dataRegionType == 'MULTIDATA') {
dataArea = parentLayoutModel;
}
}
})
if (!dataArea && parentLayoutModel) {
dataArea = getDataArea(parentLayoutModel);
}
return dataArea;
}
xData = getDataArea(curLayoutModel);
}
// 获取当前视图
if (!xData) {
xData = this;
}
return xData;
}
/**
* 处理按钮点击
*
* @public
* @memberof ItemlayoutpanelBase
*/
public handleButtonClick(name: string, $event?: any) {
const datas: any[] = [this.layoutData];
const xData: any = this.getButtonXData(name);
const paramJO: any = {};
const contextJO: any = {};
const _this: any = this;
}
} }
</script> </script>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册