提交 6569c5d9 编写于 作者: ibizdev's avatar ibizdev

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

上级 c0c707a5
......@@ -141,10 +141,13 @@ export class PanelContainerModel extends PanelDetailModel {
this.data = this.panel.data;
}
} else {
const parentItem = this.panel.layoutModelDetails[this.parentName];
let parentItem = this.panel.layoutModelDetails[`${this.parentName}_${this.index}`];
if (!parentItem) {
parentItem = this.panel.layoutModelDetails[this.parentName];
}
if (parentItem) {
if (parentItem.dataRegionType === 'MULTIDATA' && parentItem['data'] && parentItem['data'].length > 0) {
this.data = parentItem.getData()[this.getIndex()];
this.data = parentItem.getData()[this.getIndex()];
} else {
this.data = parentItem.getData();
}
......
......@@ -440,26 +440,28 @@ export class PanelDetailModel {
if (this.parentName && this.panel) {
const parentItem = this.panel.layoutModelDetails[this.parentName];
// 识别父FLEX
if (parentItem.layout == 'FLEX') {
Object.assign(boxStyle, { 'display': 'contents' });
Object.assign(boxStyle, { 'flex-grow': this.flexGrow ? this.flexGrow : 0 });
}
// 识别SIMPLEFLEX
else if (parentItem.layout == 'SIMPLEFLEX') {
// SIMPLEFLEX 按照内容撑大小
Object.assign(boxStyle, { 'flex-grow': 0 });
if (this.flexGrow !== -1) {
Object.assign(boxStyle, { 'width': `${(100 / 12) * this.flexGrow}%`, 'height': '100%' });
} else {
// 简单FLEX布局自适应
Object.assign(boxStyle, { 'flex-grow': 1, 'min-width': `${(100 / 12)}%`, 'height': '100%' });
if (parentItem) {
if (parentItem.layout == 'FLEX') {
Object.assign(boxStyle, { 'display': 'contents' });
Object.assign(boxStyle, { 'flex-grow': this.flexGrow ? this.flexGrow : 0 });
}
} else {
// 当前项兄弟项个数大于1且本身设置宽或者高默认不占满
if (parentItem && parentItem.details && parentItem.details.length > 1) {
const boxSizeStyle: any = this.getBoxSizeStyle();
if (boxSizeStyle && Object.keys(boxSizeStyle).length > 0) {
Object.assign(boxStyle, { 'flex-grow': 0 });
// 识别SIMPLEFLEX
else if (parentItem.layout == 'SIMPLEFLEX') {
// SIMPLEFLEX 按照内容撑大小
Object.assign(boxStyle, { 'flex-grow': 0 });
if (this.flexGrow !== -1) {
Object.assign(boxStyle, { 'width': `${(100 / 12) * this.flexGrow}%`, 'height': '100%' });
} else {
// 简单FLEX布局自适应
Object.assign(boxStyle, { 'flex-grow': 1, 'min-width': `${(100 / 12)}%`, 'height': '100%' });
}
} else {
// 当前项兄弟项个数大于1且本身设置宽或者高默认不占满
if (parentItem && parentItem.details && parentItem.details.length > 1) {
const boxSizeStyle: any = this.getBoxSizeStyle();
if (boxSizeStyle && Object.keys(boxSizeStyle).length > 0) {
Object.assign(boxStyle, { 'flex-grow': 0 });
}
}
}
}
......
......@@ -340,7 +340,7 @@ export default class IBIZBOOKCustomView_layoutBase extends Vue {
* @public
* @memberof IBIZBOOKCustomView_layoutBase
*/
public isLayoutLoadding: boolean = false;
public isLayoutLoadding: boolean = true;
/**
* 布局面板数据
......@@ -384,10 +384,10 @@ export default class IBIZBOOKCustomView_layoutBase extends Vue {
* @public
* @memberof IBIZBOOKCustomView_layoutBase
*/
public async initLayoutItem(layoutModelItem: any, index: number = 0) {
public async initLayoutItem(layoutModelItem: any, index?: number) {
const { name } = layoutModelItem;
const layoutModelDetail = Util.getLayoutItemInstance(layoutModelItem);
if (!index) {
if (!(index || index === 0)) {
await layoutModelDetail.load(this.context, this.viewparams);
this.$set(this.layoutModelDetails, name, layoutModelDetail);
this.$set(this.layoutData, name, layoutModelDetail.getData());
......@@ -414,7 +414,7 @@ export default class IBIZBOOKCustomView_layoutBase extends Vue {
for (let i = 0; i < layoutModelDetail.details.length; i++) {
const key = layoutModelDetail.details[i];
if (this.layoutItems[key]) {
await this.initLayoutItem(this.layoutItems[key],index);
await this.initLayoutItem(this.layoutItems[key], index);
}
}
}
......@@ -444,12 +444,13 @@ export default class IBIZBOOKCustomView_layoutBase extends Vue {
* @memberof IBIZBOOKCustomView_layoutBase
*/
public handleValueChange(args: { name: string, value: any }, index?: number) {
if (!args || !args.name || Object.is(args.name, '') || !this.layoutData.hasOwnProperty(args.name)) {
const { name, value } = args;
let fullName = (index || index === 0) ? `${name}_${index}` : name;
if (!fullName || !this.layoutData.hasOwnProperty(fullName)) {
return;
}
const {name,value} = args;
this.layoutData[name] = value;
this.layoutModelDetails[name].setData(value);
this.layoutData[fullName] = value;
this.layoutModelDetails[fullName].setData(value);
this.panelLogic(name, index);
this.computeButtonAuthState();
}
......@@ -464,9 +465,6 @@ export default class IBIZBOOKCustomView_layoutBase extends Vue {
* @memberof IBIZBOOKCustomView_layoutBase
*/
public panelLogic(name: string, index?: number): void {
if (name && (index || index === 0)) {
name = name.replace(`_${index}`,"");
}
}
/**
......
......@@ -271,7 +271,7 @@ export default class IBIZBOOKDashboardView_layoutBase extends Vue {
* @public
* @memberof IBIZBOOKDashboardView_layoutBase
*/
public isLayoutLoadding: boolean = false;
public isLayoutLoadding: boolean = true;
/**
* 布局面板数据
......@@ -315,10 +315,10 @@ export default class IBIZBOOKDashboardView_layoutBase extends Vue {
* @public
* @memberof IBIZBOOKDashboardView_layoutBase
*/
public async initLayoutItem(layoutModelItem: any, index: number = 0) {
public async initLayoutItem(layoutModelItem: any, index?: number) {
const { name } = layoutModelItem;
const layoutModelDetail = Util.getLayoutItemInstance(layoutModelItem);
if (!index) {
if (!(index || index === 0)) {
await layoutModelDetail.load(this.context, this.viewparams);
this.$set(this.layoutModelDetails, name, layoutModelDetail);
this.$set(this.layoutData, name, layoutModelDetail.getData());
......@@ -345,7 +345,7 @@ export default class IBIZBOOKDashboardView_layoutBase extends Vue {
for (let i = 0; i < layoutModelDetail.details.length; i++) {
const key = layoutModelDetail.details[i];
if (this.layoutItems[key]) {
await this.initLayoutItem(this.layoutItems[key],index);
await this.initLayoutItem(this.layoutItems[key], index);
}
}
}
......@@ -375,12 +375,13 @@ export default class IBIZBOOKDashboardView_layoutBase extends Vue {
* @memberof IBIZBOOKDashboardView_layoutBase
*/
public handleValueChange(args: { name: string, value: any }, index?: number) {
if (!args || !args.name || Object.is(args.name, '') || !this.layoutData.hasOwnProperty(args.name)) {
const { name, value } = args;
let fullName = (index || index === 0) ? `${name}_${index}` : name;
if (!fullName || !this.layoutData.hasOwnProperty(fullName)) {
return;
}
const {name,value} = args;
this.layoutData[name] = value;
this.layoutModelDetails[name].setData(value);
this.layoutData[fullName] = value;
this.layoutModelDetails[fullName].setData(value);
this.panelLogic(name, index);
this.computeButtonAuthState();
}
......@@ -395,9 +396,6 @@ export default class IBIZBOOKDashboardView_layoutBase extends Vue {
* @memberof IBIZBOOKDashboardView_layoutBase
*/
public panelLogic(name: string, index?: number): void {
if (name && (index || index === 0)) {
name = name.replace(`_${index}`,"");
}
}
/**
......
......@@ -298,7 +298,7 @@ export default class IBIZBOOKFormLoadCustomViewBase extends Vue {
* @public
* @memberof IBIZBOOKFormLoadCustomViewBase
*/
public isLayoutLoadding: boolean = false;
public isLayoutLoadding: boolean = true;
/**
* 布局面板数据
......@@ -342,10 +342,10 @@ export default class IBIZBOOKFormLoadCustomViewBase extends Vue {
* @public
* @memberof IBIZBOOKFormLoadCustomViewBase
*/
public async initLayoutItem(layoutModelItem: any, index: number = 0) {
public async initLayoutItem(layoutModelItem: any, index?: number) {
const { name } = layoutModelItem;
const layoutModelDetail = Util.getLayoutItemInstance(layoutModelItem);
if (!index) {
if (!(index || index === 0)) {
await layoutModelDetail.load(this.context, this.viewparams);
this.$set(this.layoutModelDetails, name, layoutModelDetail);
this.$set(this.layoutData, name, layoutModelDetail.getData());
......@@ -372,7 +372,7 @@ export default class IBIZBOOKFormLoadCustomViewBase extends Vue {
for (let i = 0; i < layoutModelDetail.details.length; i++) {
const key = layoutModelDetail.details[i];
if (this.layoutItems[key]) {
await this.initLayoutItem(this.layoutItems[key],index);
await this.initLayoutItem(this.layoutItems[key], index);
}
}
}
......@@ -402,12 +402,13 @@ export default class IBIZBOOKFormLoadCustomViewBase extends Vue {
* @memberof IBIZBOOKFormLoadCustomViewBase
*/
public handleValueChange(args: { name: string, value: any }, index?: number) {
if (!args || !args.name || Object.is(args.name, '') || !this.layoutData.hasOwnProperty(args.name)) {
const { name, value } = args;
let fullName = (index || index === 0) ? `${name}_${index}` : name;
if (!fullName || !this.layoutData.hasOwnProperty(fullName)) {
return;
}
const {name,value} = args;
this.layoutData[name] = value;
this.layoutModelDetails[name].setData(value);
this.layoutData[fullName] = value;
this.layoutModelDetails[fullName].setData(value);
this.panelLogic(name, index);
this.computeButtonAuthState();
}
......@@ -422,9 +423,6 @@ export default class IBIZBOOKFormLoadCustomViewBase extends Vue {
* @memberof IBIZBOOKFormLoadCustomViewBase
*/
public panelLogic(name: string, index?: number): void {
if (name && (index || index === 0)) {
name = name.replace(`_${index}`,"");
}
}
/**
......
......@@ -333,7 +333,7 @@ export default class IBIZBOOKGridLoadCustomViewBase extends Vue {
* @public
* @memberof IBIZBOOKGridLoadCustomViewBase
*/
public isLayoutLoadding: boolean = false;
public isLayoutLoadding: boolean = true;
/**
* 布局面板数据
......@@ -377,10 +377,10 @@ export default class IBIZBOOKGridLoadCustomViewBase extends Vue {
* @public
* @memberof IBIZBOOKGridLoadCustomViewBase
*/
public async initLayoutItem(layoutModelItem: any, index: number = 0) {
public async initLayoutItem(layoutModelItem: any, index?: number) {
const { name } = layoutModelItem;
const layoutModelDetail = Util.getLayoutItemInstance(layoutModelItem);
if (!index) {
if (!(index || index === 0)) {
await layoutModelDetail.load(this.context, this.viewparams);
this.$set(this.layoutModelDetails, name, layoutModelDetail);
this.$set(this.layoutData, name, layoutModelDetail.getData());
......@@ -407,7 +407,7 @@ export default class IBIZBOOKGridLoadCustomViewBase extends Vue {
for (let i = 0; i < layoutModelDetail.details.length; i++) {
const key = layoutModelDetail.details[i];
if (this.layoutItems[key]) {
await this.initLayoutItem(this.layoutItems[key],index);
await this.initLayoutItem(this.layoutItems[key], index);
}
}
}
......@@ -437,12 +437,13 @@ export default class IBIZBOOKGridLoadCustomViewBase extends Vue {
* @memberof IBIZBOOKGridLoadCustomViewBase
*/
public handleValueChange(args: { name: string, value: any }, index?: number) {
if (!args || !args.name || Object.is(args.name, '') || !this.layoutData.hasOwnProperty(args.name)) {
const { name, value } = args;
let fullName = (index || index === 0) ? `${name}_${index}` : name;
if (!fullName || !this.layoutData.hasOwnProperty(fullName)) {
return;
}
const {name,value} = args;
this.layoutData[name] = value;
this.layoutModelDetails[name].setData(value);
this.layoutData[fullName] = value;
this.layoutModelDetails[fullName].setData(value);
this.panelLogic(name, index);
this.computeButtonAuthState();
}
......@@ -457,9 +458,6 @@ export default class IBIZBOOKGridLoadCustomViewBase extends Vue {
* @memberof IBIZBOOKGridLoadCustomViewBase
*/
public panelLogic(name: string, index?: number): void {
if (name && (index || index === 0)) {
name = name.replace(`_${index}`,"");
}
}
/**
......
......@@ -358,7 +358,7 @@ export default class IBIZBOOKInterFuncEditView_layoutBase extends Vue {
* @public
* @memberof IBIZBOOKInterFuncEditView_layoutBase
*/
public isLayoutLoadding: boolean = false;
public isLayoutLoadding: boolean = true;
/**
* 布局面板数据
......@@ -402,10 +402,10 @@ export default class IBIZBOOKInterFuncEditView_layoutBase extends Vue {
* @public
* @memberof IBIZBOOKInterFuncEditView_layoutBase
*/
public async initLayoutItem(layoutModelItem: any, index: number = 0) {
public async initLayoutItem(layoutModelItem: any, index?: number) {
const { name } = layoutModelItem;
const layoutModelDetail = Util.getLayoutItemInstance(layoutModelItem);
if (!index) {
if (!(index || index === 0)) {
await layoutModelDetail.load(this.context, this.viewparams);
this.$set(this.layoutModelDetails, name, layoutModelDetail);
this.$set(this.layoutData, name, layoutModelDetail.getData());
......@@ -432,7 +432,7 @@ export default class IBIZBOOKInterFuncEditView_layoutBase extends Vue {
for (let i = 0; i < layoutModelDetail.details.length; i++) {
const key = layoutModelDetail.details[i];
if (this.layoutItems[key]) {
await this.initLayoutItem(this.layoutItems[key],index);
await this.initLayoutItem(this.layoutItems[key], index);
}
}
}
......@@ -462,12 +462,13 @@ export default class IBIZBOOKInterFuncEditView_layoutBase extends Vue {
* @memberof IBIZBOOKInterFuncEditView_layoutBase
*/
public handleValueChange(args: { name: string, value: any }, index?: number) {
if (!args || !args.name || Object.is(args.name, '') || !this.layoutData.hasOwnProperty(args.name)) {
const { name, value } = args;
let fullName = (index || index === 0) ? `${name}_${index}` : name;
if (!fullName || !this.layoutData.hasOwnProperty(fullName)) {
return;
}
const {name,value} = args;
this.layoutData[name] = value;
this.layoutModelDetails[name].setData(value);
this.layoutData[fullName] = value;
this.layoutModelDetails[fullName].setData(value);
this.panelLogic(name, index);
this.computeButtonAuthState();
}
......@@ -482,9 +483,6 @@ export default class IBIZBOOKInterFuncEditView_layoutBase extends Vue {
* @memberof IBIZBOOKInterFuncEditView_layoutBase
*/
public panelLogic(name: string, index?: number): void {
if (name && (index || index === 0)) {
name = name.replace(`_${index}`,"");
}
}
/**
......
......@@ -462,7 +462,7 @@ export default class IBIZBOOKInterFuncKanBanView_layoutBase extends Vue {
* @public
* @memberof IBIZBOOKInterFuncKanBanView_layoutBase
*/
public isLayoutLoadding: boolean = false;
public isLayoutLoadding: boolean = true;
/**
* 布局面板数据
......@@ -506,10 +506,10 @@ export default class IBIZBOOKInterFuncKanBanView_layoutBase extends Vue {
* @public
* @memberof IBIZBOOKInterFuncKanBanView_layoutBase
*/
public async initLayoutItem(layoutModelItem: any, index: number = 0) {
public async initLayoutItem(layoutModelItem: any, index?: number) {
const { name } = layoutModelItem;
const layoutModelDetail = Util.getLayoutItemInstance(layoutModelItem);
if (!index) {
if (!(index || index === 0)) {
await layoutModelDetail.load(this.context, this.viewparams);
this.$set(this.layoutModelDetails, name, layoutModelDetail);
this.$set(this.layoutData, name, layoutModelDetail.getData());
......@@ -536,7 +536,7 @@ export default class IBIZBOOKInterFuncKanBanView_layoutBase extends Vue {
for (let i = 0; i < layoutModelDetail.details.length; i++) {
const key = layoutModelDetail.details[i];
if (this.layoutItems[key]) {
await this.initLayoutItem(this.layoutItems[key],index);
await this.initLayoutItem(this.layoutItems[key], index);
}
}
}
......@@ -566,12 +566,13 @@ export default class IBIZBOOKInterFuncKanBanView_layoutBase extends Vue {
* @memberof IBIZBOOKInterFuncKanBanView_layoutBase
*/
public handleValueChange(args: { name: string, value: any }, index?: number) {
if (!args || !args.name || Object.is(args.name, '') || !this.layoutData.hasOwnProperty(args.name)) {
const { name, value } = args;
let fullName = (index || index === 0) ? `${name}_${index}` : name;
if (!fullName || !this.layoutData.hasOwnProperty(fullName)) {
return;
}
const {name,value} = args;
this.layoutData[name] = value;
this.layoutModelDetails[name].setData(value);
this.layoutData[fullName] = value;
this.layoutModelDetails[fullName].setData(value);
this.panelLogic(name, index);
this.computeButtonAuthState();
}
......@@ -586,9 +587,6 @@ export default class IBIZBOOKInterFuncKanBanView_layoutBase extends Vue {
* @memberof IBIZBOOKInterFuncKanBanView_layoutBase
*/
public panelLogic(name: string, index?: number): void {
if (name && (index || index === 0)) {
name = name.replace(`_${index}`,"");
}
}
/**
......
......@@ -314,7 +314,7 @@ export default class IBIZBOOKOptionView_layoutBase extends Vue {
* @public
* @memberof IBIZBOOKOptionView_layoutBase
*/
public isLayoutLoadding: boolean = false;
public isLayoutLoadding: boolean = true;
/**
* 布局面板数据
......@@ -358,10 +358,10 @@ export default class IBIZBOOKOptionView_layoutBase extends Vue {
* @public
* @memberof IBIZBOOKOptionView_layoutBase
*/
public async initLayoutItem(layoutModelItem: any, index: number = 0) {
public async initLayoutItem(layoutModelItem: any, index?: number) {
const { name } = layoutModelItem;
const layoutModelDetail = Util.getLayoutItemInstance(layoutModelItem);
if (!index) {
if (!(index || index === 0)) {
await layoutModelDetail.load(this.context, this.viewparams);
this.$set(this.layoutModelDetails, name, layoutModelDetail);
this.$set(this.layoutData, name, layoutModelDetail.getData());
......@@ -388,7 +388,7 @@ export default class IBIZBOOKOptionView_layoutBase extends Vue {
for (let i = 0; i < layoutModelDetail.details.length; i++) {
const key = layoutModelDetail.details[i];
if (this.layoutItems[key]) {
await this.initLayoutItem(this.layoutItems[key],index);
await this.initLayoutItem(this.layoutItems[key], index);
}
}
}
......@@ -418,12 +418,13 @@ export default class IBIZBOOKOptionView_layoutBase extends Vue {
* @memberof IBIZBOOKOptionView_layoutBase
*/
public handleValueChange(args: { name: string, value: any }, index?: number) {
if (!args || !args.name || Object.is(args.name, '') || !this.layoutData.hasOwnProperty(args.name)) {
const { name, value } = args;
let fullName = (index || index === 0) ? `${name}_${index}` : name;
if (!fullName || !this.layoutData.hasOwnProperty(fullName)) {
return;
}
const {name,value} = args;
this.layoutData[name] = value;
this.layoutModelDetails[name].setData(value);
this.layoutData[fullName] = value;
this.layoutModelDetails[fullName].setData(value);
this.panelLogic(name, index);
this.computeButtonAuthState();
}
......@@ -438,9 +439,6 @@ export default class IBIZBOOKOptionView_layoutBase extends Vue {
* @memberof IBIZBOOKOptionView_layoutBase
*/
public panelLogic(name: string, index?: number): void {
if (name && (index || index === 0)) {
name = name.replace(`_${index}`,"");
}
}
/**
......
......@@ -301,7 +301,7 @@ export default class IBIZBOOKTestCLCalendarViewBase extends Vue {
* @public
* @memberof IBIZBOOKTestCLCalendarViewBase
*/
public isLayoutLoadding: boolean = false;
public isLayoutLoadding: boolean = true;
/**
* 布局面板数据
......@@ -345,10 +345,10 @@ export default class IBIZBOOKTestCLCalendarViewBase extends Vue {
* @public
* @memberof IBIZBOOKTestCLCalendarViewBase
*/
public async initLayoutItem(layoutModelItem: any, index: number = 0) {
public async initLayoutItem(layoutModelItem: any, index?: number) {
const { name } = layoutModelItem;
const layoutModelDetail = Util.getLayoutItemInstance(layoutModelItem);
if (!index) {
if (!(index || index === 0)) {
await layoutModelDetail.load(this.context, this.viewparams);
this.$set(this.layoutModelDetails, name, layoutModelDetail);
this.$set(this.layoutData, name, layoutModelDetail.getData());
......@@ -375,7 +375,7 @@ export default class IBIZBOOKTestCLCalendarViewBase extends Vue {
for (let i = 0; i < layoutModelDetail.details.length; i++) {
const key = layoutModelDetail.details[i];
if (this.layoutItems[key]) {
await this.initLayoutItem(this.layoutItems[key],index);
await this.initLayoutItem(this.layoutItems[key], index);
}
}
}
......@@ -405,12 +405,13 @@ export default class IBIZBOOKTestCLCalendarViewBase extends Vue {
* @memberof IBIZBOOKTestCLCalendarViewBase
*/
public handleValueChange(args: { name: string, value: any }, index?: number) {
if (!args || !args.name || Object.is(args.name, '') || !this.layoutData.hasOwnProperty(args.name)) {
const { name, value } = args;
let fullName = (index || index === 0) ? `${name}_${index}` : name;
if (!fullName || !this.layoutData.hasOwnProperty(fullName)) {
return;
}
const {name,value} = args;
this.layoutData[name] = value;
this.layoutModelDetails[name].setData(value);
this.layoutData[fullName] = value;
this.layoutModelDetails[fullName].setData(value);
this.panelLogic(name, index);
this.computeButtonAuthState();
}
......@@ -425,9 +426,6 @@ export default class IBIZBOOKTestCLCalendarViewBase extends Vue {
* @memberof IBIZBOOKTestCLCalendarViewBase
*/
public panelLogic(name: string, index?: number): void {
if (name && (index || index === 0)) {
name = name.replace(`_${index}`,"");
}
}
/**
......
......@@ -442,7 +442,7 @@ export default class IBIZBOOKTestCLDataViewBase extends Vue {
* @public
* @memberof IBIZBOOKTestCLDataViewBase
*/
public isLayoutLoadding: boolean = false;
public isLayoutLoadding: boolean = true;
/**
* 布局面板数据
......@@ -486,10 +486,10 @@ export default class IBIZBOOKTestCLDataViewBase extends Vue {
* @public
* @memberof IBIZBOOKTestCLDataViewBase
*/
public async initLayoutItem(layoutModelItem: any, index: number = 0) {
public async initLayoutItem(layoutModelItem: any, index?: number) {
const { name } = layoutModelItem;
const layoutModelDetail = Util.getLayoutItemInstance(layoutModelItem);
if (!index) {
if (!(index || index === 0)) {
await layoutModelDetail.load(this.context, this.viewparams);
this.$set(this.layoutModelDetails, name, layoutModelDetail);
this.$set(this.layoutData, name, layoutModelDetail.getData());
......@@ -516,7 +516,7 @@ export default class IBIZBOOKTestCLDataViewBase extends Vue {
for (let i = 0; i < layoutModelDetail.details.length; i++) {
const key = layoutModelDetail.details[i];
if (this.layoutItems[key]) {
await this.initLayoutItem(this.layoutItems[key],index);
await this.initLayoutItem(this.layoutItems[key], index);
}
}
}
......@@ -546,12 +546,13 @@ export default class IBIZBOOKTestCLDataViewBase extends Vue {
* @memberof IBIZBOOKTestCLDataViewBase
*/
public handleValueChange(args: { name: string, value: any }, index?: number) {
if (!args || !args.name || Object.is(args.name, '') || !this.layoutData.hasOwnProperty(args.name)) {
const { name, value } = args;
let fullName = (index || index === 0) ? `${name}_${index}` : name;
if (!fullName || !this.layoutData.hasOwnProperty(fullName)) {
return;
}
const {name,value} = args;
this.layoutData[name] = value;
this.layoutModelDetails[name].setData(value);
this.layoutData[fullName] = value;
this.layoutModelDetails[fullName].setData(value);
this.panelLogic(name, index);
this.computeButtonAuthState();
}
......@@ -566,9 +567,6 @@ export default class IBIZBOOKTestCLDataViewBase extends Vue {
* @memberof IBIZBOOKTestCLDataViewBase
*/
public panelLogic(name: string, index?: number): void {
if (name && (index || index === 0)) {
name = name.replace(`_${index}`,"");
}
}
/**
......
......@@ -302,7 +302,7 @@ export default class IBIZBOOKTestCLTreeViewBase extends Vue {
* @public
* @memberof IBIZBOOKTestCLTreeViewBase
*/
public isLayoutLoadding: boolean = false;
public isLayoutLoadding: boolean = true;
/**
* 布局面板数据
......@@ -346,10 +346,10 @@ export default class IBIZBOOKTestCLTreeViewBase extends Vue {
* @public
* @memberof IBIZBOOKTestCLTreeViewBase
*/
public async initLayoutItem(layoutModelItem: any, index: number = 0) {
public async initLayoutItem(layoutModelItem: any, index?: number) {
const { name } = layoutModelItem;
const layoutModelDetail = Util.getLayoutItemInstance(layoutModelItem);
if (!index) {
if (!(index || index === 0)) {
await layoutModelDetail.load(this.context, this.viewparams);
this.$set(this.layoutModelDetails, name, layoutModelDetail);
this.$set(this.layoutData, name, layoutModelDetail.getData());
......@@ -376,7 +376,7 @@ export default class IBIZBOOKTestCLTreeViewBase extends Vue {
for (let i = 0; i < layoutModelDetail.details.length; i++) {
const key = layoutModelDetail.details[i];
if (this.layoutItems[key]) {
await this.initLayoutItem(this.layoutItems[key],index);
await this.initLayoutItem(this.layoutItems[key], index);
}
}
}
......@@ -406,12 +406,13 @@ export default class IBIZBOOKTestCLTreeViewBase extends Vue {
* @memberof IBIZBOOKTestCLTreeViewBase
*/
public handleValueChange(args: { name: string, value: any }, index?: number) {
if (!args || !args.name || Object.is(args.name, '') || !this.layoutData.hasOwnProperty(args.name)) {
const { name, value } = args;
let fullName = (index || index === 0) ? `${name}_${index}` : name;
if (!fullName || !this.layoutData.hasOwnProperty(fullName)) {
return;
}
const {name,value} = args;
this.layoutData[name] = value;
this.layoutModelDetails[name].setData(value);
this.layoutData[fullName] = value;
this.layoutModelDetails[fullName].setData(value);
this.panelLogic(name, index);
this.computeButtonAuthState();
}
......@@ -426,9 +427,6 @@ export default class IBIZBOOKTestCLTreeViewBase extends Vue {
* @memberof IBIZBOOKTestCLTreeViewBase
*/
public panelLogic(name: string, index?: number): void {
if (name && (index || index === 0)) {
name = name.replace(`_${index}`,"");
}
}
/**
......
......@@ -298,7 +298,7 @@ export default class IBIZBOOKTestLogicCustomViewBase extends Vue {
* @public
* @memberof IBIZBOOKTestLogicCustomViewBase
*/
public isLayoutLoadding: boolean = false;
public isLayoutLoadding: boolean = true;
/**
* 布局面板数据
......@@ -342,10 +342,10 @@ export default class IBIZBOOKTestLogicCustomViewBase extends Vue {
* @public
* @memberof IBIZBOOKTestLogicCustomViewBase
*/
public async initLayoutItem(layoutModelItem: any, index: number = 0) {
public async initLayoutItem(layoutModelItem: any, index?: number) {
const { name } = layoutModelItem;
const layoutModelDetail = Util.getLayoutItemInstance(layoutModelItem);
if (!index) {
if (!(index || index === 0)) {
await layoutModelDetail.load(this.context, this.viewparams);
this.$set(this.layoutModelDetails, name, layoutModelDetail);
this.$set(this.layoutData, name, layoutModelDetail.getData());
......@@ -372,7 +372,7 @@ export default class IBIZBOOKTestLogicCustomViewBase extends Vue {
for (let i = 0; i < layoutModelDetail.details.length; i++) {
const key = layoutModelDetail.details[i];
if (this.layoutItems[key]) {
await this.initLayoutItem(this.layoutItems[key],index);
await this.initLayoutItem(this.layoutItems[key], index);
}
}
}
......@@ -402,12 +402,13 @@ export default class IBIZBOOKTestLogicCustomViewBase extends Vue {
* @memberof IBIZBOOKTestLogicCustomViewBase
*/
public handleValueChange(args: { name: string, value: any }, index?: number) {
if (!args || !args.name || Object.is(args.name, '') || !this.layoutData.hasOwnProperty(args.name)) {
const { name, value } = args;
let fullName = (index || index === 0) ? `${name}_${index}` : name;
if (!fullName || !this.layoutData.hasOwnProperty(fullName)) {
return;
}
const {name,value} = args;
this.layoutData[name] = value;
this.layoutModelDetails[name].setData(value);
this.layoutData[fullName] = value;
this.layoutModelDetails[fullName].setData(value);
this.panelLogic(name, index);
this.computeButtonAuthState();
}
......@@ -422,9 +423,6 @@ export default class IBIZBOOKTestLogicCustomViewBase extends Vue {
* @memberof IBIZBOOKTestLogicCustomViewBase
*/
public panelLogic(name: string, index?: number): void {
if (name && (index || index === 0)) {
name = name.replace(`_${index}`,"");
}
}
/**
......
......@@ -329,7 +329,7 @@ export default class IBIZBOOKUsr1110030546CustomViewBase extends Vue {
* @public
* @memberof IBIZBOOKUsr1110030546CustomViewBase
*/
public isLayoutLoadding: boolean = false;
public isLayoutLoadding: boolean = true;
/**
* 布局面板数据
......@@ -373,10 +373,10 @@ export default class IBIZBOOKUsr1110030546CustomViewBase extends Vue {
* @public
* @memberof IBIZBOOKUsr1110030546CustomViewBase
*/
public async initLayoutItem(layoutModelItem: any, index: number = 0) {
public async initLayoutItem(layoutModelItem: any, index?: number) {
const { name } = layoutModelItem;
const layoutModelDetail = Util.getLayoutItemInstance(layoutModelItem);
if (!index) {
if (!(index || index === 0)) {
await layoutModelDetail.load(this.context, this.viewparams);
this.$set(this.layoutModelDetails, name, layoutModelDetail);
this.$set(this.layoutData, name, layoutModelDetail.getData());
......@@ -403,7 +403,7 @@ export default class IBIZBOOKUsr1110030546CustomViewBase extends Vue {
for (let i = 0; i < layoutModelDetail.details.length; i++) {
const key = layoutModelDetail.details[i];
if (this.layoutItems[key]) {
await this.initLayoutItem(this.layoutItems[key],index);
await this.initLayoutItem(this.layoutItems[key], index);
}
}
}
......@@ -433,12 +433,13 @@ export default class IBIZBOOKUsr1110030546CustomViewBase extends Vue {
* @memberof IBIZBOOKUsr1110030546CustomViewBase
*/
public handleValueChange(args: { name: string, value: any }, index?: number) {
if (!args || !args.name || Object.is(args.name, '') || !this.layoutData.hasOwnProperty(args.name)) {
const { name, value } = args;
let fullName = (index || index === 0) ? `${name}_${index}` : name;
if (!fullName || !this.layoutData.hasOwnProperty(fullName)) {
return;
}
const {name,value} = args;
this.layoutData[name] = value;
this.layoutModelDetails[name].setData(value);
this.layoutData[fullName] = value;
this.layoutModelDetails[fullName].setData(value);
this.panelLogic(name, index);
this.computeButtonAuthState();
}
......@@ -453,9 +454,6 @@ export default class IBIZBOOKUsr1110030546CustomViewBase extends Vue {
* @memberof IBIZBOOKUsr1110030546CustomViewBase
*/
public panelLogic(name: string, index?: number): void {
if (name && (index || index === 0)) {
name = name.replace(`_${index}`,"");
}
}
/**
......
......@@ -360,7 +360,7 @@ export default class IBIZBOOKUsr2EditView_layoutBase extends Vue {
* @public
* @memberof IBIZBOOKUsr2EditView_layoutBase
*/
public isLayoutLoadding: boolean = false;
public isLayoutLoadding: boolean = true;
/**
* 布局面板数据
......@@ -404,10 +404,10 @@ export default class IBIZBOOKUsr2EditView_layoutBase extends Vue {
* @public
* @memberof IBIZBOOKUsr2EditView_layoutBase
*/
public async initLayoutItem(layoutModelItem: any, index: number = 0) {
public async initLayoutItem(layoutModelItem: any, index?: number) {
const { name } = layoutModelItem;
const layoutModelDetail = Util.getLayoutItemInstance(layoutModelItem);
if (!index) {
if (!(index || index === 0)) {
await layoutModelDetail.load(this.context, this.viewparams);
this.$set(this.layoutModelDetails, name, layoutModelDetail);
this.$set(this.layoutData, name, layoutModelDetail.getData());
......@@ -434,7 +434,7 @@ export default class IBIZBOOKUsr2EditView_layoutBase extends Vue {
for (let i = 0; i < layoutModelDetail.details.length; i++) {
const key = layoutModelDetail.details[i];
if (this.layoutItems[key]) {
await this.initLayoutItem(this.layoutItems[key],index);
await this.initLayoutItem(this.layoutItems[key], index);
}
}
}
......@@ -464,12 +464,13 @@ export default class IBIZBOOKUsr2EditView_layoutBase extends Vue {
* @memberof IBIZBOOKUsr2EditView_layoutBase
*/
public handleValueChange(args: { name: string, value: any }, index?: number) {
if (!args || !args.name || Object.is(args.name, '') || !this.layoutData.hasOwnProperty(args.name)) {
const { name, value } = args;
let fullName = (index || index === 0) ? `${name}_${index}` : name;
if (!fullName || !this.layoutData.hasOwnProperty(fullName)) {
return;
}
const {name,value} = args;
this.layoutData[name] = value;
this.layoutModelDetails[name].setData(value);
this.layoutData[fullName] = value;
this.layoutModelDetails[fullName].setData(value);
this.panelLogic(name, index);
this.computeButtonAuthState();
}
......@@ -484,9 +485,6 @@ export default class IBIZBOOKUsr2EditView_layoutBase extends Vue {
* @memberof IBIZBOOKUsr2EditView_layoutBase
*/
public panelLogic(name: string, index?: number): void {
if (name && (index || index === 0)) {
name = name.replace(`_${index}`,"");
}
}
/**
......
......@@ -297,7 +297,7 @@ export default class IBIZBOOKUsr2MEditView9_layoutBase extends Vue {
* @public
* @memberof IBIZBOOKUsr2MEditView9_layoutBase
*/
public isLayoutLoadding: boolean = false;
public isLayoutLoadding: boolean = true;
/**
* 布局面板数据
......@@ -341,10 +341,10 @@ export default class IBIZBOOKUsr2MEditView9_layoutBase extends Vue {
* @public
* @memberof IBIZBOOKUsr2MEditView9_layoutBase
*/
public async initLayoutItem(layoutModelItem: any, index: number = 0) {
public async initLayoutItem(layoutModelItem: any, index?: number) {
const { name } = layoutModelItem;
const layoutModelDetail = Util.getLayoutItemInstance(layoutModelItem);
if (!index) {
if (!(index || index === 0)) {
await layoutModelDetail.load(this.context, this.viewparams);
this.$set(this.layoutModelDetails, name, layoutModelDetail);
this.$set(this.layoutData, name, layoutModelDetail.getData());
......@@ -371,7 +371,7 @@ export default class IBIZBOOKUsr2MEditView9_layoutBase extends Vue {
for (let i = 0; i < layoutModelDetail.details.length; i++) {
const key = layoutModelDetail.details[i];
if (this.layoutItems[key]) {
await this.initLayoutItem(this.layoutItems[key],index);
await this.initLayoutItem(this.layoutItems[key], index);
}
}
}
......@@ -401,12 +401,13 @@ export default class IBIZBOOKUsr2MEditView9_layoutBase extends Vue {
* @memberof IBIZBOOKUsr2MEditView9_layoutBase
*/
public handleValueChange(args: { name: string, value: any }, index?: number) {
if (!args || !args.name || Object.is(args.name, '') || !this.layoutData.hasOwnProperty(args.name)) {
const { name, value } = args;
let fullName = (index || index === 0) ? `${name}_${index}` : name;
if (!fullName || !this.layoutData.hasOwnProperty(fullName)) {
return;
}
const {name,value} = args;
this.layoutData[name] = value;
this.layoutModelDetails[name].setData(value);
this.layoutData[fullName] = value;
this.layoutModelDetails[fullName].setData(value);
this.panelLogic(name, index);
this.computeButtonAuthState();
}
......@@ -421,9 +422,6 @@ export default class IBIZBOOKUsr2MEditView9_layoutBase extends Vue {
* @memberof IBIZBOOKUsr2MEditView9_layoutBase
*/
public panelLogic(name: string, index?: number): void {
if (name && (index || index === 0)) {
name = name.replace(`_${index}`,"");
}
}
/**
......
......@@ -402,7 +402,7 @@ export default class IBIZBOOKUsr4ListView_layoutBase extends Vue {
* @public
* @memberof IBIZBOOKUsr4ListView_layoutBase
*/
public isLayoutLoadding: boolean = false;
public isLayoutLoadding: boolean = true;
/**
* 布局面板数据
......@@ -446,10 +446,10 @@ export default class IBIZBOOKUsr4ListView_layoutBase extends Vue {
* @public
* @memberof IBIZBOOKUsr4ListView_layoutBase
*/
public async initLayoutItem(layoutModelItem: any, index: number = 0) {
public async initLayoutItem(layoutModelItem: any, index?: number) {
const { name } = layoutModelItem;
const layoutModelDetail = Util.getLayoutItemInstance(layoutModelItem);
if (!index) {
if (!(index || index === 0)) {
await layoutModelDetail.load(this.context, this.viewparams);
this.$set(this.layoutModelDetails, name, layoutModelDetail);
this.$set(this.layoutData, name, layoutModelDetail.getData());
......@@ -476,7 +476,7 @@ export default class IBIZBOOKUsr4ListView_layoutBase extends Vue {
for (let i = 0; i < layoutModelDetail.details.length; i++) {
const key = layoutModelDetail.details[i];
if (this.layoutItems[key]) {
await this.initLayoutItem(this.layoutItems[key],index);
await this.initLayoutItem(this.layoutItems[key], index);
}
}
}
......@@ -506,12 +506,13 @@ export default class IBIZBOOKUsr4ListView_layoutBase extends Vue {
* @memberof IBIZBOOKUsr4ListView_layoutBase
*/
public handleValueChange(args: { name: string, value: any }, index?: number) {
if (!args || !args.name || Object.is(args.name, '') || !this.layoutData.hasOwnProperty(args.name)) {
const { name, value } = args;
let fullName = (index || index === 0) ? `${name}_${index}` : name;
if (!fullName || !this.layoutData.hasOwnProperty(fullName)) {
return;
}
const {name,value} = args;
this.layoutData[name] = value;
this.layoutModelDetails[name].setData(value);
this.layoutData[fullName] = value;
this.layoutModelDetails[fullName].setData(value);
this.panelLogic(name, index);
this.computeButtonAuthState();
}
......@@ -526,9 +527,6 @@ export default class IBIZBOOKUsr4ListView_layoutBase extends Vue {
* @memberof IBIZBOOKUsr4ListView_layoutBase
*/
public panelLogic(name: string, index?: number): void {
if (name && (index || index === 0)) {
name = name.replace(`_${index}`,"");
}
}
/**
......
......@@ -270,7 +270,7 @@ export default class IBIZBOOKWizardView_layoutBase extends Vue {
* @public
* @memberof IBIZBOOKWizardView_layoutBase
*/
public isLayoutLoadding: boolean = false;
public isLayoutLoadding: boolean = true;
/**
* 布局面板数据
......@@ -314,10 +314,10 @@ export default class IBIZBOOKWizardView_layoutBase extends Vue {
* @public
* @memberof IBIZBOOKWizardView_layoutBase
*/
public async initLayoutItem(layoutModelItem: any, index: number = 0) {
public async initLayoutItem(layoutModelItem: any, index?: number) {
const { name } = layoutModelItem;
const layoutModelDetail = Util.getLayoutItemInstance(layoutModelItem);
if (!index) {
if (!(index || index === 0)) {
await layoutModelDetail.load(this.context, this.viewparams);
this.$set(this.layoutModelDetails, name, layoutModelDetail);
this.$set(this.layoutData, name, layoutModelDetail.getData());
......@@ -344,7 +344,7 @@ export default class IBIZBOOKWizardView_layoutBase extends Vue {
for (let i = 0; i < layoutModelDetail.details.length; i++) {
const key = layoutModelDetail.details[i];
if (this.layoutItems[key]) {
await this.initLayoutItem(this.layoutItems[key],index);
await this.initLayoutItem(this.layoutItems[key], index);
}
}
}
......@@ -374,12 +374,13 @@ export default class IBIZBOOKWizardView_layoutBase extends Vue {
* @memberof IBIZBOOKWizardView_layoutBase
*/
public handleValueChange(args: { name: string, value: any }, index?: number) {
if (!args || !args.name || Object.is(args.name, '') || !this.layoutData.hasOwnProperty(args.name)) {
const { name, value } = args;
let fullName = (index || index === 0) ? `${name}_${index}` : name;
if (!fullName || !this.layoutData.hasOwnProperty(fullName)) {
return;
}
const {name,value} = args;
this.layoutData[name] = value;
this.layoutModelDetails[name].setData(value);
this.layoutData[fullName] = value;
this.layoutModelDetails[fullName].setData(value);
this.panelLogic(name, index);
this.computeButtonAuthState();
}
......@@ -394,9 +395,6 @@ export default class IBIZBOOKWizardView_layoutBase extends Vue {
* @memberof IBIZBOOKWizardView_layoutBase
*/
public panelLogic(name: string, index?: number): void {
if (name && (index || index === 0)) {
name = name.replace(`_${index}`,"");
}
}
/**
......
......@@ -332,7 +332,7 @@ export default class IBIZCustomCustomEditViewBase extends Vue {
* @public
* @memberof IBIZCustomCustomEditViewBase
*/
public isLayoutLoadding: boolean = false;
public isLayoutLoadding: boolean = true;
/**
* 布局面板数据
......@@ -376,10 +376,10 @@ export default class IBIZCustomCustomEditViewBase extends Vue {
* @public
* @memberof IBIZCustomCustomEditViewBase
*/
public async initLayoutItem(layoutModelItem: any, index: number = 0) {
public async initLayoutItem(layoutModelItem: any, index?: number) {
const { name } = layoutModelItem;
const layoutModelDetail = Util.getLayoutItemInstance(layoutModelItem);
if (!index) {
if (!(index || index === 0)) {
await layoutModelDetail.load(this.context, this.viewparams);
this.$set(this.layoutModelDetails, name, layoutModelDetail);
this.$set(this.layoutData, name, layoutModelDetail.getData());
......@@ -406,7 +406,7 @@ export default class IBIZCustomCustomEditViewBase extends Vue {
for (let i = 0; i < layoutModelDetail.details.length; i++) {
const key = layoutModelDetail.details[i];
if (this.layoutItems[key]) {
await this.initLayoutItem(this.layoutItems[key],index);
await this.initLayoutItem(this.layoutItems[key], index);
}
}
}
......@@ -436,12 +436,13 @@ export default class IBIZCustomCustomEditViewBase extends Vue {
* @memberof IBIZCustomCustomEditViewBase
*/
public handleValueChange(args: { name: string, value: any }, index?: number) {
if (!args || !args.name || Object.is(args.name, '') || !this.layoutData.hasOwnProperty(args.name)) {
const { name, value } = args;
let fullName = (index || index === 0) ? `${name}_${index}` : name;
if (!fullName || !this.layoutData.hasOwnProperty(fullName)) {
return;
}
const {name,value} = args;
this.layoutData[name] = value;
this.layoutModelDetails[name].setData(value);
this.layoutData[fullName] = value;
this.layoutModelDetails[fullName].setData(value);
this.panelLogic(name, index);
this.computeButtonAuthState();
}
......@@ -456,9 +457,6 @@ export default class IBIZCustomCustomEditViewBase extends Vue {
* @memberof IBIZCustomCustomEditViewBase
*/
public panelLogic(name: string, index?: number): void {
if (name && (index || index === 0)) {
name = name.replace(`_${index}`,"");
}
}
/**
......
......@@ -426,7 +426,7 @@ export default class IBIZCustomCustomGridViewBase extends Vue {
* @public
* @memberof IBIZCustomCustomGridViewBase
*/
public isLayoutLoadding: boolean = false;
public isLayoutLoadding: boolean = true;
/**
* 布局面板数据
......@@ -470,10 +470,10 @@ export default class IBIZCustomCustomGridViewBase extends Vue {
* @public
* @memberof IBIZCustomCustomGridViewBase
*/
public async initLayoutItem(layoutModelItem: any, index: number = 0) {
public async initLayoutItem(layoutModelItem: any, index?: number) {
const { name } = layoutModelItem;
const layoutModelDetail = Util.getLayoutItemInstance(layoutModelItem);
if (!index) {
if (!(index || index === 0)) {
await layoutModelDetail.load(this.context, this.viewparams);
this.$set(this.layoutModelDetails, name, layoutModelDetail);
this.$set(this.layoutData, name, layoutModelDetail.getData());
......@@ -500,7 +500,7 @@ export default class IBIZCustomCustomGridViewBase extends Vue {
for (let i = 0; i < layoutModelDetail.details.length; i++) {
const key = layoutModelDetail.details[i];
if (this.layoutItems[key]) {
await this.initLayoutItem(this.layoutItems[key],index);
await this.initLayoutItem(this.layoutItems[key], index);
}
}
}
......@@ -530,12 +530,13 @@ export default class IBIZCustomCustomGridViewBase extends Vue {
* @memberof IBIZCustomCustomGridViewBase
*/
public handleValueChange(args: { name: string, value: any }, index?: number) {
if (!args || !args.name || Object.is(args.name, '') || !this.layoutData.hasOwnProperty(args.name)) {
const { name, value } = args;
let fullName = (index || index === 0) ? `${name}_${index}` : name;
if (!fullName || !this.layoutData.hasOwnProperty(fullName)) {
return;
}
const {name,value} = args;
this.layoutData[name] = value;
this.layoutModelDetails[name].setData(value);
this.layoutData[fullName] = value;
this.layoutModelDetails[fullName].setData(value);
this.panelLogic(name, index);
this.computeButtonAuthState();
}
......@@ -550,9 +551,6 @@ export default class IBIZCustomCustomGridViewBase extends Vue {
* @memberof IBIZCustomCustomGridViewBase
*/
public panelLogic(name: string, index?: number): void {
if (name && (index || index === 0)) {
name = name.replace(`_${index}`,"");
}
}
/**
......
......@@ -339,7 +339,7 @@ export default class IBIZCustomerMediaTestEditViewBase extends Vue {
* @public
* @memberof IBIZCustomerMediaTestEditViewBase
*/
public isLayoutLoadding: boolean = false;
public isLayoutLoadding: boolean = true;
/**
* 布局面板数据
......@@ -383,10 +383,10 @@ export default class IBIZCustomerMediaTestEditViewBase extends Vue {
* @public
* @memberof IBIZCustomerMediaTestEditViewBase
*/
public async initLayoutItem(layoutModelItem: any, index: number = 0) {
public async initLayoutItem(layoutModelItem: any, index?: number) {
const { name } = layoutModelItem;
const layoutModelDetail = Util.getLayoutItemInstance(layoutModelItem);
if (!index) {
if (!(index || index === 0)) {
await layoutModelDetail.load(this.context, this.viewparams);
this.$set(this.layoutModelDetails, name, layoutModelDetail);
this.$set(this.layoutData, name, layoutModelDetail.getData());
......@@ -413,7 +413,7 @@ export default class IBIZCustomerMediaTestEditViewBase extends Vue {
for (let i = 0; i < layoutModelDetail.details.length; i++) {
const key = layoutModelDetail.details[i];
if (this.layoutItems[key]) {
await this.initLayoutItem(this.layoutItems[key],index);
await this.initLayoutItem(this.layoutItems[key], index);
}
}
}
......@@ -443,12 +443,13 @@ export default class IBIZCustomerMediaTestEditViewBase extends Vue {
* @memberof IBIZCustomerMediaTestEditViewBase
*/
public handleValueChange(args: { name: string, value: any }, index?: number) {
if (!args || !args.name || Object.is(args.name, '') || !this.layoutData.hasOwnProperty(args.name)) {
const { name, value } = args;
let fullName = (index || index === 0) ? `${name}_${index}` : name;
if (!fullName || !this.layoutData.hasOwnProperty(fullName)) {
return;
}
const {name,value} = args;
this.layoutData[name] = value;
this.layoutModelDetails[name].setData(value);
this.layoutData[fullName] = value;
this.layoutModelDetails[fullName].setData(value);
this.panelLogic(name, index);
this.computeButtonAuthState();
}
......@@ -463,9 +464,6 @@ export default class IBIZCustomerMediaTestEditViewBase extends Vue {
* @memberof IBIZCustomerMediaTestEditViewBase
*/
public panelLogic(name: string, index?: number): void {
if (name && (index || index === 0)) {
name = name.replace(`_${index}`,"");
}
}
/**
......
......@@ -298,7 +298,7 @@ export default class IBIZCustomerMPickupView_layoutBase extends Vue {
* @public
* @memberof IBIZCustomerMPickupView_layoutBase
*/
public isLayoutLoadding: boolean = false;
public isLayoutLoadding: boolean = true;
/**
* 布局面板数据
......@@ -342,10 +342,10 @@ export default class IBIZCustomerMPickupView_layoutBase extends Vue {
* @public
* @memberof IBIZCustomerMPickupView_layoutBase
*/
public async initLayoutItem(layoutModelItem: any, index: number = 0) {
public async initLayoutItem(layoutModelItem: any, index?: number) {
const { name } = layoutModelItem;
const layoutModelDetail = Util.getLayoutItemInstance(layoutModelItem);
if (!index) {
if (!(index || index === 0)) {
await layoutModelDetail.load(this.context, this.viewparams);
this.$set(this.layoutModelDetails, name, layoutModelDetail);
this.$set(this.layoutData, name, layoutModelDetail.getData());
......@@ -372,7 +372,7 @@ export default class IBIZCustomerMPickupView_layoutBase extends Vue {
for (let i = 0; i < layoutModelDetail.details.length; i++) {
const key = layoutModelDetail.details[i];
if (this.layoutItems[key]) {
await this.initLayoutItem(this.layoutItems[key],index);
await this.initLayoutItem(this.layoutItems[key], index);
}
}
}
......@@ -402,12 +402,13 @@ export default class IBIZCustomerMPickupView_layoutBase extends Vue {
* @memberof IBIZCustomerMPickupView_layoutBase
*/
public handleValueChange(args: { name: string, value: any }, index?: number) {
if (!args || !args.name || Object.is(args.name, '') || !this.layoutData.hasOwnProperty(args.name)) {
const { name, value } = args;
let fullName = (index || index === 0) ? `${name}_${index}` : name;
if (!fullName || !this.layoutData.hasOwnProperty(fullName)) {
return;
}
const {name,value} = args;
this.layoutData[name] = value;
this.layoutModelDetails[name].setData(value);
this.layoutData[fullName] = value;
this.layoutModelDetails[fullName].setData(value);
this.panelLogic(name, index);
this.computeButtonAuthState();
}
......@@ -422,9 +423,6 @@ export default class IBIZCustomerMPickupView_layoutBase extends Vue {
* @memberof IBIZCustomerMPickupView_layoutBase
*/
public panelLogic(name: string, index?: number): void {
if (name && (index || index === 0)) {
name = name.replace(`_${index}`,"");
}
}
/**
......
......@@ -297,7 +297,7 @@ export default class IBIZCustomerPickupView_layoutBase extends Vue {
* @public
* @memberof IBIZCustomerPickupView_layoutBase
*/
public isLayoutLoadding: boolean = false;
public isLayoutLoadding: boolean = true;
/**
* 布局面板数据
......@@ -341,10 +341,10 @@ export default class IBIZCustomerPickupView_layoutBase extends Vue {
* @public
* @memberof IBIZCustomerPickupView_layoutBase
*/
public async initLayoutItem(layoutModelItem: any, index: number = 0) {
public async initLayoutItem(layoutModelItem: any, index?: number) {
const { name } = layoutModelItem;
const layoutModelDetail = Util.getLayoutItemInstance(layoutModelItem);
if (!index) {
if (!(index || index === 0)) {
await layoutModelDetail.load(this.context, this.viewparams);
this.$set(this.layoutModelDetails, name, layoutModelDetail);
this.$set(this.layoutData, name, layoutModelDetail.getData());
......@@ -371,7 +371,7 @@ export default class IBIZCustomerPickupView_layoutBase extends Vue {
for (let i = 0; i < layoutModelDetail.details.length; i++) {
const key = layoutModelDetail.details[i];
if (this.layoutItems[key]) {
await this.initLayoutItem(this.layoutItems[key],index);
await this.initLayoutItem(this.layoutItems[key], index);
}
}
}
......@@ -401,12 +401,13 @@ export default class IBIZCustomerPickupView_layoutBase extends Vue {
* @memberof IBIZCustomerPickupView_layoutBase
*/
public handleValueChange(args: { name: string, value: any }, index?: number) {
if (!args || !args.name || Object.is(args.name, '') || !this.layoutData.hasOwnProperty(args.name)) {
const { name, value } = args;
let fullName = (index || index === 0) ? `${name}_${index}` : name;
if (!fullName || !this.layoutData.hasOwnProperty(fullName)) {
return;
}
const {name,value} = args;
this.layoutData[name] = value;
this.layoutModelDetails[name].setData(value);
this.layoutData[fullName] = value;
this.layoutModelDetails[fullName].setData(value);
this.panelLogic(name, index);
this.computeButtonAuthState();
}
......@@ -421,9 +422,6 @@ export default class IBIZCustomerPickupView_layoutBase extends Vue {
* @memberof IBIZCustomerPickupView_layoutBase
*/
public panelLogic(name: string, index?: number): void {
if (name && (index || index === 0)) {
name = name.replace(`_${index}`,"");
}
}
/**
......
......@@ -298,7 +298,7 @@ export default class IBIZCustomerUsr2MPickupView_layoutBase extends Vue {
* @public
* @memberof IBIZCustomerUsr2MPickupView_layoutBase
*/
public isLayoutLoadding: boolean = false;
public isLayoutLoadding: boolean = true;
/**
* 布局面板数据
......@@ -342,10 +342,10 @@ export default class IBIZCustomerUsr2MPickupView_layoutBase extends Vue {
* @public
* @memberof IBIZCustomerUsr2MPickupView_layoutBase
*/
public async initLayoutItem(layoutModelItem: any, index: number = 0) {
public async initLayoutItem(layoutModelItem: any, index?: number) {
const { name } = layoutModelItem;
const layoutModelDetail = Util.getLayoutItemInstance(layoutModelItem);
if (!index) {
if (!(index || index === 0)) {
await layoutModelDetail.load(this.context, this.viewparams);
this.$set(this.layoutModelDetails, name, layoutModelDetail);
this.$set(this.layoutData, name, layoutModelDetail.getData());
......@@ -372,7 +372,7 @@ export default class IBIZCustomerUsr2MPickupView_layoutBase extends Vue {
for (let i = 0; i < layoutModelDetail.details.length; i++) {
const key = layoutModelDetail.details[i];
if (this.layoutItems[key]) {
await this.initLayoutItem(this.layoutItems[key],index);
await this.initLayoutItem(this.layoutItems[key], index);
}
}
}
......@@ -402,12 +402,13 @@ export default class IBIZCustomerUsr2MPickupView_layoutBase extends Vue {
* @memberof IBIZCustomerUsr2MPickupView_layoutBase
*/
public handleValueChange(args: { name: string, value: any }, index?: number) {
if (!args || !args.name || Object.is(args.name, '') || !this.layoutData.hasOwnProperty(args.name)) {
const { name, value } = args;
let fullName = (index || index === 0) ? `${name}_${index}` : name;
if (!fullName || !this.layoutData.hasOwnProperty(fullName)) {
return;
}
const {name,value} = args;
this.layoutData[name] = value;
this.layoutModelDetails[name].setData(value);
this.layoutData[fullName] = value;
this.layoutModelDetails[fullName].setData(value);
this.panelLogic(name, index);
this.computeButtonAuthState();
}
......@@ -422,9 +423,6 @@ export default class IBIZCustomerUsr2MPickupView_layoutBase extends Vue {
* @memberof IBIZCustomerUsr2MPickupView_layoutBase
*/
public panelLogic(name: string, index?: number): void {
if (name && (index || index === 0)) {
name = name.replace(`_${index}`,"");
}
}
/**
......
......@@ -297,7 +297,7 @@ export default class IBIZCustomerUsr2PickupView_layoutBase extends Vue {
* @public
* @memberof IBIZCustomerUsr2PickupView_layoutBase
*/
public isLayoutLoadding: boolean = false;
public isLayoutLoadding: boolean = true;
/**
* 布局面板数据
......@@ -341,10 +341,10 @@ export default class IBIZCustomerUsr2PickupView_layoutBase extends Vue {
* @public
* @memberof IBIZCustomerUsr2PickupView_layoutBase
*/
public async initLayoutItem(layoutModelItem: any, index: number = 0) {
public async initLayoutItem(layoutModelItem: any, index?: number) {
const { name } = layoutModelItem;
const layoutModelDetail = Util.getLayoutItemInstance(layoutModelItem);
if (!index) {
if (!(index || index === 0)) {
await layoutModelDetail.load(this.context, this.viewparams);
this.$set(this.layoutModelDetails, name, layoutModelDetail);
this.$set(this.layoutData, name, layoutModelDetail.getData());
......@@ -371,7 +371,7 @@ export default class IBIZCustomerUsr2PickupView_layoutBase extends Vue {
for (let i = 0; i < layoutModelDetail.details.length; i++) {
const key = layoutModelDetail.details[i];
if (this.layoutItems[key]) {
await this.initLayoutItem(this.layoutItems[key],index);
await this.initLayoutItem(this.layoutItems[key], index);
}
}
}
......@@ -401,12 +401,13 @@ export default class IBIZCustomerUsr2PickupView_layoutBase extends Vue {
* @memberof IBIZCustomerUsr2PickupView_layoutBase
*/
public handleValueChange(args: { name: string, value: any }, index?: number) {
if (!args || !args.name || Object.is(args.name, '') || !this.layoutData.hasOwnProperty(args.name)) {
const { name, value } = args;
let fullName = (index || index === 0) ? `${name}_${index}` : name;
if (!fullName || !this.layoutData.hasOwnProperty(fullName)) {
return;
}
const {name,value} = args;
this.layoutData[name] = value;
this.layoutModelDetails[name].setData(value);
this.layoutData[fullName] = value;
this.layoutModelDetails[fullName].setData(value);
this.panelLogic(name, index);
this.computeButtonAuthState();
}
......@@ -421,9 +422,6 @@ export default class IBIZCustomerUsr2PickupView_layoutBase extends Vue {
* @memberof IBIZCustomerUsr2PickupView_layoutBase
*/
public panelLogic(name: string, index?: number): void {
if (name && (index || index === 0)) {
name = name.replace(`_${index}`,"");
}
}
/**
......
......@@ -544,7 +544,7 @@ export default class IBIZCustomerUsr3EditViewBase extends Vue {
* @public
* @memberof IBIZCustomerUsr3EditViewBase
*/
public isLayoutLoadding: boolean = false;
public isLayoutLoadding: boolean = true;
/**
* 布局面板数据
......@@ -588,10 +588,10 @@ export default class IBIZCustomerUsr3EditViewBase extends Vue {
* @public
* @memberof IBIZCustomerUsr3EditViewBase
*/
public async initLayoutItem(layoutModelItem: any, index: number = 0) {
public async initLayoutItem(layoutModelItem: any, index?: number) {
const { name } = layoutModelItem;
const layoutModelDetail = Util.getLayoutItemInstance(layoutModelItem);
if (!index) {
if (!(index || index === 0)) {
await layoutModelDetail.load(this.context, this.viewparams);
this.$set(this.layoutModelDetails, name, layoutModelDetail);
this.$set(this.layoutData, name, layoutModelDetail.getData());
......@@ -618,7 +618,7 @@ export default class IBIZCustomerUsr3EditViewBase extends Vue {
for (let i = 0; i < layoutModelDetail.details.length; i++) {
const key = layoutModelDetail.details[i];
if (this.layoutItems[key]) {
await this.initLayoutItem(this.layoutItems[key],index);
await this.initLayoutItem(this.layoutItems[key], index);
}
}
}
......@@ -648,12 +648,13 @@ export default class IBIZCustomerUsr3EditViewBase extends Vue {
* @memberof IBIZCustomerUsr3EditViewBase
*/
public handleValueChange(args: { name: string, value: any }, index?: number) {
if (!args || !args.name || Object.is(args.name, '') || !this.layoutData.hasOwnProperty(args.name)) {
const { name, value } = args;
let fullName = (index || index === 0) ? `${name}_${index}` : name;
if (!fullName || !this.layoutData.hasOwnProperty(fullName)) {
return;
}
const {name,value} = args;
this.layoutData[name] = value;
this.layoutModelDetails[name].setData(value);
this.layoutData[fullName] = value;
this.layoutModelDetails[fullName].setData(value);
this.panelLogic(name, index);
this.computeButtonAuthState();
}
......@@ -668,9 +669,6 @@ export default class IBIZCustomerUsr3EditViewBase extends Vue {
* @memberof IBIZCustomerUsr3EditViewBase
*/
public panelLogic(name: string, index?: number): void {
if (name && (index || index === 0)) {
name = name.replace(`_${index}`,"");
}
}
/**
......
......@@ -305,7 +305,7 @@ export default class IBIZOrderCalendarExpView_layoutBase extends Vue {
* @public
* @memberof IBIZOrderCalendarExpView_layoutBase
*/
public isLayoutLoadding: boolean = false;
public isLayoutLoadding: boolean = true;
/**
* 布局面板数据
......@@ -349,10 +349,10 @@ export default class IBIZOrderCalendarExpView_layoutBase extends Vue {
* @public
* @memberof IBIZOrderCalendarExpView_layoutBase
*/
public async initLayoutItem(layoutModelItem: any, index: number = 0) {
public async initLayoutItem(layoutModelItem: any, index?: number) {
const { name } = layoutModelItem;
const layoutModelDetail = Util.getLayoutItemInstance(layoutModelItem);
if (!index) {
if (!(index || index === 0)) {
await layoutModelDetail.load(this.context, this.viewparams);
this.$set(this.layoutModelDetails, name, layoutModelDetail);
this.$set(this.layoutData, name, layoutModelDetail.getData());
......@@ -379,7 +379,7 @@ export default class IBIZOrderCalendarExpView_layoutBase extends Vue {
for (let i = 0; i < layoutModelDetail.details.length; i++) {
const key = layoutModelDetail.details[i];
if (this.layoutItems[key]) {
await this.initLayoutItem(this.layoutItems[key],index);
await this.initLayoutItem(this.layoutItems[key], index);
}
}
}
......@@ -409,12 +409,13 @@ export default class IBIZOrderCalendarExpView_layoutBase extends Vue {
* @memberof IBIZOrderCalendarExpView_layoutBase
*/
public handleValueChange(args: { name: string, value: any }, index?: number) {
if (!args || !args.name || Object.is(args.name, '') || !this.layoutData.hasOwnProperty(args.name)) {
const { name, value } = args;
let fullName = (index || index === 0) ? `${name}_${index}` : name;
if (!fullName || !this.layoutData.hasOwnProperty(fullName)) {
return;
}
const {name,value} = args;
this.layoutData[name] = value;
this.layoutModelDetails[name].setData(value);
this.layoutData[fullName] = value;
this.layoutModelDetails[fullName].setData(value);
this.panelLogic(name, index);
this.computeButtonAuthState();
}
......@@ -429,9 +430,6 @@ export default class IBIZOrderCalendarExpView_layoutBase extends Vue {
* @memberof IBIZOrderCalendarExpView_layoutBase
*/
public panelLogic(name: string, index?: number): void {
if (name && (index || index === 0)) {
name = name.replace(`_${index}`,"");
}
}
/**
......
......@@ -305,7 +305,7 @@ export default class IBIZOrderDataViewExpView_layoutBase extends Vue {
* @public
* @memberof IBIZOrderDataViewExpView_layoutBase
*/
public isLayoutLoadding: boolean = false;
public isLayoutLoadding: boolean = true;
/**
* 布局面板数据
......@@ -349,10 +349,10 @@ export default class IBIZOrderDataViewExpView_layoutBase extends Vue {
* @public
* @memberof IBIZOrderDataViewExpView_layoutBase
*/
public async initLayoutItem(layoutModelItem: any, index: number = 0) {
public async initLayoutItem(layoutModelItem: any, index?: number) {
const { name } = layoutModelItem;
const layoutModelDetail = Util.getLayoutItemInstance(layoutModelItem);
if (!index) {
if (!(index || index === 0)) {
await layoutModelDetail.load(this.context, this.viewparams);
this.$set(this.layoutModelDetails, name, layoutModelDetail);
this.$set(this.layoutData, name, layoutModelDetail.getData());
......@@ -379,7 +379,7 @@ export default class IBIZOrderDataViewExpView_layoutBase extends Vue {
for (let i = 0; i < layoutModelDetail.details.length; i++) {
const key = layoutModelDetail.details[i];
if (this.layoutItems[key]) {
await this.initLayoutItem(this.layoutItems[key],index);
await this.initLayoutItem(this.layoutItems[key], index);
}
}
}
......@@ -409,12 +409,13 @@ export default class IBIZOrderDataViewExpView_layoutBase extends Vue {
* @memberof IBIZOrderDataViewExpView_layoutBase
*/
public handleValueChange(args: { name: string, value: any }, index?: number) {
if (!args || !args.name || Object.is(args.name, '') || !this.layoutData.hasOwnProperty(args.name)) {
const { name, value } = args;
let fullName = (index || index === 0) ? `${name}_${index}` : name;
if (!fullName || !this.layoutData.hasOwnProperty(fullName)) {
return;
}
const {name,value} = args;
this.layoutData[name] = value;
this.layoutModelDetails[name].setData(value);
this.layoutData[fullName] = value;
this.layoutModelDetails[fullName].setData(value);
this.panelLogic(name, index);
this.computeButtonAuthState();
}
......@@ -429,9 +430,6 @@ export default class IBIZOrderDataViewExpView_layoutBase extends Vue {
* @memberof IBIZOrderDataViewExpView_layoutBase
*/
public panelLogic(name: string, index?: number): void {
if (name && (index || index === 0)) {
name = name.replace(`_${index}`,"");
}
}
/**
......
......@@ -296,7 +296,7 @@ export default class IBIZOrderGanttView_layoutBase extends Vue {
* @public
* @memberof IBIZOrderGanttView_layoutBase
*/
public isLayoutLoadding: boolean = false;
public isLayoutLoadding: boolean = true;
/**
* 布局面板数据
......@@ -340,10 +340,10 @@ export default class IBIZOrderGanttView_layoutBase extends Vue {
* @public
* @memberof IBIZOrderGanttView_layoutBase
*/
public async initLayoutItem(layoutModelItem: any, index: number = 0) {
public async initLayoutItem(layoutModelItem: any, index?: number) {
const { name } = layoutModelItem;
const layoutModelDetail = Util.getLayoutItemInstance(layoutModelItem);
if (!index) {
if (!(index || index === 0)) {
await layoutModelDetail.load(this.context, this.viewparams);
this.$set(this.layoutModelDetails, name, layoutModelDetail);
this.$set(this.layoutData, name, layoutModelDetail.getData());
......@@ -370,7 +370,7 @@ export default class IBIZOrderGanttView_layoutBase extends Vue {
for (let i = 0; i < layoutModelDetail.details.length; i++) {
const key = layoutModelDetail.details[i];
if (this.layoutItems[key]) {
await this.initLayoutItem(this.layoutItems[key],index);
await this.initLayoutItem(this.layoutItems[key], index);
}
}
}
......@@ -400,12 +400,13 @@ export default class IBIZOrderGanttView_layoutBase extends Vue {
* @memberof IBIZOrderGanttView_layoutBase
*/
public handleValueChange(args: { name: string, value: any }, index?: number) {
if (!args || !args.name || Object.is(args.name, '') || !this.layoutData.hasOwnProperty(args.name)) {
const { name, value } = args;
let fullName = (index || index === 0) ? `${name}_${index}` : name;
if (!fullName || !this.layoutData.hasOwnProperty(fullName)) {
return;
}
const {name,value} = args;
this.layoutData[name] = value;
this.layoutModelDetails[name].setData(value);
this.layoutData[fullName] = value;
this.layoutModelDetails[fullName].setData(value);
this.panelLogic(name, index);
this.computeButtonAuthState();
}
......@@ -420,9 +421,6 @@ export default class IBIZOrderGanttView_layoutBase extends Vue {
* @memberof IBIZOrderGanttView_layoutBase
*/
public panelLogic(name: string, index?: number): void {
if (name && (index || index === 0)) {
name = name.replace(`_${index}`,"");
}
}
/**
......
......@@ -311,7 +311,7 @@ export default class IBIZOrderListExpView_layoutBase extends Vue {
* @public
* @memberof IBIZOrderListExpView_layoutBase
*/
public isLayoutLoadding: boolean = false;
public isLayoutLoadding: boolean = true;
/**
* 布局面板数据
......@@ -355,10 +355,10 @@ export default class IBIZOrderListExpView_layoutBase extends Vue {
* @public
* @memberof IBIZOrderListExpView_layoutBase
*/
public async initLayoutItem(layoutModelItem: any, index: number = 0) {
public async initLayoutItem(layoutModelItem: any, index?: number) {
const { name } = layoutModelItem;
const layoutModelDetail = Util.getLayoutItemInstance(layoutModelItem);
if (!index) {
if (!(index || index === 0)) {
await layoutModelDetail.load(this.context, this.viewparams);
this.$set(this.layoutModelDetails, name, layoutModelDetail);
this.$set(this.layoutData, name, layoutModelDetail.getData());
......@@ -385,7 +385,7 @@ export default class IBIZOrderListExpView_layoutBase extends Vue {
for (let i = 0; i < layoutModelDetail.details.length; i++) {
const key = layoutModelDetail.details[i];
if (this.layoutItems[key]) {
await this.initLayoutItem(this.layoutItems[key],index);
await this.initLayoutItem(this.layoutItems[key], index);
}
}
}
......@@ -415,12 +415,13 @@ export default class IBIZOrderListExpView_layoutBase extends Vue {
* @memberof IBIZOrderListExpView_layoutBase
*/
public handleValueChange(args: { name: string, value: any }, index?: number) {
if (!args || !args.name || Object.is(args.name, '') || !this.layoutData.hasOwnProperty(args.name)) {
const { name, value } = args;
let fullName = (index || index === 0) ? `${name}_${index}` : name;
if (!fullName || !this.layoutData.hasOwnProperty(fullName)) {
return;
}
const {name,value} = args;
this.layoutData[name] = value;
this.layoutModelDetails[name].setData(value);
this.layoutData[fullName] = value;
this.layoutModelDetails[fullName].setData(value);
this.panelLogic(name, index);
this.computeButtonAuthState();
}
......@@ -435,9 +436,6 @@ export default class IBIZOrderListExpView_layoutBase extends Vue {
* @memberof IBIZOrderListExpView_layoutBase
*/
public panelLogic(name: string, index?: number): void {
if (name && (index || index === 0)) {
name = name.replace(`_${index}`,"");
}
}
/**
......
......@@ -405,7 +405,7 @@ export default class IBIZOrderSEditView2_layoutBase extends Vue {
* @public
* @memberof IBIZOrderSEditView2_layoutBase
*/
public isLayoutLoadding: boolean = false;
public isLayoutLoadding: boolean = true;
/**
* 布局面板数据
......@@ -449,10 +449,10 @@ export default class IBIZOrderSEditView2_layoutBase extends Vue {
* @public
* @memberof IBIZOrderSEditView2_layoutBase
*/
public async initLayoutItem(layoutModelItem: any, index: number = 0) {
public async initLayoutItem(layoutModelItem: any, index?: number) {
const { name } = layoutModelItem;
const layoutModelDetail = Util.getLayoutItemInstance(layoutModelItem);
if (!index) {
if (!(index || index === 0)) {
await layoutModelDetail.load(this.context, this.viewparams);
this.$set(this.layoutModelDetails, name, layoutModelDetail);
this.$set(this.layoutData, name, layoutModelDetail.getData());
......@@ -479,7 +479,7 @@ export default class IBIZOrderSEditView2_layoutBase extends Vue {
for (let i = 0; i < layoutModelDetail.details.length; i++) {
const key = layoutModelDetail.details[i];
if (this.layoutItems[key]) {
await this.initLayoutItem(this.layoutItems[key],index);
await this.initLayoutItem(this.layoutItems[key], index);
}
}
}
......@@ -509,12 +509,13 @@ export default class IBIZOrderSEditView2_layoutBase extends Vue {
* @memberof IBIZOrderSEditView2_layoutBase
*/
public handleValueChange(args: { name: string, value: any }, index?: number) {
if (!args || !args.name || Object.is(args.name, '') || !this.layoutData.hasOwnProperty(args.name)) {
const { name, value } = args;
let fullName = (index || index === 0) ? `${name}_${index}` : name;
if (!fullName || !this.layoutData.hasOwnProperty(fullName)) {
return;
}
const {name,value} = args;
this.layoutData[name] = value;
this.layoutModelDetails[name].setData(value);
this.layoutData[fullName] = value;
this.layoutModelDetails[fullName].setData(value);
this.panelLogic(name, index);
this.computeButtonAuthState();
}
......@@ -529,9 +530,6 @@ export default class IBIZOrderSEditView2_layoutBase extends Vue {
* @memberof IBIZOrderSEditView2_layoutBase
*/
public panelLogic(name: string, index?: number): void {
if (name && (index || index === 0)) {
name = name.replace(`_${index}`,"");
}
}
/**
......
......@@ -417,7 +417,7 @@ export default class IBIZOrderSEditView3_layoutBase extends Vue {
* @public
* @memberof IBIZOrderSEditView3_layoutBase
*/
public isLayoutLoadding: boolean = false;
public isLayoutLoadding: boolean = true;
/**
* 布局面板数据
......@@ -461,10 +461,10 @@ export default class IBIZOrderSEditView3_layoutBase extends Vue {
* @public
* @memberof IBIZOrderSEditView3_layoutBase
*/
public async initLayoutItem(layoutModelItem: any, index: number = 0) {
public async initLayoutItem(layoutModelItem: any, index?: number) {
const { name } = layoutModelItem;
const layoutModelDetail = Util.getLayoutItemInstance(layoutModelItem);
if (!index) {
if (!(index || index === 0)) {
await layoutModelDetail.load(this.context, this.viewparams);
this.$set(this.layoutModelDetails, name, layoutModelDetail);
this.$set(this.layoutData, name, layoutModelDetail.getData());
......@@ -491,7 +491,7 @@ export default class IBIZOrderSEditView3_layoutBase extends Vue {
for (let i = 0; i < layoutModelDetail.details.length; i++) {
const key = layoutModelDetail.details[i];
if (this.layoutItems[key]) {
await this.initLayoutItem(this.layoutItems[key],index);
await this.initLayoutItem(this.layoutItems[key], index);
}
}
}
......@@ -521,12 +521,13 @@ export default class IBIZOrderSEditView3_layoutBase extends Vue {
* @memberof IBIZOrderSEditView3_layoutBase
*/
public handleValueChange(args: { name: string, value: any }, index?: number) {
if (!args || !args.name || Object.is(args.name, '') || !this.layoutData.hasOwnProperty(args.name)) {
const { name, value } = args;
let fullName = (index || index === 0) ? `${name}_${index}` : name;
if (!fullName || !this.layoutData.hasOwnProperty(fullName)) {
return;
}
const {name,value} = args;
this.layoutData[name] = value;
this.layoutModelDetails[name].setData(value);
this.layoutData[fullName] = value;
this.layoutModelDetails[fullName].setData(value);
this.panelLogic(name, index);
this.computeButtonAuthState();
}
......@@ -541,9 +542,6 @@ export default class IBIZOrderSEditView3_layoutBase extends Vue {
* @memberof IBIZOrderSEditView3_layoutBase
*/
public panelLogic(name: string, index?: number): void {
if (name && (index || index === 0)) {
name = name.replace(`_${index}`,"");
}
}
/**
......
......@@ -409,7 +409,7 @@ export default class IBIZOrderSEditView4_layoutBase extends Vue {
* @public
* @memberof IBIZOrderSEditView4_layoutBase
*/
public isLayoutLoadding: boolean = false;
public isLayoutLoadding: boolean = true;
/**
* 布局面板数据
......@@ -453,10 +453,10 @@ export default class IBIZOrderSEditView4_layoutBase extends Vue {
* @public
* @memberof IBIZOrderSEditView4_layoutBase
*/
public async initLayoutItem(layoutModelItem: any, index: number = 0) {
public async initLayoutItem(layoutModelItem: any, index?: number) {
const { name } = layoutModelItem;
const layoutModelDetail = Util.getLayoutItemInstance(layoutModelItem);
if (!index) {
if (!(index || index === 0)) {
await layoutModelDetail.load(this.context, this.viewparams);
this.$set(this.layoutModelDetails, name, layoutModelDetail);
this.$set(this.layoutData, name, layoutModelDetail.getData());
......@@ -483,7 +483,7 @@ export default class IBIZOrderSEditView4_layoutBase extends Vue {
for (let i = 0; i < layoutModelDetail.details.length; i++) {
const key = layoutModelDetail.details[i];
if (this.layoutItems[key]) {
await this.initLayoutItem(this.layoutItems[key],index);
await this.initLayoutItem(this.layoutItems[key], index);
}
}
}
......@@ -513,12 +513,13 @@ export default class IBIZOrderSEditView4_layoutBase extends Vue {
* @memberof IBIZOrderSEditView4_layoutBase
*/
public handleValueChange(args: { name: string, value: any }, index?: number) {
if (!args || !args.name || Object.is(args.name, '') || !this.layoutData.hasOwnProperty(args.name)) {
const { name, value } = args;
let fullName = (index || index === 0) ? `${name}_${index}` : name;
if (!fullName || !this.layoutData.hasOwnProperty(fullName)) {
return;
}
const {name,value} = args;
this.layoutData[name] = value;
this.layoutModelDetails[name].setData(value);
this.layoutData[fullName] = value;
this.layoutModelDetails[fullName].setData(value);
this.panelLogic(name, index);
this.computeButtonAuthState();
}
......@@ -533,9 +534,6 @@ export default class IBIZOrderSEditView4_layoutBase extends Vue {
* @memberof IBIZOrderSEditView4_layoutBase
*/
public panelLogic(name: string, index?: number): void {
if (name && (index || index === 0)) {
name = name.replace(`_${index}`,"");
}
}
/**
......
......@@ -293,7 +293,7 @@ export default class IBIZOrderTestCLChartViewBase extends Vue {
* @public
* @memberof IBIZOrderTestCLChartViewBase
*/
public isLayoutLoadding: boolean = false;
public isLayoutLoadding: boolean = true;
/**
* 布局面板数据
......@@ -337,10 +337,10 @@ export default class IBIZOrderTestCLChartViewBase extends Vue {
* @public
* @memberof IBIZOrderTestCLChartViewBase
*/
public async initLayoutItem(layoutModelItem: any, index: number = 0) {
public async initLayoutItem(layoutModelItem: any, index?: number) {
const { name } = layoutModelItem;
const layoutModelDetail = Util.getLayoutItemInstance(layoutModelItem);
if (!index) {
if (!(index || index === 0)) {
await layoutModelDetail.load(this.context, this.viewparams);
this.$set(this.layoutModelDetails, name, layoutModelDetail);
this.$set(this.layoutData, name, layoutModelDetail.getData());
......@@ -367,7 +367,7 @@ export default class IBIZOrderTestCLChartViewBase extends Vue {
for (let i = 0; i < layoutModelDetail.details.length; i++) {
const key = layoutModelDetail.details[i];
if (this.layoutItems[key]) {
await this.initLayoutItem(this.layoutItems[key],index);
await this.initLayoutItem(this.layoutItems[key], index);
}
}
}
......@@ -397,12 +397,13 @@ export default class IBIZOrderTestCLChartViewBase extends Vue {
* @memberof IBIZOrderTestCLChartViewBase
*/
public handleValueChange(args: { name: string, value: any }, index?: number) {
if (!args || !args.name || Object.is(args.name, '') || !this.layoutData.hasOwnProperty(args.name)) {
const { name, value } = args;
let fullName = (index || index === 0) ? `${name}_${index}` : name;
if (!fullName || !this.layoutData.hasOwnProperty(fullName)) {
return;
}
const {name,value} = args;
this.layoutData[name] = value;
this.layoutModelDetails[name].setData(value);
this.layoutData[fullName] = value;
this.layoutModelDetails[fullName].setData(value);
this.panelLogic(name, index);
this.computeButtonAuthState();
}
......@@ -417,9 +418,6 @@ export default class IBIZOrderTestCLChartViewBase extends Vue {
* @memberof IBIZOrderTestCLChartViewBase
*/
public panelLogic(name: string, index?: number): void {
if (name && (index || index === 0)) {
name = name.replace(`_${index}`,"");
}
}
/**
......
......@@ -305,7 +305,7 @@ export default class IBIZOrderTestCustomLayoutPanelGridExpViewBase extends Vue {
* @public
* @memberof IBIZOrderTestCustomLayoutPanelGridExpViewBase
*/
public isLayoutLoadding: boolean = false;
public isLayoutLoadding: boolean = true;
/**
* 布局面板数据
......@@ -349,10 +349,10 @@ export default class IBIZOrderTestCustomLayoutPanelGridExpViewBase extends Vue {
* @public
* @memberof IBIZOrderTestCustomLayoutPanelGridExpViewBase
*/
public async initLayoutItem(layoutModelItem: any, index: number = 0) {
public async initLayoutItem(layoutModelItem: any, index?: number) {
const { name } = layoutModelItem;
const layoutModelDetail = Util.getLayoutItemInstance(layoutModelItem);
if (!index) {
if (!(index || index === 0)) {
await layoutModelDetail.load(this.context, this.viewparams);
this.$set(this.layoutModelDetails, name, layoutModelDetail);
this.$set(this.layoutData, name, layoutModelDetail.getData());
......@@ -379,7 +379,7 @@ export default class IBIZOrderTestCustomLayoutPanelGridExpViewBase extends Vue {
for (let i = 0; i < layoutModelDetail.details.length; i++) {
const key = layoutModelDetail.details[i];
if (this.layoutItems[key]) {
await this.initLayoutItem(this.layoutItems[key],index);
await this.initLayoutItem(this.layoutItems[key], index);
}
}
}
......@@ -409,12 +409,13 @@ export default class IBIZOrderTestCustomLayoutPanelGridExpViewBase extends Vue {
* @memberof IBIZOrderTestCustomLayoutPanelGridExpViewBase
*/
public handleValueChange(args: { name: string, value: any }, index?: number) {
if (!args || !args.name || Object.is(args.name, '') || !this.layoutData.hasOwnProperty(args.name)) {
const { name, value } = args;
let fullName = (index || index === 0) ? `${name}_${index}` : name;
if (!fullName || !this.layoutData.hasOwnProperty(fullName)) {
return;
}
const {name,value} = args;
this.layoutData[name] = value;
this.layoutModelDetails[name].setData(value);
this.layoutData[fullName] = value;
this.layoutModelDetails[fullName].setData(value);
this.panelLogic(name, index);
this.computeButtonAuthState();
}
......@@ -429,9 +430,6 @@ export default class IBIZOrderTestCustomLayoutPanelGridExpViewBase extends Vue {
* @memberof IBIZOrderTestCustomLayoutPanelGridExpViewBase
*/
public panelLogic(name: string, index?: number): void {
if (name && (index || index === 0)) {
name = name.replace(`_${index}`,"");
}
}
/**
......
......@@ -304,7 +304,7 @@ export default class IBIZOrderTreeExpView_layoutBase extends Vue {
* @public
* @memberof IBIZOrderTreeExpView_layoutBase
*/
public isLayoutLoadding: boolean = false;
public isLayoutLoadding: boolean = true;
/**
* 布局面板数据
......@@ -348,10 +348,10 @@ export default class IBIZOrderTreeExpView_layoutBase extends Vue {
* @public
* @memberof IBIZOrderTreeExpView_layoutBase
*/
public async initLayoutItem(layoutModelItem: any, index: number = 0) {
public async initLayoutItem(layoutModelItem: any, index?: number) {
const { name } = layoutModelItem;
const layoutModelDetail = Util.getLayoutItemInstance(layoutModelItem);
if (!index) {
if (!(index || index === 0)) {
await layoutModelDetail.load(this.context, this.viewparams);
this.$set(this.layoutModelDetails, name, layoutModelDetail);
this.$set(this.layoutData, name, layoutModelDetail.getData());
......@@ -378,7 +378,7 @@ export default class IBIZOrderTreeExpView_layoutBase extends Vue {
for (let i = 0; i < layoutModelDetail.details.length; i++) {
const key = layoutModelDetail.details[i];
if (this.layoutItems[key]) {
await this.initLayoutItem(this.layoutItems[key],index);
await this.initLayoutItem(this.layoutItems[key], index);
}
}
}
......@@ -408,12 +408,13 @@ export default class IBIZOrderTreeExpView_layoutBase extends Vue {
* @memberof IBIZOrderTreeExpView_layoutBase
*/
public handleValueChange(args: { name: string, value: any }, index?: number) {
if (!args || !args.name || Object.is(args.name, '') || !this.layoutData.hasOwnProperty(args.name)) {
const { name, value } = args;
let fullName = (index || index === 0) ? `${name}_${index}` : name;
if (!fullName || !this.layoutData.hasOwnProperty(fullName)) {
return;
}
const {name,value} = args;
this.layoutData[name] = value;
this.layoutModelDetails[name].setData(value);
this.layoutData[fullName] = value;
this.layoutModelDetails[fullName].setData(value);
this.panelLogic(name, index);
this.computeButtonAuthState();
}
......@@ -428,9 +429,6 @@ export default class IBIZOrderTreeExpView_layoutBase extends Vue {
* @memberof IBIZOrderTreeExpView_layoutBase
*/
public panelLogic(name: string, index?: number): void {
if (name && (index || index === 0)) {
name = name.replace(`_${index}`,"");
}
}
/**
......
......@@ -324,7 +324,7 @@ export default class IBIZOrderTreeGridExView_layoutBase extends Vue {
* @public
* @memberof IBIZOrderTreeGridExView_layoutBase
*/
public isLayoutLoadding: boolean = false;
public isLayoutLoadding: boolean = true;
/**
* 布局面板数据
......@@ -368,10 +368,10 @@ export default class IBIZOrderTreeGridExView_layoutBase extends Vue {
* @public
* @memberof IBIZOrderTreeGridExView_layoutBase
*/
public async initLayoutItem(layoutModelItem: any, index: number = 0) {
public async initLayoutItem(layoutModelItem: any, index?: number) {
const { name } = layoutModelItem;
const layoutModelDetail = Util.getLayoutItemInstance(layoutModelItem);
if (!index) {
if (!(index || index === 0)) {
await layoutModelDetail.load(this.context, this.viewparams);
this.$set(this.layoutModelDetails, name, layoutModelDetail);
this.$set(this.layoutData, name, layoutModelDetail.getData());
......@@ -398,7 +398,7 @@ export default class IBIZOrderTreeGridExView_layoutBase extends Vue {
for (let i = 0; i < layoutModelDetail.details.length; i++) {
const key = layoutModelDetail.details[i];
if (this.layoutItems[key]) {
await this.initLayoutItem(this.layoutItems[key],index);
await this.initLayoutItem(this.layoutItems[key], index);
}
}
}
......@@ -428,12 +428,13 @@ export default class IBIZOrderTreeGridExView_layoutBase extends Vue {
* @memberof IBIZOrderTreeGridExView_layoutBase
*/
public handleValueChange(args: { name: string, value: any }, index?: number) {
if (!args || !args.name || Object.is(args.name, '') || !this.layoutData.hasOwnProperty(args.name)) {
const { name, value } = args;
let fullName = (index || index === 0) ? `${name}_${index}` : name;
if (!fullName || !this.layoutData.hasOwnProperty(fullName)) {
return;
}
const {name,value} = args;
this.layoutData[name] = value;
this.layoutModelDetails[name].setData(value);
this.layoutData[fullName] = value;
this.layoutModelDetails[fullName].setData(value);
this.panelLogic(name, index);
this.computeButtonAuthState();
}
......@@ -448,9 +449,6 @@ export default class IBIZOrderTreeGridExView_layoutBase extends Vue {
* @memberof IBIZOrderTreeGridExView_layoutBase
*/
public panelLogic(name: string, index?: number): void {
if (name && (index || index === 0)) {
name = name.replace(`_${index}`,"");
}
}
/**
......
......@@ -499,7 +499,7 @@ export default class IBIZOrderUsr2GridViewBase extends Vue {
* @public
* @memberof IBIZOrderUsr2GridViewBase
*/
public isLayoutLoadding: boolean = false;
public isLayoutLoadding: boolean = true;
/**
* 布局面板数据
......@@ -543,10 +543,10 @@ export default class IBIZOrderUsr2GridViewBase extends Vue {
* @public
* @memberof IBIZOrderUsr2GridViewBase
*/
public async initLayoutItem(layoutModelItem: any, index: number = 0) {
public async initLayoutItem(layoutModelItem: any, index?: number) {
const { name } = layoutModelItem;
const layoutModelDetail = Util.getLayoutItemInstance(layoutModelItem);
if (!index) {
if (!(index || index === 0)) {
await layoutModelDetail.load(this.context, this.viewparams);
this.$set(this.layoutModelDetails, name, layoutModelDetail);
this.$set(this.layoutData, name, layoutModelDetail.getData());
......@@ -573,7 +573,7 @@ export default class IBIZOrderUsr2GridViewBase extends Vue {
for (let i = 0; i < layoutModelDetail.details.length; i++) {
const key = layoutModelDetail.details[i];
if (this.layoutItems[key]) {
await this.initLayoutItem(this.layoutItems[key],index);
await this.initLayoutItem(this.layoutItems[key], index);
}
}
}
......@@ -603,12 +603,13 @@ export default class IBIZOrderUsr2GridViewBase extends Vue {
* @memberof IBIZOrderUsr2GridViewBase
*/
public handleValueChange(args: { name: string, value: any }, index?: number) {
if (!args || !args.name || Object.is(args.name, '') || !this.layoutData.hasOwnProperty(args.name)) {
const { name, value } = args;
let fullName = (index || index === 0) ? `${name}_${index}` : name;
if (!fullName || !this.layoutData.hasOwnProperty(fullName)) {
return;
}
const {name,value} = args;
this.layoutData[name] = value;
this.layoutModelDetails[name].setData(value);
this.layoutData[fullName] = value;
this.layoutModelDetails[fullName].setData(value);
this.panelLogic(name, index);
this.computeButtonAuthState();
}
......@@ -623,9 +624,6 @@ export default class IBIZOrderUsr2GridViewBase extends Vue {
* @memberof IBIZOrderUsr2GridViewBase
*/
public panelLogic(name: string, index?: number): void {
if (name && (index || index === 0)) {
name = name.replace(`_${index}`,"");
}
}
/**
......
......@@ -289,7 +289,7 @@ export default class IBIZSample0003STabExpView_layoutBase extends Vue {
* @public
* @memberof IBIZSample0003STabExpView_layoutBase
*/
public isLayoutLoadding: boolean = false;
public isLayoutLoadding: boolean = true;
/**
* 布局面板数据
......@@ -333,10 +333,10 @@ export default class IBIZSample0003STabExpView_layoutBase extends Vue {
* @public
* @memberof IBIZSample0003STabExpView_layoutBase
*/
public async initLayoutItem(layoutModelItem: any, index: number = 0) {
public async initLayoutItem(layoutModelItem: any, index?: number) {
const { name } = layoutModelItem;
const layoutModelDetail = Util.getLayoutItemInstance(layoutModelItem);
if (!index) {
if (!(index || index === 0)) {
await layoutModelDetail.load(this.context, this.viewparams);
this.$set(this.layoutModelDetails, name, layoutModelDetail);
this.$set(this.layoutData, name, layoutModelDetail.getData());
......@@ -363,7 +363,7 @@ export default class IBIZSample0003STabExpView_layoutBase extends Vue {
for (let i = 0; i < layoutModelDetail.details.length; i++) {
const key = layoutModelDetail.details[i];
if (this.layoutItems[key]) {
await this.initLayoutItem(this.layoutItems[key],index);
await this.initLayoutItem(this.layoutItems[key], index);
}
}
}
......@@ -393,12 +393,13 @@ export default class IBIZSample0003STabExpView_layoutBase extends Vue {
* @memberof IBIZSample0003STabExpView_layoutBase
*/
public handleValueChange(args: { name: string, value: any }, index?: number) {
if (!args || !args.name || Object.is(args.name, '') || !this.layoutData.hasOwnProperty(args.name)) {
const { name, value } = args;
let fullName = (index || index === 0) ? `${name}_${index}` : name;
if (!fullName || !this.layoutData.hasOwnProperty(fullName)) {
return;
}
const {name,value} = args;
this.layoutData[name] = value;
this.layoutModelDetails[name].setData(value);
this.layoutData[fullName] = value;
this.layoutModelDetails[fullName].setData(value);
this.panelLogic(name, index);
this.computeButtonAuthState();
}
......@@ -413,9 +414,6 @@ export default class IBIZSample0003STabExpView_layoutBase extends Vue {
* @memberof IBIZSample0003STabExpView_layoutBase
*/
public panelLogic(name: string, index?: number): void {
if (name && (index || index === 0)) {
name = name.replace(`_${index}`,"");
}
}
/**
......
......@@ -311,7 +311,7 @@ export default class IBIZSample0021WFDynaActionView_layoutBase extends Vue {
* @public
* @memberof IBIZSample0021WFDynaActionView_layoutBase
*/
public isLayoutLoadding: boolean = false;
public isLayoutLoadding: boolean = true;
/**
* 布局面板数据
......@@ -355,10 +355,10 @@ export default class IBIZSample0021WFDynaActionView_layoutBase extends Vue {
* @public
* @memberof IBIZSample0021WFDynaActionView_layoutBase
*/
public async initLayoutItem(layoutModelItem: any, index: number = 0) {
public async initLayoutItem(layoutModelItem: any, index?: number) {
const { name } = layoutModelItem;
const layoutModelDetail = Util.getLayoutItemInstance(layoutModelItem);
if (!index) {
if (!(index || index === 0)) {
await layoutModelDetail.load(this.context, this.viewparams);
this.$set(this.layoutModelDetails, name, layoutModelDetail);
this.$set(this.layoutData, name, layoutModelDetail.getData());
......@@ -385,7 +385,7 @@ export default class IBIZSample0021WFDynaActionView_layoutBase extends Vue {
for (let i = 0; i < layoutModelDetail.details.length; i++) {
const key = layoutModelDetail.details[i];
if (this.layoutItems[key]) {
await this.initLayoutItem(this.layoutItems[key],index);
await this.initLayoutItem(this.layoutItems[key], index);
}
}
}
......@@ -415,12 +415,13 @@ export default class IBIZSample0021WFDynaActionView_layoutBase extends Vue {
* @memberof IBIZSample0021WFDynaActionView_layoutBase
*/
public handleValueChange(args: { name: string, value: any }, index?: number) {
if (!args || !args.name || Object.is(args.name, '') || !this.layoutData.hasOwnProperty(args.name)) {
const { name, value } = args;
let fullName = (index || index === 0) ? `${name}_${index}` : name;
if (!fullName || !this.layoutData.hasOwnProperty(fullName)) {
return;
}
const {name,value} = args;
this.layoutData[name] = value;
this.layoutModelDetails[name].setData(value);
this.layoutData[fullName] = value;
this.layoutModelDetails[fullName].setData(value);
this.panelLogic(name, index);
this.computeButtonAuthState();
}
......@@ -435,9 +436,6 @@ export default class IBIZSample0021WFDynaActionView_layoutBase extends Vue {
* @memberof IBIZSample0021WFDynaActionView_layoutBase
*/
public panelLogic(name: string, index?: number): void {
if (name && (index || index === 0)) {
name = name.replace(`_${index}`,"");
}
}
/**
......
......@@ -355,7 +355,7 @@ export default class IBIZSample0021WFDynaExpGridView_layoutBase extends Vue {
* @public
* @memberof IBIZSample0021WFDynaExpGridView_layoutBase
*/
public isLayoutLoadding: boolean = false;
public isLayoutLoadding: boolean = true;
/**
* 布局面板数据
......@@ -399,10 +399,10 @@ export default class IBIZSample0021WFDynaExpGridView_layoutBase extends Vue {
* @public
* @memberof IBIZSample0021WFDynaExpGridView_layoutBase
*/
public async initLayoutItem(layoutModelItem: any, index: number = 0) {
public async initLayoutItem(layoutModelItem: any, index?: number) {
const { name } = layoutModelItem;
const layoutModelDetail = Util.getLayoutItemInstance(layoutModelItem);
if (!index) {
if (!(index || index === 0)) {
await layoutModelDetail.load(this.context, this.viewparams);
this.$set(this.layoutModelDetails, name, layoutModelDetail);
this.$set(this.layoutData, name, layoutModelDetail.getData());
......@@ -429,7 +429,7 @@ export default class IBIZSample0021WFDynaExpGridView_layoutBase extends Vue {
for (let i = 0; i < layoutModelDetail.details.length; i++) {
const key = layoutModelDetail.details[i];
if (this.layoutItems[key]) {
await this.initLayoutItem(this.layoutItems[key],index);
await this.initLayoutItem(this.layoutItems[key], index);
}
}
}
......@@ -459,12 +459,13 @@ export default class IBIZSample0021WFDynaExpGridView_layoutBase extends Vue {
* @memberof IBIZSample0021WFDynaExpGridView_layoutBase
*/
public handleValueChange(args: { name: string, value: any }, index?: number) {
if (!args || !args.name || Object.is(args.name, '') || !this.layoutData.hasOwnProperty(args.name)) {
const { name, value } = args;
let fullName = (index || index === 0) ? `${name}_${index}` : name;
if (!fullName || !this.layoutData.hasOwnProperty(fullName)) {
return;
}
const {name,value} = args;
this.layoutData[name] = value;
this.layoutModelDetails[name].setData(value);
this.layoutData[fullName] = value;
this.layoutModelDetails[fullName].setData(value);
this.panelLogic(name, index);
this.computeButtonAuthState();
}
......@@ -479,9 +480,6 @@ export default class IBIZSample0021WFDynaExpGridView_layoutBase extends Vue {
* @memberof IBIZSample0021WFDynaExpGridView_layoutBase
*/
public panelLogic(name: string, index?: number): void {
if (name && (index || index === 0)) {
name = name.replace(`_${index}`,"");
}
}
/**
......
......@@ -313,7 +313,7 @@ export default class IndexBase extends Vue {
* @public
* @memberof IndexBase
*/
public isLayoutLoadding: boolean = false;
public isLayoutLoadding: boolean = true;
/**
* 布局面板数据
......@@ -357,10 +357,10 @@ export default class IndexBase extends Vue {
* @public
* @memberof IndexBase
*/
public async initLayoutItem(layoutModelItem: any, index: number = 0) {
public async initLayoutItem(layoutModelItem: any, index?: number) {
const { name } = layoutModelItem;
const layoutModelDetail = Util.getLayoutItemInstance(layoutModelItem);
if (!index) {
if (!(index || index === 0)) {
await layoutModelDetail.load(this.context, this.viewparams);
this.$set(this.layoutModelDetails, name, layoutModelDetail);
this.$set(this.layoutData, name, layoutModelDetail.getData());
......@@ -387,7 +387,7 @@ export default class IndexBase extends Vue {
for (let i = 0; i < layoutModelDetail.details.length; i++) {
const key = layoutModelDetail.details[i];
if (this.layoutItems[key]) {
await this.initLayoutItem(this.layoutItems[key],index);
await this.initLayoutItem(this.layoutItems[key], index);
}
}
}
......@@ -417,12 +417,13 @@ export default class IndexBase extends Vue {
* @memberof IndexBase
*/
public handleValueChange(args: { name: string, value: any }, index?: number) {
if (!args || !args.name || Object.is(args.name, '') || !this.layoutData.hasOwnProperty(args.name)) {
const { name, value } = args;
let fullName = (index || index === 0) ? `${name}_${index}` : name;
if (!fullName || !this.layoutData.hasOwnProperty(fullName)) {
return;
}
const {name,value} = args;
this.layoutData[name] = value;
this.layoutModelDetails[name].setData(value);
this.layoutData[fullName] = value;
this.layoutModelDetails[fullName].setData(value);
this.panelLogic(name, index);
this.computeButtonAuthState();
}
......@@ -437,9 +438,6 @@ export default class IndexBase extends Vue {
* @memberof IndexBase
*/
public panelLogic(name: string, index?: number): void {
if (name && (index || index === 0)) {
name = name.replace(`_${index}`,"");
}
}
/**
......
......@@ -277,7 +277,7 @@ export default class AppLoginViewBase extends Vue {
* @public
* @memberof AppLoginViewBase
*/
public isLayoutLoadding: boolean = false;
public isLayoutLoadding: boolean = true;
/**
* 布局面板数据
......@@ -321,10 +321,10 @@ export default class AppLoginViewBase extends Vue {
* @public
* @memberof AppLoginViewBase
*/
public async initLayoutItem(layoutModelItem: any, index: number = 0) {
public async initLayoutItem(layoutModelItem: any, index?: number) {
const { name } = layoutModelItem;
const layoutModelDetail = Util.getLayoutItemInstance(layoutModelItem);
if (!index) {
if (!(index || index === 0)) {
await layoutModelDetail.load(this.context, this.viewparams);
this.$set(this.layoutModelDetails, name, layoutModelDetail);
this.$set(this.layoutData, name, layoutModelDetail.getData());
......@@ -351,7 +351,7 @@ export default class AppLoginViewBase extends Vue {
for (let i = 0; i < layoutModelDetail.details.length; i++) {
const key = layoutModelDetail.details[i];
if (this.layoutItems[key]) {
await this.initLayoutItem(this.layoutItems[key],index);
await this.initLayoutItem(this.layoutItems[key], index);
}
}
}
......@@ -381,12 +381,13 @@ export default class AppLoginViewBase extends Vue {
* @memberof AppLoginViewBase
*/
public handleValueChange(args: { name: string, value: any }, index?: number) {
if (!args || !args.name || Object.is(args.name, '') || !this.layoutData.hasOwnProperty(args.name)) {
const { name, value } = args;
let fullName = (index || index === 0) ? `${name}_${index}` : name;
if (!fullName || !this.layoutData.hasOwnProperty(fullName)) {
return;
}
const {name,value} = args;
this.layoutData[name] = value;
this.layoutModelDetails[name].setData(value);
this.layoutData[fullName] = value;
this.layoutModelDetails[fullName].setData(value);
this.panelLogic(name, index);
this.computeButtonAuthState();
}
......@@ -401,9 +402,6 @@ export default class AppLoginViewBase extends Vue {
* @memberof AppLoginViewBase
*/
public panelLogic(name: string, index?: number): void {
if (name && (index || index === 0)) {
name = name.replace(`_${index}`,"");
}
}
/**
......
<template>
<div class="app-layoutpanel AppPanelView" v-loading="isLayoutLoadding" :style="{width: '100%', height: '100%', overflow: 'auto'}">
<template v-if="!isLayoutLoadding">
</template>
<div v-show="!isLayoutLoadding" :style="{height: '100%', width: '100%'}">
</div>
</div>
</template>
......@@ -276,7 +276,7 @@ export default class AppPanelViewBase extends Vue implements ControlInterface {
* @public
* @memberof PanelBase
*/
public isLayoutLoadding: boolean = false;
public isLayoutLoadding: boolean = true;
/**
* 布局面板数据
......@@ -320,10 +320,10 @@ export default class AppPanelViewBase extends Vue implements ControlInterface {
* @public
* @memberof PanelBase
*/
public async initLayoutItem(layoutModelItem: any, index: number = 0) {
public async initLayoutItem(layoutModelItem: any, index?: number) {
const { name } = layoutModelItem;
const layoutModelDetail = Util.getLayoutItemInstance(layoutModelItem);
if (!index) {
if (!(index || index === 0)) {
await layoutModelDetail.load(this.context, this.viewparams);
this.$set(this.layoutModelDetails, name, layoutModelDetail);
this.$set(this.layoutData, name, layoutModelDetail.getData());
......@@ -350,7 +350,7 @@ export default class AppPanelViewBase extends Vue implements ControlInterface {
for (let i = 0; i < layoutModelDetail.details.length; i++) {
const key = layoutModelDetail.details[i];
if (this.layoutItems[key]) {
await this.initLayoutItem(this.layoutItems[key],index);
await this.initLayoutItem(this.layoutItems[key], index);
}
}
}
......@@ -477,12 +477,13 @@ export default class AppPanelViewBase extends Vue implements ControlInterface {
* @memberof PanelBase
*/
public handleValueChange(args: { name: string, value: any }, index?: number) {
if (!args || !args.name || Object.is(args.name, '') || !this.layoutData.hasOwnProperty(args.name)) {
const { name, value } = args;
let fullName = (index || index === 0) ? `${name}_${index}` : name;
if (!fullName || !this.layoutData.hasOwnProperty(fullName)) {
return;
}
const { name, value } = args;
this.layoutData[name] = value;
this.layoutModelDetails[name].setData(value);
this.layoutData[fullName] = value;
this.layoutModelDetails[fullName].setData(value);
this.panelLogic(name, index);
this.computeButtonAuthState();
this.panelEditItemChange(name, value);
......@@ -519,9 +520,6 @@ export default class AppPanelViewBase extends Vue implements ControlInterface {
* @memberof AppPanelViewBase
*/
public panelLogic(name: string, index?: number): void {
if (name && (index || index === 0)) {
name = name.replace(`_${index}`,"");
}
}
/**
......
......@@ -451,13 +451,36 @@ export default class CtrlChartBase extends Vue implements ControlInterface {
Object.assign(tempViewParams,JSON.parse(JSON.stringify(this.viewparams)));
Object.assign(arg,{viewparams:tempViewParams});
Object.assign(arg,{page:0,size:1000});
this.service.search(this.fetchAction,JSON.parse(JSON.stringify(this.context)),arg,this.showBusyIndicator).then((res) => {
if (res) {
this.transformToBasicChartSetData(res.data,(codelist:any) =>{_this.drawCharts(codelist)});
this.handleCtrlEvents('onbeforeload', { viewparams: arg }).then((beforeLoadRes: boolean) => {
if (!beforeLoadRes) {
return;
}
}).catch((error) => {
console.error(error);
});
this.service.search(this.fetchAction,JSON.parse(JSON.stringify(this.context)),arg,this.showBusyIndicator).then((res) => {
if (res) {
this.handleCtrlEvents('onloadsuccess', { data: res.data }).then((loadSuccessRes: boolean) => {
if (!loadSuccessRes) {
return;
}
this.transformToBasicChartSetData(res.data,(codelist:any) =>{_this.drawCharts(codelist)});
})
} else {
this.handleCtrlEvents('onloaderror').then((loadErrorRes: boolean) => {
if (!loadErrorRes) {
return;
}
// 加载失败逻辑
});
}
}).catch((error) => {
this.handleCtrlEvents('onloaderror').then((loadErrorRes: boolean) => {
if (!loadErrorRes) {
return;
}
// 加载失败逻辑
console.error(error);
});
});
})
}
/**
......
......@@ -472,13 +472,36 @@ export default class EditorChartBase extends Vue implements ControlInterface {
Object.assign(tempViewParams,JSON.parse(JSON.stringify(this.viewparams)));
Object.assign(arg,{viewparams:tempViewParams});
Object.assign(arg,{page:0,size:1000});
this.service.search(this.fetchAction,JSON.parse(JSON.stringify(this.context)),arg,this.showBusyIndicator).then((res) => {
if (res) {
this.transformToBasicChartSetData(res.data,(codelist:any) =>{_this.drawCharts(codelist)});
this.handleCtrlEvents('onbeforeload', { viewparams: arg }).then((beforeLoadRes: boolean) => {
if (!beforeLoadRes) {
return;
}
}).catch((error) => {
console.error(error);
});
this.service.search(this.fetchAction,JSON.parse(JSON.stringify(this.context)),arg,this.showBusyIndicator).then((res) => {
if (res) {
this.handleCtrlEvents('onloadsuccess', { data: res.data }).then((loadSuccessRes: boolean) => {
if (!loadSuccessRes) {
return;
}
this.transformToBasicChartSetData(res.data,(codelist:any) =>{_this.drawCharts(codelist)});
})
} else {
this.handleCtrlEvents('onloaderror').then((loadErrorRes: boolean) => {
if (!loadErrorRes) {
return;
}
// 加载失败逻辑
});
}
}).catch((error) => {
this.handleCtrlEvents('onloaderror').then((loadErrorRes: boolean) => {
if (!loadErrorRes) {
return;
}
// 加载失败逻辑
console.error(error);
});
});
})
}
/**
......
......@@ -474,13 +474,36 @@ export default class ExtendEditorChartBase extends Vue implements ControlInterfa
Object.assign(tempViewParams,JSON.parse(JSON.stringify(this.viewparams)));
Object.assign(arg,{viewparams:tempViewParams});
Object.assign(arg,{page:0,size:1000});
this.service.search(this.fetchAction,JSON.parse(JSON.stringify(this.context)),arg,this.showBusyIndicator).then((res) => {
if (res) {
this.transformToBasicChartSetData(res.data,(codelist:any) =>{_this.drawCharts(codelist)});
this.handleCtrlEvents('onbeforeload', { viewparams: arg }).then((beforeLoadRes: boolean) => {
if (!beforeLoadRes) {
return;
}
}).catch((error) => {
console.error(error);
});
this.service.search(this.fetchAction,JSON.parse(JSON.stringify(this.context)),arg,this.showBusyIndicator).then((res) => {
if (res) {
this.handleCtrlEvents('onloadsuccess', { data: res.data }).then((loadSuccessRes: boolean) => {
if (!loadSuccessRes) {
return;
}
this.transformToBasicChartSetData(res.data,(codelist:any) =>{_this.drawCharts(codelist)});
})
} else {
this.handleCtrlEvents('onloaderror').then((loadErrorRes: boolean) => {
if (!loadErrorRes) {
return;
}
// 加载失败逻辑
});
}
}).catch((error) => {
this.handleCtrlEvents('onloaderror').then((loadErrorRes: boolean) => {
if (!loadErrorRes) {
return;
}
// 加载失败逻辑
console.error(error);
});
});
})
}
/**
......
......@@ -470,13 +470,36 @@ export default class ViewChartBase extends Vue implements ControlInterface {
Object.assign(tempViewParams,JSON.parse(JSON.stringify(this.viewparams)));
Object.assign(arg,{viewparams:tempViewParams});
Object.assign(arg,{page:0,size:1000});
this.service.search(this.fetchAction,JSON.parse(JSON.stringify(this.context)),arg,this.showBusyIndicator).then((res) => {
if (res) {
this.transformToBasicChartSetData(res.data,(codelist:any) =>{_this.drawCharts(codelist)});
this.handleCtrlEvents('onbeforeload', { viewparams: arg }).then((beforeLoadRes: boolean) => {
if (!beforeLoadRes) {
return;
}
}).catch((error) => {
console.error(error);
});
this.service.search(this.fetchAction,JSON.parse(JSON.stringify(this.context)),arg,this.showBusyIndicator).then((res) => {
if (res) {
this.handleCtrlEvents('onloadsuccess', { data: res.data }).then((loadSuccessRes: boolean) => {
if (!loadSuccessRes) {
return;
}
this.transformToBasicChartSetData(res.data,(codelist:any) =>{_this.drawCharts(codelist)});
})
} else {
this.handleCtrlEvents('onloaderror').then((loadErrorRes: boolean) => {
if (!loadErrorRes) {
return;
}
// 加载失败逻辑
});
}
}).catch((error) => {
this.handleCtrlEvents('onloaderror').then((loadErrorRes: boolean) => {
if (!loadErrorRes) {
return;
}
// 加载失败逻辑
console.error(error);
});
});
})
}
/**
......
<template>
<div class="app-layoutpanel Auto1" v-loading="isLayoutLoadding" :style="{width: '100%', height: '100%', overflow: 'auto'}">
<template v-if="!isLayoutLoadding">
<div v-show="!isLayoutLoadding" :style="{height: '100%', width: '100%'}">
<app-standard-container name="container1" :isMultiContainer="false" :layoutModelDetails="layoutModelDetails">
<template #field1>
<app-panel-field name="field1" :layoutModelDetails="layoutModelDetails" :value="layoutData.field1"> <app-span name="field1" :value="layoutData.field1" :data="layoutData" :context="context" :viewparams="viewparams" :localContext='{ }' :localParam='{ }' /> </app-panel-field>
......@@ -12,7 +12,7 @@
<app-panel-field name="field3" :layoutModelDetails="layoutModelDetails" :value="layoutData.field3"> <app-span name="field3" :value="layoutData.field3" :data="layoutData" :context="context" :viewparams="viewparams" :localContext='{ }' :localParam='{ }' /> </app-panel-field>
</template>
</app-standard-container>
</template>
</div>
</div>
</template>
......@@ -314,7 +314,7 @@ export default class Auto1Base extends Vue implements ControlInterface {
* @public
* @memberof Item1layoutpanelBase
*/
public isLayoutLoadding: boolean = false;
public isLayoutLoadding: boolean = true;
/**
* 布局面板数据
......@@ -358,10 +358,10 @@ export default class Auto1Base extends Vue implements ControlInterface {
* @public
* @memberof Item1layoutpanelBase
*/
public async initLayoutItem(layoutModelItem: any, index: number = 0) {
public async initLayoutItem(layoutModelItem: any, index?: number) {
const { name } = layoutModelItem;
const layoutModelDetail = Util.getLayoutItemInstance(layoutModelItem);
if (!index) {
if (!(index || index === 0)) {
await layoutModelDetail.load(this.context, this.viewparams);
this.$set(this.layoutModelDetails, name, layoutModelDetail);
this.$set(this.layoutData, name, layoutModelDetail.getData());
......@@ -388,7 +388,7 @@ export default class Auto1Base extends Vue implements ControlInterface {
for (let i = 0; i < layoutModelDetail.details.length; i++) {
const key = layoutModelDetail.details[i];
if (this.layoutItems[key]) {
await this.initLayoutItem(this.layoutItems[key],index);
await this.initLayoutItem(this.layoutItems[key], index);
}
}
}
......@@ -515,12 +515,13 @@ export default class Auto1Base extends Vue implements ControlInterface {
* @memberof Item1layoutpanelBase
*/
public handleValueChange(args: { name: string, value: any }, index?: number) {
if (!args || !args.name || Object.is(args.name, '') || !this.layoutData.hasOwnProperty(args.name)) {
const { name, value } = args;
let fullName = (index || index === 0) ? `${name}_${index}` : name;
if (!fullName || !this.layoutData.hasOwnProperty(fullName)) {
return;
}
const { name, value } = args;
this.layoutData[name] = value;
this.layoutModelDetails[name].setData(value);
this.layoutData[fullName] = value;
this.layoutModelDetails[fullName].setData(value);
this.panelLogic(name, index);
this.computeButtonAuthState();
this.panelEditItemChange(name, value);
......@@ -557,9 +558,6 @@ export default class Auto1Base extends Vue implements ControlInterface {
* @memberof Auto1Base
*/
public panelLogic(name: string, index?: number): void {
if (name && (index || index === 0)) {
name = name.replace(`_${index}`,"");
}
}
/**
......
......@@ -711,7 +711,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
*/
public load(opt: any = {}): void {
if(!this.loadAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKCustomView_layout' + (this.$t('app.searchForm.notConfig.loadAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKUsr5GridView' + (this.$t('app.searchForm.notConfig.loadAction') as string) });
return;
}
const arg: any = { ...opt };
......@@ -747,7 +747,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
*/
public async loadDraft(opt: any = {},mode?:string): Promise<any> {
if(!this.loaddraftAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKCustomView_layout' + (this.$t('app.searchForm.notConfig.loaddraftAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKUsr5GridView' + (this.$t('app.searchForm.notConfig.loaddraftAction') as string) });
return;
}
const arg: any = { ...opt } ;
......
<template>
<div class="app-layoutpanel HasPanelKanBan" v-loading="isLayoutLoadding" :style="{width: '100%', height: '100%', overflow: 'auto'}">
<template v-if="!isLayoutLoadding">
<div v-show="!isLayoutLoadding" :style="{height: '100%', width: '100%'}">
<app-standard-container name="container1" :isMultiContainer="false" :layoutModelDetails="layoutModelDetails">
<template #srfmajortext>
<app-panel-field name="srfmajortext" :layoutModelDetails="layoutModelDetails" :value="layoutData.srfmajortext"> <app-span name="srfmajortext" :value="layoutData.srfmajortext" :data="layoutData" :context="context" :viewparams="viewparams" :localContext='{ }' :localParam='{ }' /> </app-panel-field>
......@@ -12,7 +12,7 @@
<app-panel-field name="srfdescription" :layoutModelDetails="layoutModelDetails" :value="layoutData.srfdescription"> <app-span name="srfdescription" :value="layoutData.srfdescription" :data="layoutData" :context="context" :viewparams="viewparams" :localContext='{ }' :localParam='{ }' /> </app-panel-field>
</template>
</app-standard-container>
</template>
</div>
</div>
</template>
......@@ -314,7 +314,7 @@ export default class HasPanelKanBanBase extends Vue implements ControlInterface
* @public
* @memberof ItemlayoutpanelBase
*/
public isLayoutLoadding: boolean = false;
public isLayoutLoadding: boolean = true;
/**
* 布局面板数据
......@@ -358,10 +358,10 @@ export default class HasPanelKanBanBase extends Vue implements ControlInterface
* @public
* @memberof ItemlayoutpanelBase
*/
public async initLayoutItem(layoutModelItem: any, index: number = 0) {
public async initLayoutItem(layoutModelItem: any, index?: number) {
const { name } = layoutModelItem;
const layoutModelDetail = Util.getLayoutItemInstance(layoutModelItem);
if (!index) {
if (!(index || index === 0)) {
await layoutModelDetail.load(this.context, this.viewparams);
this.$set(this.layoutModelDetails, name, layoutModelDetail);
this.$set(this.layoutData, name, layoutModelDetail.getData());
......@@ -388,7 +388,7 @@ export default class HasPanelKanBanBase extends Vue implements ControlInterface
for (let i = 0; i < layoutModelDetail.details.length; i++) {
const key = layoutModelDetail.details[i];
if (this.layoutItems[key]) {
await this.initLayoutItem(this.layoutItems[key],index);
await this.initLayoutItem(this.layoutItems[key], index);
}
}
}
......@@ -515,12 +515,13 @@ export default class HasPanelKanBanBase extends Vue implements ControlInterface
* @memberof ItemlayoutpanelBase
*/
public handleValueChange(args: { name: string, value: any }, index?: number) {
if (!args || !args.name || Object.is(args.name, '') || !this.layoutData.hasOwnProperty(args.name)) {
const { name, value } = args;
let fullName = (index || index === 0) ? `${name}_${index}` : name;
if (!fullName || !this.layoutData.hasOwnProperty(fullName)) {
return;
}
const { name, value } = args;
this.layoutData[name] = value;
this.layoutModelDetails[name].setData(value);
this.layoutData[fullName] = value;
this.layoutModelDetails[fullName].setData(value);
this.panelLogic(name, index);
this.computeButtonAuthState();
this.panelEditItemChange(name, value);
......@@ -557,9 +558,6 @@ export default class HasPanelKanBanBase extends Vue implements ControlInterface
* @memberof HasPanelKanBanBase
*/
public panelLogic(name: string, index?: number): void {
if (name && (index || index === 0)) {
name = name.replace(`_${index}`,"");
}
}
/**
......
<template>
<div class="app-layoutpanel HasPanelList" v-loading="isLayoutLoadding" :style="{width: '100%', height: '100%', overflow: 'auto'}">
<template v-if="!isLayoutLoadding">
<div v-show="!isLayoutLoadding" :style="{height: '100%', width: '100%'}">
<app-standard-container name="container1" :isMultiContainer="false" :layoutModelDetails="layoutModelDetails">
<template #bookname>
<app-panel-field name="bookname" :layoutModelDetails="layoutModelDetails" :value="layoutData.bookname"> <app-span name="bookname" :value="layoutData.bookname" :data="layoutData" :context="context" :viewparams="viewparams" :localContext='{ }' :localParam='{ }' /> </app-panel-field>
......@@ -12,7 +12,7 @@
<app-panel-field name="press" :layoutModelDetails="layoutModelDetails" :value="layoutData.press"> <app-span name="press" :value="layoutData.press" :data="layoutData" :context="context" :viewparams="viewparams" :localContext='{ }' :localParam='{ }' /> </app-panel-field>
</template>
</app-standard-container>
</template>
</div>
</div>
</template>
......@@ -314,7 +314,7 @@ export default class HasPanelListBase extends Vue implements ControlInterface {
* @public
* @memberof List_itempanelBase
*/
public isLayoutLoadding: boolean = false;
public isLayoutLoadding: boolean = true;
/**
* 布局面板数据
......@@ -358,10 +358,10 @@ export default class HasPanelListBase extends Vue implements ControlInterface {
* @public
* @memberof List_itempanelBase
*/
public async initLayoutItem(layoutModelItem: any, index: number = 0) {
public async initLayoutItem(layoutModelItem: any, index?: number) {
const { name } = layoutModelItem;
const layoutModelDetail = Util.getLayoutItemInstance(layoutModelItem);
if (!index) {
if (!(index || index === 0)) {
await layoutModelDetail.load(this.context, this.viewparams);
this.$set(this.layoutModelDetails, name, layoutModelDetail);
this.$set(this.layoutData, name, layoutModelDetail.getData());
......@@ -388,7 +388,7 @@ export default class HasPanelListBase extends Vue implements ControlInterface {
for (let i = 0; i < layoutModelDetail.details.length; i++) {
const key = layoutModelDetail.details[i];
if (this.layoutItems[key]) {
await this.initLayoutItem(this.layoutItems[key],index);
await this.initLayoutItem(this.layoutItems[key], index);
}
}
}
......@@ -515,12 +515,13 @@ export default class HasPanelListBase extends Vue implements ControlInterface {
* @memberof List_itempanelBase
*/
public handleValueChange(args: { name: string, value: any }, index?: number) {
if (!args || !args.name || Object.is(args.name, '') || !this.layoutData.hasOwnProperty(args.name)) {
const { name, value } = args;
let fullName = (index || index === 0) ? `${name}_${index}` : name;
if (!fullName || !this.layoutData.hasOwnProperty(fullName)) {
return;
}
const { name, value } = args;
this.layoutData[name] = value;
this.layoutModelDetails[name].setData(value);
this.layoutData[fullName] = value;
this.layoutModelDetails[fullName].setData(value);
this.panelLogic(name, index);
this.computeButtonAuthState();
this.panelEditItemChange(name, value);
......@@ -557,9 +558,6 @@ export default class HasPanelListBase extends Vue implements ControlInterface {
* @memberof HasPanelListBase
*/
public panelLogic(name: string, index?: number): void {
if (name && (index || index === 0)) {
name = name.replace(`_${index}`,"");
}
}
/**
......
<template>
<div class="app-layoutpanel Listpanel" v-loading="isLayoutLoadding" :style="{width: '100%', height: '100%', overflow: 'auto'}">
<template v-if="!isLayoutLoadding">
<div v-show="!isLayoutLoadding" :style="{height: '100%', width: '100%'}">
<app-standard-container name="container1" :isMultiContainer="false" :layoutModelDetails="layoutModelDetails">
<template #container4>
<app-standard-container name="container4" :isMultiContainer="false" :layoutModelDetails="layoutModelDetails">
......@@ -59,7 +59,7 @@
</app-standard-container>
</template>
</app-standard-container>
</template>
</div>
</div>
</template>
......@@ -375,7 +375,7 @@ export default class ListpanelBase extends Vue implements ControlInterface {
* @public
* @memberof List_itempanelBase
*/
public isLayoutLoadding: boolean = false;
public isLayoutLoadding: boolean = true;
/**
* 布局面板数据
......@@ -419,10 +419,10 @@ export default class ListpanelBase extends Vue implements ControlInterface {
* @public
* @memberof List_itempanelBase
*/
public async initLayoutItem(layoutModelItem: any, index: number = 0) {
public async initLayoutItem(layoutModelItem: any, index?: number) {
const { name } = layoutModelItem;
const layoutModelDetail = Util.getLayoutItemInstance(layoutModelItem);
if (!index) {
if (!(index || index === 0)) {
await layoutModelDetail.load(this.context, this.viewparams);
this.$set(this.layoutModelDetails, name, layoutModelDetail);
this.$set(this.layoutData, name, layoutModelDetail.getData());
......@@ -449,7 +449,7 @@ export default class ListpanelBase extends Vue implements ControlInterface {
for (let i = 0; i < layoutModelDetail.details.length; i++) {
const key = layoutModelDetail.details[i];
if (this.layoutItems[key]) {
await this.initLayoutItem(this.layoutItems[key],index);
await this.initLayoutItem(this.layoutItems[key], index);
}
}
}
......@@ -576,12 +576,13 @@ export default class ListpanelBase extends Vue implements ControlInterface {
* @memberof List_itempanelBase
*/
public handleValueChange(args: { name: string, value: any }, index?: number) {
if (!args || !args.name || Object.is(args.name, '') || !this.layoutData.hasOwnProperty(args.name)) {
const { name, value } = args;
let fullName = (index || index === 0) ? `${name}_${index}` : name;
if (!fullName || !this.layoutData.hasOwnProperty(fullName)) {
return;
}
const { name, value } = args;
this.layoutData[name] = value;
this.layoutModelDetails[name].setData(value);
this.layoutData[fullName] = value;
this.layoutModelDetails[fullName].setData(value);
this.panelLogic(name, index);
this.computeButtonAuthState();
this.panelEditItemChange(name, value);
......@@ -618,9 +619,6 @@ export default class ListpanelBase extends Vue implements ControlInterface {
* @memberof ListpanelBase
*/
public panelLogic(name: string, index?: number): void {
if (name && (index || index === 0)) {
name = name.replace(`_${index}`,"");
}
}
/**
......
......@@ -669,7 +669,7 @@ export default class QUICKSEARCHFORMBase extends Vue implements ControlInterface
*/
public load(opt: any = {}): void {
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;
}
const arg: any = { ...opt };
......@@ -705,7 +705,7 @@ export default class QUICKSEARCHFORMBase extends Vue implements ControlInterface
*/
public async loadDraft(opt: any = {},mode?:string): Promise<any> {
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;
}
const arg: any = { ...opt } ;
......
<template>
<div class="app-layoutpanel TestList" v-loading="isLayoutLoadding" :style="{width: '100%', height: '100%', overflow: 'auto'}">
<template v-if="!isLayoutLoadding">
<div v-show="!isLayoutLoadding" :style="{height: '100%', width: '100%'}">
<app-standard-container name="container1" :isMultiContainer="false" :layoutModelDetails="layoutModelDetails">
<template #static_label1>
<app-preset-text name="static_label1" :layoutModelDetails="layoutModelDetails"/>
......@@ -16,16 +16,16 @@
</app-standard-container>
</template>
<template #field_textbox>
<app-panel-field name="field_textbox" :layoutModelDetails="layoutModelDetails" :value="layoutData.field_textbox"> <input-box type="text" name="field_textbox" :itemValue="layoutData.field_textbox" :disabled="layoutModelDetails.field_textbox ? layoutModelDetails.field_textbox.disabled : false" @change="(value) => handleValueChange({ name: 'field_textbox', value})"> </input-box> </app-panel-field>
<app-panel-field name="field_textbox" :layoutModelDetails="layoutModelDetails" :value="layoutData.field_textbox"> <input-box type="text" name="field_textbox" :itemValue="layoutData.field_textbox" :disabled="layoutModelDetails.field_textbox ? layoutModelDetails.field_textbox.disabled : false" @change="(value) => handleValueChange({ name: 'field_textbox', value })"> </input-box> </app-panel-field>
</template>
<template #field_textbox1>
<app-panel-field name="field_textbox1" :layoutModelDetails="layoutModelDetails" :value="layoutData.field_textbox1"> <input-box type="text" name="field_textbox1" :itemValue="layoutData.field_textbox1" :disabled="layoutModelDetails.field_textbox1 ? layoutModelDetails.field_textbox1.disabled : false" @change="(value) => handleValueChange({ name: 'field_textbox1', value})"> </input-box> </app-panel-field>
<app-panel-field name="field_textbox1" :layoutModelDetails="layoutModelDetails" :value="layoutData.field_textbox1"> <input-box type="text" name="field_textbox1" :itemValue="layoutData.field_textbox1" :disabled="layoutModelDetails.field_textbox1 ? layoutModelDetails.field_textbox1.disabled : false" @change="(value) => handleValueChange({ name: 'field_textbox1', value })"> </input-box> </app-panel-field>
</template>
<template #field_textbox2>
<app-panel-field name="field_textbox2" :layoutModelDetails="layoutModelDetails" :value="layoutData.field_textbox2"> <input-box type="text" name="field_textbox2" :itemValue="layoutData.field_textbox2" :disabled="layoutModelDetails.field_textbox2 ? layoutModelDetails.field_textbox2.disabled : false" @change="(value) => handleValueChange({ name: 'field_textbox2', value})"> </input-box> </app-panel-field>
<app-panel-field name="field_textbox2" :layoutModelDetails="layoutModelDetails" :value="layoutData.field_textbox2"> <input-box type="text" name="field_textbox2" :itemValue="layoutData.field_textbox2" :disabled="layoutModelDetails.field_textbox2 ? layoutModelDetails.field_textbox2.disabled : false" @change="(value) => handleValueChange({ name: 'field_textbox2', value })"> </input-box> </app-panel-field>
</template>
</app-standard-container>
</template>
</div>
</div>
</template>
......@@ -331,7 +331,7 @@ export default class TestListBase extends Vue implements ControlInterface {
* @public
* @memberof List_itempanelBase
*/
public isLayoutLoadding: boolean = false;
public isLayoutLoadding: boolean = true;
/**
* 布局面板数据
......@@ -375,10 +375,10 @@ export default class TestListBase extends Vue implements ControlInterface {
* @public
* @memberof List_itempanelBase
*/
public async initLayoutItem(layoutModelItem: any, index: number = 0) {
public async initLayoutItem(layoutModelItem: any, index?: number) {
const { name } = layoutModelItem;
const layoutModelDetail = Util.getLayoutItemInstance(layoutModelItem);
if (!index) {
if (!(index || index === 0)) {
await layoutModelDetail.load(this.context, this.viewparams);
this.$set(this.layoutModelDetails, name, layoutModelDetail);
this.$set(this.layoutData, name, layoutModelDetail.getData());
......@@ -405,7 +405,7 @@ export default class TestListBase extends Vue implements ControlInterface {
for (let i = 0; i < layoutModelDetail.details.length; i++) {
const key = layoutModelDetail.details[i];
if (this.layoutItems[key]) {
await this.initLayoutItem(this.layoutItems[key],index);
await this.initLayoutItem(this.layoutItems[key], index);
}
}
}
......@@ -532,12 +532,13 @@ export default class TestListBase extends Vue implements ControlInterface {
* @memberof List_itempanelBase
*/
public handleValueChange(args: { name: string, value: any }, index?: number) {
if (!args || !args.name || Object.is(args.name, '') || !this.layoutData.hasOwnProperty(args.name)) {
const { name, value } = args;
let fullName = (index || index === 0) ? `${name}_${index}` : name;
if (!fullName || !this.layoutData.hasOwnProperty(fullName)) {
return;
}
const { name, value } = args;
this.layoutData[name] = value;
this.layoutModelDetails[name].setData(value);
this.layoutData[fullName] = value;
this.layoutModelDetails[fullName].setData(value);
this.panelLogic(name, index);
this.computeButtonAuthState();
this.panelEditItemChange(name, value);
......@@ -574,16 +575,11 @@ export default class TestListBase extends Vue implements ControlInterface {
* @memberof TestListBase
*/
public panelLogic(name: string, index?: number): void {
if (name && (index || index === 0)) {
name = name.replace(`_${index}`,"");
}
if (Object.is(name, '') || Object.is(name, 'field_textbox2')) {
let ret = true;
let _field_textbox2 = '';
let _field_textbox2 = this.layoutData['field_textbox2'];
if (index || index === 0) {
_field_textbox2 = this.layoutData[`field_textbox2_${index}`];
} else {
_field_textbox2 = this.layoutData['field_textbox2'];
}
if (this.$verify.testCond(_field_textbox2, "EQ", "3")) {
ret = false;
......@@ -596,11 +592,9 @@ export default class TestListBase extends Vue implements ControlInterface {
}
if (Object.is(name, '') || Object.is(name, 'field_textbox2')) {
let ret = false;
let _field_textbox2 = '';
let _field_textbox2 = this.layoutData['field_textbox2'];
if (index || index === 0) {
_field_textbox2 = this.layoutData[`field_textbox2_${index}`];
} else {
_field_textbox2 = this.layoutData['field_textbox2'];
}
if (this.$verify.testCond(_field_textbox2, "EQ", "2")) {
ret = true;
......@@ -613,11 +607,9 @@ export default class TestListBase extends Vue implements ControlInterface {
}
if (Object.is(name, '') || Object.is(name, 'field_textbox1')) {
let ret = false;
let _field_textbox1 = '';
let _field_textbox1 = this.layoutData['field_textbox1'];
if (index || index === 0) {
_field_textbox1 = this.layoutData[`field_textbox1_${index}`];
} else {
_field_textbox1 = this.layoutData['field_textbox1'];
}
if (this.$verify.testCond(_field_textbox1, "EQ", "1")) {
ret = true;
......
<template>
<div class="app-layoutpanel TIMELINEITEMLAYOUTPANEL" v-loading="isLayoutLoadding" :style="{width: '100%', height: '100%', overflow: 'auto'}">
<template v-if="!isLayoutLoadding">
<div v-show="!isLayoutLoadding" :style="{height: '100%', width: '100%'}">
<app-standard-container name="container1" :isMultiContainer="false" :layoutModelDetails="layoutModelDetails">
</app-standard-container>
</template>
</div>
</div>
</template>
......@@ -302,7 +302,7 @@ export default class TIMELINEITEMLAYOUTPANELBase extends Vue implements ControlI
* @public
* @memberof ItemlayoutpanelBase
*/
public isLayoutLoadding: boolean = false;
public isLayoutLoadding: boolean = true;
/**
* 布局面板数据
......@@ -346,10 +346,10 @@ export default class TIMELINEITEMLAYOUTPANELBase extends Vue implements ControlI
* @public
* @memberof ItemlayoutpanelBase
*/
public async initLayoutItem(layoutModelItem: any, index: number = 0) {
public async initLayoutItem(layoutModelItem: any, index?: number) {
const { name } = layoutModelItem;
const layoutModelDetail = Util.getLayoutItemInstance(layoutModelItem);
if (!index) {
if (!(index || index === 0)) {
await layoutModelDetail.load(this.context, this.viewparams);
this.$set(this.layoutModelDetails, name, layoutModelDetail);
this.$set(this.layoutData, name, layoutModelDetail.getData());
......@@ -376,7 +376,7 @@ export default class TIMELINEITEMLAYOUTPANELBase extends Vue implements ControlI
for (let i = 0; i < layoutModelDetail.details.length; i++) {
const key = layoutModelDetail.details[i];
if (this.layoutItems[key]) {
await this.initLayoutItem(this.layoutItems[key],index);
await this.initLayoutItem(this.layoutItems[key], index);
}
}
}
......@@ -503,12 +503,13 @@ export default class TIMELINEITEMLAYOUTPANELBase extends Vue implements ControlI
* @memberof ItemlayoutpanelBase
*/
public handleValueChange(args: { name: string, value: any }, index?: number) {
if (!args || !args.name || Object.is(args.name, '') || !this.layoutData.hasOwnProperty(args.name)) {
const { name, value } = args;
let fullName = (index || index === 0) ? `${name}_${index}` : name;
if (!fullName || !this.layoutData.hasOwnProperty(fullName)) {
return;
}
const { name, value } = args;
this.layoutData[name] = value;
this.layoutModelDetails[name].setData(value);
this.layoutData[fullName] = value;
this.layoutModelDetails[fullName].setData(value);
this.panelLogic(name, index);
this.computeButtonAuthState();
this.panelEditItemChange(name, value);
......@@ -545,9 +546,6 @@ export default class TIMELINEITEMLAYOUTPANELBase extends Vue implements ControlI
* @memberof TIMELINEITEMLAYOUTPANELBase
*/
public panelLogic(name: string, index?: number): void {
if (name && (index || index === 0)) {
name = name.replace(`_${index}`,"");
}
}
/**
......
<template>
<div class="app-layoutpanel Usr" v-loading="isLayoutLoadding" :style="{width: '100%', height: '100%', overflow: 'auto'}">
<template v-if="!isLayoutLoadding">
<div v-show="!isLayoutLoadding" :style="{height: '100%', width: '100%'}">
<app-standard-container name="container1" :isMultiContainer="false" :layoutModelDetails="layoutModelDetails">
</app-standard-container>
</template>
</div>
</div>
</template>
......@@ -302,7 +302,7 @@ export default class UsrBase extends Vue implements ControlInterface {
* @public
* @memberof List_itempanelBase
*/
public isLayoutLoadding: boolean = false;
public isLayoutLoadding: boolean = true;
/**
* 布局面板数据
......@@ -346,10 +346,10 @@ export default class UsrBase extends Vue implements ControlInterface {
* @public
* @memberof List_itempanelBase
*/
public async initLayoutItem(layoutModelItem: any, index: number = 0) {
public async initLayoutItem(layoutModelItem: any, index?: number) {
const { name } = layoutModelItem;
const layoutModelDetail = Util.getLayoutItemInstance(layoutModelItem);
if (!index) {
if (!(index || index === 0)) {
await layoutModelDetail.load(this.context, this.viewparams);
this.$set(this.layoutModelDetails, name, layoutModelDetail);
this.$set(this.layoutData, name, layoutModelDetail.getData());
......@@ -376,7 +376,7 @@ export default class UsrBase extends Vue implements ControlInterface {
for (let i = 0; i < layoutModelDetail.details.length; i++) {
const key = layoutModelDetail.details[i];
if (this.layoutItems[key]) {
await this.initLayoutItem(this.layoutItems[key],index);
await this.initLayoutItem(this.layoutItems[key], index);
}
}
}
......@@ -503,12 +503,13 @@ export default class UsrBase extends Vue implements ControlInterface {
* @memberof List_itempanelBase
*/
public handleValueChange(args: { name: string, value: any }, index?: number) {
if (!args || !args.name || Object.is(args.name, '') || !this.layoutData.hasOwnProperty(args.name)) {
const { name, value } = args;
let fullName = (index || index === 0) ? `${name}_${index}` : name;
if (!fullName || !this.layoutData.hasOwnProperty(fullName)) {
return;
}
const { name, value } = args;
this.layoutData[name] = value;
this.layoutModelDetails[name].setData(value);
this.layoutData[fullName] = value;
this.layoutModelDetails[fullName].setData(value);
this.panelLogic(name, index);
this.computeButtonAuthState();
this.panelEditItemChange(name, value);
......@@ -545,9 +546,6 @@ export default class UsrBase extends Vue implements ControlInterface {
* @memberof UsrBase
*/
public panelLogic(name: string, index?: number): void {
if (name && (index || index === 0)) {
name = name.replace(`_${index}`,"");
}
}
/**
......
<template>
<div class="app-layoutpanel Usr4" v-loading="isLayoutLoadding" :style="{width: '100%', height: '100%', overflow: 'auto'}">
<template v-if="!isLayoutLoadding">
<div v-show="!isLayoutLoadding" :style="{height: '100%', width: '100%'}">
<app-standard-container name="container1" :isMultiContainer="false" :layoutModelDetails="layoutModelDetails">
<template #author>
<app-panel-field name="author" :layoutModelDetails="layoutModelDetails" :value="layoutData.author"> <app-span name="author" :value="layoutData.author" :data="layoutData" :context="context" :viewparams="viewparams" :localContext='{ }' :localParam='{ }' /> </app-panel-field>
......@@ -12,7 +12,7 @@
<app-panel-field name="bookname" :layoutModelDetails="layoutModelDetails" :value="layoutData.bookname"> <app-span name="bookname" :value="layoutData.bookname" :data="layoutData" :context="context" :viewparams="viewparams" :localContext='{ }' :localParam='{ }' /> </app-panel-field>
</template>
</app-standard-container>
</template>
</div>
</div>
</template>
......@@ -314,7 +314,7 @@ export default class Usr4Base extends Vue implements ControlInterface {
* @public
* @memberof ItemlayoutpanelBase
*/
public isLayoutLoadding: boolean = false;
public isLayoutLoadding: boolean = true;
/**
* 布局面板数据
......@@ -358,10 +358,10 @@ export default class Usr4Base extends Vue implements ControlInterface {
* @public
* @memberof ItemlayoutpanelBase
*/
public async initLayoutItem(layoutModelItem: any, index: number = 0) {
public async initLayoutItem(layoutModelItem: any, index?: number) {
const { name } = layoutModelItem;
const layoutModelDetail = Util.getLayoutItemInstance(layoutModelItem);
if (!index) {
if (!(index || index === 0)) {
await layoutModelDetail.load(this.context, this.viewparams);
this.$set(this.layoutModelDetails, name, layoutModelDetail);
this.$set(this.layoutData, name, layoutModelDetail.getData());
......@@ -388,7 +388,7 @@ export default class Usr4Base extends Vue implements ControlInterface {
for (let i = 0; i < layoutModelDetail.details.length; i++) {
const key = layoutModelDetail.details[i];
if (this.layoutItems[key]) {
await this.initLayoutItem(this.layoutItems[key],index);
await this.initLayoutItem(this.layoutItems[key], index);
}
}
}
......@@ -515,12 +515,13 @@ export default class Usr4Base extends Vue implements ControlInterface {
* @memberof ItemlayoutpanelBase
*/
public handleValueChange(args: { name: string, value: any }, index?: number) {
if (!args || !args.name || Object.is(args.name, '') || !this.layoutData.hasOwnProperty(args.name)) {
const { name, value } = args;
let fullName = (index || index === 0) ? `${name}_${index}` : name;
if (!fullName || !this.layoutData.hasOwnProperty(fullName)) {
return;
}
const { name, value } = args;
this.layoutData[name] = value;
this.layoutModelDetails[name].setData(value);
this.layoutData[fullName] = value;
this.layoutModelDetails[fullName].setData(value);
this.panelLogic(name, index);
this.computeButtonAuthState();
this.panelEditItemChange(name, value);
......@@ -557,9 +558,6 @@ export default class Usr4Base extends Vue implements ControlInterface {
* @memberof Usr4Base
*/
public panelLogic(name: string, index?: number): void {
if (name && (index || index === 0)) {
name = name.replace(`_${index}`,"");
}
}
/**
......
<template>
<div class="app-layoutpanel Usr5" v-loading="isLayoutLoadding" :style="{width: '100%', height: '100%', overflow: 'auto'}">
<template v-if="!isLayoutLoadding">
<div v-show="!isLayoutLoadding" :style="{height: '100%', width: '100%'}">
<app-standard-container name="container1" :isMultiContainer="false" :layoutModelDetails="layoutModelDetails">
</app-standard-container>
</template>
</div>
</div>
</template>
......@@ -302,7 +302,7 @@ export default class Usr5Base extends Vue implements ControlInterface {
* @public
* @memberof ItemlayoutpanelBase
*/
public isLayoutLoadding: boolean = false;
public isLayoutLoadding: boolean = true;
/**
* 布局面板数据
......@@ -346,10 +346,10 @@ export default class Usr5Base extends Vue implements ControlInterface {
* @public
* @memberof ItemlayoutpanelBase
*/
public async initLayoutItem(layoutModelItem: any, index: number = 0) {
public async initLayoutItem(layoutModelItem: any, index?: number) {
const { name } = layoutModelItem;
const layoutModelDetail = Util.getLayoutItemInstance(layoutModelItem);
if (!index) {
if (!(index || index === 0)) {
await layoutModelDetail.load(this.context, this.viewparams);
this.$set(this.layoutModelDetails, name, layoutModelDetail);
this.$set(this.layoutData, name, layoutModelDetail.getData());
......@@ -376,7 +376,7 @@ export default class Usr5Base extends Vue implements ControlInterface {
for (let i = 0; i < layoutModelDetail.details.length; i++) {
const key = layoutModelDetail.details[i];
if (this.layoutItems[key]) {
await this.initLayoutItem(this.layoutItems[key],index);
await this.initLayoutItem(this.layoutItems[key], index);
}
}
}
......@@ -503,12 +503,13 @@ export default class Usr5Base extends Vue implements ControlInterface {
* @memberof ItemlayoutpanelBase
*/
public handleValueChange(args: { name: string, value: any }, index?: number) {
if (!args || !args.name || Object.is(args.name, '') || !this.layoutData.hasOwnProperty(args.name)) {
const { name, value } = args;
let fullName = (index || index === 0) ? `${name}_${index}` : name;
if (!fullName || !this.layoutData.hasOwnProperty(fullName)) {
return;
}
const { name, value } = args;
this.layoutData[name] = value;
this.layoutModelDetails[name].setData(value);
this.layoutData[fullName] = value;
this.layoutModelDetails[fullName].setData(value);
this.panelLogic(name, index);
this.computeButtonAuthState();
this.panelEditItemChange(name, value);
......@@ -545,9 +546,6 @@ export default class Usr5Base extends Vue implements ControlInterface {
* @memberof Usr5Base
*/
public panelLogic(name: string, index?: number): void {
if (name && (index || index === 0)) {
name = name.replace(`_${index}`,"");
}
}
/**
......
......@@ -470,13 +470,36 @@ export default class HistogramBase extends Vue implements ControlInterface {
Object.assign(tempViewParams,JSON.parse(JSON.stringify(this.viewparams)));
Object.assign(arg,{viewparams:tempViewParams});
Object.assign(arg,{page:0,size:1000});
this.service.search(this.fetchAction,JSON.parse(JSON.stringify(this.context)),arg,this.showBusyIndicator).then((res) => {
if (res) {
this.transformToBasicChartSetData(res.data,(codelist:any) =>{_this.drawCharts(codelist)});
this.handleCtrlEvents('onbeforeload', { viewparams: arg }).then((beforeLoadRes: boolean) => {
if (!beforeLoadRes) {
return;
}
}).catch((error) => {
console.error(error);
});
this.service.search(this.fetchAction,JSON.parse(JSON.stringify(this.context)),arg,this.showBusyIndicator).then((res) => {
if (res) {
this.handleCtrlEvents('onloadsuccess', { data: res.data }).then((loadSuccessRes: boolean) => {
if (!loadSuccessRes) {
return;
}
this.transformToBasicChartSetData(res.data,(codelist:any) =>{_this.drawCharts(codelist)});
})
} else {
this.handleCtrlEvents('onloaderror').then((loadErrorRes: boolean) => {
if (!loadErrorRes) {
return;
}
// 加载失败逻辑
});
}
}).catch((error) => {
this.handleCtrlEvents('onloaderror').then((loadErrorRes: boolean) => {
if (!loadErrorRes) {
return;
}
// 加载失败逻辑
console.error(error);
});
});
})
}
/**
......
......@@ -473,13 +473,36 @@ export default class AreaBase extends Vue implements ControlInterface {
Object.assign(arg,{viewparams:tempViewParams});
Object.assign(arg,{page:0,size:1000});
Object.assign(arg,{sort: 'orderstate,asc'});
this.service.search(this.fetchAction,JSON.parse(JSON.stringify(this.context)),arg,this.showBusyIndicator).then((res) => {
if (res) {
this.transformToBasicChartSetData(res.data,(codelist:any) =>{_this.drawCharts(codelist)});
this.handleCtrlEvents('onbeforeload', { viewparams: arg }).then((beforeLoadRes: boolean) => {
if (!beforeLoadRes) {
return;
}
}).catch((error) => {
console.error(error);
});
this.service.search(this.fetchAction,JSON.parse(JSON.stringify(this.context)),arg,this.showBusyIndicator).then((res) => {
if (res) {
this.handleCtrlEvents('onloadsuccess', { data: res.data }).then((loadSuccessRes: boolean) => {
if (!loadSuccessRes) {
return;
}
this.transformToBasicChartSetData(res.data,(codelist:any) =>{_this.drawCharts(codelist)});
})
} else {
this.handleCtrlEvents('onloaderror').then((loadErrorRes: boolean) => {
if (!loadErrorRes) {
return;
}
// 加载失败逻辑
});
}
}).catch((error) => {
this.handleCtrlEvents('onloaderror').then((loadErrorRes: boolean) => {
if (!loadErrorRes) {
return;
}
// 加载失败逻辑
console.error(error);
});
});
})
}
/**
......
......@@ -470,13 +470,36 @@ export default class BarBase extends Vue implements ControlInterface {
Object.assign(tempViewParams,JSON.parse(JSON.stringify(this.viewparams)));
Object.assign(arg,{viewparams:tempViewParams});
Object.assign(arg,{page:0,size:1000});
this.service.search(this.fetchAction,JSON.parse(JSON.stringify(this.context)),arg,this.showBusyIndicator).then((res) => {
if (res) {
this.transformToBasicChartSetData(res.data,(codelist:any) =>{_this.drawCharts(codelist)});
this.handleCtrlEvents('onbeforeload', { viewparams: arg }).then((beforeLoadRes: boolean) => {
if (!beforeLoadRes) {
return;
}
}).catch((error) => {
console.error(error);
});
this.service.search(this.fetchAction,JSON.parse(JSON.stringify(this.context)),arg,this.showBusyIndicator).then((res) => {
if (res) {
this.handleCtrlEvents('onloadsuccess', { data: res.data }).then((loadSuccessRes: boolean) => {
if (!loadSuccessRes) {
return;
}
this.transformToBasicChartSetData(res.data,(codelist:any) =>{_this.drawCharts(codelist)});
})
} else {
this.handleCtrlEvents('onloaderror').then((loadErrorRes: boolean) => {
if (!loadErrorRes) {
return;
}
// 加载失败逻辑
});
}
}).catch((error) => {
this.handleCtrlEvents('onloaderror').then((loadErrorRes: boolean) => {
if (!loadErrorRes) {
return;
}
// 加载失败逻辑
console.error(error);
});
});
})
}
/**
......
......@@ -674,7 +674,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
*/
public load(opt: any = {}): void {
if(!this.loadAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderPickupGridView' + (this.$t('app.searchForm.notConfig.loadAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderPieChartView' + (this.$t('app.searchForm.notConfig.loadAction') as string) });
return;
}
const arg: any = { ...opt };
......@@ -710,7 +710,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
*/
public async loadDraft(opt: any = {},mode?:string): Promise<any> {
if(!this.loaddraftAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderPickupGridView' + (this.$t('app.searchForm.notConfig.loaddraftAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderPieChartView' + (this.$t('app.searchForm.notConfig.loaddraftAction') as string) });
return;
}
const arg: any = { ...opt } ;
......
......@@ -475,13 +475,36 @@ export default class LineBase extends Vue implements ControlInterface {
Object.assign(tempViewParams,JSON.parse(JSON.stringify(this.viewparams)));
Object.assign(arg,{viewparams:tempViewParams});
Object.assign(arg,{page:0,size:1000});
this.service.search(this.fetchAction,JSON.parse(JSON.stringify(this.context)),arg,this.showBusyIndicator).then((res) => {
if (res) {
this.transformToBasicChartSetData(res.data,(codelist:any) =>{_this.drawCharts(codelist)});
this.handleCtrlEvents('onbeforeload', { viewparams: arg }).then((beforeLoadRes: boolean) => {
if (!beforeLoadRes) {
return;
}
}).catch((error) => {
console.error(error);
});
this.service.search(this.fetchAction,JSON.parse(JSON.stringify(this.context)),arg,this.showBusyIndicator).then((res) => {
if (res) {
this.handleCtrlEvents('onloadsuccess', { data: res.data }).then((loadSuccessRes: boolean) => {
if (!loadSuccessRes) {
return;
}
this.transformToBasicChartSetData(res.data,(codelist:any) =>{_this.drawCharts(codelist)});
})
} else {
this.handleCtrlEvents('onloaderror').then((loadErrorRes: boolean) => {
if (!loadErrorRes) {
return;
}
// 加载失败逻辑
});
}
}).catch((error) => {
this.handleCtrlEvents('onloaderror').then((loadErrorRes: boolean) => {
if (!loadErrorRes) {
return;
}
// 加载失败逻辑
console.error(error);
});
});
})
}
/**
......
......@@ -600,7 +600,7 @@ export default class ListExpBase extends Vue implements ControlInterface {
*/
public async load(opt: any = {}): Promise<any> {
if(!this.fetchAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderListExpView' + (this.$t('app.list.notConfig.fetchAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderListExpView_layout' + (this.$t('app.list.notConfig.fetchAction') as string) });
return;
}
const arg: any = {...opt};
......@@ -730,7 +730,7 @@ export default class ListExpBase extends Vue implements ControlInterface {
*/
public async remove(datas: any[]): Promise<any> {
if(!this.removeAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderListExpView' + (this.$t('app.list.notConfig.removeAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderListExpView_layout' + (this.$t('app.list.notConfig.removeAction') as string) });
return;
}
if (datas.length === 0) {
......@@ -835,7 +835,7 @@ export default class ListExpBase extends Vue implements ControlInterface {
try {
if(Object.is(item.rowDataState, 'create')){
if(!this.createAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderListExpView' + (this.$t('app.list.notConfig.createAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderListExpView_layout' + (this.$t('app.list.notConfig.createAction') as string) });
}else{
Object.assign(item,{viewparams:this.viewparams});
let response = await this.service.add(this.createAction, JSON.parse(JSON.stringify(this.context)),item, this.showBusyIndicator);
......@@ -843,7 +843,7 @@ export default class ListExpBase extends Vue implements ControlInterface {
}
}else if(Object.is(item.rowDataState, 'update')){
if(!this.updateAction){
this.$Notice.error({ title: (this.$t('app.commonWords.warning') as string), desc: 'IBIZOrderListExpView' + (this.$t('app.list.notConfig.updateAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.warning') as string), desc: 'IBIZOrderListExpView_layout' + (this.$t('app.list.notConfig.updateAction') as string) });
}else{
Object.assign(item,{viewparams:this.viewparams});
if(item.ibizorder){
......
......@@ -451,13 +451,36 @@ export default class PieBase extends Vue implements ControlInterface {
Object.assign(tempViewParams,JSON.parse(JSON.stringify(this.viewparams)));
Object.assign(arg,{viewparams:tempViewParams});
Object.assign(arg,{page:0,size:1000});
this.service.search(this.fetchAction,JSON.parse(JSON.stringify(this.context)),arg,this.showBusyIndicator).then((res) => {
if (res) {
this.transformToBasicChartSetData(res.data,(codelist:any) =>{_this.drawCharts(codelist)});
this.handleCtrlEvents('onbeforeload', { viewparams: arg }).then((beforeLoadRes: boolean) => {
if (!beforeLoadRes) {
return;
}
}).catch((error) => {
console.error(error);
});
this.service.search(this.fetchAction,JSON.parse(JSON.stringify(this.context)),arg,this.showBusyIndicator).then((res) => {
if (res) {
this.handleCtrlEvents('onloadsuccess', { data: res.data }).then((loadSuccessRes: boolean) => {
if (!loadSuccessRes) {
return;
}
this.transformToBasicChartSetData(res.data,(codelist:any) =>{_this.drawCharts(codelist)});
})
} else {
this.handleCtrlEvents('onloaderror').then((loadErrorRes: boolean) => {
if (!loadErrorRes) {
return;
}
// 加载失败逻辑
});
}
}).catch((error) => {
this.handleCtrlEvents('onloaderror').then((loadErrorRes: boolean) => {
if (!loadErrorRes) {
return;
}
// 加载失败逻辑
console.error(error);
});
});
})
}
/**
......
......@@ -426,13 +426,36 @@ export default class RadarBase extends Vue implements ControlInterface {
Object.assign(tempViewParams,JSON.parse(JSON.stringify(this.viewparams)));
Object.assign(arg,{viewparams:tempViewParams});
Object.assign(arg,{page:0,size:1000});
this.service.search(this.fetchAction,JSON.parse(JSON.stringify(this.context)),arg,this.showBusyIndicator).then((res) => {
if (res) {
this.transformToBasicChartSetData(res.data,(codelist:any) =>{_this.drawCharts(codelist)});
this.handleCtrlEvents('onbeforeload', { viewparams: arg }).then((beforeLoadRes: boolean) => {
if (!beforeLoadRes) {
return;
}
}).catch((error) => {
console.error(error);
});
this.service.search(this.fetchAction,JSON.parse(JSON.stringify(this.context)),arg,this.showBusyIndicator).then((res) => {
if (res) {
this.handleCtrlEvents('onloadsuccess', { data: res.data }).then((loadSuccessRes: boolean) => {
if (!loadSuccessRes) {
return;
}
this.transformToBasicChartSetData(res.data,(codelist:any) =>{_this.drawCharts(codelist)});
})
} else {
this.handleCtrlEvents('onloaderror').then((loadErrorRes: boolean) => {
if (!loadErrorRes) {
return;
}
// 加载失败逻辑
});
}
}).catch((error) => {
this.handleCtrlEvents('onloaderror').then((loadErrorRes: boolean) => {
if (!loadErrorRes) {
return;
}
// 加载失败逻辑
console.error(error);
});
});
})
}
/**
......
......@@ -474,13 +474,36 @@ export default class UsrBase extends Vue implements ControlInterface {
Object.assign(arg,{viewparams:tempViewParams});
Object.assign(arg,{page:0,size:1000});
Object.assign(arg,{sort: 'orderstate,asc'});
this.service.search(this.fetchAction,JSON.parse(JSON.stringify(this.context)),arg,this.showBusyIndicator).then((res) => {
if (res) {
this.transformToBasicChartSetData(res.data,(codelist:any) =>{_this.drawCharts(codelist)});
this.handleCtrlEvents('onbeforeload', { viewparams: arg }).then((beforeLoadRes: boolean) => {
if (!beforeLoadRes) {
return;
}
}).catch((error) => {
console.error(error);
});
this.service.search(this.fetchAction,JSON.parse(JSON.stringify(this.context)),arg,this.showBusyIndicator).then((res) => {
if (res) {
this.handleCtrlEvents('onloadsuccess', { data: res.data }).then((loadSuccessRes: boolean) => {
if (!loadSuccessRes) {
return;
}
this.transformToBasicChartSetData(res.data,(codelist:any) =>{_this.drawCharts(codelist)});
})
} else {
this.handleCtrlEvents('onloaderror').then((loadErrorRes: boolean) => {
if (!loadErrorRes) {
return;
}
// 加载失败逻辑
});
}
}).catch((error) => {
this.handleCtrlEvents('onloaderror').then((loadErrorRes: boolean) => {
if (!loadErrorRes) {
return;
}
// 加载失败逻辑
console.error(error);
});
});
})
}
/**
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册