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

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

上级 a6872721
......@@ -75,6 +75,7 @@ export default class EditView2Engine extends EditViewEngine {
public drBarSelectionChange(data: any): void {
if (data) {
this.view.drItem = data;
this.setNavPosData(data);
if (this.getDRBar()) {
this.setViewState2({ tag: this.getDRBar().name, action: 'change', viewdata: data });
}
......@@ -119,6 +120,24 @@ export default class EditView2Engine extends EditViewEngine {
}
}
/**
* 设置导航数据
*
* @protected
* @param {*} data
* @return {*}
* @memberof EditView2Engine
*/
protected setNavPosData(data: any) {
if (!this.view.layoutModelDetails) {
return;
}
const navPos: any = Object.values(this.view.layoutModelDetails).find((item: any) => {
return item.predefinedType === "NAV_POS";
});
navPos.navData = data;
}
/**
* 获取关系
*
......
......@@ -438,8 +438,7 @@ export default class IBIZCustomerMediaTestEditViewBase extends Vue {
* @public
* @memberof IBIZCustomerMediaTestEditViewBase
*/
public handleButtonClick($event: any) {
public handleButtonClick(name: string, $event?: any) {
}
......
......@@ -6,7 +6,7 @@
<app-alert-group position='TOP' :context="context" :viewparam="viewparams" infoGroup='VMGroup30' viewname='ibizorderseditview2'></app-alert-group> </div>
<div slot='title' class="header-container">
<span class='caption-info'>{{$t(model.srfCaption)}}</span>
<template v-if="Object.is(drItem.id, 'form')">
<template v-if="!(drItem && drItem.id && drItem.id !== 'form')">
<div class='toolbar-container'>
<tooltip :transfer="true" :max-width="600">
<i-button v-show="toolBarModels.deuiaction1.visabled" :disabled="toolBarModels.deuiaction1.disabled" class='' v-loading:i-button @click="toolbar_click({ tag: 'deuiaction1' }, $event)">
......@@ -95,7 +95,7 @@
<component
class="view-container2"
v-if="drItem && drItem.id && drItem.id !== 'form'"
:is="drItem.drView"
:is="drItem.navView"
:viewDefaultUsage="false"
:viewdata="JSON.stringify(drItem.srfnavdata.context)"
:viewparam="JSON.stringify(drItem.srfnavdata.viewparams)">
......
......@@ -4,7 +4,7 @@
<card class='view-card ' :dis-hover="true" :bordered="false">
<div slot='title' class="header-container">
<span class='caption-info'>{{$t(model.srfCaption)}}</span>
<template v-if="Object.is(drItem.id, 'form')">
<template v-if="!(drItem && drItem.id && drItem.id !== 'form')">
<div class='toolbar-container'>
<tooltip :transfer="true" :max-width="600">
<i-button v-show="toolBarModels.deuiaction1.visabled" :disabled="toolBarModels.deuiaction1.disabled" class='' v-loading:i-button @click="toolbar_click({ tag: 'deuiaction1' }, $event)">
......@@ -93,7 +93,7 @@
<component
class="view-container2"
v-if="drItem && drItem.id && drItem.id !== 'form'"
:is="drItem.drView"
:is="drItem.navView"
:viewDefaultUsage="false"
:viewdata="JSON.stringify(drItem.srfnavdata.context)"
:viewparam="JSON.stringify(drItem.srfnavdata.viewparams)">
......
......@@ -4,7 +4,7 @@
<card class='view-card ' :dis-hover="true" :bordered="false">
<div slot='title' class="header-container">
<span class='caption-info'>{{$t(model.srfCaption)}}</span>
<template v-if="Object.is(drItem.id, 'form')">
<template v-if="!(drItem && drItem.id && drItem.id !== 'form')">
<div class='toolbar-container'>
<tooltip :transfer="true" :max-width="600">
<i-button v-show="toolBarModels.deuiaction1.visabled" :disabled="toolBarModels.deuiaction1.disabled" class='' v-loading:i-button @click="toolbar_click({ tag: 'deuiaction1' }, $event)">
......@@ -93,7 +93,7 @@
<component
class="view-container2"
v-if="drItem && drItem.id && drItem.id !== 'form'"
:is="drItem.drView"
:is="drItem.navView"
:viewDefaultUsage="false"
:viewdata="JSON.stringify(drItem.srfnavdata.context)"
:viewparam="JSON.stringify(drItem.srfnavdata.viewparams)">
......
......@@ -4,7 +4,7 @@
<card class='view-card ' :dis-hover="true" :bordered="false">
<div slot='title' class="header-container">
<span class='caption-info'>{{$t(model.srfCaption)}}</span>
<template v-if="Object.is(drItem.id, 'form')">
<template v-if="!(drItem && drItem.id && drItem.id !== 'form')">
<div class='toolbar-container'>
<tooltip :transfer="true" :max-width="600">
<i-button v-show="toolBarModels.deuiaction1.visabled" :disabled="toolBarModels.deuiaction1.disabled" class='' v-loading:i-button @click="toolbar_click({ tag: 'deuiaction1' }, $event)">
......@@ -93,7 +93,7 @@
<component
class="view-container2"
v-if="drItem && drItem.id && drItem.id !== 'form'"
:is="drItem.drView"
:is="drItem.navView"
:viewDefaultUsage="false"
:viewdata="JSON.stringify(drItem.srfnavdata.context)"
:viewparam="JSON.stringify(drItem.srfnavdata.viewparams)">
......
......@@ -425,8 +425,7 @@ export default class IBIZOrderTestCLEditView2Base extends Vue {
* @public
* @memberof IBIZOrderTestCLEditView2Base
*/
public handleButtonClick($event: any) {
public handleButtonClick(name: string, $event?: any) {
}
......
......@@ -297,8 +297,7 @@ export default class IBIZOrderTestCustomLayoutPanelGridExpViewBase extends Vue {
* @public
* @memberof IBIZOrderTestCustomLayoutPanelGridExpViewBase
*/
public handleButtonClick($event: any) {
public handleButtonClick(name: string, $event?: any) {
}
......
......@@ -373,8 +373,7 @@ export default class IBIZOrderUsr2GridViewBase extends Vue {
* @public
* @memberof IBIZOrderUsr2GridViewBase
*/
public handleButtonClick($event: any) {
public handleButtonClick(name: string, $event?: any) {
}
......
......@@ -322,8 +322,10 @@ export default class IndexBase extends Vue {
* @public
* @memberof IndexBase
*/
public handleButtonClick($event: any) {
public handleButtonClick(name: string, $event?: any) {
if (Object.is(name, 'auth_logout1')) {
this.layoutpanel_button_auth_logout1_click(null, '', $event);
}
}
/**
......@@ -343,9 +345,7 @@ export default class IndexBase extends Vue {
let paramJO:any = {};
let contextJO:any = {};
xData = this;
if (_this.getDatas && _this.getDatas instanceof Function) {
datas = [..._this.getDatas()];
}
datas = [this.layoutData];
if(params){
datas = [params];
}
......
......@@ -309,8 +309,16 @@ export default class AppIndexViewBase extends Vue {
* @public
* @memberof AppIndexViewBase
*/
public handleButtonClick($event: any) {
public handleButtonClick(name: string, $event?: any) {
if (Object.is(name, 'button_link1')) {
this.layoutpanel_button_button_link1_click(null, '', $event);
}
if (Object.is(name, 'button_openview1')) {
this.layoutpanel_button_button_openview1_click(null, '', $event);
}
if (Object.is(name, 'button_calluilogic1')) {
this.layoutpanel_button_button_calluilogic1_click(null, '', $event);
}
}
/**
......@@ -330,9 +338,7 @@ export default class AppIndexViewBase extends Vue {
let paramJO:any = {};
let contextJO:any = {};
xData = this;
if (_this.getDatas && _this.getDatas instanceof Function) {
datas = [..._this.getDatas()];
}
datas = [this.layoutData];
if(params){
datas = [params];
}
......@@ -356,9 +362,7 @@ export default class AppIndexViewBase extends Vue {
let paramJO:any = {};
let contextJO:any = {};
xData = this;
if (_this.getDatas && _this.getDatas instanceof Function) {
datas = [..._this.getDatas()];
}
datas = [this.layoutData];
if(params){
datas = [params];
}
......@@ -382,9 +386,7 @@ export default class AppIndexViewBase extends Vue {
let paramJO:any = {};
let contextJO:any = {};
xData = this;
if (_this.getDatas && _this.getDatas instanceof Function) {
datas = [..._this.getDatas()];
}
datas = [this.layoutData];
if(params){
datas = [params];
}
......
......@@ -289,8 +289,19 @@ export default class AppLoginViewBase extends Vue {
* @public
* @memberof AppLoginViewBase
*/
public handleButtonClick($event: any) {
public handleButtonClick(name: string, $event?: any) {
if (Object.is(name, 'auth_loginbutton1')) {
this.layoutpanel_button_auth_loginbutton1_click(null, '', $event);
}
if (Object.is(name, 'auth_registbutton1')) {
this.layoutpanel_button_auth_registbutton1_click(null, '', $event);
}
if (Object.is(name, 'auth_resetinput1')) {
this.layoutpanel_button_auth_resetinput1_click(null, '', $event);
}
if (Object.is(name, 'auth_logout1')) {
this.layoutpanel_button_auth_logout1_click(null, '', $event);
}
}
/**
......@@ -310,9 +321,7 @@ export default class AppLoginViewBase extends Vue {
let paramJO:any = {};
let contextJO:any = {};
xData = this;
if (_this.getDatas && _this.getDatas instanceof Function) {
datas = [..._this.getDatas()];
}
datas = [this.layoutData];
if(params){
datas = [params];
}
......@@ -336,9 +345,7 @@ export default class AppLoginViewBase extends Vue {
let paramJO:any = {};
let contextJO:any = {};
xData = this;
if (_this.getDatas && _this.getDatas instanceof Function) {
datas = [..._this.getDatas()];
}
datas = [this.layoutData];
if(params){
datas = [params];
}
......@@ -362,9 +369,7 @@ export default class AppLoginViewBase extends Vue {
let paramJO:any = {};
let contextJO:any = {};
xData = this;
if (_this.getDatas && _this.getDatas instanceof Function) {
datas = [..._this.getDatas()];
}
datas = [this.layoutData];
if(params){
datas = [params];
}
......@@ -388,9 +393,7 @@ export default class AppLoginViewBase extends Vue {
let paramJO:any = {};
let contextJO:any = {};
xData = this;
if (_this.getDatas && _this.getDatas instanceof Function) {
datas = [..._this.getDatas()];
}
datas = [this.layoutData];
if(params){
datas = [params];
}
......
......@@ -590,7 +590,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: 'IBIZAPPEDITORGridView' + (this.$t('app.searchForm.notConfig.loadAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZAPPEDITORListView' + (this.$t('app.searchForm.notConfig.loadAction') as string) });
return;
}
const arg: any = { ...opt };
......@@ -626,7 +626,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
*/
public loadDraft(opt: any = {},mode?:string): void {
if(!this.loaddraftAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZAPPEDITORGridView' + (this.$t('app.searchForm.notConfig.loaddraftAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZAPPEDITORListView' + (this.$t('app.searchForm.notConfig.loaddraftAction') as string) });
return;
}
const arg: any = { ...opt } ;
......
......@@ -663,7 +663,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: 'IBIZBOOKGroupByCodelistListView' + (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;
}
const arg: any = { ...opt };
......@@ -699,7 +699,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
*/
public loadDraft(opt: any = {},mode?:string): void {
if(!this.loaddraftAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKGroupByCodelistListView' + (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;
}
const arg: any = { ...opt } ;
......
......@@ -233,7 +233,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
disabled: false,
id: "dritem2",
groupCodeName: 'a7c7923d37319b42645a41908d62bae9',
drView: 'ibizorder-detail-sgrid-view',
navView: 'ibizorder-detail-sgrid-view',
localContext:{CONTEXTPARAM1:"%orderstate%"},
localViewParam:{param2:"%orderstate%"}
},
......@@ -397,7 +397,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
}
const drItem = {
id: selectItem.id,
drView: selectItem.drView,
navView: selectItem.navView,
srfnavdata: {
context: tempContext,
viewparams: tempViewParams
......
......@@ -1545,7 +1545,7 @@ export default class SFormBase extends Vue implements ControlInterface {
*/
public load(opt: any = {}): void {
if(!this.loadAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderTestCLEditView2' + (this.$t('app.formpage.notconfig.loadaction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderSEditView3' + (this.$t('app.formpage.notconfig.loadaction') as string) });
return;
}
const arg: any = { ...opt };
......@@ -1580,7 +1580,7 @@ export default class SFormBase extends Vue implements ControlInterface {
*/
public loadDraft(opt: any = {}): void {
if(!this.loaddraftAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderTestCLEditView2' + (this.$t('app.formpage.notconfig.loaddraftaction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderSEditView3' + (this.$t('app.formpage.notconfig.loaddraftaction') as string) });
return;
}
const arg: any = { ...opt } ;
......@@ -1642,7 +1642,7 @@ export default class SFormBase extends Vue implements ControlInterface {
const action: any = Object.is(data.srfuf, '1') ? this.updateAction : this.createAction;
if(!action){
let actionName:any = Object.is(data.srfuf, '1')?"updateAction":"createAction";
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderTestCLEditView2' + (this.$t('app.formpage.notconfig.actionname') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderSEditView3' + (this.$t('app.formpage.notconfig.actionname') as string) });
return;
}
Object.assign(arg,{viewparams:this.viewparams});
......@@ -1750,7 +1750,7 @@ export default class SFormBase extends Vue implements ControlInterface {
const action: any = Object.is(data.srfuf, '1') ? this.updateAction : this.createAction;
if(!action){
let actionName:any = Object.is(data.srfuf, '1')?"updateAction":"createAction";
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderTestCLEditView2' + (this.$t('app.formpage.notconfig.actionname') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderSEditView3' + (this.$t('app.formpage.notconfig.actionname') as string) });
return;
}
Object.assign(arg,{viewparams:this.viewparams});
......@@ -1827,7 +1827,7 @@ export default class SFormBase extends Vue implements ControlInterface {
public remove(opt:Array<any> = [],showResultInfo?: boolean): Promise<any> {
return new Promise((resolve: any, reject: any) => {
if(!this.removeAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderTestCLEditView2' + (this.$t('app.formpage.notconfig.removeaction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderSEditView3' + (this.$t('app.formpage.notconfig.removeaction') as string) });
return;
}
const arg: any = opt[0];
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册