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

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

上级 763ea8ac
...@@ -496,16 +496,18 @@ export default class IBIZBOOKGridLoadCustomViewBase extends Vue { ...@@ -496,16 +496,18 @@ export default class IBIZBOOKGridLoadCustomViewBase extends Vue {
const contextJO: any = {}; const contextJO: any = {};
const _this: any = this; const _this: any = this;
if (Object.is(name, 'button_calluilogic1')) { if (Object.is(name, 'button_calluilogic1')) {
const UIService = await window.uiServiceRegister.getService('IBIZBOOK'); window.uiServiceRegister.getService('ibizbook').then((UIService: any) => {
if (UIService && UIService[`IBIZBOOK_panel_Usr1109586119_button_calluilogic1_click`] && UIService[`IBIZBOOK_panel_Usr1109586119_button_calluilogic1_click`] instanceof Function) { if (UIService && UIService[`IBIZBOOK_panel_Usr1109586119_button_calluilogic1_click`] && UIService[`IBIZBOOK_panel_Usr1109586119_button_calluilogic1_click`] instanceof Function) {
UIService[`IBIZBOOK_panel_Usr1109586119_button_calluilogic1_click`](datas, contextJO, paramJO, $event, xData, this, undefined); UIService[`IBIZBOOK_panel_Usr1109586119_button_calluilogic1_click`](datas, contextJO, paramJO, $event, xData, this, undefined);
} }
})
} }
if (Object.is(name, 'button_calluilogic2')) { if (Object.is(name, 'button_calluilogic2')) {
const UIService = await window.uiServiceRegister.getService('IBIZBOOK'); window.uiServiceRegister.getService('ibizbook').then((UIService: any) => {
if (UIService && UIService[`IBIZBOOK_panel_Usr1109586119_button_calluilogic2_click`] && UIService[`IBIZBOOK_panel_Usr1109586119_button_calluilogic2_click`] instanceof Function) { if (UIService && UIService[`IBIZBOOK_panel_Usr1109586119_button_calluilogic2_click`] && UIService[`IBIZBOOK_panel_Usr1109586119_button_calluilogic2_click`] instanceof Function) {
UIService[`IBIZBOOK_panel_Usr1109586119_button_calluilogic2_click`](datas, contextJO, paramJO, $event, xData, this, undefined); UIService[`IBIZBOOK_panel_Usr1109586119_button_calluilogic2_click`](datas, contextJO, paramJO, $event, xData, this, undefined);
} }
})
} }
} }
......
...@@ -482,10 +482,11 @@ export default class AppIndexViewBase extends Vue { ...@@ -482,10 +482,11 @@ export default class AppIndexViewBase extends Vue {
_this.panel_Usr1102678360_button_openview_click(datas, contextJO, paramJO, $event, xData, this, undefined); _this.panel_Usr1102678360_button_openview_click(datas, contextJO, paramJO, $event, xData, this, undefined);
} }
if (Object.is(name, 'button_calluilogic2')) { if (Object.is(name, 'button_calluilogic2')) {
const UIService = await window.uiServiceRegister.getService('IBIZBOOK'); window.uiServiceRegister.getService('ibizbook').then((UIService: any) => {
if (UIService && UIService[`IBIZBOOK_openDocument`] && UIService[`IBIZBOOK_openDocument`] instanceof Function) { if (UIService && UIService[`IBIZBOOK_openDocument`] && UIService[`IBIZBOOK_openDocument`] instanceof Function) {
UIService[`IBIZBOOK_openDocument`](datas, contextJO, paramJO, $event, xData, this, undefined); UIService[`IBIZBOOK_openDocument`](datas, contextJO, paramJO, $event, xData, this, undefined);
} }
})
} }
if (Object.is(name, 'button_calluilogic3')) { if (Object.is(name, 'button_calluilogic3')) {
_this.panel_Usr1102678360_button_calluilogic3_click(datas, contextJO, paramJO, $event, xData, this, undefined); _this.panel_Usr1102678360_button_calluilogic3_click(datas, contextJO, paramJO, $event, xData, this, undefined);
...@@ -506,10 +507,11 @@ export default class AppIndexViewBase extends Vue { ...@@ -506,10 +507,11 @@ export default class AppIndexViewBase extends Vue {
_this.panel_Usr1102678360_button_calluilogic10_click(datas, contextJO, paramJO, $event, xData, this, undefined); _this.panel_Usr1102678360_button_calluilogic10_click(datas, contextJO, paramJO, $event, xData, this, undefined);
} }
if (Object.is(name, 'open_yuque')) { if (Object.is(name, 'open_yuque')) {
const UIService = await window.uiServiceRegister.getService('IBIZOrder'); window.uiServiceRegister.getService('ibizorder').then((UIService: any) => {
if (UIService && UIService[`IBIZOrder_panel_Usr1102678360_open_yuque_click`] && UIService[`IBIZOrder_panel_Usr1102678360_open_yuque_click`] instanceof Function) { if (UIService && UIService[`IBIZOrder_panel_Usr1102678360_open_yuque_click`] && UIService[`IBIZOrder_panel_Usr1102678360_open_yuque_click`] instanceof Function) {
UIService[`IBIZOrder_panel_Usr1102678360_open_yuque_click`](datas, contextJO, paramJO, $event, xData, this, undefined); UIService[`IBIZOrder_panel_Usr1102678360_open_yuque_click`](datas, contextJO, paramJO, $event, xData, this, undefined);
} }
})
} }
} }
......
...@@ -217,9 +217,27 @@ export default class CustomEditUILogicBase { ...@@ -217,9 +217,27 @@ export default class CustomEditUILogicBase {
* @memberof CustomEditUILogicBase * @memberof CustomEditUILogicBase
*/ */
protected async execute_deuiaction1_node(actionContext: UIActionContext) { protected async execute_deuiaction1_node(actionContext: UIActionContext) {
const data = actionContext.defaultParam.getReal(); const data = actionContext.getParam('SA.SRFDA.PS.Core.DataEntity.Logic.PSDEUILogicParamImpl@cd1940.codeName');
const { context, viewparams } = actionContext; const { context, viewparams } = actionContext;
// TODO 调用实体界面行为节点 const additionalParam = actionContext.additionalParam;
const uiService = await window.uiServiceRegister.getService('ibizbook');
if (uiService && uiService['Edit'] && uiService['Edit'] instanceof Function) {
const xData = actionContext.activeCtrlParamName ? actionContext.getParam(actionContext.activeCtrlParamName).getReal() : additionalParam && additionalParam.xData ? additionalParam.xData : {};
const container = actionContext.activeContainerParamName ? actionContext.getParam(actionContext.activeContainerParamName).getReal() : additionalParam && additionalParam.actioncontext ? additionalParam.actioncontext : {};
const result = await uiService['Edit'](
Object.prototype.toString.call(data) === '[object Array]' ? data : [data],
context,
viewparams,
additionalParam && additionalParam.$event ? additionalParam.$event : {},
xData,
container,
additionalParam && additionalParam.parentDeName ? additionalParam.parentDeName : ''
);
if (result && result.ok && result.result) {
dstParam.bind(Array.isArray(result.result) ? result.result[0] : result.result);
actionContext.bindLastReturnParam(Array.isArray(result.result) ? result.result[0] : result.result);
}
}
console.log('已完成执行 界面行为 节点'); console.log('已完成执行 界面行为 节点');
await this.execute_end1_node(actionContext); await this.execute_end1_node(actionContext);
} }
......
...@@ -275,7 +275,6 @@ export default class GridLoadUILogicBase { ...@@ -275,7 +275,6 @@ export default class GridLoadUILogicBase {
* @memberof GridLoadUILogicBase * @memberof GridLoadUILogicBase
*/ */
protected async execute_viewctrlfireevent1_node(actionContext: UIActionContext) { protected async execute_viewctrlfireevent1_node(actionContext: UIActionContext) {
// TODO 等待补充
// 事件名称 // 事件名称
const eventName: string = 'load'; const eventName: string = 'load';
// 事件参数 // 事件参数
......
...@@ -143,9 +143,27 @@ export default class OpenYuQueUILogicBase { ...@@ -143,9 +143,27 @@ export default class OpenYuQueUILogicBase {
* @memberof OpenYuQueUILogicBase * @memberof OpenYuQueUILogicBase
*/ */
protected async execute_deuiaction1_node(actionContext: UIActionContext) { protected async execute_deuiaction1_node(actionContext: UIActionContext) {
const data = actionContext.defaultParam.getReal(); const data = actionContext.getParam('SA.SRFDA.PS.Core.DataEntity.Logic.PSDEUILogicParamImpl@54e8bed4.codeName');
const { context, viewparams } = actionContext; const { context, viewparams } = actionContext;
// TODO 调用实体界面行为节点 const additionalParam = actionContext.additionalParam;
const uiService = await window.uiServiceRegister.getService('ibizorder');
if (uiService && uiService['open_document'] && uiService['open_document'] instanceof Function) {
const xData = actionContext.activeCtrlParamName ? actionContext.getParam(actionContext.activeCtrlParamName).getReal() : additionalParam && additionalParam.xData ? additionalParam.xData : {};
const container = actionContext.activeContainerParamName ? actionContext.getParam(actionContext.activeContainerParamName).getReal() : additionalParam && additionalParam.actioncontext ? additionalParam.actioncontext : {};
const result = await uiService['open_document'](
Object.prototype.toString.call(data) === '[object Array]' ? data : [data],
context,
viewparams,
additionalParam && additionalParam.$event ? additionalParam.$event : {},
xData,
container,
additionalParam && additionalParam.parentDeName ? additionalParam.parentDeName : ''
);
if (result && result.ok && result.result) {
dstParam.bind(Array.isArray(result.result) ? result.result[0] : result.result);
actionContext.bindLastReturnParam(Array.isArray(result.result) ? result.result[0] : result.result);
}
}
console.log('已完成执行 界面行为 节点'); console.log('已完成执行 界面行为 节点');
await this.execute_end1_node(actionContext); await this.execute_end1_node(actionContext);
} }
......
...@@ -538,7 +538,7 @@ export default class AppPanelViewBase extends Vue implements ControlInterface { ...@@ -538,7 +538,7 @@ export default class AppPanelViewBase extends Vue implements ControlInterface {
* @public * @public
* @memberof PanelBase * @memberof PanelBase
*/ */
public async handleButtonClick(name: string, $event?: any) { public handleButtonClick(name: string, $event?: any) {
const datas: any[] = [this.layoutData]; const datas: any[] = [this.layoutData];
const xData: any = this.getButtonXData(name); const xData: any = this.getButtonXData(name);
const paramJO: any = {}; const paramJO: any = {};
......
...@@ -580,7 +580,7 @@ export default class Auto1Base extends Vue implements ControlInterface { ...@@ -580,7 +580,7 @@ export default class Auto1Base extends Vue implements ControlInterface {
* @public * @public
* @memberof Item1layoutpanelBase * @memberof Item1layoutpanelBase
*/ */
public async handleButtonClick(name: string, $event?: any) { public handleButtonClick(name: string, $event?: any) {
const datas: any[] = [this.layoutData]; const datas: any[] = [this.layoutData];
const xData: any = this.getButtonXData(name); const xData: any = this.getButtonXData(name);
const paramJO: any = {}; const paramJO: any = {};
......
...@@ -671,7 +671,7 @@ export default class DefaultBase extends Vue implements ControlInterface { ...@@ -671,7 +671,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
*/ */
public load(opt: any = {}): void { public load(opt: any = {}): void {
if(!this.loadAction){ if(!this.loadAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKUsr5DataView' + (this.$t('app.searchForm.notConfig.loadAction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKUsr9GridView' + (this.$t('app.searchForm.notConfig.loadAction') as string) });
return; return;
} }
const arg: any = { ...opt }; const arg: any = { ...opt };
...@@ -707,7 +707,7 @@ export default class DefaultBase extends Vue implements ControlInterface { ...@@ -707,7 +707,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
*/ */
public loadDraft(opt: any = {},mode?:string): void { public loadDraft(opt: any = {},mode?:string): void {
if(!this.loaddraftAction){ if(!this.loaddraftAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKUsr5DataView' + (this.$t('app.searchForm.notConfig.loaddraftAction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKUsr9GridView' + (this.$t('app.searchForm.notConfig.loaddraftAction') as string) });
return; return;
} }
const arg: any = { ...opt } ; const arg: any = { ...opt } ;
......
...@@ -580,7 +580,7 @@ export default class HasPanelKanBanBase extends Vue implements ControlInterface ...@@ -580,7 +580,7 @@ export default class HasPanelKanBanBase extends Vue implements ControlInterface
* @public * @public
* @memberof ItemlayoutpanelBase * @memberof ItemlayoutpanelBase
*/ */
public async handleButtonClick(name: string, $event?: any) { public handleButtonClick(name: string, $event?: any) {
const datas: any[] = [this.layoutData]; const datas: any[] = [this.layoutData];
const xData: any = this.getButtonXData(name); const xData: any = this.getButtonXData(name);
const paramJO: any = {}; const paramJO: any = {};
......
...@@ -580,7 +580,7 @@ export default class HasPanelListBase extends Vue implements ControlInterface { ...@@ -580,7 +580,7 @@ export default class HasPanelListBase extends Vue implements ControlInterface {
* @public * @public
* @memberof List_itempanelBase * @memberof List_itempanelBase
*/ */
public async handleButtonClick(name: string, $event?: any) { public handleButtonClick(name: string, $event?: any) {
const datas: any[] = [this.layoutData]; const datas: any[] = [this.layoutData];
const xData: any = this.getButtonXData(name); const xData: any = this.getButtonXData(name);
const paramJO: any = {}; const paramJO: any = {};
......
...@@ -595,23 +595,25 @@ export default class ListpanelBase extends Vue implements ControlInterface { ...@@ -595,23 +595,25 @@ export default class ListpanelBase extends Vue implements ControlInterface {
* @public * @public
* @memberof List_itempanelBase * @memberof List_itempanelBase
*/ */
public async handleButtonClick(name: string, $event?: any) { public handleButtonClick(name: string, $event?: any) {
const datas: any[] = [this.layoutData]; const datas: any[] = [this.layoutData];
const xData: any = this.getButtonXData(name); const xData: any = this.getButtonXData(name);
const paramJO: any = {}; const paramJO: any = {};
const contextJO: any = {}; const contextJO: any = {};
const _this: any = this; const _this: any = this;
if (Object.is(name, 'button_link1')) { if (Object.is(name, 'button_link1')) {
const UIService = await window.uiServiceRegister.getService('IBIZBOOK'); window.uiServiceRegister.getService('ibizbook').then((UIService: any) => {
if (UIService && UIService[`IBIZBOOK_panel_Listpanel_button_link1_click`] && UIService[`IBIZBOOK_panel_Listpanel_button_link1_click`] instanceof Function) { if (UIService && UIService[`IBIZBOOK_panel_Listpanel_button_link1_click`] && UIService[`IBIZBOOK_panel_Listpanel_button_link1_click`] instanceof Function) {
UIService[`IBIZBOOK_panel_Listpanel_button_link1_click`](datas, contextJO, paramJO, $event, xData, this, undefined); UIService[`IBIZBOOK_panel_Listpanel_button_link1_click`](datas, contextJO, paramJO, $event, xData, this, undefined);
} }
})
} }
if (Object.is(name, 'button_calluilogic1')) { if (Object.is(name, 'button_calluilogic1')) {
const UIService = await window.uiServiceRegister.getService('IBIZBOOK'); window.uiServiceRegister.getService('ibizbook').then((UIService: any) => {
if (UIService && UIService[`IBIZBOOK_openDocument`] && UIService[`IBIZBOOK_openDocument`] instanceof Function) { if (UIService && UIService[`IBIZBOOK_openDocument`] && UIService[`IBIZBOOK_openDocument`] instanceof Function) {
UIService[`IBIZBOOK_openDocument`](datas, contextJO, paramJO, $event, xData, this, undefined); UIService[`IBIZBOOK_openDocument`](datas, contextJO, paramJO, $event, xData, this, undefined);
} }
})
} }
} }
......
...@@ -565,7 +565,7 @@ export default class TIMELINEITEMLAYOUTPANELBase extends Vue implements ControlI ...@@ -565,7 +565,7 @@ export default class TIMELINEITEMLAYOUTPANELBase extends Vue implements ControlI
* @public * @public
* @memberof ItemlayoutpanelBase * @memberof ItemlayoutpanelBase
*/ */
public async handleButtonClick(name: string, $event?: any) { public handleButtonClick(name: string, $event?: any) {
const datas: any[] = [this.layoutData]; const datas: any[] = [this.layoutData];
const xData: any = this.getButtonXData(name); const xData: any = this.getButtonXData(name);
const paramJO: any = {}; const paramJO: any = {};
......
...@@ -565,7 +565,7 @@ export default class UsrBase extends Vue implements ControlInterface { ...@@ -565,7 +565,7 @@ export default class UsrBase extends Vue implements ControlInterface {
* @public * @public
* @memberof List_itempanelBase * @memberof List_itempanelBase
*/ */
public async handleButtonClick(name: string, $event?: any) { public handleButtonClick(name: string, $event?: any) {
const datas: any[] = [this.layoutData]; const datas: any[] = [this.layoutData];
const xData: any = this.getButtonXData(name); const xData: any = this.getButtonXData(name);
const paramJO: any = {}; const paramJO: any = {};
......
...@@ -580,7 +580,7 @@ export default class Usr4Base extends Vue implements ControlInterface { ...@@ -580,7 +580,7 @@ export default class Usr4Base extends Vue implements ControlInterface {
* @public * @public
* @memberof ItemlayoutpanelBase * @memberof ItemlayoutpanelBase
*/ */
public async handleButtonClick(name: string, $event?: any) { public handleButtonClick(name: string, $event?: any) {
const datas: any[] = [this.layoutData]; const datas: any[] = [this.layoutData];
const xData: any = this.getButtonXData(name); const xData: any = this.getButtonXData(name);
const paramJO: any = {}; const paramJO: any = {};
......
...@@ -565,7 +565,7 @@ export default class Usr5Base extends Vue implements ControlInterface { ...@@ -565,7 +565,7 @@ export default class Usr5Base extends Vue implements ControlInterface {
* @public * @public
* @memberof ItemlayoutpanelBase * @memberof ItemlayoutpanelBase
*/ */
public async handleButtonClick(name: string, $event?: any) { public handleButtonClick(name: string, $event?: any) {
const datas: any[] = [this.layoutData]; const datas: any[] = [this.layoutData];
const xData: any = this.getButtonXData(name); const xData: any = this.getButtonXData(name);
const paramJO: any = {}; const paramJO: any = {};
......
...@@ -598,7 +598,7 @@ export default class DefaultBase extends Vue implements ControlInterface { ...@@ -598,7 +598,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
*/ */
public load(opt: any = {}): void { public load(opt: any = {}): void {
if(!this.loadAction){ if(!this.loadAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZSample0021GridView_layout' + (this.$t('app.searchForm.notConfig.loadAction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZSample0021WFDynaExpGridView_layout' + (this.$t('app.searchForm.notConfig.loadAction') as string) });
return; return;
} }
const arg: any = { ...opt }; const arg: any = { ...opt };
...@@ -634,7 +634,7 @@ export default class DefaultBase extends Vue implements ControlInterface { ...@@ -634,7 +634,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
*/ */
public loadDraft(opt: any = {},mode?:string): void { public loadDraft(opt: any = {},mode?:string): void {
if(!this.loaddraftAction){ if(!this.loaddraftAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZSample0021GridView_layout' + (this.$t('app.searchForm.notConfig.loaddraftAction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZSample0021WFDynaExpGridView_layout' + (this.$t('app.searchForm.notConfig.loaddraftAction') as string) });
return; return;
} }
const arg: any = { ...opt } ; const arg: any = { ...opt } ;
......
...@@ -353,13 +353,6 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -353,13 +353,6 @@ export default class MainBase extends Vue implements ControlInterface {
return this.selections[0]; return this.selections[0];
} }
/**
* 打开新建数据视图
*
* @type {any}
* @memberof MainBase
*/
@Prop() public newdata: any;
/** /**
* 打开编辑数据视图 * 打开编辑数据视图
* *
...@@ -890,7 +883,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -890,7 +883,7 @@ export default class MainBase extends Vue implements ControlInterface {
*/ */
public load(opt: any = {}, pageReset: boolean = false): void { public load(opt: any = {}, pageReset: boolean = false): void {
if(!this.fetchAction){ if(!this.fetchAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZSample0021GridView_layout'+(this.$t('app.gridpage.notConfig.fetchAction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZSample0021WFDynaExpGridView_layout'+(this.$t('app.gridpage.notConfig.fetchAction') as string) });
return; return;
} }
if(pageReset){ if(pageReset){
...@@ -985,7 +978,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -985,7 +978,7 @@ export default class MainBase extends Vue implements ControlInterface {
*/ */
public async remove(datas: any[]): Promise<any> { public async remove(datas: any[]): Promise<any> {
if(!this.removeAction){ if(!this.removeAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZSample0021GridView_layout'+(this.$t('app.gridpage.notConfig.removeAction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZSample0021WFDynaExpGridView_layout'+(this.$t('app.gridpage.notConfig.removeAction') as string) });
return; return;
} }
let _datas:any[] = []; let _datas:any[] = [];
...@@ -1091,7 +1084,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1091,7 +1084,7 @@ export default class MainBase extends Vue implements ControlInterface {
*/ */
public addBatch(arg: any = {}): void { public addBatch(arg: any = {}): void {
if(!this.fetchAction){ if(!this.fetchAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZSample0021GridView_layout'+(this.$t('app.gridpage.notConfig.fetchAction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZSample0021WFDynaExpGridView_layout'+(this.$t('app.gridpage.notConfig.fetchAction') as string) });
return; return;
} }
if(!arg){ if(!arg){
...@@ -1984,7 +1977,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1984,7 +1977,7 @@ export default class MainBase extends Vue implements ControlInterface {
try { try {
if(Object.is(item.rowDataState, 'create')){ if(Object.is(item.rowDataState, 'create')){
if(!this.createAction){ if(!this.createAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZSample0021GridView_layout'+(this.$t('app.gridpage.notConfig.createAction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZSample0021WFDynaExpGridView_layout'+(this.$t('app.gridpage.notConfig.createAction') as string) });
}else{ }else{
Object.assign(item,{viewparams:this.viewparams}); Object.assign(item,{viewparams:this.viewparams});
let response = await this.service.add(this.createAction, JSON.parse(JSON.stringify(this.context)),item, this.showBusyIndicator); let response = await this.service.add(this.createAction, JSON.parse(JSON.stringify(this.context)),item, this.showBusyIndicator);
...@@ -1992,7 +1985,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1992,7 +1985,7 @@ export default class MainBase extends Vue implements ControlInterface {
} }
}else if(Object.is(item.rowDataState, 'update')){ }else if(Object.is(item.rowDataState, 'update')){
if(!this.updateAction){ if(!this.updateAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZSample0021GridView_layout'+(this.$t('app.gridpage.notConfig.updateAction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZSample0021WFDynaExpGridView_layout'+(this.$t('app.gridpage.notConfig.updateAction') as string) });
}else{ }else{
Object.assign(item,{viewparams:this.viewparams}); Object.assign(item,{viewparams:this.viewparams});
if(item.ibizsample0021){ if(item.ibizsample0021){
...@@ -2059,7 +2052,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -2059,7 +2052,7 @@ export default class MainBase extends Vue implements ControlInterface {
*/ */
public newRow(args: any[], params?: any, $event?: any, xData?: any): void { public newRow(args: any[], params?: any, $event?: any, xData?: any): void {
if(!this.loaddraftAction){ if(!this.loaddraftAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZSample0021GridView_layout'+(this.$t('app.gridpage.notConfig.loaddraftAction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZSample0021WFDynaExpGridView_layout'+(this.$t('app.gridpage.notConfig.loaddraftAction') as string) });
return; return;
} }
let _this = this; let _this = this;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册