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

xignzi006 发布系统代码

上级 c04bb35b
......@@ -29,16 +29,6 @@
"viewtag": "06c6da1c8093784a9e76e1ccc52231b7",
"memo": "系统自动添加"
},
"accountedit_accountinfo": {
"title": "地址信息",
"caption": "客户",
"viewtype": "DEEDITVIEW",
"viewmodule": "Base",
"viewname": "AccountEdit_AccountInfo",
"viewfilename": "account-edit-account-info",
"viewtag": "0d25ba75b06acd9c995642d0a45fcd2c",
"memo": "系统自动添加"
},
"salesordereditview": {
"title": "salesorder编辑视图",
"caption": "订单",
......@@ -249,6 +239,16 @@
"viewtag": "631a4276161c551802f3aaf4bd7e607c",
"memo": ""
},
"accountedit_accountinfo": {
"title": "账户信息",
"caption": "账户信息",
"viewtype": "DEOPTVIEW",
"viewmodule": "Base",
"viewname": "AccountEdit_AccountInfo",
"viewfilename": "account-edit-account-info",
"viewtag": "688201ee5642d41628dbf4deba002d17",
"memo": ""
},
"transactioncurrencypickupgridview": {
"title": "transactioncurrency选择表格视图",
"caption": "货币",
......@@ -269,16 +269,6 @@
"viewtag": "6e18ac74e5685439110f9b4e534ee005",
"memo": "系统自动添加"
},
"accountedit_address": {
"title": "地址信息",
"caption": "客户",
"viewtype": "DEEDITVIEW",
"viewmodule": "Base",
"viewname": "AccountEdit_Address",
"viewfilename": "account-edit-address",
"viewtag": "728b69e2de09e7920b86712bc17ea963",
"memo": "系统自动添加"
},
"accountintroduction": {
"title": "account编辑视图",
"caption": "客户",
......@@ -609,13 +599,13 @@
"viewtag": "e404dc93e70d6284d4e1a083017625ed",
"memo": ""
},
"accountusr2optionview": {
"title": "客户选项操作视图",
"caption": "11",
"accountedit_address": {
"title": "地址信息",
"caption": "地址信息",
"viewtype": "DEOPTVIEW",
"viewmodule": "Base",
"viewname": "AccountUsr2OptionView",
"viewfilename": "account-usr2-option-view",
"viewname": "AccountEdit_Address",
"viewfilename": "account-edit-address",
"viewtag": "e4335da0a7c14a65376eecaabb771fd7",
"memo": ""
},
......
......@@ -165,10 +165,6 @@ export default {
transactioncurrencyname: '货币',
},
views: {
edit_accountinfo: {
caption: "客户",
title: '地址信息',
},
accountinfo: {
caption: "客户",
title: 'account编辑视图',
......@@ -188,14 +184,14 @@ export default {
gridview: {
caption: "客户",
title: 'account表格视图',
},
edit_accountinfo: {
caption: "账户信息",
title: '账户信息',
},
editview: {
caption: "客户",
title: 'account编辑视图',
},
edit_address: {
caption: "客户",
title: '地址信息',
},
introduction: {
caption: "客户",
......@@ -217,9 +213,9 @@ export default {
caption: "客户",
title: 'account编辑视图',
},
usr2optionview: {
caption: "11",
title: '客户选项操作视图',
edit_address: {
caption: "地址信息",
title: '地址信息',
},
pickupgridview: {
caption: "客户",
......@@ -230,7 +226,7 @@ export default {
title: 'account编辑视图',
},
},
edit_accountinfo_form: {
accountinfo_form: {
details: {
group1: "客户基本信息",
formpage1: "基本信息",
......@@ -250,14 +246,12 @@ export default {
tickersymbol: "股票代号",
customertypecode: "关系类型",
defaultpricelevelname: "价目表",
defaultpricelevelid: "价目表",
parentaccountid: "上级单位",
accountid: "客户",
},
uiactions: {
},
},
accountinfo_form: {
edit_accountinfo_form: {
details: {
group1: "客户基本信息",
formpage1: "基本信息",
......@@ -277,12 +271,14 @@ export default {
tickersymbol: "股票代号",
customertypecode: "关系类型",
defaultpricelevelname: "价目表",
defaultpricelevelid: "价目表",
parentaccountid: "上级单位",
accountid: "客户",
},
uiactions: {
},
},
edit_address_form: {
address_form: {
details: {
group1: "客户基本信息",
formpage1: "基本信息",
......@@ -306,7 +302,7 @@ export default {
uiactions: {
},
},
address_form: {
edit_address_form: {
details: {
group1: "客户基本信息",
formpage1: "基本信息",
......@@ -509,82 +505,6 @@ export default {
uiactions: {
},
},
edit_accountinfotoolbar_toolbar: {
tbitem3: {
caption: "Save",
tip: "Save",
},
tbitem4: {
caption: "Save And New",
tip: "Save And New",
},
tbitem5: {
caption: "Save And Close",
tip: "Save And Close Window",
},
tbitem6: {
caption: "-",
tip: "",
},
tbitem7: {
caption: "Remove And Close",
tip: "Remove And Close Window",
},
tbitem8: {
caption: "-",
tip: "",
},
tbitem12: {
caption: "New",
tip: "New",
},
tbitem13: {
caption: "-",
tip: "",
},
tbitem14: {
caption: "Copy",
tip: "Copy {0}",
},
},
edit_addresstoolbar_toolbar: {
tbitem3: {
caption: "Save",
tip: "Save",
},
tbitem4: {
caption: "Save And New",
tip: "Save And New",
},
tbitem5: {
caption: "Save And Close",
tip: "Save And Close Window",
},
tbitem6: {
caption: "-",
tip: "",
},
tbitem7: {
caption: "Remove And Close",
tip: "Remove And Close Window",
},
tbitem8: {
caption: "-",
tip: "",
},
tbitem12: {
caption: "New",
tip: "New",
},
tbitem13: {
caption: "-",
tip: "",
},
tbitem14: {
caption: "Copy",
tip: "Copy {0}",
},
},
gridviewtoolbar_toolbar: {
tbitem1_openquickcreateview: {
caption: "新建",
......
......@@ -164,10 +164,6 @@ export default {
transactioncurrencyname: '货币',
},
views: {
edit_accountinfo: {
caption: '客户',
title: '地址信息',
},
accountinfo: {
caption: '客户',
title: 'account编辑视图',
......@@ -187,14 +183,14 @@ export default {
gridview: {
caption: '客户',
title: 'account表格视图',
},
edit_accountinfo: {
caption: '账户信息',
title: '账户信息',
},
editview: {
caption: '客户',
title: 'account编辑视图',
},
edit_address: {
caption: '客户',
title: '地址信息',
},
introduction: {
caption: '客户',
......@@ -216,9 +212,9 @@ export default {
caption: '客户',
title: 'account编辑视图',
},
usr2optionview: {
caption: '11',
title: '客户选项操作视图',
edit_address: {
caption: '地址信息',
title: '地址信息',
},
pickupgridview: {
caption: '客户',
......@@ -229,7 +225,7 @@ export default {
title: 'account编辑视图',
},
},
edit_accountinfo_form: {
accountinfo_form: {
details: {
group1: '客户基本信息',
formpage1: '基本信息',
......@@ -249,14 +245,12 @@ export default {
tickersymbol: '股票代号',
customertypecode: '关系类型',
defaultpricelevelname: '价目表',
defaultpricelevelid: '价目表',
parentaccountid: '上级单位',
accountid: '客户',
},
uiactions: {
},
},
accountinfo_form: {
edit_accountinfo_form: {
details: {
group1: '客户基本信息',
formpage1: '基本信息',
......@@ -276,12 +270,14 @@ export default {
tickersymbol: '股票代号',
customertypecode: '关系类型',
defaultpricelevelname: '价目表',
defaultpricelevelid: '价目表',
parentaccountid: '上级单位',
accountid: '客户',
},
uiactions: {
},
},
edit_address_form: {
address_form: {
details: {
group1: '客户基本信息',
formpage1: '基本信息',
......@@ -305,7 +301,7 @@ export default {
uiactions: {
},
},
address_form: {
edit_address_form: {
details: {
group1: '客户基本信息',
formpage1: '基本信息',
......@@ -508,82 +504,6 @@ export default {
uiactions: {
},
},
edit_accountinfotoolbar_toolbar: {
tbitem3: {
caption: '保存',
tip: '保存',
},
tbitem4: {
caption: '保存并新建',
tip: '保存并新建',
},
tbitem5: {
caption: '保存并关闭',
tip: '保存并关闭',
},
tbitem6: {
caption: '-',
tip: '',
},
tbitem7: {
caption: '删除并关闭',
tip: '删除并关闭',
},
tbitem8: {
caption: '-',
tip: '',
},
tbitem12: {
caption: '新建',
tip: '新建',
},
tbitem13: {
caption: '-',
tip: '',
},
tbitem14: {
caption: '拷贝',
tip: '拷贝',
},
},
edit_addresstoolbar_toolbar: {
tbitem3: {
caption: '保存',
tip: '保存',
},
tbitem4: {
caption: '保存并新建',
tip: '保存并新建',
},
tbitem5: {
caption: '保存并关闭',
tip: '保存并关闭',
},
tbitem6: {
caption: '-',
tip: '',
},
tbitem7: {
caption: '删除并关闭',
tip: '删除并关闭',
},
tbitem8: {
caption: '-',
tip: '',
},
tbitem12: {
caption: '新建',
tip: '新建',
},
tbitem13: {
caption: '-',
tip: '',
},
tbitem14: {
caption: '拷贝',
tip: '拷贝',
},
},
gridviewtoolbar_toolbar: {
tbitem1_openquickcreateview: {
caption: '新建',
......
......@@ -31,14 +31,6 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "IncidentEditView",
"viewtag": "06c6da1c8093784a9e76e1ccc52231b7"
},
"accountedit_accountinfo": {
"title": "地址信息",
"caption": "客户",
"viewtype": "DEEDITVIEW",
"viewmodule": "Base",
"viewname": "AccountEdit_AccountInfo",
"viewtag": "0d25ba75b06acd9c995642d0a45fcd2c"
},
"salesordereditview": {
"title": "salesorder编辑视图",
"caption": "订单",
......@@ -207,6 +199,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "GoalGridView",
"viewtag": "631a4276161c551802f3aaf4bd7e607c"
},
"accountedit_accountinfo": {
"title": "账户信息",
"caption": "账户信息",
"viewtype": "DEOPTVIEW",
"viewmodule": "Base",
"viewname": "AccountEdit_AccountInfo",
"viewtag": "688201ee5642d41628dbf4deba002d17"
},
"transactioncurrencypickupgridview": {
"title": "transactioncurrency选择表格视图",
"caption": "货币",
......@@ -223,14 +223,6 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "AccountEditView",
"viewtag": "6e18ac74e5685439110f9b4e534ee005"
},
"accountedit_address": {
"title": "地址信息",
"caption": "客户",
"viewtype": "DEEDITVIEW",
"viewmodule": "Base",
"viewname": "AccountEdit_Address",
"viewtag": "728b69e2de09e7920b86712bc17ea963"
},
"accountintroduction": {
"title": "account编辑视图",
"caption": "客户",
......@@ -495,12 +487,12 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "ContactOptionView",
"viewtag": "e404dc93e70d6284d4e1a083017625ed"
},
"accountusr2optionview": {
"title": "客户选项操作视图",
"caption": "11",
"accountedit_address": {
"title": "地址信息",
"caption": "地址信息",
"viewtype": "DEOPTVIEW",
"viewmodule": "Base",
"viewname": "AccountUsr2OptionView",
"viewname": "AccountEdit_Address",
"viewtag": "e4335da0a7c14a65376eecaabb771fd7"
},
"accountpickupgridview": {
......
<template>
<studio-view viewName="accountedit_accountinfo" viewTitle="地址信息" class='deeditview account-edit-account-info'>
<studio-view viewName="accountedit_accountinfo" viewTitle="账户信息" class='deoptview account-edit-account-info'>
<template slot='title'>
<span class='caption-info'>{{$t(model.srfTitle)}}</span>
</template>
<template slot="toolbar">
<div class='toolbar-container'>
<i-button :title="$t('entities.account.edit_accountinfotoolbar_toolbar.tbitem3.tip')" v-show="toolBarModels.tbitem3.visabled" :disabled="toolBarModels.tbitem3.disabled" class='' @click="toolbar_click({ tag: 'tbitem3' }, $event)">
<i class='fa fa-save'></i>
<span class='caption'>{{$t('entities.account.edit_accountinfotoolbar_toolbar.tbitem3.caption')}}</span>
</i-button>
<i-button :title="$t('entities.account.edit_accountinfotoolbar_toolbar.tbitem4.tip')" v-show="toolBarModels.tbitem4.visabled" :disabled="toolBarModels.tbitem4.disabled" class='' @click="toolbar_click({ tag: 'tbitem4' }, $event)">
<i class='sx-tb-saveandnew'></i>
<span class='caption'>{{$t('entities.account.edit_accountinfotoolbar_toolbar.tbitem4.caption')}}</span>
</i-button>
<i-button :title="$t('entities.account.edit_accountinfotoolbar_toolbar.tbitem5.tip')" v-show="toolBarModels.tbitem5.visabled" :disabled="toolBarModels.tbitem5.disabled" class='' @click="toolbar_click({ tag: 'tbitem5' }, $event)">
<i class='sx-tb-saveandclose'></i>
<span class='caption'>{{$t('entities.account.edit_accountinfotoolbar_toolbar.tbitem5.caption')}}</span>
</i-button>
<span class='seperator'>|</span> <i-button :title="$t('entities.account.edit_accountinfotoolbar_toolbar.tbitem7.tip')" v-show="toolBarModels.tbitem7.visabled" :disabled="toolBarModels.tbitem7.disabled" class='' @click="toolbar_click({ tag: 'tbitem7' }, $event)">
<i class='fa fa-remove'></i>
<span class='caption'>{{$t('entities.account.edit_accountinfotoolbar_toolbar.tbitem7.caption')}}</span>
</i-button>
<span class='seperator'>|</span> <i-button :title="$t('entities.account.edit_accountinfotoolbar_toolbar.tbitem12.tip')" v-show="toolBarModels.tbitem12.visabled" :disabled="toolBarModels.tbitem12.disabled" class='' @click="toolbar_click({ tag: 'tbitem12' }, $event)">
<i class='fa fa-file-text-o'></i>
<span class='caption'>{{$t('entities.account.edit_accountinfotoolbar_toolbar.tbitem12.caption')}}</span>
</i-button>
<span class='seperator'>|</span> <i-button :title="$t('entities.account.edit_accountinfotoolbar_toolbar.tbitem14.tip')" v-show="toolBarModels.tbitem14.visabled" :disabled="toolBarModels.tbitem14.disabled" class='' @click="toolbar_click({ tag: 'tbitem14' }, $event)">
<i class='fa fa-copy'></i>
<span class='caption'>{{$t('entities.account.edit_accountinfotoolbar_toolbar.tbitem14.caption')}}</span>
</i-button>
</div>
</template>
<view_form
:viewState="viewState"
:viewparams="viewparams"
......@@ -53,6 +25,13 @@
@load="form_load($event)"
@closeview="closeView($event)">
</view_form>
<template slot="footer">
<div class="option-view-footer-actions">
<i-button type='primary' @click="onClickOk">{{ containerModel.view_okbtn.text }}</i-button>
&nbsp;&nbsp;
<i-button @click="onClickCancel">{{ containerModel.view_cancelbtn.text }}</i-button>
</div>
</template>
</studio-view>
</template>
......@@ -62,7 +41,7 @@ import { UIActionTool,Util } from '@/utils';
import { Subject } from 'rxjs';
import AccountService from '@/service/account/account-service';
import EditViewEngine from '@engine/view/edit-view-engine';
import OptionViewEngine from '@engine/view/option-view-engine';
......@@ -131,7 +110,7 @@ export default class AccountEdit_AccountInfoBase extends Vue {
* @type {string}
* @memberof AccountEdit_AccountInfoBase
*/
public viewtag: string = '0d25ba75b06acd9c995642d0a45fcd2c';
public viewtag: string = '688201ee5642d41628dbf4deba002d17';
/**
* 自定义视图导航上下文集合
......@@ -208,8 +187,13 @@ export default class AccountEdit_AccountInfoBase extends Vue {
* @memberof AccountEdit_AccountInfoBase
*/
public containerModel: any = {
view_toolbar: { name: 'toolbar', type: 'TOOLBAR' },
view_form: { name: 'form', type: 'FORM' },
view_okbtn: { name: 'okbtn', type: 'button', text: '确定', disabled: true },
view_cancelbtn: { name: 'cancelbtn', type: 'button', text: '取消', disabled: false },
view_leftbtn: { name: 'leftbtn', type: 'button', text: '左移', disabled: true },
view_rightbtn: { name: 'rightbtn', type: 'button', text: '右移', disabled: true },
view_allleftbtn: { name: 'allleftbtn', type: 'button', text: '全部左移', disabled: true },
view_allrightbtn: { name: 'allrightbtn', type: 'button', text: '全部右移', disabled: true },
};
/**
......@@ -236,30 +220,6 @@ export default class AccountEdit_AccountInfoBase extends Vue {
* @memberof AccountEdit_AccountInfoBase
*/
public viewState: Subject<ViewState> = new Subject();
/**
* 工具栏模型
*
* @type {*}
* @memberof AccountEdit_AccountInfo
*/
public toolBarModels: any = {
tbitem3: { name: 'tbitem3', caption: '保存', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'Save', target: '' } },
tbitem4: { name: 'tbitem4', caption: '保存并新建', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'SaveAndNew', target: '' } },
tbitem5: { name: 'tbitem5', caption: '保存并关闭', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'SaveAndExit', target: '' } },
tbitem6: { name: 'tbitem6', type: 'SEPERATOR', visabled: true, dataaccaction: '', uiaction: { } },
tbitem7: { name: 'tbitem7', caption: '删除并关闭', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'RemoveAndExit', target: 'SINGLEKEY' } },
tbitem8: { name: 'tbitem8', type: 'SEPERATOR', visabled: true, dataaccaction: '', uiaction: { } },
tbitem12: { name: 'tbitem12', caption: '新建', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'New', target: '' } },
tbitem13: { name: 'tbitem13', type: 'SEPERATOR', visabled: true, dataaccaction: '', uiaction: { } },
tbitem14: { name: 'tbitem14', caption: '拷贝', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'Copy', target: 'SINGLEKEY' } },
};
......@@ -270,7 +230,7 @@ export default class AccountEdit_AccountInfoBase extends Vue {
* @type {Engine}
* @memberof AccountEdit_AccountInfoBase
*/
public engine: EditViewEngine = new EditViewEngine();
public engine: OptionViewEngine = new OptionViewEngine();
/**
* 引擎初始化
......@@ -481,44 +441,6 @@ export default class AccountEdit_AccountInfoBase extends Vue {
}
/**
* toolbar 部件 click 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof AccountEdit_AccountInfoBase
*/
public toolbar_click($event: any, $event2?: any) {
if (Object.is($event.tag, 'tbitem3')) {
this.toolbar_tbitem3_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem4')) {
this.toolbar_tbitem4_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem5')) {
this.toolbar_tbitem5_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem7')) {
this.toolbar_tbitem7_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem9')) {
this.toolbar_tbitem9_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem10')) {
this.toolbar_tbitem10_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem12')) {
this.toolbar_tbitem12_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem14')) {
this.toolbar_tbitem14_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem15')) {
this.toolbar_tbitem15_click(null, '', $event2);
}
}
/**
* form 部件 save 事件
*
......@@ -556,509 +478,6 @@ export default class AccountEdit_AccountInfoBase extends Vue {
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem3_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
let xData: any = null;
// _this 指向容器对象
const _this: any = this;
let paramJO:any = {};
let contextJO:any = {};
xData = this.$refs.form;
if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.Save(datas, contextJO,paramJO, $event, xData,this,"Account");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem4_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
let xData: any = null;
// _this 指向容器对象
const _this: any = this;
let paramJO:any = {};
let contextJO:any = {};
xData = this.$refs.form;
if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.SaveAndNew(datas, contextJO,paramJO, $event, xData,this,"Account");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem5_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
let xData: any = null;
// _this 指向容器对象
const _this: any = this;
let paramJO:any = {};
let contextJO:any = {};
xData = this.$refs.form;
if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.SaveAndExit(datas, contextJO,paramJO, $event, xData,this,"Account");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem7_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
let xData: any = null;
// _this 指向容器对象
const _this: any = this;
let paramJO:any = {};
let contextJO:any = {};
xData = this.$refs.form;
if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.RemoveAndExit(datas, contextJO,paramJO, $event, xData,this,"Account");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem9_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
let xData: any = null;
// _this 指向容器对象
const _this: any = this;
let paramJO:any = {};
let contextJO:any = {};
xData = this.$refs.form;
if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.SaveAndStart(datas, contextJO,paramJO, $event, xData,this,"Account");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem10_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
let xData: any = null;
// _this 指向容器对象
const _this: any = this;
let paramJO:any = {};
let contextJO:any = {};
xData = this.$refs.form;
if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.ViewWFStep(datas, contextJO,paramJO, $event, xData,this,"Account");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem12_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
let xData: any = null;
// _this 指向容器对象
const _this: any = this;
let paramJO:any = {};
let contextJO:any = {};
xData = this.$refs.form;
if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.New(datas, contextJO,paramJO, $event, xData,this,"Account");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem14_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
let xData: any = null;
// _this 指向容器对象
const _this: any = this;
let paramJO:any = {};
let contextJO:any = {};
xData = this.$refs.form;
if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.Copy(datas, contextJO,paramJO, $event, xData,this,"Account");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem15_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
let xData: any = null;
// _this 指向容器对象
const _this: any = this;
let paramJO:any = {};
let contextJO:any = {};
xData = this.$refs.form;
if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.Print(datas, contextJO,paramJO, $event, xData,this,"Account");
}
/**
* 保存
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof AccountEdit_AccountInfoBase
*/
public Save(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
// 界面行为容器对象 _this
const _this: any = this;
if (xData && xData.save instanceof Function) {
xData.save().then((response: any) => {
if (!response || response.status !== 200) {
return;
}
_this.$emit('viewdataschange', [{ ...response.data }]);
});
} else if (_this.save && _this.save instanceof Function) {
_this.save();
}
}
/**
* 保存并新建
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof AccountEdit_AccountInfoBase
*/
public SaveAndNew(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
const _this: any = this;
if (!xData || !(xData.saveAndNew instanceof Function)) {
return;
}
xData.saveAndNew().then((response: any) => {
if (!response || response.status !== 200) {
_this.$emit('viewdataschange', JSON.stringify({status:'error',action:'saveAndNew'}));
return;
}
_this.$emit('viewdataschange', JSON.stringify({status:'success',action:'saveAndNew',data:response.data}));
if (xData.autoLoad instanceof Function) {
xData.autoLoad();
}
});
}
/**
* 保存并关闭
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof AccountEdit_AccountInfoBase
*/
public SaveAndExit(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
const _this: any = this;
if (xData && xData.saveAndExit instanceof Function) {
xData.saveAndExit().then((response: any) => {
if (!response || response.status !== 200) {
return;
}
if(window.parent){
window.parent.postMessage([{ ...response.data }],'*');
}
});
} else if (_this.saveAndExit && _this.saveAndExit instanceof Function) {
_this.saveAndExit().then((response: any) => {
if (!response || response.status !== 200) {
return;
}
if(window.parent){
window.parent.postMessage([{ ...response.data }],'*');
}
});
}
}
/**
* 删除并关闭
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof AccountEdit_AccountInfoBase
*/
public RemoveAndExit(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
const _this: any = this;
if (xData && xData.removeAndExit instanceof Function) {
xData.removeAndExit().then((response: any) => {
if (!response || response.status !== 200) {
return;
}
if(window.parent){
window.parent.postMessage([{ ...response.data }],'*');
}
});
} else if (_this.removeAndExit && _this.removeAndExit instanceof Function) {
_this.removeAndExit().then((response: any) => {
if (!response || response.status !== 200) {
return;
}
if(window.parent){
window.parent.postMessage([{ ...response.data }],'*');
}
});
}
}
/**
* 开始流程
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof AccountEdit_AccountInfoBase
*/
public SaveAndStart(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
const _this: any = this;
if (!xData || !(xData.wfstart instanceof Function)) {
return;
}
xData.wfstart(args).then((response: any) => {
if (!response || response.status !== 200) {
return;
}
const { data: _data } = response;
if(window.parent){
window.parent.postMessage({ ..._data },'*');
}
if (_this.viewdata) {
_this.$emit('viewdataschange', [{ ..._data }]);
_this.$emit('close');
}else if (this.$tabPageExp) {
this.$tabPageExp.onClose(this.$route.fullPath);
}
});
}
/**
* 当前流程步骤
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof AccountEdit_AccountInfoBase
*/
public ViewWFStep(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
let _this:any = this;
if (!xData || !(xData.wfsubmit instanceof Function)) {
return;
}
xData.wfsubmit(args).then((response: any) => {
if (!response || response.status !== 200) {
return;
}
const { data: _data } = response;
if (_this.viewdata) {
_this.$emit('viewdataschange', [{ ..._data }]);
_this.$emit('close');
} else if (_this.$tabPageExp) {
_this.$tabPageExp.onClose(_this.$route.fullPath);
}
});
}
/**
* 新建
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof AccountEdit_AccountInfoBase
*/
public New(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
const _this: any = this;
if (_this.newdata && _this.newdata instanceof Function) {
const data: any = {};
_this.newdata([{ ...data }],[{ ...data }], params, $event, xData);
} else {
_this.$Notice.error({ title: '错误', desc: 'newdata 视图处理逻辑不存在,请添加!' });
}
}
/**
* 拷贝
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof AccountEdit_AccountInfoBase
*/
public Copy(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
if (args.length === 0) {
return;
}
const _this: any = this;
if (_this.newdata && _this.newdata instanceof Function) {
const data: any = {};
if (args.length > 0) {
Object.assign(data, { srfsourcekey: args[0].srfkey })
actionContext.$store.commit('addCopyData', { srfkey: args[0].srfkey, copyData: args[0] });
}
_this.newdata([{ ...data }],[{ ...data }],params, $event, xData);
} else if (xData && xData.copy instanceof Function) {
if (args.length > 0) {
actionContext.$store.commit('addCopyData', { srfkey: args[0].srfkey, copyData: args[0] });
}
xData.copy(args[0].srfkey);
} else {
_this.$Notice.error({ title: '错误', desc: 'opendata 视图处理逻辑不存在,请添加!' });
}
}
/**
* 打印
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof AccountEdit_AccountInfoBase
*/
public Print(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
let _this:any = this;
if (!xData || !(xData.print instanceof Function) || !$event) {
return ;
}
xData.print();
}
/**
* 关闭视图
......@@ -1103,6 +522,29 @@ export default class AccountEdit_AccountInfoBase extends Vue {
}
}
/**
* 确定
*
* @memberof AccountEdit_AccountInfoBase
*/
public onClickOk(): void {
const form: any = this.$refs.form;
if (!form) return;
form.save().then((res:any) =>{
if(res.status == 200){
this.$emit('close',[res.data]);
}
});
}
/**
* 取消
*
* @memberof AccountEdit_AccountInfoBase
*/
public onClickCancel(): void {
this.$emit('close', null);
}
}
</script>
......
.option-view {
--option-view: 0;
}
// 避免空文件,后台不让空文件过
.account-edit-account-info {
--account-edit-account-info: 0;
}
// 视图样式
// this is less
<template>
<studio-view viewName="accountedit_address" viewTitle="地址信息" class='deeditview account-edit-address'>
<studio-view viewName="accountedit_address" viewTitle="地址信息" class='deoptview account-edit-address'>
<template slot='title'>
<span class='caption-info'>{{$t(model.srfTitle)}}</span>
</template>
<template slot="toolbar">
<div class='toolbar-container'>
<i-button :title="$t('entities.account.edit_addresstoolbar_toolbar.tbitem3.tip')" v-show="toolBarModels.tbitem3.visabled" :disabled="toolBarModels.tbitem3.disabled" class='' @click="toolbar_click({ tag: 'tbitem3' }, $event)">
<i class='fa fa-save'></i>
<span class='caption'>{{$t('entities.account.edit_addresstoolbar_toolbar.tbitem3.caption')}}</span>
</i-button>
<i-button :title="$t('entities.account.edit_addresstoolbar_toolbar.tbitem4.tip')" v-show="toolBarModels.tbitem4.visabled" :disabled="toolBarModels.tbitem4.disabled" class='' @click="toolbar_click({ tag: 'tbitem4' }, $event)">
<i class='sx-tb-saveandnew'></i>
<span class='caption'>{{$t('entities.account.edit_addresstoolbar_toolbar.tbitem4.caption')}}</span>
</i-button>
<i-button :title="$t('entities.account.edit_addresstoolbar_toolbar.tbitem5.tip')" v-show="toolBarModels.tbitem5.visabled" :disabled="toolBarModels.tbitem5.disabled" class='' @click="toolbar_click({ tag: 'tbitem5' }, $event)">
<i class='sx-tb-saveandclose'></i>
<span class='caption'>{{$t('entities.account.edit_addresstoolbar_toolbar.tbitem5.caption')}}</span>
</i-button>
<span class='seperator'>|</span> <i-button :title="$t('entities.account.edit_addresstoolbar_toolbar.tbitem7.tip')" v-show="toolBarModels.tbitem7.visabled" :disabled="toolBarModels.tbitem7.disabled" class='' @click="toolbar_click({ tag: 'tbitem7' }, $event)">
<i class='fa fa-remove'></i>
<span class='caption'>{{$t('entities.account.edit_addresstoolbar_toolbar.tbitem7.caption')}}</span>
</i-button>
<span class='seperator'>|</span> <i-button :title="$t('entities.account.edit_addresstoolbar_toolbar.tbitem12.tip')" v-show="toolBarModels.tbitem12.visabled" :disabled="toolBarModels.tbitem12.disabled" class='' @click="toolbar_click({ tag: 'tbitem12' }, $event)">
<i class='fa fa-file-text-o'></i>
<span class='caption'>{{$t('entities.account.edit_addresstoolbar_toolbar.tbitem12.caption')}}</span>
</i-button>
<span class='seperator'>|</span> <i-button :title="$t('entities.account.edit_addresstoolbar_toolbar.tbitem14.tip')" v-show="toolBarModels.tbitem14.visabled" :disabled="toolBarModels.tbitem14.disabled" class='' @click="toolbar_click({ tag: 'tbitem14' }, $event)">
<i class='fa fa-copy'></i>
<span class='caption'>{{$t('entities.account.edit_addresstoolbar_toolbar.tbitem14.caption')}}</span>
</i-button>
</div>
</template>
<view_form
:viewState="viewState"
:viewparams="viewparams"
......@@ -53,6 +25,13 @@
@load="form_load($event)"
@closeview="closeView($event)">
</view_form>
<template slot="footer">
<div class="option-view-footer-actions">
<i-button type='primary' @click="onClickOk">{{ containerModel.view_okbtn.text }}</i-button>
&nbsp;&nbsp;
<i-button @click="onClickCancel">{{ containerModel.view_cancelbtn.text }}</i-button>
</div>
</template>
</studio-view>
</template>
......@@ -62,7 +41,7 @@ import { UIActionTool,Util } from '@/utils';
import { Subject } from 'rxjs';
import AccountService from '@/service/account/account-service';
import EditViewEngine from '@engine/view/edit-view-engine';
import OptionViewEngine from '@engine/view/option-view-engine';
......@@ -131,7 +110,7 @@ export default class AccountEdit_AddressBase extends Vue {
* @type {string}
* @memberof AccountEdit_AddressBase
*/
public viewtag: string = '728b69e2de09e7920b86712bc17ea963';
public viewtag: string = 'e4335da0a7c14a65376eecaabb771fd7';
/**
* 自定义视图导航上下文集合
......@@ -208,8 +187,13 @@ export default class AccountEdit_AddressBase extends Vue {
* @memberof AccountEdit_AddressBase
*/
public containerModel: any = {
view_toolbar: { name: 'toolbar', type: 'TOOLBAR' },
view_form: { name: 'form', type: 'FORM' },
view_okbtn: { name: 'okbtn', type: 'button', text: '确定', disabled: true },
view_cancelbtn: { name: 'cancelbtn', type: 'button', text: '取消', disabled: false },
view_leftbtn: { name: 'leftbtn', type: 'button', text: '左移', disabled: true },
view_rightbtn: { name: 'rightbtn', type: 'button', text: '右移', disabled: true },
view_allleftbtn: { name: 'allleftbtn', type: 'button', text: '全部左移', disabled: true },
view_allrightbtn: { name: 'allrightbtn', type: 'button', text: '全部右移', disabled: true },
};
/**
......@@ -236,30 +220,6 @@ export default class AccountEdit_AddressBase extends Vue {
* @memberof AccountEdit_AddressBase
*/
public viewState: Subject<ViewState> = new Subject();
/**
* 工具栏模型
*
* @type {*}
* @memberof AccountEdit_Address
*/
public toolBarModels: any = {
tbitem3: { name: 'tbitem3', caption: '保存', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'Save', target: '' } },
tbitem4: { name: 'tbitem4', caption: '保存并新建', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'SaveAndNew', target: '' } },
tbitem5: { name: 'tbitem5', caption: '保存并关闭', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'SaveAndExit', target: '' } },
tbitem6: { name: 'tbitem6', type: 'SEPERATOR', visabled: true, dataaccaction: '', uiaction: { } },
tbitem7: { name: 'tbitem7', caption: '删除并关闭', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'RemoveAndExit', target: 'SINGLEKEY' } },
tbitem8: { name: 'tbitem8', type: 'SEPERATOR', visabled: true, dataaccaction: '', uiaction: { } },
tbitem12: { name: 'tbitem12', caption: '新建', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'New', target: '' } },
tbitem13: { name: 'tbitem13', type: 'SEPERATOR', visabled: true, dataaccaction: '', uiaction: { } },
tbitem14: { name: 'tbitem14', caption: '拷贝', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'Copy', target: 'SINGLEKEY' } },
};
......@@ -270,7 +230,7 @@ export default class AccountEdit_AddressBase extends Vue {
* @type {Engine}
* @memberof AccountEdit_AddressBase
*/
public engine: EditViewEngine = new EditViewEngine();
public engine: OptionViewEngine = new OptionViewEngine();
/**
* 引擎初始化
......@@ -481,44 +441,6 @@ export default class AccountEdit_AddressBase extends Vue {
}
/**
* toolbar 部件 click 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof AccountEdit_AddressBase
*/
public toolbar_click($event: any, $event2?: any) {
if (Object.is($event.tag, 'tbitem3')) {
this.toolbar_tbitem3_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem4')) {
this.toolbar_tbitem4_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem5')) {
this.toolbar_tbitem5_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem7')) {
this.toolbar_tbitem7_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem9')) {
this.toolbar_tbitem9_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem10')) {
this.toolbar_tbitem10_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem12')) {
this.toolbar_tbitem12_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem14')) {
this.toolbar_tbitem14_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem15')) {
this.toolbar_tbitem15_click(null, '', $event2);
}
}
/**
* form 部件 save 事件
*
......@@ -556,509 +478,6 @@ export default class AccountEdit_AddressBase extends Vue {
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem3_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
let xData: any = null;
// _this 指向容器对象
const _this: any = this;
let paramJO:any = {};
let contextJO:any = {};
xData = this.$refs.form;
if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.Save(datas, contextJO,paramJO, $event, xData,this,"Account");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem4_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
let xData: any = null;
// _this 指向容器对象
const _this: any = this;
let paramJO:any = {};
let contextJO:any = {};
xData = this.$refs.form;
if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.SaveAndNew(datas, contextJO,paramJO, $event, xData,this,"Account");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem5_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
let xData: any = null;
// _this 指向容器对象
const _this: any = this;
let paramJO:any = {};
let contextJO:any = {};
xData = this.$refs.form;
if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.SaveAndExit(datas, contextJO,paramJO, $event, xData,this,"Account");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem7_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
let xData: any = null;
// _this 指向容器对象
const _this: any = this;
let paramJO:any = {};
let contextJO:any = {};
xData = this.$refs.form;
if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.RemoveAndExit(datas, contextJO,paramJO, $event, xData,this,"Account");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem9_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
let xData: any = null;
// _this 指向容器对象
const _this: any = this;
let paramJO:any = {};
let contextJO:any = {};
xData = this.$refs.form;
if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.SaveAndStart(datas, contextJO,paramJO, $event, xData,this,"Account");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem10_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
let xData: any = null;
// _this 指向容器对象
const _this: any = this;
let paramJO:any = {};
let contextJO:any = {};
xData = this.$refs.form;
if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.ViewWFStep(datas, contextJO,paramJO, $event, xData,this,"Account");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem12_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
let xData: any = null;
// _this 指向容器对象
const _this: any = this;
let paramJO:any = {};
let contextJO:any = {};
xData = this.$refs.form;
if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.New(datas, contextJO,paramJO, $event, xData,this,"Account");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem14_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
let xData: any = null;
// _this 指向容器对象
const _this: any = this;
let paramJO:any = {};
let contextJO:any = {};
xData = this.$refs.form;
if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.Copy(datas, contextJO,paramJO, $event, xData,this,"Account");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem15_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
let xData: any = null;
// _this 指向容器对象
const _this: any = this;
let paramJO:any = {};
let contextJO:any = {};
xData = this.$refs.form;
if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.Print(datas, contextJO,paramJO, $event, xData,this,"Account");
}
/**
* 保存
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof AccountEdit_AddressBase
*/
public Save(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
// 界面行为容器对象 _this
const _this: any = this;
if (xData && xData.save instanceof Function) {
xData.save().then((response: any) => {
if (!response || response.status !== 200) {
return;
}
_this.$emit('viewdataschange', [{ ...response.data }]);
});
} else if (_this.save && _this.save instanceof Function) {
_this.save();
}
}
/**
* 保存并新建
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof AccountEdit_AddressBase
*/
public SaveAndNew(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
const _this: any = this;
if (!xData || !(xData.saveAndNew instanceof Function)) {
return;
}
xData.saveAndNew().then((response: any) => {
if (!response || response.status !== 200) {
_this.$emit('viewdataschange', JSON.stringify({status:'error',action:'saveAndNew'}));
return;
}
_this.$emit('viewdataschange', JSON.stringify({status:'success',action:'saveAndNew',data:response.data}));
if (xData.autoLoad instanceof Function) {
xData.autoLoad();
}
});
}
/**
* 保存并关闭
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof AccountEdit_AddressBase
*/
public SaveAndExit(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
const _this: any = this;
if (xData && xData.saveAndExit instanceof Function) {
xData.saveAndExit().then((response: any) => {
if (!response || response.status !== 200) {
return;
}
if(window.parent){
window.parent.postMessage([{ ...response.data }],'*');
}
});
} else if (_this.saveAndExit && _this.saveAndExit instanceof Function) {
_this.saveAndExit().then((response: any) => {
if (!response || response.status !== 200) {
return;
}
if(window.parent){
window.parent.postMessage([{ ...response.data }],'*');
}
});
}
}
/**
* 删除并关闭
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof AccountEdit_AddressBase
*/
public RemoveAndExit(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
const _this: any = this;
if (xData && xData.removeAndExit instanceof Function) {
xData.removeAndExit().then((response: any) => {
if (!response || response.status !== 200) {
return;
}
if(window.parent){
window.parent.postMessage([{ ...response.data }],'*');
}
});
} else if (_this.removeAndExit && _this.removeAndExit instanceof Function) {
_this.removeAndExit().then((response: any) => {
if (!response || response.status !== 200) {
return;
}
if(window.parent){
window.parent.postMessage([{ ...response.data }],'*');
}
});
}
}
/**
* 开始流程
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof AccountEdit_AddressBase
*/
public SaveAndStart(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
const _this: any = this;
if (!xData || !(xData.wfstart instanceof Function)) {
return;
}
xData.wfstart(args).then((response: any) => {
if (!response || response.status !== 200) {
return;
}
const { data: _data } = response;
if(window.parent){
window.parent.postMessage({ ..._data },'*');
}
if (_this.viewdata) {
_this.$emit('viewdataschange', [{ ..._data }]);
_this.$emit('close');
}else if (this.$tabPageExp) {
this.$tabPageExp.onClose(this.$route.fullPath);
}
});
}
/**
* 当前流程步骤
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof AccountEdit_AddressBase
*/
public ViewWFStep(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
let _this:any = this;
if (!xData || !(xData.wfsubmit instanceof Function)) {
return;
}
xData.wfsubmit(args).then((response: any) => {
if (!response || response.status !== 200) {
return;
}
const { data: _data } = response;
if (_this.viewdata) {
_this.$emit('viewdataschange', [{ ..._data }]);
_this.$emit('close');
} else if (_this.$tabPageExp) {
_this.$tabPageExp.onClose(_this.$route.fullPath);
}
});
}
/**
* 新建
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof AccountEdit_AddressBase
*/
public New(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
const _this: any = this;
if (_this.newdata && _this.newdata instanceof Function) {
const data: any = {};
_this.newdata([{ ...data }],[{ ...data }], params, $event, xData);
} else {
_this.$Notice.error({ title: '错误', desc: 'newdata 视图处理逻辑不存在,请添加!' });
}
}
/**
* 拷贝
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof AccountEdit_AddressBase
*/
public Copy(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
if (args.length === 0) {
return;
}
const _this: any = this;
if (_this.newdata && _this.newdata instanceof Function) {
const data: any = {};
if (args.length > 0) {
Object.assign(data, { srfsourcekey: args[0].srfkey })
actionContext.$store.commit('addCopyData', { srfkey: args[0].srfkey, copyData: args[0] });
}
_this.newdata([{ ...data }],[{ ...data }],params, $event, xData);
} else if (xData && xData.copy instanceof Function) {
if (args.length > 0) {
actionContext.$store.commit('addCopyData', { srfkey: args[0].srfkey, copyData: args[0] });
}
xData.copy(args[0].srfkey);
} else {
_this.$Notice.error({ title: '错误', desc: 'opendata 视图处理逻辑不存在,请添加!' });
}
}
/**
* 打印
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof AccountEdit_AddressBase
*/
public Print(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
let _this:any = this;
if (!xData || !(xData.print instanceof Function) || !$event) {
return ;
}
xData.print();
}
/**
* 关闭视图
......@@ -1103,6 +522,29 @@ export default class AccountEdit_AddressBase extends Vue {
}
}
/**
* 确定
*
* @memberof AccountEdit_AddressBase
*/
public onClickOk(): void {
const form: any = this.$refs.form;
if (!form) return;
form.save().then((res:any) =>{
if(res.status == 200){
this.$emit('close',[res.data]);
}
});
}
/**
* 取消
*
* @memberof AccountEdit_AddressBase
*/
public onClickCancel(): void {
this.$emit('close', null);
}
}
</script>
......
.option-view {
--option-view: 0;
}
// 避免空文件,后台不让空文件过
.account-edit-address {
--account-edit-address: 0;
}
// 视图样式
// this is less
<template>
<studio-embed-view viewName="contactabstracteditview9" viewTitle="联系人编辑视图" class='deeditview9 contact-abstract-edit-view9'>
<template slot='title'>
<span class='caption-info'>{{$t(model.srfTitle)}}</span>
</template>
<template slot="toolbar">
<div class='toolbar-container'>
<i-button :title="$t('entities.contact.abstracteditview9toolbar_toolbar.deuiaction2.tip')" v-show="toolBarModels.deuiaction2.visabled" :disabled="toolBarModels.deuiaction2.disabled" class='' @click="toolbar_click({ tag: 'deuiaction2' }, $event)">
......
<template>
<studio-embed-view viewName="contactdetailinfoeditview9" viewTitle="联系人编辑视图" class='deeditview9 contact-detail-info-edit-view9'>
<template slot='title'>
<span class='caption-info'>{{$t(model.srfTitle)}}</span>
</template>
<view_form
:viewState="viewState"
:viewparams="viewparams"
......
......@@ -55,11 +55,10 @@ export const PageComponents = {
Vue.component('ibiz-list-edit-view', () => import('@pages/marketing/ibiz-list-edit-view/ibiz-list-edit-view.vue'));
Vue.component('quote-edit-view', () => import('@pages/sales/quote-edit-view/quote-edit-view.vue'));
Vue.component('incident-grid-view', () => import('@pages/service/incident-grid-view/incident-grid-view.vue'));
Vue.component('account-edit-account-info', () => import('@pages/base/account-edit-account-info/account-edit-account-info.vue'));
Vue.component('contact-detail-info-edit-view9', () => import('@pages/base/contact-detail-info-edit-view9/contact-detail-info-edit-view9.vue'));
Vue.component('account-edit-address', () => import('@pages/base/account-edit-address/account-edit-address.vue'));
Vue.component('account-edit-account-info', () => import('@pages/base/account-edit-account-info/account-edit-account-info.vue'));
Vue.component('contact-abstract-edit-view9', () => import('@pages/base/contact-abstract-edit-view9/contact-abstract-edit-view9.vue'));
Vue.component('contact-pickup-view', () => import('@pages/base/contact-pickup-view/contact-pickup-view.vue'));
Vue.component('account-usr2-option-view', () => import('@pages/base/account-usr2-option-view/account-usr2-option-view.vue'));
Vue.component('account-edit-address', () => import('@pages/base/account-edit-address/account-edit-address.vue'));
}
};
\ No newline at end of file
......@@ -231,18 +231,18 @@ const router = new Router({
component: () => import('@pages/ungroup/centeral-portal/centeral-portal.vue'),
},
{
path: 'accounts/:account?/usr2optionview/:usr2optionview?',
path: 'accounts/:account?/edit_address/:edit_address?',
meta: {
caption: 'entities.account.views.usr2optionview.title',
caption: 'entities.account.views.edit_address.title',
info:'',
parameters: [
{ pathName: 'central', parameterName: 'central' },
{ pathName: 'accounts', parameterName: 'account' },
{ pathName: 'usr2optionview', parameterName: 'usr2optionview' },
{ pathName: 'edit_address', parameterName: 'edit_address' },
],
requireAuth: true,
},
component: () => import('@pages/base/account-usr2-option-view/account-usr2-option-view.vue'),
component: () => import('@pages/base/account-edit-address/account-edit-address.vue'),
},
{
path: 'products/:product?/editview/:editview?',
......@@ -440,20 +440,6 @@ const router = new Router({
},
component: () => import('@pages/base/appointment-edit-view/appointment-edit-view.vue'),
},
{
path: 'accounts/:account?/edit_address/:edit_address?',
meta: {
caption: 'entities.account.views.edit_address.title',
info:'',
parameters: [
{ pathName: 'central', parameterName: 'central' },
{ pathName: 'accounts', parameterName: 'account' },
{ pathName: 'edit_address', parameterName: 'edit_address' },
],
requireAuth: true,
},
component: () => import('@pages/base/account-edit-address/account-edit-address.vue'),
},
{
path: 'contacts/:contact?/tabexpview/:tabexpview?',
meta: {
......@@ -860,6 +846,20 @@ const router = new Router({
},
component: () => import('@pages/sales/quote-edit-view/quote-edit-view.vue'),
},
{
path: 'accounts/:account?/edit_accountinfo/:edit_accountinfo?',
meta: {
caption: 'entities.account.views.edit_accountinfo.title',
info:'',
parameters: [
{ pathName: 'central', parameterName: 'central' },
{ pathName: 'accounts', parameterName: 'account' },
{ pathName: 'edit_accountinfo', parameterName: 'edit_accountinfo' },
],
requireAuth: true,
},
component: () => import('@pages/base/account-edit-account-info/account-edit-account-info.vue'),
},
{
path: 'incidents/:incident?/gridview/:gridview?',
meta: {
......@@ -916,19 +916,6 @@ const router = new Router({
},
component: () => import('@pages/service/incident-edit-view/incident-edit-view.vue'),
},
{
path: '/accounts/:account?/edit_accountinfo/:edit_accountinfo?',
meta: {
caption: 'entities.account.views.edit_accountinfo.title',
info:'',
parameters: [
{ pathName: 'accounts', parameterName: 'account' },
{ pathName: 'edit_accountinfo', parameterName: 'edit_accountinfo' },
],
requireAuth: true,
},
component: () => import('@pages/base/account-edit-account-info/account-edit-account-info.vue'),
},
{
path: '/salesorders/:salesorder?/editview/:editview?',
meta: {
......@@ -1190,30 +1177,30 @@ const router = new Router({
component: () => import('@pages/sales/goal-grid-view/goal-grid-view.vue'),
},
{
path: '/accounts/:account?/editview/:editview?',
path: '/accounts/:account?/edit_accountinfo/:edit_accountinfo?',
meta: {
caption: 'entities.account.views.editview.title',
caption: 'entities.account.views.edit_accountinfo.title',
info:'',
parameters: [
{ pathName: 'accounts', parameterName: 'account' },
{ pathName: 'editview', parameterName: 'editview' },
{ pathName: 'edit_accountinfo', parameterName: 'edit_accountinfo' },
],
requireAuth: true,
},
component: () => import('@pages/base/account-edit-view/account-edit-view.vue'),
component: () => import('@pages/base/account-edit-account-info/account-edit-account-info.vue'),
},
{
path: '/accounts/:account?/edit_address/:edit_address?',
path: '/accounts/:account?/editview/:editview?',
meta: {
caption: 'entities.account.views.edit_address.title',
caption: 'entities.account.views.editview.title',
info:'',
parameters: [
{ pathName: 'accounts', parameterName: 'account' },
{ pathName: 'edit_address', parameterName: 'edit_address' },
{ pathName: 'editview', parameterName: 'editview' },
],
requireAuth: true,
},
component: () => import('@pages/base/account-edit-address/account-edit-address.vue'),
component: () => import('@pages/base/account-edit-view/account-edit-view.vue'),
},
{
path: '/accounts/:account?/introduction/:introduction?',
......@@ -1592,17 +1579,17 @@ const router = new Router({
component: () => import('@pages/base/contact-option-view/contact-option-view.vue'),
},
{
path: '/accounts/:account?/usr2optionview/:usr2optionview?',
path: '/accounts/:account?/edit_address/:edit_address?',
meta: {
caption: 'entities.account.views.usr2optionview.title',
caption: 'entities.account.views.edit_address.title',
info:'',
parameters: [
{ pathName: 'accounts', parameterName: 'account' },
{ pathName: 'usr2optionview', parameterName: 'usr2optionview' },
{ pathName: 'edit_address', parameterName: 'edit_address' },
],
requireAuth: true,
},
component: () => import('@pages/base/account-usr2-option-view/account-usr2-option-view.vue'),
component: () => import('@pages/base/account-edit-address/account-edit-address.vue'),
},
{
path: '/accounts/:account?/pickupgridview/:pickupgridview?',
......
......@@ -32,17 +32,6 @@ export const viewstate: any = {
refviews: [
],
},
{
viewtag: '0d25ba75b06acd9c995642d0a45fcd2c',
viewmodule: 'Base',
viewname: 'AccountEdit_AccountInfo',
viewaction: '',
viewdatachange: false,
refviews: [
'8b806fb12589b2fc17d1bb90f4b5422e',
'29bfcd628ab25e297248ff0524d12908',
],
},
{
viewtag: '0ff3eacd51054572cf899247b1c57018',
viewmodule: 'Sales',
......@@ -127,7 +116,7 @@ export const viewstate: any = {
'893e62d6fbdc4580de7e3e802aec9108',
'916febbb65be1c54dd42ccb9914fe973',
'1d3b94223a5d3f8ab1d2fe334c8c4afd',
'728b69e2de09e7920b86712bc17ea963',
'688201ee5642d41628dbf4deba002d17',
'a5213905238dbc5d8e1a505029105cc9',
],
},
......@@ -259,9 +248,9 @@ export const viewstate: any = {
],
},
{
viewtag: '6e18ac74e5685439110f9b4e534ee005',
viewtag: '688201ee5642d41628dbf4deba002d17',
viewmodule: 'Base',
viewname: 'AccountEditView',
viewname: 'AccountEdit_AccountInfo',
viewaction: '',
viewdatachange: false,
refviews: [
......@@ -270,12 +259,14 @@ export const viewstate: any = {
],
},
{
viewtag: '728b69e2de09e7920b86712bc17ea963',
viewtag: '6e18ac74e5685439110f9b4e534ee005',
viewmodule: 'Base',
viewname: 'AccountEdit_Address',
viewname: 'AccountEditView',
viewaction: '',
viewdatachange: false,
refviews: [
'8b806fb12589b2fc17d1bb90f4b5422e',
'29bfcd628ab25e297248ff0524d12908',
],
},
{
......@@ -586,7 +577,7 @@ export const viewstate: any = {
{
viewtag: 'e4335da0a7c14a65376eecaabb771fd7',
viewmodule: 'Base',
viewname: 'AccountUsr2OptionView',
viewname: 'AccountEdit_Address',
viewaction: '',
viewdatachange: false,
refviews: [
......
......@@ -79,20 +79,19 @@ export default class AccountUIServiceBase extends UIService {
* @memberof AccountUIServiceBase
*/
public initViewMap(){
this.allViewMap.set(':',{viewname:'edit_accountinfo',srfappde:'accounts'});
this.allViewMap.set(':',{viewname:'accountinfo',srfappde:'accounts'});
this.allViewMap.set('PICKUPVIEW:',{viewname:'pickupview',srfappde:'accounts'});
this.allViewMap.set(':',{viewname:'summary',srfappde:'accounts'});
this.allViewMap.set(':',{viewname:'info',srfappde:'accounts'});
this.allViewMap.set('MDATAVIEW:',{viewname:'gridview',srfappde:'accounts'});
this.allViewMap.set(':',{viewname:'edit_accountinfo',srfappde:'accounts'});
this.allViewMap.set('EDITVIEW:',{viewname:'editview',srfappde:'accounts'});
this.allViewMap.set(':',{viewname:'edit_address',srfappde:'accounts'});
this.allViewMap.set(':',{viewname:'introduction',srfappde:'accounts'});
this.allViewMap.set(':',{viewname:'address',srfappde:'accounts'});
this.allViewMap.set(':',{viewname:'optionview',srfappde:'accounts'});
this.allViewMap.set(':',{viewname:'distribution',srfappde:'accounts'});
this.allViewMap.set(':',{viewname:'contactsetting',srfappde:'accounts'});
this.allViewMap.set(':',{viewname:'usr2optionview',srfappde:'accounts'});
this.allViewMap.set(':',{viewname:'edit_address',srfappde:'accounts'});
this.allViewMap.set(':',{viewname:'pickupgridview',srfappde:'accounts'});
this.allViewMap.set(':',{viewname:'majorcontact',srfappde:'accounts'});
}
......@@ -288,10 +287,10 @@ export default class AccountUIServiceBase extends UIService {
});
}
const view: any = {
viewname: 'account-usr2-option-view',
viewname: 'account-edit-account-info',
height: 0,
width: 450,
title: actionContext.$t('entities.account.views.usr2optionview.title'),
title: actionContext.$t('entities.account.views.edit_accountinfo.title'),
placement: 'DRAWER_RIGHT',
};
openDrawer(view, data);
......
......@@ -1183,7 +1183,7 @@ export default class Edit_AddressBase extends Vue implements ControlInterface {
*/
public load(opt: any = {}): void {
if(!this.loadAction){
this.$Notice.error({ title: '错误', desc: 'AccountUsr2OptionView视图表单loadAction参数未配置' });
this.$Notice.error({ title: '错误', desc: 'AccountEdit_Address视图表单loadAction参数未配置' });
return;
}
const arg: any = { ...opt };
......@@ -1218,7 +1218,7 @@ export default class Edit_AddressBase extends Vue implements ControlInterface {
*/
public loadDraft(opt: any = {}): void {
if(!this.loaddraftAction){
this.$Notice.error({ title: '错误', desc: 'AccountUsr2OptionView视图表单loaddraftAction参数未配置' });
this.$Notice.error({ title: '错误', desc: 'AccountEdit_Address视图表单loaddraftAction参数未配置' });
return;
}
const arg: any = { ...opt } ;
......@@ -1280,7 +1280,7 @@ export default class Edit_AddressBase 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: '错误', desc: 'AccountUsr2OptionView视图表单'+actionName+'参数未配置' });
this.$Notice.error({ title: '错误', desc: 'AccountEdit_Address视图表单'+actionName+'参数未配置' });
return;
}
Object.assign(arg,{viewparams:this.viewparams});
......@@ -1344,7 +1344,7 @@ export default class Edit_AddressBase 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: '错误', desc: 'AccountUsr2OptionView视图表单'+actionName+'参数未配置' });
this.$Notice.error({ title: '错误', desc: 'AccountEdit_Address视图表单'+actionName+'参数未配置' });
return;
}
Object.assign(arg,{viewparams:this.viewparams});
......@@ -1394,7 +1394,7 @@ export default class Edit_AddressBase 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: '错误', desc: 'AccountUsr2OptionView视图表单removeAction参数未配置' });
this.$Notice.error({ title: '错误', desc: 'AccountEdit_Address视图表单removeAction参数未配置' });
return;
}
const arg: any = opt[0];
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册