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

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

上级 742332b2
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
width: auto; width: auto;
height: 100%; height: 100%;
max-width: 100%; max-width: 100%;
height: 360px;
object-fit: contain; object-fit: contain;
} }
} }
\ No newline at end of file
...@@ -685,7 +685,7 @@ export default class CtrlAmountBase extends Vue implements ControlInterface { ...@@ -685,7 +685,7 @@ export default class CtrlAmountBase extends Vue implements ControlInterface {
try { try {
const response: any = await this.service.delete(_removeAction,Object.assign(context,{ ibizappctrl: keys.join(';') }),Object.assign({ ibizappctrl: keys.join(';') },{viewparams:this.viewparams}), this.showBusyIndicator); const response: any = await this.service.delete(_removeAction,Object.assign(context,{ ibizappctrl: keys.join(';') }),Object.assign({ ibizappctrl: keys.join(';') },{viewparams:this.viewparams}), this.showBusyIndicator);
if (!response || response.status !== 200) { if (!response || response.status !== 200) {
if (!(await this.handleCtrlEvents('onremoveerror', { data: response && response.data ? response.data : arg }))) { if (!(await this.handleCtrlEvents('onremoveerror', { data: response && response.data ? response.data : datas }))) {
return; return;
} }
this.$Notice.error({ title: '', desc: (this.$t('app.commonWords.delDataFail') as string) + ',' + response.info }); this.$Notice.error({ title: '', desc: (this.$t('app.commonWords.delDataFail') as string) + ',' + response.info });
...@@ -708,7 +708,7 @@ export default class CtrlAmountBase extends Vue implements ControlInterface { ...@@ -708,7 +708,7 @@ export default class CtrlAmountBase extends Vue implements ControlInterface {
this.selections = []; this.selections = [];
return response; return response;
} catch (response: any) { } catch (response: any) {
if (!(await this.handleCtrlEvents('onremoveerror', { data: response && response.data ? response.data : arg }))) { if (!(await this.handleCtrlEvents('onremoveerror', { data: response && response.data ? response.data : datas }))) {
return; return;
} }
if (response && response.status === 401) { if (response && response.status === 401) {
......
...@@ -747,7 +747,7 @@ export default class CtrlListBase extends Vue implements ControlInterface { ...@@ -747,7 +747,7 @@ export default class CtrlListBase extends Vue implements ControlInterface {
try { try {
const response: any = await this.service.delete(_removeAction,Object.assign(context,{ ibizappctrl: keys.join(';') }),Object.assign({ ibizappctrl: keys.join(';') },{viewparams:this.viewparams}), this.showBusyIndicator); const response: any = await this.service.delete(_removeAction,Object.assign(context,{ ibizappctrl: keys.join(';') }),Object.assign({ ibizappctrl: keys.join(';') },{viewparams:this.viewparams}), this.showBusyIndicator);
if (!response || response.status !== 200) { if (!response || response.status !== 200) {
if (!(await this.handleCtrlEvents('onremoveerror', { data: response && response.data ? response.data : arg }))) { if (!(await this.handleCtrlEvents('onremoveerror', { data: response && response.data ? response.data : datas }))) {
return; return;
} }
this.$Notice.error({ title: '', desc: (this.$t('app.commonWords.delDataFail') as string) + ',' + response.info }); this.$Notice.error({ title: '', desc: (this.$t('app.commonWords.delDataFail') as string) + ',' + response.info });
...@@ -770,7 +770,7 @@ export default class CtrlListBase extends Vue implements ControlInterface { ...@@ -770,7 +770,7 @@ export default class CtrlListBase extends Vue implements ControlInterface {
this.selections = []; this.selections = [];
return response; return response;
} catch (response: any) { } catch (response: any) {
if (!(await this.handleCtrlEvents('onremoveerror', { data: response && response.data ? response.data : arg }))) { if (!(await this.handleCtrlEvents('onremoveerror', { data: response && response.data ? response.data : datas }))) {
return; return;
} }
if (response && response.status === 401) { if (response && response.status === 401) {
......
...@@ -685,7 +685,7 @@ export default class EditorAmountBase extends Vue implements ControlInterface { ...@@ -685,7 +685,7 @@ export default class EditorAmountBase extends Vue implements ControlInterface {
try { try {
const response: any = await this.service.delete(_removeAction,Object.assign(context,{ ibizappeditor: keys.join(';') }),Object.assign({ ibizappeditor: keys.join(';') },{viewparams:this.viewparams}), this.showBusyIndicator); const response: any = await this.service.delete(_removeAction,Object.assign(context,{ ibizappeditor: keys.join(';') }),Object.assign({ ibizappeditor: keys.join(';') },{viewparams:this.viewparams}), this.showBusyIndicator);
if (!response || response.status !== 200) { if (!response || response.status !== 200) {
if (!(await this.handleCtrlEvents('onremoveerror', { data: response && response.data ? response.data : arg }))) { if (!(await this.handleCtrlEvents('onremoveerror', { data: response && response.data ? response.data : datas }))) {
return; return;
} }
this.$Notice.error({ title: '', desc: (this.$t('app.commonWords.delDataFail') as string) + ',' + response.info }); this.$Notice.error({ title: '', desc: (this.$t('app.commonWords.delDataFail') as string) + ',' + response.info });
...@@ -708,7 +708,7 @@ export default class EditorAmountBase extends Vue implements ControlInterface { ...@@ -708,7 +708,7 @@ export default class EditorAmountBase extends Vue implements ControlInterface {
this.selections = []; this.selections = [];
return response; return response;
} catch (response: any) { } catch (response: any) {
if (!(await this.handleCtrlEvents('onremoveerror', { data: response && response.data ? response.data : arg }))) { if (!(await this.handleCtrlEvents('onremoveerror', { data: response && response.data ? response.data : datas }))) {
return; return;
} }
if (response && response.status === 401) { if (response && response.status === 401) {
......
...@@ -747,7 +747,7 @@ export default class EditorListBase extends Vue implements ControlInterface { ...@@ -747,7 +747,7 @@ export default class EditorListBase extends Vue implements ControlInterface {
try { try {
const response: any = await this.service.delete(_removeAction,Object.assign(context,{ ibizappeditor: keys.join(';') }),Object.assign({ ibizappeditor: keys.join(';') },{viewparams:this.viewparams}), this.showBusyIndicator); const response: any = await this.service.delete(_removeAction,Object.assign(context,{ ibizappeditor: keys.join(';') }),Object.assign({ ibizappeditor: keys.join(';') },{viewparams:this.viewparams}), this.showBusyIndicator);
if (!response || response.status !== 200) { if (!response || response.status !== 200) {
if (!(await this.handleCtrlEvents('onremoveerror', { data: response && response.data ? response.data : arg }))) { if (!(await this.handleCtrlEvents('onremoveerror', { data: response && response.data ? response.data : datas }))) {
return; return;
} }
this.$Notice.error({ title: '', desc: (this.$t('app.commonWords.delDataFail') as string) + ',' + response.info }); this.$Notice.error({ title: '', desc: (this.$t('app.commonWords.delDataFail') as string) + ',' + response.info });
...@@ -770,7 +770,7 @@ export default class EditorListBase extends Vue implements ControlInterface { ...@@ -770,7 +770,7 @@ export default class EditorListBase extends Vue implements ControlInterface {
this.selections = []; this.selections = [];
return response; return response;
} catch (response: any) { } catch (response: any) {
if (!(await this.handleCtrlEvents('onremoveerror', { data: response && response.data ? response.data : arg }))) { if (!(await this.handleCtrlEvents('onremoveerror', { data: response && response.data ? response.data : datas }))) {
return; return;
} }
if (response && response.status === 401) { if (response && response.status === 401) {
......
...@@ -685,7 +685,7 @@ export default class ExtendEditorAmountBase extends Vue implements ControlInterf ...@@ -685,7 +685,7 @@ export default class ExtendEditorAmountBase extends Vue implements ControlInterf
try { try {
const response: any = await this.service.delete(_removeAction,Object.assign(context,{ ibizappextendeditor: keys.join(';') }),Object.assign({ ibizappextendeditor: keys.join(';') },{viewparams:this.viewparams}), this.showBusyIndicator); const response: any = await this.service.delete(_removeAction,Object.assign(context,{ ibizappextendeditor: keys.join(';') }),Object.assign({ ibizappextendeditor: keys.join(';') },{viewparams:this.viewparams}), this.showBusyIndicator);
if (!response || response.status !== 200) { if (!response || response.status !== 200) {
if (!(await this.handleCtrlEvents('onremoveerror', { data: response && response.data ? response.data : arg }))) { if (!(await this.handleCtrlEvents('onremoveerror', { data: response && response.data ? response.data : datas }))) {
return; return;
} }
this.$Notice.error({ title: '', desc: (this.$t('app.commonWords.delDataFail') as string) + ',' + response.info }); this.$Notice.error({ title: '', desc: (this.$t('app.commonWords.delDataFail') as string) + ',' + response.info });
...@@ -708,7 +708,7 @@ export default class ExtendEditorAmountBase extends Vue implements ControlInterf ...@@ -708,7 +708,7 @@ export default class ExtendEditorAmountBase extends Vue implements ControlInterf
this.selections = []; this.selections = [];
return response; return response;
} catch (response: any) { } catch (response: any) {
if (!(await this.handleCtrlEvents('onremoveerror', { data: response && response.data ? response.data : arg }))) { if (!(await this.handleCtrlEvents('onremoveerror', { data: response && response.data ? response.data : datas }))) {
return; return;
} }
if (response && response.status === 401) { if (response && response.status === 401) {
......
...@@ -747,7 +747,7 @@ export default class ExtendEditorListBase extends Vue implements ControlInterfac ...@@ -747,7 +747,7 @@ export default class ExtendEditorListBase extends Vue implements ControlInterfac
try { try {
const response: any = await this.service.delete(_removeAction,Object.assign(context,{ ibizappextendeditor: keys.join(';') }),Object.assign({ ibizappextendeditor: keys.join(';') },{viewparams:this.viewparams}), this.showBusyIndicator); const response: any = await this.service.delete(_removeAction,Object.assign(context,{ ibizappextendeditor: keys.join(';') }),Object.assign({ ibizappextendeditor: keys.join(';') },{viewparams:this.viewparams}), this.showBusyIndicator);
if (!response || response.status !== 200) { if (!response || response.status !== 200) {
if (!(await this.handleCtrlEvents('onremoveerror', { data: response && response.data ? response.data : arg }))) { if (!(await this.handleCtrlEvents('onremoveerror', { data: response && response.data ? response.data : datas }))) {
return; return;
} }
this.$Notice.error({ title: '', desc: (this.$t('app.commonWords.delDataFail') as string) + ',' + response.info }); this.$Notice.error({ title: '', desc: (this.$t('app.commonWords.delDataFail') as string) + ',' + response.info });
...@@ -770,7 +770,7 @@ export default class ExtendEditorListBase extends Vue implements ControlInterfac ...@@ -770,7 +770,7 @@ export default class ExtendEditorListBase extends Vue implements ControlInterfac
this.selections = []; this.selections = [];
return response; return response;
} catch (response: any) { } catch (response: any) {
if (!(await this.handleCtrlEvents('onremoveerror', { data: response && response.data ? response.data : arg }))) { if (!(await this.handleCtrlEvents('onremoveerror', { data: response && response.data ? response.data : datas }))) {
return; return;
} }
if (response && response.status === 401) { if (response && response.status === 401) {
......
...@@ -685,7 +685,7 @@ export default class ViewAmountBase extends Vue implements ControlInterface { ...@@ -685,7 +685,7 @@ export default class ViewAmountBase extends Vue implements ControlInterface {
try { try {
const response: any = await this.service.delete(_removeAction,Object.assign(context,{ ibizappview: keys.join(';') }),Object.assign({ ibizappview: keys.join(';') },{viewparams:this.viewparams}), this.showBusyIndicator); const response: any = await this.service.delete(_removeAction,Object.assign(context,{ ibizappview: keys.join(';') }),Object.assign({ ibizappview: keys.join(';') },{viewparams:this.viewparams}), this.showBusyIndicator);
if (!response || response.status !== 200) { if (!response || response.status !== 200) {
if (!(await this.handleCtrlEvents('onremoveerror', { data: response && response.data ? response.data : arg }))) { if (!(await this.handleCtrlEvents('onremoveerror', { data: response && response.data ? response.data : datas }))) {
return; return;
} }
this.$Notice.error({ title: '', desc: (this.$t('app.commonWords.delDataFail') as string) + ',' + response.info }); this.$Notice.error({ title: '', desc: (this.$t('app.commonWords.delDataFail') as string) + ',' + response.info });
...@@ -708,7 +708,7 @@ export default class ViewAmountBase extends Vue implements ControlInterface { ...@@ -708,7 +708,7 @@ export default class ViewAmountBase extends Vue implements ControlInterface {
this.selections = []; this.selections = [];
return response; return response;
} catch (response: any) { } catch (response: any) {
if (!(await this.handleCtrlEvents('onremoveerror', { data: response && response.data ? response.data : arg }))) { if (!(await this.handleCtrlEvents('onremoveerror', { data: response && response.data ? response.data : datas }))) {
return; return;
} }
if (response && response.status === 401) { if (response && response.status === 401) {
......
...@@ -775,7 +775,7 @@ export default class ViewListBase extends Vue implements ControlInterface { ...@@ -775,7 +775,7 @@ export default class ViewListBase extends Vue implements ControlInterface {
try { try {
const response: any = await this.service.delete(_removeAction,Object.assign(context,{ ibizappview: keys.join(';') }),Object.assign({ ibizappview: keys.join(';') },{viewparams:this.viewparams}), this.showBusyIndicator); const response: any = await this.service.delete(_removeAction,Object.assign(context,{ ibizappview: keys.join(';') }),Object.assign({ ibizappview: keys.join(';') },{viewparams:this.viewparams}), this.showBusyIndicator);
if (!response || response.status !== 200) { if (!response || response.status !== 200) {
if (!(await this.handleCtrlEvents('onremoveerror', { data: response && response.data ? response.data : arg }))) { if (!(await this.handleCtrlEvents('onremoveerror', { data: response && response.data ? response.data : datas }))) {
return; return;
} }
this.$Notice.error({ title: '', desc: (this.$t('app.commonWords.delDataFail') as string) + ',' + response.info }); this.$Notice.error({ title: '', desc: (this.$t('app.commonWords.delDataFail') as string) + ',' + response.info });
...@@ -798,7 +798,7 @@ export default class ViewListBase extends Vue implements ControlInterface { ...@@ -798,7 +798,7 @@ export default class ViewListBase extends Vue implements ControlInterface {
this.selections = []; this.selections = [];
return response; return response;
} catch (response: any) { } catch (response: any) {
if (!(await this.handleCtrlEvents('onremoveerror', { data: response && response.data ? response.data : arg }))) { if (!(await this.handleCtrlEvents('onremoveerror', { data: response && response.data ? response.data : datas }))) {
return; return;
} }
if (response && response.status === 401) { if (response && response.status === 401) {
......
...@@ -911,7 +911,7 @@ export default class AutoGroupListBase extends Vue implements ControlInterface { ...@@ -911,7 +911,7 @@ export default class AutoGroupListBase extends Vue implements ControlInterface {
try { try {
const response: any = await this.service.delete(_removeAction,Object.assign(context,{ ibizbook: keys.join(';') }),Object.assign({ ibizbook: keys.join(';') },{viewparams:this.viewparams}), this.showBusyIndicator); const response: any = await this.service.delete(_removeAction,Object.assign(context,{ ibizbook: keys.join(';') }),Object.assign({ ibizbook: keys.join(';') },{viewparams:this.viewparams}), this.showBusyIndicator);
if (!response || response.status !== 200) { if (!response || response.status !== 200) {
if (!(await this.handleCtrlEvents('onremoveerror', { data: response && response.data ? response.data : arg }))) { if (!(await this.handleCtrlEvents('onremoveerror', { data: response && response.data ? response.data : datas }))) {
return; return;
} }
this.$Notice.error({ title: '', desc: (this.$t('app.commonWords.delDataFail') as string) + ',' + response.info }); this.$Notice.error({ title: '', desc: (this.$t('app.commonWords.delDataFail') as string) + ',' + response.info });
...@@ -935,7 +935,7 @@ export default class AutoGroupListBase extends Vue implements ControlInterface { ...@@ -935,7 +935,7 @@ export default class AutoGroupListBase extends Vue implements ControlInterface {
this.selections = []; this.selections = [];
return response; return response;
} catch (response: any) { } catch (response: any) {
if (!(await this.handleCtrlEvents('onremoveerror', { data: response && response.data ? response.data : arg }))) { if (!(await this.handleCtrlEvents('onremoveerror', { data: response && response.data ? response.data : datas }))) {
return; return;
} }
if (response && response.status === 401) { if (response && response.status === 401) {
......
...@@ -705,7 +705,7 @@ export default class BooklistBase extends Vue implements ControlInterface { ...@@ -705,7 +705,7 @@ export default class BooklistBase extends Vue implements ControlInterface {
try { try {
const response: any = await this.service.delete(_removeAction,Object.assign(context,{ ibizbook: keys.join(';') }),Object.assign({ ibizbook: keys.join(';') },{viewparams:this.viewparams}), this.showBusyIndicator); const response: any = await this.service.delete(_removeAction,Object.assign(context,{ ibizbook: keys.join(';') }),Object.assign({ ibizbook: keys.join(';') },{viewparams:this.viewparams}), this.showBusyIndicator);
if (!response || response.status !== 200) { if (!response || response.status !== 200) {
if (!(await this.handleCtrlEvents('onremoveerror', { data: response && response.data ? response.data : arg }))) { if (!(await this.handleCtrlEvents('onremoveerror', { data: response && response.data ? response.data : datas }))) {
return; return;
} }
this.$Notice.error({ title: '', desc: (this.$t('app.commonWords.delDataFail') as string) + ',' + response.info }); this.$Notice.error({ title: '', desc: (this.$t('app.commonWords.delDataFail') as string) + ',' + response.info });
...@@ -728,7 +728,7 @@ export default class BooklistBase extends Vue implements ControlInterface { ...@@ -728,7 +728,7 @@ export default class BooklistBase extends Vue implements ControlInterface {
this.selections = []; this.selections = [];
return response; return response;
} catch (response: any) { } catch (response: any) {
if (!(await this.handleCtrlEvents('onremoveerror', { data: response && response.data ? response.data : arg }))) { if (!(await this.handleCtrlEvents('onremoveerror', { data: response && response.data ? response.data : datas }))) {
return; return;
} }
if (response && response.status === 401) { if (response && response.status === 401) {
......
...@@ -692,7 +692,7 @@ export default class DefaultBase extends Vue implements ControlInterface { ...@@ -692,7 +692,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: 'IBIZBOOKUsr2GridView' + (this.$t('app.searchForm.notConfig.loadAction') as string) });
return; return;
} }
const arg: any = { ...opt }; const arg: any = { ...opt };
...@@ -728,7 +728,7 @@ export default class DefaultBase extends Vue implements ControlInterface { ...@@ -728,7 +728,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
*/ */
public async loadDraft(opt: any = {},mode?:string): Promise<any> { public async loadDraft(opt: any = {},mode?:string): Promise<any> {
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: 'IBIZBOOKUsr2GridView' + (this.$t('app.searchForm.notConfig.loaddraftAction') as string) });
return; return;
} }
const arg: any = { ...opt } ; const arg: any = { ...opt } ;
......
...@@ -842,7 +842,7 @@ export default class GroupByCodelistListBase extends Vue implements ControlInter ...@@ -842,7 +842,7 @@ export default class GroupByCodelistListBase extends Vue implements ControlInter
try { try {
const response: any = await this.service.delete(_removeAction,Object.assign(context,{ ibizbook: keys.join(';') }),Object.assign({ ibizbook: keys.join(';') },{viewparams:this.viewparams}), this.showBusyIndicator); const response: any = await this.service.delete(_removeAction,Object.assign(context,{ ibizbook: keys.join(';') }),Object.assign({ ibizbook: keys.join(';') },{viewparams:this.viewparams}), this.showBusyIndicator);
if (!response || response.status !== 200) { if (!response || response.status !== 200) {
if (!(await this.handleCtrlEvents('onremoveerror', { data: response && response.data ? response.data : arg }))) { if (!(await this.handleCtrlEvents('onremoveerror', { data: response && response.data ? response.data : datas }))) {
return; return;
} }
this.$Notice.error({ title: '', desc: (this.$t('app.commonWords.delDataFail') as string) + ',' + response.info }); this.$Notice.error({ title: '', desc: (this.$t('app.commonWords.delDataFail') as string) + ',' + response.info });
...@@ -866,7 +866,7 @@ export default class GroupByCodelistListBase extends Vue implements ControlInter ...@@ -866,7 +866,7 @@ export default class GroupByCodelistListBase extends Vue implements ControlInter
this.selections = []; this.selections = [];
return response; return response;
} catch (response: any) { } catch (response: any) {
if (!(await this.handleCtrlEvents('onremoveerror', { data: response && response.data ? response.data : arg }))) { if (!(await this.handleCtrlEvents('onremoveerror', { data: response && response.data ? response.data : datas }))) {
return; return;
} }
if (response && response.status === 401) { if (response && response.status === 401) {
......
...@@ -699,7 +699,7 @@ export default class HasPanelListBase extends Vue implements ControlInterface { ...@@ -699,7 +699,7 @@ export default class HasPanelListBase extends Vue implements ControlInterface {
try { try {
const response: any = await this.service.delete(_removeAction,Object.assign(context,{ ibizbook: keys.join(';') }),Object.assign({ ibizbook: keys.join(';') },{viewparams:this.viewparams}), this.showBusyIndicator); const response: any = await this.service.delete(_removeAction,Object.assign(context,{ ibizbook: keys.join(';') }),Object.assign({ ibizbook: keys.join(';') },{viewparams:this.viewparams}), this.showBusyIndicator);
if (!response || response.status !== 200) { if (!response || response.status !== 200) {
if (!(await this.handleCtrlEvents('onremoveerror', { data: response && response.data ? response.data : arg }))) { if (!(await this.handleCtrlEvents('onremoveerror', { data: response && response.data ? response.data : datas }))) {
return; return;
} }
this.$Notice.error({ title: '', desc: (this.$t('app.commonWords.delDataFail') as string) + ',' + response.info }); this.$Notice.error({ title: '', desc: (this.$t('app.commonWords.delDataFail') as string) + ',' + response.info });
...@@ -722,7 +722,7 @@ export default class HasPanelListBase extends Vue implements ControlInterface { ...@@ -722,7 +722,7 @@ export default class HasPanelListBase extends Vue implements ControlInterface {
this.selections = []; this.selections = [];
return response; return response;
} catch (response: any) { } catch (response: any) {
if (!(await this.handleCtrlEvents('onremoveerror', { data: response && response.data ? response.data : arg }))) { if (!(await this.handleCtrlEvents('onremoveerror', { data: response && response.data ? response.data : datas }))) {
return; return;
} }
if (response && response.status === 401) { if (response && response.status === 401) {
......
...@@ -699,7 +699,7 @@ export default class ListpanelBase extends Vue implements ControlInterface { ...@@ -699,7 +699,7 @@ export default class ListpanelBase extends Vue implements ControlInterface {
try { try {
const response: any = await this.service.delete(_removeAction,Object.assign(context,{ ibizbook: keys.join(';') }),Object.assign({ ibizbook: keys.join(';') },{viewparams:this.viewparams}), this.showBusyIndicator); const response: any = await this.service.delete(_removeAction,Object.assign(context,{ ibizbook: keys.join(';') }),Object.assign({ ibizbook: keys.join(';') },{viewparams:this.viewparams}), this.showBusyIndicator);
if (!response || response.status !== 200) { if (!response || response.status !== 200) {
if (!(await this.handleCtrlEvents('onremoveerror', { data: response && response.data ? response.data : arg }))) { if (!(await this.handleCtrlEvents('onremoveerror', { data: response && response.data ? response.data : datas }))) {
return; return;
} }
this.$Notice.error({ title: '', desc: (this.$t('app.commonWords.delDataFail') as string) + ',' + response.info }); this.$Notice.error({ title: '', desc: (this.$t('app.commonWords.delDataFail') as string) + ',' + response.info });
...@@ -722,7 +722,7 @@ export default class ListpanelBase extends Vue implements ControlInterface { ...@@ -722,7 +722,7 @@ export default class ListpanelBase extends Vue implements ControlInterface {
this.selections = []; this.selections = [];
return response; return response;
} catch (response: any) { } catch (response: any) {
if (!(await this.handleCtrlEvents('onremoveerror', { data: response && response.data ? response.data : arg }))) { if (!(await this.handleCtrlEvents('onremoveerror', { data: response && response.data ? response.data : datas }))) {
return; return;
} }
if (response && response.status === 401) { if (response && response.status === 401) {
......
...@@ -46,11 +46,11 @@ ...@@ -46,11 +46,11 @@
<span class="quick-toolbar"> <span class="quick-toolbar">
<div class='toolbar-container'> <div class='toolbar-container'>
<tooltip :transfer="true" :max-width="600"> <tooltip :transfer="true" :max-width="600">
<i-button v-show="listviewlist_quicktoolbarModels.deuiaction1.visabled" :disabled="listviewlist_quicktoolbarModels.deuiaction1.disabled" class='' v-button-loading:i-button @click="list_quicktoolbar_click({ tag: 'deuiaction1' }, $event)"> <i-button v-show="usr4listview_layoutlist_quicktoolbarModels.deuiaction1.visabled" :disabled="usr4listview_layoutlist_quicktoolbarModels.deuiaction1.disabled" class='' v-button-loading:i-button @click="list_quicktoolbar_click({ tag: 'deuiaction1' }, $event)">
<i class='fa fa-file-text-o'></i> <i class='fa fa-file-text-o'></i>
<span class='caption'>{{$t('entities.ibizbook.listviewlist_quicktoolbar_toolbar.deuiaction1.caption')}}</span> <span class='caption'>{{$t('entities.ibizbook.usr4listview_layoutlist_quicktoolbar_toolbar.deuiaction1.caption')}}</span>
</i-button> </i-button>
<div slot='content'>{{$t('entities.ibizbook.listviewlist_quicktoolbar_toolbar.deuiaction1.tip')}}</div> <div slot='content'>{{$t('entities.ibizbook.usr4listview_layoutlist_quicktoolbar_toolbar.deuiaction1.tip')}}</div>
</tooltip> </tooltip>
</div> </div>
</span> </span>
...@@ -61,18 +61,18 @@ ...@@ -61,18 +61,18 @@
<span class="batch-toolbar"> <span class="batch-toolbar">
<div class='toolbar-container'> <div class='toolbar-container'>
<tooltip :transfer="true" :max-width="600"> <tooltip :transfer="true" :max-width="600">
<i-button v-show="listviewlist_batchtoolbarModels.deuiaction1.visabled" :disabled="listviewlist_batchtoolbarModels.deuiaction1.disabled" class='' v-button-loading:i-button @click="list_batchtoolbar_click({ tag: 'deuiaction1' }, $event)"> <i-button v-show="usr4listview_layoutlist_batchtoolbarModels.deuiaction1.visabled" :disabled="usr4listview_layoutlist_batchtoolbarModels.deuiaction1.disabled" class='' v-button-loading:i-button @click="list_batchtoolbar_click({ tag: 'deuiaction1' }, $event)">
<i class='fa fa-edit'></i> <i class='fa fa-edit'></i>
<span class='caption'>{{$t('entities.ibizbook.listviewlist_batchtoolbar_toolbar.deuiaction1.caption')}}</span> <span class='caption'>{{$t('entities.ibizbook.usr4listview_layoutlist_batchtoolbar_toolbar.deuiaction1.caption')}}</span>
</i-button> </i-button>
<div slot='content'>{{$t('entities.ibizbook.listviewlist_batchtoolbar_toolbar.deuiaction1.tip')}}</div> <div slot='content'>{{$t('entities.ibizbook.usr4listview_layoutlist_batchtoolbar_toolbar.deuiaction1.tip')}}</div>
</tooltip> </tooltip>
<tooltip :transfer="true" :max-width="600"> <tooltip :transfer="true" :max-width="600">
<i-button v-show="listviewlist_batchtoolbarModels.deuiaction2.visabled" :disabled="listviewlist_batchtoolbarModels.deuiaction2.disabled" class='' v-button-loading:i-button @click="list_batchtoolbar_click({ tag: 'deuiaction2' }, $event)"> <i-button v-show="usr4listview_layoutlist_batchtoolbarModels.deuiaction2.visabled" :disabled="usr4listview_layoutlist_batchtoolbarModels.deuiaction2.disabled" class='' v-button-loading:i-button @click="list_batchtoolbar_click({ tag: 'deuiaction2' }, $event)">
<i class='fa fa-remove'></i> <i class='fa fa-remove'></i>
<span class='caption'>{{$t('entities.ibizbook.listviewlist_batchtoolbar_toolbar.deuiaction2.caption')}}</span> <span class='caption'>{{$t('entities.ibizbook.usr4listview_layoutlist_batchtoolbar_toolbar.deuiaction2.caption')}}</span>
</i-button> </i-button>
<div slot='content'>{{$t('entities.ibizbook.listviewlist_batchtoolbar_toolbar.deuiaction2.tip')}}</div> <div slot='content'>{{$t('entities.ibizbook.usr4listview_layoutlist_batchtoolbar_toolbar.deuiaction2.tip')}}</div>
</tooltip> </tooltip>
</div> </div>
</span> </span>
...@@ -362,7 +362,7 @@ export default class LnternalFuncListBase extends Vue implements ControlInterfac ...@@ -362,7 +362,7 @@ export default class LnternalFuncListBase extends Vue implements ControlInterfac
* @param {*} [$event] 事件源 * @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件 * @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文 * @param {*} [actionContext] 执行行为上下文
* @memberof IBIZBOOKListViewBase * @memberof IBIZBOOKUsr4ListView_layoutBase
*/ */
public New(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) { public New(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
const _this: any = this; const _this: any = this;
...@@ -382,7 +382,7 @@ export default class LnternalFuncListBase extends Vue implements ControlInterfac ...@@ -382,7 +382,7 @@ export default class LnternalFuncListBase extends Vue implements ControlInterfac
* @param {*} [$event] 事件源 * @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件 * @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文 * @param {*} [actionContext] 执行行为上下文
* @memberof IBIZBOOKListViewBase * @memberof IBIZBOOKUsr4ListView_layoutBase
*/ */
public Edit(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) { public Edit(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
if (args.length === 0) { if (args.length === 0) {
...@@ -408,7 +408,7 @@ export default class LnternalFuncListBase extends Vue implements ControlInterfac ...@@ -408,7 +408,7 @@ export default class LnternalFuncListBase extends Vue implements ControlInterfac
* @param {*} [$event] 事件源 * @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件 * @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文 * @param {*} [actionContext] 执行行为上下文
* @memberof IBIZBOOKListViewBase * @memberof IBIZBOOKUsr4ListView_layoutBase
*/ */
public Remove(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) { public Remove(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
const _this: any = this; const _this: any = this;
...@@ -604,9 +604,9 @@ export default class LnternalFuncListBase extends Vue implements ControlInterfac ...@@ -604,9 +604,9 @@ export default class LnternalFuncListBase extends Vue implements ControlInterfac
* 工具栏模型 * 工具栏模型
* *
* @type {*} * @type {*}
* @memberof IBIZBOOKListView * @memberof IBIZBOOKUsr4ListView_layout
*/ */
public listviewlist_quicktoolbarModels: any = { public usr4listview_layoutlist_quicktoolbarModels: any = {
deuiaction1: { name: 'deuiaction1', actiontarget: 'NONE', caption: '新建', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'New', target: '' } }, deuiaction1: { name: 'deuiaction1', actiontarget: 'NONE', caption: '新建', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'New', target: '' } },
}; };
...@@ -616,9 +616,9 @@ export default class LnternalFuncListBase extends Vue implements ControlInterfac ...@@ -616,9 +616,9 @@ export default class LnternalFuncListBase extends Vue implements ControlInterfac
* 工具栏模型 * 工具栏模型
* *
* @type {*} * @type {*}
* @memberof IBIZBOOKListView * @memberof IBIZBOOKUsr4ListView_layout
*/ */
public listviewlist_batchtoolbarModels: any = { public usr4listview_layoutlist_batchtoolbarModels: any = {
deuiaction1: { name: 'deuiaction1', actiontarget: 'NONE', caption: '编辑', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'Edit', target: 'SINGLEKEY' } }, deuiaction1: { name: 'deuiaction1', actiontarget: 'NONE', caption: '编辑', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'Edit', target: 'SINGLEKEY' } },
deuiaction2: { name: 'deuiaction2', actiontarget: 'NONE', caption: '删除', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'Remove', target: 'MULTIKEY' } }, deuiaction2: { name: 'deuiaction2', actiontarget: 'NONE', caption: '删除', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'Remove', target: 'MULTIKEY' } },
...@@ -841,7 +841,7 @@ export default class LnternalFuncListBase extends Vue implements ControlInterfac ...@@ -841,7 +841,7 @@ export default class LnternalFuncListBase extends Vue implements ControlInterfac
*/ */
public async load(opt: any = {}): Promise<any> { public async load(opt: any = {}): Promise<any> {
if(!this.fetchAction){ if(!this.fetchAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKListView' + (this.$t('app.list.notConfig.fetchAction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKUsr4ListView_layout' + (this.$t('app.list.notConfig.fetchAction') as string) });
return; return;
} }
const arg: any = {...opt}; const arg: any = {...opt};
...@@ -971,7 +971,7 @@ export default class LnternalFuncListBase extends Vue implements ControlInterfac ...@@ -971,7 +971,7 @@ export default class LnternalFuncListBase extends Vue implements ControlInterfac
*/ */
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: 'IBIZBOOKListView' + (this.$t('app.list.notConfig.removeAction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKUsr4ListView_layout' + (this.$t('app.list.notConfig.removeAction') as string) });
return; return;
} }
if (datas.length === 0) { if (datas.length === 0) {
...@@ -1009,7 +1009,7 @@ export default class LnternalFuncListBase extends Vue implements ControlInterfac ...@@ -1009,7 +1009,7 @@ export default class LnternalFuncListBase extends Vue implements ControlInterfac
try { try {
const response: any = await this.service.delete(_removeAction,Object.assign(context,{ ibizbook: keys.join(';') }),Object.assign({ ibizbook: keys.join(';') },{viewparams:this.viewparams}), this.showBusyIndicator); const response: any = await this.service.delete(_removeAction,Object.assign(context,{ ibizbook: keys.join(';') }),Object.assign({ ibizbook: keys.join(';') },{viewparams:this.viewparams}), this.showBusyIndicator);
if (!response || response.status !== 200) { if (!response || response.status !== 200) {
if (!(await this.handleCtrlEvents('onremoveerror', { data: response && response.data ? response.data : arg }))) { if (!(await this.handleCtrlEvents('onremoveerror', { data: response && response.data ? response.data : datas }))) {
return; return;
} }
this.$Notice.error({ title: '', desc: (this.$t('app.commonWords.delDataFail') as string) + ',' + response.info }); this.$Notice.error({ title: '', desc: (this.$t('app.commonWords.delDataFail') as string) + ',' + response.info });
...@@ -1032,7 +1032,7 @@ export default class LnternalFuncListBase extends Vue implements ControlInterfac ...@@ -1032,7 +1032,7 @@ export default class LnternalFuncListBase extends Vue implements ControlInterfac
this.selections = []; this.selections = [];
return response; return response;
} catch (response: any) { } catch (response: any) {
if (!(await this.handleCtrlEvents('onremoveerror', { data: response && response.data ? response.data : arg }))) { if (!(await this.handleCtrlEvents('onremoveerror', { data: response && response.data ? response.data : datas }))) {
return; return;
} }
if (response && response.status === 401) { if (response && response.status === 401) {
...@@ -1076,7 +1076,7 @@ export default class LnternalFuncListBase extends Vue implements ControlInterfac ...@@ -1076,7 +1076,7 @@ export default class LnternalFuncListBase extends Vue implements ControlInterfac
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: 'IBIZBOOKListView' + (this.$t('app.list.notConfig.createAction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKUsr4ListView_layout' + (this.$t('app.list.notConfig.createAction') as string) });
}else{ }else{
Object.assign(item,{viewparams:this.viewparams}); Object.assign(item,{viewparams:this.viewparams});
let response = await this.service.add(this.createAction, JSON.parse(JSON.stringify(this.context)),item, this.showBusyIndicator); let response = await this.service.add(this.createAction, JSON.parse(JSON.stringify(this.context)),item, this.showBusyIndicator);
...@@ -1084,7 +1084,7 @@ export default class LnternalFuncListBase extends Vue implements ControlInterfac ...@@ -1084,7 +1084,7 @@ export default class LnternalFuncListBase extends Vue implements ControlInterfac
} }
}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.warning') as string), desc: 'IBIZBOOKListView' + (this.$t('app.list.notConfig.updateAction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.warning') as string), desc: 'IBIZBOOKUsr4ListView_layout' + (this.$t('app.list.notConfig.updateAction') as string) });
}else{ }else{
Object.assign(item,{viewparams:this.viewparams}); Object.assign(item,{viewparams:this.viewparams});
if(item.ibizbook){ if(item.ibizbook){
......
...@@ -775,7 +775,7 @@ export default class MajorStateListBase extends Vue implements ControlInterface ...@@ -775,7 +775,7 @@ export default class MajorStateListBase extends Vue implements ControlInterface
try { try {
const response: any = await this.service.delete(_removeAction,Object.assign(context,{ ibizbook: keys.join(';') }),Object.assign({ ibizbook: keys.join(';') },{viewparams:this.viewparams}), this.showBusyIndicator); const response: any = await this.service.delete(_removeAction,Object.assign(context,{ ibizbook: keys.join(';') }),Object.assign({ ibizbook: keys.join(';') },{viewparams:this.viewparams}), this.showBusyIndicator);
if (!response || response.status !== 200) { if (!response || response.status !== 200) {
if (!(await this.handleCtrlEvents('onremoveerror', { data: response && response.data ? response.data : arg }))) { if (!(await this.handleCtrlEvents('onremoveerror', { data: response && response.data ? response.data : datas }))) {
return; return;
} }
this.$Notice.error({ title: '', desc: (this.$t('app.commonWords.delDataFail') as string) + ',' + response.info }); this.$Notice.error({ title: '', desc: (this.$t('app.commonWords.delDataFail') as string) + ',' + response.info });
...@@ -798,7 +798,7 @@ export default class MajorStateListBase extends Vue implements ControlInterface ...@@ -798,7 +798,7 @@ export default class MajorStateListBase extends Vue implements ControlInterface
this.selections = []; this.selections = [];
return response; return response;
} catch (response: any) { } catch (response: any) {
if (!(await this.handleCtrlEvents('onremoveerror', { data: response && response.data ? response.data : arg }))) { if (!(await this.handleCtrlEvents('onremoveerror', { data: response && response.data ? response.data : datas }))) {
return; return;
} }
if (response && response.status === 401) { if (response && response.status === 401) {
......
...@@ -798,7 +798,7 @@ export default class UsrBase extends Vue implements ControlInterface { ...@@ -798,7 +798,7 @@ export default class UsrBase extends Vue implements ControlInterface {
try { try {
const response: any = await this.service.delete(_removeAction,Object.assign(context,{ ibizbook: keys.join(';') }),Object.assign({ ibizbook: keys.join(';') },{viewparams:this.viewparams}), this.showBusyIndicator); const response: any = await this.service.delete(_removeAction,Object.assign(context,{ ibizbook: keys.join(';') }),Object.assign({ ibizbook: keys.join(';') },{viewparams:this.viewparams}), this.showBusyIndicator);
if (!response || response.status !== 200) { if (!response || response.status !== 200) {
if (!(await this.handleCtrlEvents('onremoveerror', { data: response && response.data ? response.data : arg }))) { if (!(await this.handleCtrlEvents('onremoveerror', { data: response && response.data ? response.data : datas }))) {
return; return;
} }
this.$Notice.error({ title: '', desc: (this.$t('app.commonWords.delDataFail') as string) + ',' + response.info }); this.$Notice.error({ title: '', desc: (this.$t('app.commonWords.delDataFail') as string) + ',' + response.info });
...@@ -821,7 +821,7 @@ export default class UsrBase extends Vue implements ControlInterface { ...@@ -821,7 +821,7 @@ export default class UsrBase extends Vue implements ControlInterface {
this.selections = []; this.selections = [];
return response; return response;
} catch (response: any) { } catch (response: any) {
if (!(await this.handleCtrlEvents('onremoveerror', { data: response && response.data ? response.data : arg }))) { if (!(await this.handleCtrlEvents('onremoveerror', { data: response && response.data ? response.data : datas }))) {
return; return;
} }
if (response && response.status === 401) { if (response && response.status === 401) {
......
...@@ -719,7 +719,7 @@ export default class OrderDetailsListBase extends Vue implements ControlInterfac ...@@ -719,7 +719,7 @@ export default class OrderDetailsListBase extends Vue implements ControlInterfac
try { try {
const response: any = await this.service.delete(_removeAction,Object.assign(context,{ ibizorderdetail: keys.join(';') }),Object.assign({ ibizorderdetail: keys.join(';') },{viewparams:this.viewparams}), this.showBusyIndicator); const response: any = await this.service.delete(_removeAction,Object.assign(context,{ ibizorderdetail: keys.join(';') }),Object.assign({ ibizorderdetail: keys.join(';') },{viewparams:this.viewparams}), this.showBusyIndicator);
if (!response || response.status !== 200) { if (!response || response.status !== 200) {
if (!(await this.handleCtrlEvents('onremoveerror', { data: response && response.data ? response.data : arg }))) { if (!(await this.handleCtrlEvents('onremoveerror', { data: response && response.data ? response.data : datas }))) {
return; return;
} }
this.$Notice.error({ title: '', desc: (this.$t('app.commonWords.delDataFail') as string) + ',' + response.info }); this.$Notice.error({ title: '', desc: (this.$t('app.commonWords.delDataFail') as string) + ',' + response.info });
...@@ -742,7 +742,7 @@ export default class OrderDetailsListBase extends Vue implements ControlInterfac ...@@ -742,7 +742,7 @@ export default class OrderDetailsListBase extends Vue implements ControlInterfac
this.selections = []; this.selections = [];
return response; return response;
} catch (response: any) { } catch (response: any) {
if (!(await this.handleCtrlEvents('onremoveerror', { data: response && response.data ? response.data : arg }))) { if (!(await this.handleCtrlEvents('onremoveerror', { data: response && response.data ? response.data : datas }))) {
return; return;
} }
if (response && response.status === 401) { if (response && response.status === 401) {
......
...@@ -678,7 +678,7 @@ export default class OrderDetailsMoneyBase extends Vue implements ControlInterfa ...@@ -678,7 +678,7 @@ export default class OrderDetailsMoneyBase extends Vue implements ControlInterfa
try { try {
const response: any = await this.service.delete(_removeAction,Object.assign(context,{ ibizorderdetail: keys.join(';') }),Object.assign({ ibizorderdetail: keys.join(';') },{viewparams:this.viewparams}), this.showBusyIndicator); const response: any = await this.service.delete(_removeAction,Object.assign(context,{ ibizorderdetail: keys.join(';') }),Object.assign({ ibizorderdetail: keys.join(';') },{viewparams:this.viewparams}), this.showBusyIndicator);
if (!response || response.status !== 200) { if (!response || response.status !== 200) {
if (!(await this.handleCtrlEvents('onremoveerror', { data: response && response.data ? response.data : arg }))) { if (!(await this.handleCtrlEvents('onremoveerror', { data: response && response.data ? response.data : datas }))) {
return; return;
} }
this.$Notice.error({ title: '', desc: (this.$t('app.commonWords.delDataFail') as string) + ',' + response.info }); this.$Notice.error({ title: '', desc: (this.$t('app.commonWords.delDataFail') as string) + ',' + response.info });
...@@ -701,7 +701,7 @@ export default class OrderDetailsMoneyBase extends Vue implements ControlInterfa ...@@ -701,7 +701,7 @@ export default class OrderDetailsMoneyBase extends Vue implements ControlInterfa
this.selections = []; this.selections = [];
return response; return response;
} catch (response: any) { } catch (response: any) {
if (!(await this.handleCtrlEvents('onremoveerror', { data: response && response.data ? response.data : arg }))) { if (!(await this.handleCtrlEvents('onremoveerror', { data: response && response.data ? response.data : datas }))) {
return; return;
} }
if (response && response.status === 401) { if (response && response.status === 401) {
......
...@@ -678,7 +678,7 @@ export default class OrderDetailsTotalBase extends Vue implements ControlInterfa ...@@ -678,7 +678,7 @@ export default class OrderDetailsTotalBase extends Vue implements ControlInterfa
try { try {
const response: any = await this.service.delete(_removeAction,Object.assign(context,{ ibizorderdetail: keys.join(';') }),Object.assign({ ibizorderdetail: keys.join(';') },{viewparams:this.viewparams}), this.showBusyIndicator); const response: any = await this.service.delete(_removeAction,Object.assign(context,{ ibizorderdetail: keys.join(';') }),Object.assign({ ibizorderdetail: keys.join(';') },{viewparams:this.viewparams}), this.showBusyIndicator);
if (!response || response.status !== 200) { if (!response || response.status !== 200) {
if (!(await this.handleCtrlEvents('onremoveerror', { data: response && response.data ? response.data : arg }))) { if (!(await this.handleCtrlEvents('onremoveerror', { data: response && response.data ? response.data : datas }))) {
return; return;
} }
this.$Notice.error({ title: '', desc: (this.$t('app.commonWords.delDataFail') as string) + ',' + response.info }); this.$Notice.error({ title: '', desc: (this.$t('app.commonWords.delDataFail') as string) + ',' + response.info });
...@@ -701,7 +701,7 @@ export default class OrderDetailsTotalBase extends Vue implements ControlInterfa ...@@ -701,7 +701,7 @@ export default class OrderDetailsTotalBase extends Vue implements ControlInterfa
this.selections = []; this.selections = [];
return response; return response;
} catch (response: any) { } catch (response: any) {
if (!(await this.handleCtrlEvents('onremoveerror', { data: response && response.data ? response.data : arg }))) { if (!(await this.handleCtrlEvents('onremoveerror', { data: response && response.data ? response.data : datas }))) {
return; return;
} }
if (response && response.status === 401) { if (response && response.status === 401) {
......
...@@ -679,7 +679,7 @@ export default class OrderDetailsTypeBase extends Vue implements ControlInterfac ...@@ -679,7 +679,7 @@ export default class OrderDetailsTypeBase extends Vue implements ControlInterfac
try { try {
const response: any = await this.service.delete(_removeAction,Object.assign(context,{ ibizorderdetail: keys.join(';') }),Object.assign({ ibizorderdetail: keys.join(';') },{viewparams:this.viewparams}), this.showBusyIndicator); const response: any = await this.service.delete(_removeAction,Object.assign(context,{ ibizorderdetail: keys.join(';') }),Object.assign({ ibizorderdetail: keys.join(';') },{viewparams:this.viewparams}), this.showBusyIndicator);
if (!response || response.status !== 200) { if (!response || response.status !== 200) {
if (!(await this.handleCtrlEvents('onremoveerror', { data: response && response.data ? response.data : arg }))) { if (!(await this.handleCtrlEvents('onremoveerror', { data: response && response.data ? response.data : datas }))) {
return; return;
} }
this.$Notice.error({ title: '', desc: (this.$t('app.commonWords.delDataFail') as string) + ',' + response.info }); this.$Notice.error({ title: '', desc: (this.$t('app.commonWords.delDataFail') as string) + ',' + response.info });
...@@ -702,7 +702,7 @@ export default class OrderDetailsTypeBase extends Vue implements ControlInterfac ...@@ -702,7 +702,7 @@ export default class OrderDetailsTypeBase extends Vue implements ControlInterfac
this.selections = []; this.selections = [];
return response; return response;
} catch (response: any) { } catch (response: any) {
if (!(await this.handleCtrlEvents('onremoveerror', { data: response && response.data ? response.data : arg }))) { if (!(await this.handleCtrlEvents('onremoveerror', { data: response && response.data ? response.data : datas }))) {
return; return;
} }
if (response && response.status === 401) { if (response && response.status === 401) {
......
...@@ -749,7 +749,7 @@ export default class ListExpBase extends Vue implements ControlInterface { ...@@ -749,7 +749,7 @@ export default class ListExpBase extends Vue implements ControlInterface {
try { try {
const response: any = await this.service.delete(_removeAction,Object.assign(context,{ ibizorder: keys.join(';') }),Object.assign({ ibizorder: keys.join(';') },{viewparams:this.viewparams}), this.showBusyIndicator); const response: any = await this.service.delete(_removeAction,Object.assign(context,{ ibizorder: keys.join(';') }),Object.assign({ ibizorder: keys.join(';') },{viewparams:this.viewparams}), this.showBusyIndicator);
if (!response || response.status !== 200) { if (!response || response.status !== 200) {
if (!(await this.handleCtrlEvents('onremoveerror', { data: response && response.data ? response.data : arg }))) { if (!(await this.handleCtrlEvents('onremoveerror', { data: response && response.data ? response.data : datas }))) {
return; return;
} }
this.$Notice.error({ title: '', desc: (this.$t('app.commonWords.delDataFail') as string) + ',' + response.info }); this.$Notice.error({ title: '', desc: (this.$t('app.commonWords.delDataFail') as string) + ',' + response.info });
...@@ -772,7 +772,7 @@ export default class ListExpBase extends Vue implements ControlInterface { ...@@ -772,7 +772,7 @@ export default class ListExpBase extends Vue implements ControlInterface {
this.selections = []; this.selections = [];
return response; return response;
} catch (response: any) { } catch (response: any) {
if (!(await this.handleCtrlEvents('onremoveerror', { data: response && response.data ? response.data : arg }))) { if (!(await this.handleCtrlEvents('onremoveerror', { data: response && response.data ? response.data : datas }))) {
return; return;
} }
if (response && response.status === 401) { if (response && response.status === 401) {
...@@ -968,5 +968,4 @@ export default class ListExpBase extends Vue implements ControlInterface { ...@@ -968,5 +968,4 @@ export default class ListExpBase extends Vue implements ControlInterface {
<style lang='less'> <style lang='less'>
@import './list-exp-list.less'; @import './list-exp-list.less';
</style>ist-exp-list.less';
</style> </style>
\ No newline at end of file
...@@ -299,7 +299,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -299,7 +299,7 @@ export default class MainBase extends Vue implements ControlInterface {
* @param {*} [$event] 事件源 * @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件 * @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文 * @param {*} [actionContext] 执行行为上下文
* @memberof IBIZOrderSF1GridViewBase * @memberof IBIZOrderPickupGridViewBase
*/ */
public Edit(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) { public Edit(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
if (args.length === 0) { if (args.length === 0) {
...@@ -442,20 +442,6 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -442,20 +442,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;
/**
* 打开编辑数据视图
*
* @type {any}
* @memberof MainBase
*/
@Prop() public opendata: any;
/** /**
* 是否嵌入关系界面 * 是否嵌入关系界面
...@@ -990,7 +976,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -990,7 +976,7 @@ export default class MainBase extends Vue implements ControlInterface {
if (!this.fetchAction) { if (!this.fetchAction) {
this.$Notice.error({ this.$Notice.error({
title: this.$t("app.commonWords.wrong") as string, title: this.$t("app.commonWords.wrong") as string,
desc: "IBIZOrderSF1GridView" + (this.$t("app.gridpage.notConfig.fetchAction") as string), desc: "IBIZOrderPickupGridView" + (this.$t("app.gridpage.notConfig.fetchAction") as string),
}); });
return; return;
} }
...@@ -1119,7 +1105,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1119,7 +1105,7 @@ export default class MainBase extends Vue implements ControlInterface {
if (!this.removeAction) { if (!this.removeAction) {
this.$Notice.error({ this.$Notice.error({
title: (this.$t('app.commonWords.wrong') as string), title: (this.$t('app.commonWords.wrong') as string),
desc: 'IBIZOrderSF1GridView' + (this.$t('app.gridpage.notConfig.removeAction') as string) desc: 'IBIZOrderPickupGridView' + (this.$t('app.gridpage.notConfig.removeAction') as string)
}); });
return; return;
} }
...@@ -1233,7 +1219,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1233,7 +1219,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: 'IBIZOrderSF1GridView'+(this.$t('app.gridpage.notConfig.fetchAction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderPickupGridView'+(this.$t('app.gridpage.notConfig.fetchAction') as string) });
return; return;
} }
if(!arg){ if(!arg){
...@@ -2164,7 +2150,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -2164,7 +2150,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: 'IBIZOrderSF1GridView'+(this.$t('app.gridpage.notConfig.createAction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderPickupGridView'+(this.$t('app.gridpage.notConfig.createAction') as string) });
} else { } else {
Object.assign(item, { viewparams: this.viewparams }); Object.assign(item, { viewparams: this.viewparams });
const tempContext = Util.deepCopy(this.context); const tempContext = Util.deepCopy(this.context);
...@@ -2173,7 +2159,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -2173,7 +2159,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: 'IBIZOrderSF1GridView'+(this.$t('app.gridpage.notConfig.updateAction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderPickupGridView'+(this.$t('app.gridpage.notConfig.updateAction') as string) });
} else { } else {
Object.assign(item, { viewparams: this.viewparams }); Object.assign(item, { viewparams: this.viewparams });
const tempContext = Util.deepCopy(this.context); const tempContext = Util.deepCopy(this.context);
...@@ -2249,7 +2235,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -2249,7 +2235,7 @@ export default class MainBase extends Vue implements ControlInterface {
if(!this.loaddraftAction){ if(!this.loaddraftAction){
this.$Notice.error({ this.$Notice.error({
title: (this.$t('app.commonWords.wrong') as string), title: (this.$t('app.commonWords.wrong') as string),
desc: 'IBIZOrderSF1GridView' + (this.$t('app.gridpage.notConfig.loaddraftAction') as string) desc: 'IBIZOrderPickupGridView' + (this.$t('app.gridpage.notConfig.loaddraftAction') as string)
}); });
return; return;
} }
......
...@@ -104,21 +104,6 @@ export default class MainModel { ...@@ -104,21 +104,6 @@ export default class MainModel {
prop: 'n_ibizordername_like', prop: 'n_ibizordername_like',
dataType: 'QUERYPARAM' dataType: 'QUERYPARAM'
}, },
{
name: 'n_orderstate_eq',
prop: 'n_orderstate_eq',
dataType: 'QUERYPARAM'
},
{
name: 'n_ordertime_gt',
prop: 'n_ordertime_gt',
dataType: 'QUERYPARAM'
},
{
name: 'n_ordertime_lt',
prop: 'n_ordertime_lt',
dataType: 'QUERYPARAM'
},
{ {
name:'size', name:'size',
......
...@@ -705,7 +705,7 @@ export default class UsrBase extends Vue implements ControlInterface { ...@@ -705,7 +705,7 @@ export default class UsrBase extends Vue implements ControlInterface {
try { try {
const response: any = await this.service.delete(_removeAction,Object.assign(context,{ ibizorder: keys.join(';') }),Object.assign({ ibizorder: keys.join(';') },{viewparams:this.viewparams}), this.showBusyIndicator); const response: any = await this.service.delete(_removeAction,Object.assign(context,{ ibizorder: keys.join(';') }),Object.assign({ ibizorder: keys.join(';') },{viewparams:this.viewparams}), this.showBusyIndicator);
if (!response || response.status !== 200) { if (!response || response.status !== 200) {
if (!(await this.handleCtrlEvents('onremoveerror', { data: response && response.data ? response.data : arg }))) { if (!(await this.handleCtrlEvents('onremoveerror', { data: response && response.data ? response.data : datas }))) {
return; return;
} }
this.$Notice.error({ title: '', desc: (this.$t('app.commonWords.delDataFail') as string) + ',' + response.info }); this.$Notice.error({ title: '', desc: (this.$t('app.commonWords.delDataFail') as string) + ',' + response.info });
...@@ -728,7 +728,7 @@ export default class UsrBase extends Vue implements ControlInterface { ...@@ -728,7 +728,7 @@ export default class UsrBase extends Vue implements ControlInterface {
this.selections = []; this.selections = [];
return response; return response;
} catch (response: any) { } catch (response: any) {
if (!(await this.handleCtrlEvents('onremoveerror', { data: response && response.data ? response.data : arg }))) { if (!(await this.handleCtrlEvents('onremoveerror', { data: response && response.data ? response.data : datas }))) {
return; return;
} }
if (response && response.status === 401) { if (response && response.status === 401) {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册