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

xignzi006 发布系统代码

上级 2cfd58ea
......@@ -609,6 +609,16 @@
"viewtag": "e404dc93e70d6284d4e1a083017625ed",
"memo": ""
},
"accountusr2optionview": {
"title": "客户选项操作视图",
"caption": "11",
"viewtype": "DEOPTVIEW",
"viewmodule": "Base",
"viewname": "AccountUsr2OptionView",
"viewfilename": "account-usr2-option-view",
"viewtag": "e4335da0a7c14a65376eecaabb771fd7",
"memo": ""
},
"accountpickupgridview": {
"title": "account选择表格视图",
"caption": "客户",
......
......@@ -216,6 +216,10 @@ export default {
contactsetting: {
caption: "客户",
title: 'account编辑视图',
},
usr2optionview: {
caption: "11",
title: '客户选项操作视图',
},
pickupgridview: {
caption: "客户",
......@@ -278,7 +282,7 @@ export default {
uiactions: {
},
},
address_form: {
edit_address_form: {
details: {
group1: "客户基本信息",
formpage1: "基本信息",
......@@ -302,7 +306,7 @@ export default {
uiactions: {
},
},
edit_address_form: {
address_form: {
details: {
group1: "客户基本信息",
formpage1: "基本信息",
......
......@@ -215,6 +215,10 @@ export default {
contactsetting: {
caption: '客户',
title: 'account编辑视图',
},
usr2optionview: {
caption: '11',
title: '客户选项操作视图',
},
pickupgridview: {
caption: '客户',
......@@ -277,7 +281,7 @@ export default {
uiactions: {
},
},
address_form: {
edit_address_form: {
details: {
group1: '客户基本信息',
formpage1: '基本信息',
......@@ -301,7 +305,7 @@ export default {
uiactions: {
},
},
edit_address_form: {
address_form: {
details: {
group1: '客户基本信息',
formpage1: '基本信息',
......
......@@ -495,6 +495,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "ContactOptionView",
"viewtag": "e404dc93e70d6284d4e1a083017625ed"
},
"accountusr2optionview": {
"title": "客户选项操作视图",
"caption": "11",
"viewtype": "DEOPTVIEW",
"viewmodule": "Base",
"viewname": "AccountUsr2OptionView",
"viewtag": "e4335da0a7c14a65376eecaabb771fd7"
},
"accountpickupgridview": {
"title": "account选择表格视图",
"caption": "客户",
......
.option-view {
--option-view: 0;
}
// 避免空文件,后台不让空文件过
.account-usr2-option-view {
--account-usr2-option-view: 0;
}
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import AccountUsr2OptionViewBase from './account-usr2-option-view-base.vue';
import view_form from '@widgets/account/edit-address-form/edit-address-form.vue';
@Component({
components: {
view_form,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag });
});
},
})
export default class AccountUsr2OptionView extends AccountUsr2OptionViewBase {
}
</script>
\ No newline at end of file
......@@ -60,5 +60,6 @@ export const PageComponents = {
Vue.component('account-edit-address', () => import('@pages/base/account-edit-address/account-edit-address.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'));
}
};
\ No newline at end of file
......@@ -230,6 +230,20 @@ const router = new Router({
},
component: () => import('@pages/ungroup/centeral-portal/centeral-portal.vue'),
},
{
path: 'accounts/:account?/usr2optionview/:usr2optionview?',
meta: {
caption: 'entities.account.views.usr2optionview.title',
info:'',
parameters: [
{ pathName: 'central', parameterName: 'central' },
{ pathName: 'accounts', parameterName: 'account' },
{ pathName: 'usr2optionview', parameterName: 'usr2optionview' },
],
requireAuth: true,
},
component: () => import('@pages/base/account-usr2-option-view/account-usr2-option-view.vue'),
},
{
path: 'products/:product?/editview/:editview?',
meta: {
......@@ -622,20 +636,6 @@ const router = new Router({
},
component: () => import('@pages/marketing/ibiz-list-grid-view/ibiz-list-grid-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: 'products/:product?/gridview/:gridview?',
meta: {
......@@ -1591,6 +1591,19 @@ const router = new Router({
},
component: () => import('@pages/base/contact-option-view/contact-option-view.vue'),
},
{
path: '/accounts/:account?/usr2optionview/:usr2optionview?',
meta: {
caption: 'entities.account.views.usr2optionview.title',
info:'',
parameters: [
{ pathName: 'accounts', parameterName: 'account' },
{ pathName: 'usr2optionview', parameterName: 'usr2optionview' },
],
requireAuth: true,
},
component: () => import('@pages/base/account-usr2-option-view/account-usr2-option-view.vue'),
},
{
path: '/accounts/:account?/pickupgridview/:pickupgridview?',
meta: {
......
......@@ -120,8 +120,8 @@ export const viewstate: any = {
'aa79d35850f36fbc1a5085353ecd5af5',
'e38e7b53a449e0f112cb545d2c5d4b85',
'fb06f2c1cea1ac2a5a70c20f4a277ae5',
'0d25ba75b06acd9c995642d0a45fcd2c',
'73bb9f7e653384ca09f8bbbfd580d892',
'e4335da0a7c14a65376eecaabb771fd7',
'c607e5bc2c07ab2aca084e275ce677b7',
'a95d7d9111bc13a8b73a11ee1e4ff92a',
'893e62d6fbdc4580de7e3e802aec9108',
......@@ -583,6 +583,15 @@ export const viewstate: any = {
refviews: [
],
},
{
viewtag: 'e4335da0a7c14a65376eecaabb771fd7',
viewmodule: 'Base',
viewname: 'AccountUsr2OptionView',
viewaction: '',
viewdatachange: false,
refviews: [
],
},
{
viewtag: 'ef9fea872a6a21e7566033fafcc0ccb5',
viewmodule: 'Base',
......
......@@ -92,6 +92,7 @@ export default class AccountUIServiceBase extends UIService {
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:'pickupgridview',srfappde:'accounts'});
this.allViewMap.set(':',{viewname:'majorcontact',srfappde:'accounts'});
}
......@@ -210,6 +211,9 @@ export default class AccountUIServiceBase extends UIService {
return;
}
const _this: any = actionContext;
if (xData && xData.refresh && xData.refresh instanceof Function) {
xData.refresh(args);
}
if(window.opener){
window.opener.postMessage({status:'OK',identification:'WF'},Environment.uniteAddress);
window.close();
......@@ -273,6 +277,9 @@ export default class AccountUIServiceBase extends UIService {
return;
}
const _this: any = actionContext;
if (xData && xData.refresh && xData.refresh instanceof Function) {
xData.refresh(args);
}
if(window.opener){
window.opener.postMessage({status:'OK',identification:'WF'},Environment.uniteAddress);
window.close();
......@@ -281,10 +288,10 @@ export default class AccountUIServiceBase extends UIService {
});
}
const view: any = {
viewname: 'account-edit-account-info',
viewname: 'account-usr2-option-view',
height: 0,
width: 450,
title: actionContext.$t('entities.account.views.edit_accountinfo.title'),
title: actionContext.$t('entities.account.views.usr2optionview.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: 'AccountEdit_Address视图表单loadAction参数未配置' });
this.$Notice.error({ title: '错误', desc: 'AccountUsr2OptionView视图表单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: 'AccountEdit_Address视图表单loaddraftAction参数未配置' });
this.$Notice.error({ title: '错误', desc: 'AccountUsr2OptionView视图表单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: 'AccountEdit_Address视图表单'+actionName+'参数未配置' });
this.$Notice.error({ title: '错误', desc: 'AccountUsr2OptionView视图表单'+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: 'AccountEdit_Address视图表单'+actionName+'参数未配置' });
this.$Notice.error({ title: '错误', desc: 'AccountUsr2OptionView视图表单'+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: 'AccountEdit_Address视图表单removeAction参数未配置' });
this.$Notice.error({ title: '错误', desc: 'AccountUsr2OptionView视图表单removeAction参数未配置' });
return;
}
const arg: any = opt[0];
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册