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

chitanda 发布系统代码,顶部菜单样式优化

上级 f23f8a53
...@@ -165,12 +165,6 @@ export default { ...@@ -165,12 +165,6 @@ export default {
abstractinfo_form: { abstractinfo_form: {
details: { details: {
group1: "列表信息", group1: "列表信息",
druipart1: "",
grouppanel1: "客户信息",
druipart2: "",
grouppanel2: "联系人信息",
druipart3: "",
grouppanel3: "潜在顾客",
formpage1: "基本信息", formpage1: "基本信息",
srfupdatedate: "更新时间", srfupdatedate: "更新时间",
srforikey: "", srforikey: "",
...@@ -217,12 +211,10 @@ export default { ...@@ -217,12 +211,10 @@ export default {
ibizlist_openedit_datapanel: "头信息编辑", ibizlist_openedit_datapanel: "头信息编辑",
}, },
}, },
main_form: { edit_main_form: {
details: { details: {
group1: "list基本信息", group1: "列表信息",
formpage1: "基本信息", formpage1: "基本信息",
group2: "操作信息",
formpage2: "其它",
srfupdatedate: "更新时间", srfupdatedate: "更新时间",
srforikey: "", srforikey: "",
srfkey: "列表", srfkey: "列表",
...@@ -232,10 +224,15 @@ export default { ...@@ -232,10 +224,15 @@ export default {
srfdeid: "", srfdeid: "",
srfsourcekey: "", srfsourcekey: "",
listname: "名称", listname: "名称",
createman: "建立人", type: "类型",
createdate: "建立时间", purpose: "用途",
updateman: "更新人", membertype: "目标对象",
updatedate: "更新时间", source: "来源",
transactioncurrencyname: "货币",
cost: "成本",
ownername: "负责人",
description: "说明",
transactioncurrencyid: "货币",
listid: "列表", listid: "列表",
}, },
uiactions: { uiactions: {
...@@ -259,7 +256,33 @@ export default { ...@@ -259,7 +256,33 @@ export default {
uiactions: { uiactions: {
}, },
}, },
editviewtoolbar_toolbar: {
tbitem1: {
caption: "Save And Close",
tip: "Save And Close Window",
},
tbitem2: {
caption: "关闭",
tip: "关闭",
},
},
infotoolbar_toolbar: { infotoolbar_toolbar: {
tbitem1_openmaineditview: {
caption: "编辑",
tip: "编辑",
},
tbitem1_remove_sep: {
caption: "",
tip: "",
},
tbitem1_remove: {
caption: "删除并关闭",
tip: "删除并关闭",
},
seperator4: {
caption: "",
tip: "",
},
tbitem17_active: { tbitem17_active: {
caption: "激活", caption: "激活",
tip: "激活", tip: "激活",
...@@ -423,42 +446,4 @@ export default { ...@@ -423,42 +446,4 @@ export default {
tip: "Filter", tip: "Filter",
}, },
}, },
editviewtoolbar_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}",
},
},
}; };
\ No newline at end of file
...@@ -164,12 +164,6 @@ export default { ...@@ -164,12 +164,6 @@ export default {
abstractinfo_form: { abstractinfo_form: {
details: { details: {
group1: "列表信息", group1: "列表信息",
druipart1: "",
grouppanel1: "客户信息",
druipart2: "",
grouppanel2: "联系人信息",
druipart3: "",
grouppanel3: "潜在顾客",
formpage1: "基本信息", formpage1: "基本信息",
srfupdatedate: "更新时间", srfupdatedate: "更新时间",
srforikey: "", srforikey: "",
...@@ -216,12 +210,10 @@ export default { ...@@ -216,12 +210,10 @@ export default {
ibizlist_openedit_datapanel: "头信息编辑", ibizlist_openedit_datapanel: "头信息编辑",
}, },
}, },
main_form: { edit_main_form: {
details: { details: {
group1: "list基本信息", group1: "列表信息",
formpage1: "基本信息", formpage1: "基本信息",
group2: "操作信息",
formpage2: "其它",
srfupdatedate: "更新时间", srfupdatedate: "更新时间",
srforikey: "", srforikey: "",
srfkey: "列表", srfkey: "列表",
...@@ -231,10 +223,15 @@ export default { ...@@ -231,10 +223,15 @@ export default {
srfdeid: "", srfdeid: "",
srfsourcekey: "", srfsourcekey: "",
listname: "名称", listname: "名称",
createman: "建立人", type: "类型",
createdate: "建立时间", purpose: "用途",
updateman: "更新人", membertype: "目标对象",
updatedate: "更新时间", source: "来源",
transactioncurrencyname: "货币",
cost: "成本",
ownername: "负责人",
description: "说明",
transactioncurrencyid: "货币",
listid: "列表", listid: "列表",
}, },
uiactions: { uiactions: {
...@@ -258,7 +255,33 @@ export default { ...@@ -258,7 +255,33 @@ export default {
uiactions: { uiactions: {
}, },
}, },
editviewtoolbar_toolbar: {
tbitem1: {
caption: "保存并关闭",
tip: "保存并关闭",
},
tbitem2: {
caption: "关闭",
tip: "关闭",
},
},
infotoolbar_toolbar: { infotoolbar_toolbar: {
tbitem1_openmaineditview: {
caption: "编辑",
tip: "编辑",
},
tbitem1_remove_sep: {
caption: "",
tip: "",
},
tbitem1_remove: {
caption: "删除并关闭",
tip: "删除并关闭",
},
seperator4: {
caption: "",
tip: "",
},
tbitem17_active: { tbitem17_active: {
caption: "激活", caption: "激活",
tip: "激活", tip: "激活",
...@@ -422,42 +445,4 @@ export default { ...@@ -422,42 +445,4 @@ export default {
tip: "过滤", tip: "过滤",
}, },
}, },
editviewtoolbar_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: "拷贝",
},
},
}; };
\ No newline at end of file
...@@ -35,12 +35,10 @@ export default { ...@@ -35,12 +35,10 @@ export default {
title: "查找客户", title: "查找客户",
}, },
}, },
main_form: { quickcreatebylist_form: {
details: { details: {
group1: "营销列表-账户基本信息", group1: "营销列表-账户基本信息",
formpage1: "基本信息", formpage1: "基本信息",
group2: "操作信息",
formpage2: "其它",
srfupdatedate: "更新时间", srfupdatedate: "更新时间",
srforikey: "", srforikey: "",
srfkey: "关系标识", srfkey: "关系标识",
...@@ -49,15 +47,19 @@ export default { ...@@ -49,15 +47,19 @@ export default {
srfuf: "", srfuf: "",
srfdeid: "", srfdeid: "",
srfsourcekey: "", srfsourcekey: "",
entity2name: "选择客户:",
entity2id: "客户",
relationshipsid: "关系标识", relationshipsid: "关系标识",
}, },
uiactions: { uiactions: {
}, },
}, },
quickcreatebylist_form: { main_form: {
details: { details: {
group1: "营销列表-账户基本信息", group1: "营销列表-账户基本信息",
formpage1: "基本信息", formpage1: "基本信息",
group2: "操作信息",
formpage2: "其它",
srfupdatedate: "更新时间", srfupdatedate: "更新时间",
srforikey: "", srforikey: "",
srfkey: "关系标识", srfkey: "关系标识",
...@@ -66,8 +68,6 @@ export default { ...@@ -66,8 +68,6 @@ export default {
srfuf: "", srfuf: "",
srfdeid: "", srfdeid: "",
srfsourcekey: "", srfsourcekey: "",
entity2name: "选择客户:",
entity2id: "客户",
relationshipsid: "关系标识", relationshipsid: "关系标识",
}, },
uiactions: { uiactions: {
...@@ -90,12 +90,6 @@ export default { ...@@ -90,12 +90,6 @@ export default {
uiactions: { uiactions: {
}, },
}, },
editviewtoolbar_toolbar: {
tbitem12: {
caption: "关闭",
tip: "关闭",
},
},
bylisttoolbar_toolbar: { bylisttoolbar_toolbar: {
tbitem3: { tbitem3: {
caption: "New", caption: "New",
...@@ -134,4 +128,10 @@ export default { ...@@ -134,4 +128,10 @@ export default {
tip: "Filter", tip: "Filter",
}, },
}, },
editviewtoolbar_toolbar: {
tbitem12: {
caption: "关闭",
tip: "关闭",
},
},
}; };
\ No newline at end of file
...@@ -34,12 +34,10 @@ export default { ...@@ -34,12 +34,10 @@ export default {
title: "查找客户", title: "查找客户",
}, },
}, },
main_form: { quickcreatebylist_form: {
details: { details: {
group1: "营销列表-账户基本信息", group1: "营销列表-账户基本信息",
formpage1: "基本信息", formpage1: "基本信息",
group2: "操作信息",
formpage2: "其它",
srfupdatedate: "更新时间", srfupdatedate: "更新时间",
srforikey: "", srforikey: "",
srfkey: "关系标识", srfkey: "关系标识",
...@@ -48,15 +46,19 @@ export default { ...@@ -48,15 +46,19 @@ export default {
srfuf: "", srfuf: "",
srfdeid: "", srfdeid: "",
srfsourcekey: "", srfsourcekey: "",
entity2name: "选择客户:",
entity2id: "客户",
relationshipsid: "关系标识", relationshipsid: "关系标识",
}, },
uiactions: { uiactions: {
}, },
}, },
quickcreatebylist_form: { main_form: {
details: { details: {
group1: "营销列表-账户基本信息", group1: "营销列表-账户基本信息",
formpage1: "基本信息", formpage1: "基本信息",
group2: "操作信息",
formpage2: "其它",
srfupdatedate: "更新时间", srfupdatedate: "更新时间",
srforikey: "", srforikey: "",
srfkey: "关系标识", srfkey: "关系标识",
...@@ -65,8 +67,6 @@ export default { ...@@ -65,8 +67,6 @@ export default {
srfuf: "", srfuf: "",
srfdeid: "", srfdeid: "",
srfsourcekey: "", srfsourcekey: "",
entity2name: "选择客户:",
entity2id: "客户",
relationshipsid: "关系标识", relationshipsid: "关系标识",
}, },
uiactions: { uiactions: {
...@@ -89,12 +89,6 @@ export default { ...@@ -89,12 +89,6 @@ export default {
uiactions: { uiactions: {
}, },
}, },
editviewtoolbar_toolbar: {
tbitem12: {
caption: "关闭",
tip: "关闭",
},
},
bylisttoolbar_toolbar: { bylisttoolbar_toolbar: {
tbitem3: { tbitem3: {
caption: "新建", caption: "新建",
...@@ -133,4 +127,10 @@ export default { ...@@ -133,4 +127,10 @@ export default {
tip: "过滤", tip: "过滤",
}, },
}, },
editviewtoolbar_toolbar: {
tbitem12: {
caption: "关闭",
tip: "关闭",
},
},
}; };
\ No newline at end of file
...@@ -50,7 +50,7 @@ export default { ...@@ -50,7 +50,7 @@ export default {
uiactions: { uiactions: {
}, },
}, },
inner_grid: { main_grid: {
columns: { columns: {
entity2name: "联系人", entity2name: "联系人",
emailaddress1: "电子邮件", emailaddress1: "电子邮件",
...@@ -61,7 +61,7 @@ export default { ...@@ -61,7 +61,7 @@ export default {
uiactions: { uiactions: {
}, },
}, },
main_grid: { inner_grid: {
columns: { columns: {
entity2name: "联系人", entity2name: "联系人",
emailaddress1: "电子邮件", emailaddress1: "电子邮件",
...@@ -79,14 +79,6 @@ export default { ...@@ -79,14 +79,6 @@ export default {
uiactions: { uiactions: {
}, },
}, },
innertoolbar_toolbar: {
},
editviewtoolbar_toolbar: {
tbitem12: {
caption: "关闭",
tip: "关闭",
},
},
gridviewtoolbar_toolbar: { gridviewtoolbar_toolbar: {
tbitem3: { tbitem3: {
caption: "New", caption: "New",
...@@ -125,4 +117,12 @@ export default { ...@@ -125,4 +117,12 @@ export default {
tip: "Filter", tip: "Filter",
}, },
}, },
editviewtoolbar_toolbar: {
tbitem12: {
caption: "关闭",
tip: "关闭",
},
},
innertoolbar_toolbar: {
},
}; };
\ No newline at end of file
...@@ -49,7 +49,7 @@ export default { ...@@ -49,7 +49,7 @@ export default {
uiactions: { uiactions: {
}, },
}, },
inner_grid: { main_grid: {
columns: { columns: {
entity2name: "联系人", entity2name: "联系人",
emailaddress1: "电子邮件", emailaddress1: "电子邮件",
...@@ -60,7 +60,7 @@ export default { ...@@ -60,7 +60,7 @@ export default {
uiactions: { uiactions: {
}, },
}, },
main_grid: { inner_grid: {
columns: { columns: {
entity2name: "联系人", entity2name: "联系人",
emailaddress1: "电子邮件", emailaddress1: "电子邮件",
...@@ -78,14 +78,6 @@ export default { ...@@ -78,14 +78,6 @@ export default {
uiactions: { uiactions: {
}, },
}, },
innertoolbar_toolbar: {
},
editviewtoolbar_toolbar: {
tbitem12: {
caption: "关闭",
tip: "关闭",
},
},
gridviewtoolbar_toolbar: { gridviewtoolbar_toolbar: {
tbitem3: { tbitem3: {
caption: "新建", caption: "新建",
...@@ -124,4 +116,12 @@ export default { ...@@ -124,4 +116,12 @@ export default {
tip: "过滤", tip: "过滤",
}, },
}, },
editviewtoolbar_toolbar: {
tbitem12: {
caption: "关闭",
tip: "关闭",
},
},
innertoolbar_toolbar: {
},
}; };
\ No newline at end of file
...@@ -226,11 +226,9 @@ export const PageComponents = { ...@@ -226,11 +226,9 @@ export const PageComponents = {
Vue.component('quote-option-view', () => import('@pages/sales/quote-option-view/quote-option-view.vue')); Vue.component('quote-option-view', () => import('@pages/sales/quote-option-view/quote-option-view.vue'));
Vue.component('goal-pickup-view', () => import('@pages/sales/goal-pickup-view/goal-pickup-view.vue')); Vue.component('goal-pickup-view', () => import('@pages/sales/goal-pickup-view/goal-pickup-view.vue'));
Vue.component('sales-order-state-tab-view', () => import('@pages/sales/sales-order-state-tab-view/sales-order-state-tab-view.vue')); Vue.component('sales-order-state-tab-view', () => import('@pages/sales/sales-order-state-tab-view/sales-order-state-tab-view.vue'));
Vue.component('list-contact-inner', () => import('@pages/marketing/list-contact-inner/list-contact-inner.vue'));
Vue.component('campaign-info-campagin', () => import('@pages/marketing/campaign-info-campagin/campaign-info-campagin.vue')); Vue.component('campaign-info-campagin', () => import('@pages/marketing/campaign-info-campagin/campaign-info-campagin.vue'));
Vue.component('contact-edit-view', () => import('@pages/base/contact-edit-view/contact-edit-view.vue')); Vue.component('contact-edit-view', () => import('@pages/base/contact-edit-view/contact-edit-view.vue'));
Vue.component('appointment-edit-view', () => import('@pages/base/appointment-edit-view/appointment-edit-view.vue')); Vue.component('appointment-edit-view', () => import('@pages/base/appointment-edit-view/appointment-edit-view.vue'));
Vue.component('list-account-edit-view', () => import('@pages/marketing/list-account-edit-view/list-account-edit-view.vue'));
Vue.component('incident-edit-data-panel-view', () => import('@pages/service/incident-edit-data-panel-view/incident-edit-data-panel-view.vue')); Vue.component('incident-edit-data-panel-view', () => import('@pages/service/incident-edit-data-panel-view/incident-edit-data-panel-view.vue'));
Vue.component('entitlement-pickup-grid-view', () => import('@pages/service/entitlement-pickup-grid-view/entitlement-pickup-grid-view.vue')); Vue.component('entitlement-pickup-grid-view', () => import('@pages/service/entitlement-pickup-grid-view/entitlement-pickup-grid-view.vue'));
Vue.component('contact-grid-view', () => import('@pages/base/contact-grid-view/contact-grid-view.vue')); Vue.component('contact-grid-view', () => import('@pages/base/contact-grid-view/contact-grid-view.vue'));
...@@ -268,7 +266,6 @@ export const PageComponents = { ...@@ -268,7 +266,6 @@ export const PageComponents = {
Vue.component('entitlement-pickup-view', () => import('@pages/service/entitlement-pickup-view/entitlement-pickup-view.vue')); Vue.component('entitlement-pickup-view', () => import('@pages/service/entitlement-pickup-view/entitlement-pickup-view.vue'));
Vue.component('uom-pickup-view', () => import('@pages/base/uom-pickup-view/uom-pickup-view.vue')); Vue.component('uom-pickup-view', () => import('@pages/base/uom-pickup-view/uom-pickup-view.vue'));
Vue.component('lead-competitor-edit-competitor-view', () => import('@pages/sales/lead-competitor-edit-competitor-view/lead-competitor-edit-competitor-view.vue')); Vue.component('lead-competitor-edit-competitor-view', () => import('@pages/sales/lead-competitor-edit-competitor-view/lead-competitor-edit-competitor-view.vue'));
Vue.component('list-account-inner', () => import('@pages/marketing/list-account-inner/list-account-inner.vue'));
Vue.component('contact-summary-view', () => import('@pages/base/contact-summary-view/contact-summary-view.vue')); Vue.component('contact-summary-view', () => import('@pages/base/contact-summary-view/contact-summary-view.vue'));
Vue.component('task-edit-view', () => import('@pages/base/task-edit-view/task-edit-view.vue')); Vue.component('task-edit-view', () => import('@pages/base/task-edit-view/task-edit-view.vue'));
Vue.component('product-substitute-grid-view', () => import('@pages/product/product-substitute-grid-view/product-substitute-grid-view.vue')); Vue.component('product-substitute-grid-view', () => import('@pages/product/product-substitute-grid-view/product-substitute-grid-view.vue'));
...@@ -277,6 +274,7 @@ export const PageComponents = { ...@@ -277,6 +274,7 @@ export const PageComponents = {
Vue.component('product-sales-literature-sal-lit-pro-edit-view', () => import('@pages/sales/product-sales-literature-sal-lit-pro-edit-view/product-sales-literature-sal-lit-pro-edit-view.vue')); Vue.component('product-sales-literature-sal-lit-pro-edit-view', () => import('@pages/sales/product-sales-literature-sal-lit-pro-edit-view/product-sales-literature-sal-lit-pro-edit-view.vue'));
Vue.component('invoice-cancel-grid-view', () => import('@pages/finance/invoice-cancel-grid-view/invoice-cancel-grid-view.vue')); Vue.component('invoice-cancel-grid-view', () => import('@pages/finance/invoice-cancel-grid-view/invoice-cancel-grid-view.vue'));
Vue.component('campaign-stop-grid-view', () => import('@pages/marketing/campaign-stop-grid-view/campaign-stop-grid-view.vue')); Vue.component('campaign-stop-grid-view', () => import('@pages/marketing/campaign-stop-grid-view/campaign-stop-grid-view.vue'));
Vue.component('ibiz-list-edit-view', () => import('@pages/marketing/ibiz-list-edit-view/ibiz-list-edit-view.vue'));
Vue.component('product-effective-grid-view', () => import('@pages/product/product-effective-grid-view/product-effective-grid-view.vue')); Vue.component('product-effective-grid-view', () => import('@pages/product/product-effective-grid-view/product-effective-grid-view.vue'));
Vue.component('account-stop-grid-view', () => import('@pages/base/account-stop-grid-view/account-stop-grid-view.vue')); Vue.component('account-stop-grid-view', () => import('@pages/base/account-stop-grid-view/account-stop-grid-view.vue'));
Vue.component('incident-effective-grid-view', () => import('@pages/service/incident-effective-grid-view/incident-effective-grid-view.vue')); Vue.component('incident-effective-grid-view', () => import('@pages/service/incident-effective-grid-view/incident-effective-grid-view.vue'));
......
import { Subject } from 'rxjs';
import { EditViewBase } from '@/studio-core';
import IBizListService from '@/service/ibiz-list/ibiz-list-service';
import IBizListAuthService from '@/authservice/ibiz-list/ibiz-list-auth-service';
import EditViewEngine from '@engine/view/edit-view-engine';
import IBizListUIService from '@/uiservice/ibiz-list/ibiz-list-ui-service';
/**
* 市场营销列表编辑视图视图基类
*
* @export
* @class IBizListEditViewBase
* @extends {EditViewBase}
*/
export class IBizListEditViewBase extends EditViewBase {
/**
* 视图对应应用实体名称
*
* @protected
* @type {string}
* @memberof IBizListEditViewBase
*/
protected appDeName: string = 'ibizlist';
/**
* 应用实体主键
*
* @protected
* @type {string}
* @memberof IBizListEditViewBase
*/
protected appDeKey: string = 'listid';
/**
* 应用实体主信息
*
* @protected
* @type {string}
* @memberof IBizListEditViewBase
*/
protected appDeMajor: string = 'listname';
/**
* 实体服务对象
*
* @type {IBizListService}
* @memberof IBizListEditViewBase
*/
protected appEntityService: IBizListService = new IBizListService;
/**
* 实体权限服务对象
*
* @type IBizListUIService
* @memberof IBizListEditViewBase
*/
public appUIService: IBizListUIService = new IBizListUIService(this.$store);
/**
* 计数器服务对象集合
*
* @protected
* @type {Array<*>}
* @memberof IBizListEditViewBase
*/
protected counterServiceArray: Array<any> = [];
/**
* 视图模型数据
*
* @protected
* @type {*}
* @memberof IBizListEditViewBase
*/
protected model: any = {
srfCaption: 'entities.ibizlist.views.editview.caption',
srfTitle: 'entities.ibizlist.views.editview.title',
srfSubTitle: 'entities.ibizlist.views.editview.subtitle',
dataInfo: ''
}
/**
* 容器模型
*
* @protected
* @type {*}
* @memberof IBizListEditViewBase
*/
protected containerModel: any = {
view_toolbar: { name: 'toolbar', type: 'TOOLBAR' },
view_form: { name: 'form', type: 'FORM' },
};
/**
* 工具栏模型
*
* @type {*}
* @memberof IBizListEditView
*/
public toolBarModels: any = {
tbitem1: { name: 'tbitem1', caption: '保存并关闭', 'isShowCaption': true, 'isShowIcon': true, tooltip: '保存并关闭', iconcls: 'fa fa-power-off', icon: '', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'SaveAndExit', target: '', class: '' } },
tbitem2: { name: 'tbitem2', caption: '关闭', 'isShowCaption': true, 'isShowIcon': true, tooltip: '关闭', iconcls: 'fa fa-sign-out', icon: '', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'Exit', target: '', class: '' } },
};
/**
* 视图唯一标识
*
* @protected
* @type {string}
* @memberof ViewBase
*/
protected viewtag: string = 'a62e766e54ec0b259071463523c98493';
/**
* 视图引擎
*
* @public
* @type {Engine}
* @memberof IBizListEditViewBase
*/
public engine: EditViewEngine = new EditViewEngine();
/**
* 引擎初始化
*
* @public
* @memberof IBizListEditViewBase
*/
public engineInit(): void {
this.engine.init({
view: this,
form: this.$refs.form,
p2k: '0',
keyPSDEField: 'ibizlist',
majorPSDEField: 'listname',
isLoadDefault: true,
});
}
/**
* toolbar 部件 click 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof IBizListEditViewBase
*/
public toolbar_click($event: any, $event2?: any): void {
if (Object.is($event.tag, 'tbitem1')) {
this.toolbar_tbitem1_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem2')) {
this.toolbar_tbitem2_click(null, '', $event2);
}
}
/**
* form 部件 save 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof IBizListEditViewBase
*/
public form_save($event: any, $event2?: any): void {
this.engine.onCtrlEvent('form', 'save', $event);
}
/**
* form 部件 remove 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof IBizListEditViewBase
*/
public form_remove($event: any, $event2?: any): void {
this.engine.onCtrlEvent('form', 'remove', $event);
}
/**
* form 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof IBizListEditViewBase
*/
public form_load($event: any, $event2?: any): void {
this.engine.onCtrlEvent('form', 'load', $event);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem1_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,"IBizList");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem2_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.Exit(datas, contextJO,paramJO, $event, xData,this,"IBizList");
}
/**
* 保存并关闭
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof IBizListEditViewBase
*/
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 IBizListEditViewBase
*/
public Exit(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
this.closeView(args);
if(window.parent){
window.parent.postMessage([{ ...args }],'*');
}
}
}
\ No newline at end of file
<studio-view-style2 viewName="ibizlisteditview" viewTitle="市场营销列表编辑视图" class='deeditview ibiz-list-edit-view'>
<template slot='title'>
<span class='caption-info'>{{$t(model.srfTitle)}}</span>
</template>
<template slot="toolbar">
<view-toolbar mode="STYLE2" :model="toolBarModels" @item-click="toolbar_click($event)"/> </template>
<view_form
:viewState="viewState"
:viewparams="viewparams"
:context="context"
:autosave="false"
:viewtag="viewtag"
:showBusyIndicator="true"
updateAction="Update"
removeAction="Remove"
loaddraftAction="GetDraft"
loadAction="Get"
createAction="Create"
WFSubmitAction=""
WFStartAction=""
style=''
name="form"
ref='form'
@save="form_save($event)"
@remove="form_remove($event)"
@load="form_load($event)"
@closeview="closeView($event)">
</view_form>
</studio-view-style2>
\ No newline at end of file
<template src="./ibiz-list-edit-view.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { IBizListEditViewBase } from './ibiz-list-edit-view-base';
import view_form from '@widgets/ibiz-list/edit-main-form/edit-main-form.vue';
/**
* 市场营销列表编辑视图视图
*
* @export
* @class IBizListEditView
* @extends {IBizListEditViewBase}
*/
@Component({
components: {
view_form,
}
})
@VueLifeCycleProcessing()
export default class IBizListEditView extends IBizListEditViewBase { }
</script>
...@@ -101,6 +101,12 @@ export class IBizListInfoBase extends TabExpViewBase { ...@@ -101,6 +101,12 @@ export class IBizListInfoBase extends TabExpViewBase {
* @memberof IBizListInfo * @memberof IBizListInfo
*/ */
public toolBarModels: any = { public toolBarModels: any = {
tbitem1_openmaineditview: { name: 'tbitem1_openmaineditview', caption: '编辑', 'isShowCaption': true, 'isShowIcon': true, tooltip: '编辑', iconcls: 'fa fa-edit', icon: '', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'OpenMainEditView', target: 'SINGLEKEY', class: '' } },
tbitem1_remove_sep: { name: 'tbitem1_remove_sep', type: 'SEPERATOR', visabled: true, dataaccaction: '', uiaction: { } },
tbitem1_remove: { name: 'tbitem1_remove', caption: '删除并关闭', 'isShowCaption': true, 'isShowIcon': true, tooltip: '删除并关闭', iconcls: 'fa fa-remove', icon: '', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'Remove', target: 'SINGLEKEY', class: '' } },
seperator4: { name: 'seperator4', type: 'SEPERATOR', visabled: true, dataaccaction: '', uiaction: { } },
tbitem17_active: { name: 'tbitem17_active', caption: '激活', 'isShowCaption': true, 'isShowIcon': true, tooltip: '激活', iconcls: 'fa fa-play-circle-o', icon: '', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'Active', target: 'SINGLEKEY', class: '' } }, tbitem17_active: { name: 'tbitem17_active', caption: '激活', 'isShowCaption': true, 'isShowIcon': true, tooltip: '激活', iconcls: 'fa fa-play-circle-o', icon: '', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'Active', target: 'SINGLEKEY', class: '' } },
tbitem17_stop_sep: { name: 'tbitem17_stop_sep', type: 'SEPERATOR', visabled: true, dataaccaction: '', uiaction: { } }, tbitem17_stop_sep: { name: 'tbitem17_stop_sep', type: 'SEPERATOR', visabled: true, dataaccaction: '', uiaction: { } },
...@@ -171,6 +177,12 @@ export class IBizListInfoBase extends TabExpViewBase { ...@@ -171,6 +177,12 @@ export class IBizListInfoBase extends TabExpViewBase {
* @memberof IBizListInfoBase * @memberof IBizListInfoBase
*/ */
public toolbar_click($event: any, $event2?: any): void { public toolbar_click($event: any, $event2?: any): void {
if (Object.is($event.tag, 'tbitem1_openmaineditview')) {
this.toolbar_tbitem1_openmaineditview_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem1_remove')) {
this.toolbar_tbitem1_remove_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem17_active')) { if (Object.is($event.tag, 'tbitem17_active')) {
this.toolbar_tbitem17_active_click(null, '', $event2); this.toolbar_tbitem17_active_click(null, '', $event2);
} }
...@@ -182,6 +194,62 @@ export class IBizListInfoBase extends TabExpViewBase { ...@@ -182,6 +194,62 @@ export class IBizListInfoBase extends TabExpViewBase {
} }
} }
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem1_openmaineditview_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 = {};
if (_this.getDatas && _this.getDatas instanceof Function) {
datas = [..._this.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
const curUIService:IBizListUIService = new IBizListUIService();
curUIService.IBizList_OpenMainEditView(datas,contextJO, paramJO, $event, xData,this,"IBizList");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem1_remove_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 = {};
if (_this.getDatas && _this.getDatas instanceof Function) {
datas = [..._this.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
const curUIService:IBizListUIService = new IBizListUIService();
curUIService.IBizList_Remove(datas,contextJO, paramJO, $event, xData,this,"IBizList");
}
/** /**
* 逻辑事件 * 逻辑事件
* *
......
<studio-view-style2 viewName="incidenteditview" viewTitle="案例编辑视图" class='deeditview incident-edit-view'> <studio-view-style2 viewName="incidenteditview" viewTitle="案例编辑视图" class='deeditview incident-edit-view'>
<template slot='title'>
<span class='caption-info'>{{$t(model.srfTitle)}}</span>
</template>
<template slot="toolbar"> <template slot="toolbar">
<view-toolbar mode="STYLE2" :model="toolBarModels" @item-click="toolbar_click($event)"/> </template> <view-toolbar mode="STYLE2" :model="toolBarModels" @item-click="toolbar_click($event)"/> </template>
<view_form <view_form
......
...@@ -773,9 +773,6 @@ export const viewstate: any = { ...@@ -773,9 +773,6 @@ export const viewstate: any = {
viewaction: '', viewaction: '',
viewdatachange: false, viewdatachange: false,
refviews: [ refviews: [
'2c6be792e84450585986e22f75dffa52',
'aaa875342bd9286a39c2d193a150afc4',
'44a690a1d62a390708480cb43f67d98b',
], ],
}, },
{ {
...@@ -1095,16 +1092,6 @@ export const viewstate: any = { ...@@ -1095,16 +1092,6 @@ export const viewstate: any = {
refviews: [ refviews: [
], ],
}, },
{
viewtag: '44a690a1d62a390708480cb43f67d98b',
viewmodule: 'Marketing',
viewname: 'ListAccountInner',
viewaction: '',
viewdatachange: false,
refviews: [
'49dc1a714631338858cd0441f6c720ca',
],
},
{ {
viewtag: '44f1244c0a9e78981a151dc7f247e867', viewtag: '44f1244c0a9e78981a151dc7f247e867',
viewmodule: 'Runtime', viewmodule: 'Runtime',
...@@ -1176,15 +1163,6 @@ export const viewstate: any = { ...@@ -1176,15 +1163,6 @@ export const viewstate: any = {
'd3692664b9e2e150526e1ce4b969f15b', 'd3692664b9e2e150526e1ce4b969f15b',
], ],
}, },
{
viewtag: '49dc1a714631338858cd0441f6c720ca',
viewmodule: 'Marketing',
viewname: 'ListAccountEditView',
viewaction: '',
viewdatachange: false,
refviews: [
],
},
{ {
viewtag: '4ab71df980f390b6663b8912f64ede02', viewtag: '4ab71df980f390b6663b8912f64ede02',
viewmodule: 'Sales', viewmodule: 'Sales',
...@@ -2337,6 +2315,16 @@ export const viewstate: any = { ...@@ -2337,6 +2315,16 @@ export const viewstate: any = {
refviews: [ refviews: [
], ],
}, },
{
viewtag: 'a62e766e54ec0b259071463523c98493',
viewmodule: 'Marketing',
viewname: 'IBizListEditView',
viewaction: '',
viewdatachange: false,
refviews: [
'da3f8c1f20f440f3df54d6c13a8de586',
],
},
{ {
viewtag: 'a69ba7dd2f8bdac8a3c733dcc79c0ee5', viewtag: 'a69ba7dd2f8bdac8a3c733dcc79c0ee5',
viewmodule: 'Base', viewmodule: 'Base',
...@@ -2398,16 +2386,6 @@ export const viewstate: any = { ...@@ -2398,16 +2386,6 @@ export const viewstate: any = {
refviews: [ refviews: [
], ],
}, },
{
viewtag: 'aaa875342bd9286a39c2d193a150afc4',
viewmodule: 'Marketing',
viewname: 'ListContactInner',
viewaction: '',
viewdatachange: false,
refviews: [
'c7d0ca0f6fa1b27bbd1b5c422d1a108d',
],
},
{ {
viewtag: 'aae12017a434333b4b16d13b102268d2', viewtag: 'aae12017a434333b4b16d13b102268d2',
viewmodule: 'Base', viewmodule: 'Base',
...@@ -2508,6 +2486,7 @@ export const viewstate: any = { ...@@ -2508,6 +2486,7 @@ export const viewstate: any = {
'4799b0e7139b537ebe9313a004daa0ac', '4799b0e7139b537ebe9313a004daa0ac',
'a0baf844a4d48914ee2623448b1a73fb', 'a0baf844a4d48914ee2623448b1a73fb',
'0ab0bd0aaadd588905a82de62c80ff07', '0ab0bd0aaadd588905a82de62c80ff07',
'a62e766e54ec0b259071463523c98493',
'3124753ba4abff3aaf49355a5197c4ab', '3124753ba4abff3aaf49355a5197c4ab',
], ],
}, },
......
...@@ -30,6 +30,9 @@ ...@@ -30,6 +30,9 @@
>.ivu-select-dropdown { >.ivu-select-dropdown {
background: var(--app-header-background-color); background: var(--app-header-background-color);
max-height: 350px;
overflow-x: hidden;
overflow-y: auto;
>.ivu-menu-drop-list { >.ivu-menu-drop-list {
...@@ -37,12 +40,13 @@ ...@@ -37,12 +40,13 @@
>.ivu-menu-submenu { >.ivu-menu-submenu {
border: 0px; border: 0px;
color: var(--app-header-color); color: var(--app-header-color);
padding: 0px 10px; padding: 5px 8px;
} }
>.ivu-menu-item:hover, >.ivu-menu-item:hover,
>.ivu-menu-submenu:hover { >.ivu-menu-submenu:hover {
background: hsla(0, 0%, 100%, 0.12); background: hsla(0, 0%, 100%, 0.12);
padding: 5px 8px;
} }
} }
} }
......
...@@ -118,6 +118,74 @@ export default class IBizListUIServiceBase extends UIService { ...@@ -118,6 +118,74 @@ export default class IBizListUIServiceBase extends UIService {
public initDeMainStateOPPrivsMap(){ public initDeMainStateOPPrivsMap(){
} }
/**
* 删除并关闭
*
* @param {any[]} args 当前数据
* @param {any} context 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @param {*} [srfParentDeName] 父实体名称
* @returns {Promise<any>}
*/
public async IBizList_Remove(args: any[],context:any = {}, params:any = {}, $event?: any, xData?: any,actionContext?: any,srfParentDeName?:string){
let data: any = {};
let parentContext:any = {};
let parentViewParam:any = {};
const _this: any = actionContext;
const _args: any[] = Util.deepCopy(args);
const actionTarget: string | null = 'SINGLEKEY';
Object.assign(context, { ibizlist: '%ibizlist%' });
Object.assign(params, { listid: '%ibizlist%' });
Object.assign(params, { listname: '%listname%' });
if(_this.context){
parentContext = _this.context;
}
if(_this.viewparams){
parentViewParam = _this.viewparams;
}
context = UIActionTool.handleContextParam(actionTarget,_args,parentContext,parentViewParam,context);
data = UIActionTool.handleActionParam(actionTarget,_args,parentContext,parentViewParam,params);
context = Object.assign({},actionContext.context,context);
let parentObj:any = {srfparentdename:srfParentDeName?srfParentDeName:null,srfparentkey:srfParentDeName?context[srfParentDeName.toLowerCase()]:null};
Object.assign(data,parentObj);
Object.assign(context,parentObj);
// 直接调实体服务需要转换的数据
if(context && context.srfsessionid){
context.srfsessionkey = context.srfsessionid;
delete context.srfsessionid;
}
actionContext.closeView(null);
const backend = () => {
const curService:IBizListService = new IBizListService();
curService.Remove(context,data, true).then((response: any) => {
if (!response || response.status !== 200) {
actionContext.$Notice.error({ title: '错误', desc: response.message });
return;
}
actionContext.$Notice.success({ title: '成功', desc: '删除并关闭成功!' });
const _this: any = actionContext;
if (xData && xData.refresh && xData.refresh instanceof Function) {
xData.refresh(args);
}
return response;
}).catch((response: any) => {
if (!response || !response.status || !response.data) {
actionContext.$Notice.error({ title: '错误', desc: '系统异常!' });
return;
}
if (response.status === 401) {
return;
}
return response;
});
};
backend();
}
/** /**
* 编辑 * 编辑
* *
...@@ -447,6 +515,54 @@ export default class IBizListUIServiceBase extends UIService { ...@@ -447,6 +515,54 @@ export default class IBizListUIServiceBase extends UIService {
backend(); backend();
} }
/**
* 编辑
*
* @param {any[]} args 当前数据
* @param {any} context 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @param {*} [srfParentDeName] 父实体名称
* @returns {Promise<any>}
*/
public async IBizList_OpenMainEditView(args: any[], context:any = {} ,params: any={}, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
let data: any = {};
let parentContext:any = {};
let parentViewParam:any = {};
const _this: any = actionContext;
const _args: any[] = Util.deepCopy(args);
const actionTarget: string | null = 'SINGLEKEY';
Object.assign(context, { ibizlist: '%ibizlist%' });
Object.assign(params, { listid: '%ibizlist%' });
Object.assign(params, { listname: '%listname%' });
if(_this.context){
parentContext = _this.context;
}
if(_this.viewparams){
parentViewParam = _this.viewparams;
}
context = UIActionTool.handleContextParam(actionTarget,_args,parentContext,parentViewParam,context);
data = UIActionTool.handleActionParam(actionTarget,_args,parentContext,parentViewParam,params);
context = Object.assign({},actionContext.context,context);
let parentObj:any = {srfparentdename:srfParentDeName?srfParentDeName:null,srfparentkey:srfParentDeName?context[srfParentDeName.toLowerCase()]:null};
Object.assign(data,parentObj);
Object.assign(context,parentObj);
let deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'ibizlists', parameterName: 'ibizlist' },
{ pathName: 'editview', parameterName: 'editview' },
];
const openIndexViewTab = (data: any) => {
const routePath = actionContext.$viewTool.buildUpRoutePath(actionContext.$route, context, deResParameters, parameters, _args, data);
actionContext.$router.push(routePath);
return null;
}
openIndexViewTab(data);
}
/** /**
* 打开主信息界面 * 打开主信息界面
* *
......
...@@ -280,14 +280,29 @@ export default class KnowledgeArticleUIServiceBase extends UIService { ...@@ -280,14 +280,29 @@ export default class KnowledgeArticleUIServiceBase extends UIService {
let deResParameters: any[] = []; let deResParameters: any[] = [];
const parameters: any[] = [ const parameters: any[] = [
{ pathName: 'knowledgearticles', parameterName: 'knowledgearticle' }, { pathName: 'knowledgearticles', parameterName: 'knowledgearticle' },
{ pathName: 'edit_datapanelview', parameterName: 'edit_datapanelview' },
]; ];
const openIndexViewTab = (data: any) => { const openPopOver = (view: any, data: any) => {
const routePath = actionContext.$viewTool.buildUpRoutePath(actionContext.$route, context, deResParameters, parameters, _args, data); let container: Subject<any> = actionContext.$apppopover.openPop($event, view, context,data);
actionContext.$router.push(routePath); container.subscribe((result: any) => {
return null; if (!result || !Object.is(result.ret, 'OK')) {
} return;
openIndexViewTab(data); }
const _this: any = actionContext;
if(window.opener){
window.opener.postMessage({status:'OK',identification:'WF'},Environment.uniteAddress);
window.close();
}
return result.datas;
});
}
const view: any = {
viewname: 'knowledge-article-edit-data-panel-view',
height: 300,
width: 300,
title: actionContext.$t('entities.knowledgearticle.views.edit_datapanelview.title'),
placement: 'POPOVER',
};
openPopOver(view, data);
} }
/** /**
......
...@@ -88,13 +88,10 @@ ...@@ -88,13 +88,10 @@
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">
<div style="text-align: center;"> <div style="text-align: center;">
<tooltip :transfer="true" :max-width="600"> <a v-show="scope.row.SetPrimary.visabled" :disabled="scope.row.SetPrimary.disabled" @click="uiAction(scope.row, 'SetPrimary', $event)" :title="$t('entities.contact.byaccount_grid.uiactions.contact_setprimary')">
<a @click="uiAction(scope.row, 'SetPrimary', $event)"> <i class='fa fa-check'></i>
<i class='fa fa-check'></i>
</a>
</a>
<div slot='content'>{{$t('entities.contact.byaccount_grid.uiactions.contact_setprimary')}}</div>
</tooltip>
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
......
...@@ -59,15 +59,6 @@ export class AbstractInfoEditFormBase extends EditFormControlBase { ...@@ -59,15 +59,6 @@ export class AbstractInfoEditFormBase extends EditFormControlBase {
public appUIService:IBizListUIService = new IBizListUIService(this.$store); public appUIService:IBizListUIService = new IBizListUIService(this.$store);
/**
* 关系界面数量
*
* @protected
* @type {number}
* @memberof AbstractInfoEditFormBase
*/
protected drCount: number = 3;
/** /**
* 表单数据对象 * 表单数据对象
* *
...@@ -114,18 +105,6 @@ export class AbstractInfoEditFormBase extends EditFormControlBase { ...@@ -114,18 +105,6 @@ export class AbstractInfoEditFormBase extends EditFormControlBase {
public detailsModel: any = { public detailsModel: any = {
group1: new FormGroupPanelModel({ caption: '列表信息', detailType: 'GROUPPANEL', name: 'group1', visible: true, isShowCaption: true, form: this, showMoreMode: 0, uiActionGroup: { caption: '', langbase: 'entities.ibizlist.abstractinfo_form', extractMode: 'ITEM', details: [] } }), group1: new FormGroupPanelModel({ caption: '列表信息', detailType: 'GROUPPANEL', name: 'group1', visible: true, isShowCaption: true, form: this, showMoreMode: 0, uiActionGroup: { caption: '', langbase: 'entities.ibizlist.abstractinfo_form', extractMode: 'ITEM', details: [] } }),
druipart1: new FormDRUIPartModel({ caption: '', detailType: 'DRUIPART', name: 'druipart1', visible: true, isShowCaption: true, form: this, showMoreMode: 0 }),
grouppanel1: new FormGroupPanelModel({ caption: '客户信息', detailType: 'GROUPPANEL', name: 'grouppanel1', visible: false, isShowCaption: true, form: this, showMoreMode: 0, uiActionGroup: { caption: '', langbase: 'entities.ibizlist.abstractinfo_form', extractMode: 'ITEM', details: [] } }),
druipart2: new FormDRUIPartModel({ caption: '', detailType: 'DRUIPART', name: 'druipart2', visible: true, isShowCaption: true, form: this, showMoreMode: 0 }),
grouppanel2: new FormGroupPanelModel({ caption: '联系人信息', detailType: 'GROUPPANEL', name: 'grouppanel2', visible: false, isShowCaption: true, form: this, showMoreMode: 0, uiActionGroup: { caption: '', langbase: 'entities.ibizlist.abstractinfo_form', extractMode: 'ITEM', details: [] } }),
druipart3: new FormDRUIPartModel({ caption: '', detailType: 'DRUIPART', name: 'druipart3', visible: true, isShowCaption: true, form: this, showMoreMode: 0 }),
grouppanel3: new FormGroupPanelModel({ caption: '潜在顾客', detailType: 'GROUPPANEL', name: 'grouppanel3', visible: false, isShowCaption: true, form: this, showMoreMode: 0, uiActionGroup: { caption: '', langbase: 'entities.ibizlist.abstractinfo_form', extractMode: 'ITEM', details: [] } }),
formpage1: new FormPageModel({ caption: '基本信息', detailType: 'FORMPAGE', name: 'formpage1', visible: true, isShowCaption: true, form: this, showMoreMode: 0 }), formpage1: new FormPageModel({ caption: '基本信息', detailType: 'FORMPAGE', name: 'formpage1', visible: true, isShowCaption: true, form: this, showMoreMode: 0 }),
srfupdatedate: new FormItemModel({ caption: '更新时间', detailType: 'FORMITEM', name: 'srfupdatedate', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 0 }), srfupdatedate: new FormItemModel({ caption: '更新时间', detailType: 'FORMITEM', name: 'srfupdatedate', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 0 }),
...@@ -165,65 +144,4 @@ export class AbstractInfoEditFormBase extends EditFormControlBase { ...@@ -165,65 +144,4 @@ export class AbstractInfoEditFormBase extends EditFormControlBase {
listid: new FormItemModel({ caption: '列表', detailType: 'FORMITEM', name: 'listid', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }), listid: new FormItemModel({ caption: '列表', detailType: 'FORMITEM', name: 'listid', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }),
}; };
/**
* 表单项逻辑
*
* @param {{ name: string, newVal: any, oldVal: any }} { name, newVal, oldVal }
* @returns {Promise<void>}
* @memberof AbstractInfoEditFormBase
*/
public async formLogic({ name, newVal, oldVal }: { name: string, newVal: any, oldVal: any }): Promise<void> {
if (Object.is(name, '') || Object.is(name, 'membertype')) {
let ret = false;
const _membertype = this.data.membertype;
if (this.$verify.testCond(_membertype, 'EQ', 'Account')) {
ret = true;
}
this.detailsModel.grouppanel1.setVisible(ret);
}
if (Object.is(name, '') || Object.is(name, 'membertype')) {
let ret = false;
const _membertype = this.data.membertype;
if (this.$verify.testCond(_membertype, 'EQ', 'Contact')) {
ret = true;
}
this.detailsModel.grouppanel2.setVisible(ret);
}
if (Object.is(name, '') || Object.is(name, 'membertype')) {
let ret = false;
const _membertype = this.data.membertype;
if (this.$verify.testCond(_membertype, 'EQ', 'Lead')) {
ret = true;
}
this.detailsModel.grouppanel3.setVisible(ret);
}
}
} }
\ No newline at end of file
...@@ -73,111 +73,6 @@ ...@@ -73,111 +73,6 @@
</row> </row>
</app-form-group> </app-form-group>
</i-col>
<i-col v-show="detailsModel.grouppanel1.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-group :model="detailsModel.grouppanel1" layoutType="TABLE_24COL" titleStyle="" class='' :uiActionGroup="detailsModel.grouppanel1.uiActionGroup" @groupuiactionclick="groupUIActionClick($event)" :caption="$t('entities.ibizlist.abstractinfo_form.details.grouppanel1')" :isShowCaption="true" uiStyle="DEFAULT" :titleBarCloseMode="1" :isInfoGroupMode="true" >
<app-form-group-data-panel slot="dataInfoPanel" :model="detailsModel.grouppanel1" :data="data" :context="context" :viewparams="viewparams"/>
<row>
<i-col v-show="detailsModel.druipart1.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-druipart
:formState="formState"
:isForbidLoad="this.data.srfuf === '0'"
paramItem='ibizlist'
:parentdata='{"srfparentdefname":"LISTID","srfparentdename":"LIST","SRFPARENTTYPE":"DER1N","srfparentmode":"DER1N_LISTACCOUNT_LIST_LISTID","SRFDER1NID":"DER1N_LISTACCOUNT_LIST_LISTID"}'
:parameters="[
{ pathName: 'accounts', parameterName: 'account' },
]"
:context="context"
:viewparams="viewparams"
:localContext ='{}'
:localParam ='{}'
parameterName='ibizlist'
parentName="IBizList"
refviewtype='DEGRIDVIEW9'
refreshitems=''
:ignorefieldvaluechange="ignorefieldvaluechange"
viewname='list-account-inner'
:data="JSON.stringify(this.data)"
@drdatasaved="drdatasaved($event)"
style="overflow: auto;">
</app-form-druipart>
</i-col>
</row>
</app-form-group>
</i-col>
<i-col v-show="detailsModel.grouppanel2.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-group :model="detailsModel.grouppanel2" layoutType="TABLE_24COL" titleStyle="" class='' :uiActionGroup="detailsModel.grouppanel2.uiActionGroup" @groupuiactionclick="groupUIActionClick($event)" :caption="$t('entities.ibizlist.abstractinfo_form.details.grouppanel2')" :isShowCaption="true" uiStyle="DEFAULT" :titleBarCloseMode="0" :isInfoGroupMode="true" >
<app-form-group-data-panel slot="dataInfoPanel" :model="detailsModel.grouppanel2" :data="data" :context="context" :viewparams="viewparams"/>
<row>
<i-col v-show="detailsModel.druipart2.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-druipart
:formState="formState"
:isForbidLoad="this.data.srfuf === '0'"
paramItem='ibizlist'
:parentdata='{"srfparentdefname":"LISTID","srfparentdename":"LIST","SRFPARENTTYPE":"DER1N","srfparentmode":"DER1N_LISTCONTACT_LIST_LISTID","SRFDER1NID":"DER1N_LISTCONTACT_LIST_LISTID"}'
:parameters="[
{ pathName: 'contacts', parameterName: 'contact' },
]"
:context="context"
:viewparams="viewparams"
:localContext ='{}'
:localParam ='{}'
parameterName='ibizlist'
parentName="IBizList"
refviewtype='DEGRIDVIEW9'
refreshitems=''
:ignorefieldvaluechange="ignorefieldvaluechange"
viewname='list-contact-inner'
:data="JSON.stringify(this.data)"
@drdatasaved="drdatasaved($event)"
style="overflow: auto;">
</app-form-druipart>
</i-col>
</row>
</app-form-group>
</i-col>
<i-col v-show="detailsModel.grouppanel3.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-group :model="detailsModel.grouppanel3" layoutType="TABLE_24COL" titleStyle="" class='' :uiActionGroup="detailsModel.grouppanel3.uiActionGroup" @groupuiactionclick="groupUIActionClick($event)" :caption="$t('entities.ibizlist.abstractinfo_form.details.grouppanel3')" :isShowCaption="true" uiStyle="DEFAULT" :titleBarCloseMode="0" :isInfoGroupMode="true" >
<app-form-group-data-panel slot="dataInfoPanel" :model="detailsModel.grouppanel3" :data="data" :context="context" :viewparams="viewparams"/>
<row>
<i-col v-show="detailsModel.druipart3.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-druipart
:formState="formState"
:isForbidLoad="this.data.srfuf === '0'"
paramItem='ibizlist'
:parentdata='{"srfparentdefname":"LISTID","srfparentdename":"LIST","SRFPARENTTYPE":"DER1N","srfparentmode":"DER1N_LISTLEAD_LIST_LISTID","SRFDER1NID":"DER1N_LISTLEAD_LIST_LISTID"}'
:parameters="[
{ pathName: 'leads', parameterName: 'lead' },
]"
:context="context"
:viewparams="viewparams"
:localContext ='{}'
:localParam ='{}'
parameterName='ibizlist'
parentName="IBizList"
refviewtype='DEGRIDVIEW'
refreshitems=''
:ignorefieldvaluechange="ignorefieldvaluechange"
viewname='list-lead-by-list'
:data="JSON.stringify(this.data)"
@drdatasaved="drdatasaved($event)"
style="overflow: auto;">
</app-form-druipart>
</i-col>
</row>
</app-form-group>
</i-col> </i-col>
......
import { Prop, Provide, Emit, Model } from 'vue-property-decorator';
import { Subject, Subscription } from 'rxjs';
import { Watch, EditFormControlBase } from '@/studio-core';
import IBizListService from '@/service/ibiz-list/ibiz-list-service';
import Edit_MainService from './edit-main-form-service';
import IBizListUIService from '@/uiservice/ibiz-list/ibiz-list-ui-service';
import { FormButtonModel, FormPageModel, FormItemModel, FormDRUIPartModel, FormPartModel, FormGroupPanelModel, FormIFrameModel, FormRowItemModel, FormTabPageModel, FormTabPanelModel, FormUserControlModel } from '@/model/form-detail';
/**
* form部件基类
*
* @export
* @class EditFormControlBase
* @extends {Edit_MainEditFormBase}
*/
export class Edit_MainEditFormBase extends EditFormControlBase {
/**
* 获取部件类型
*
* @protected
* @type {string}
* @memberof Edit_MainEditFormBase
*/
protected controlType: string = 'FORM';
/**
* 建构部件服务对象
*
* @type {Edit_MainService}
* @memberof Edit_MainEditFormBase
*/
public service: Edit_MainService = new Edit_MainService({ $store: this.$store });
/**
* 实体服务对象
*
* @type {IBizListService}
* @memberof Edit_MainEditFormBase
*/
public appEntityService: IBizListService = new IBizListService({ $store: this.$store });
/**
* 应用实体名称
*
* @protected
* @type {string}
* @memberof Edit_MainEditFormBase
*/
protected appDeName: string = 'ibizlist';
/**
* 界面UI服务对象
*
* @type {IBizListUIService}
* @memberof Edit_MainEditFormBase
*/
public appUIService:IBizListUIService = new IBizListUIService(this.$store);
/**
* 表单数据对象
*
* @type {*}
* @memberof Edit_MainEditFormBase
*/
public data: any = {
srfupdatedate: null,
srforikey: null,
srfkey: null,
srfmajortext: null,
srftempmode: null,
srfuf: null,
srfdeid: null,
srfsourcekey: null,
listname: null,
type: null,
purpose: null,
membertype: null,
source: null,
transactioncurrencyname: null,
cost: null,
ownername: null,
description: null,
transactioncurrencyid: null,
listid: null,
ibizlist:null,
};
/**
* 属性值规则
*
* @type {*}
* @memberof Edit_MainEditFormBase
*/
public rules: any = {
listname: [
{ required: true, type: 'string', message: '名称 值不能为空', trigger: 'change' },
{ required: true, type: 'string', message: '名称 值不能为空', trigger: 'blur' },
],
type: [
{ required: true, type: 'number', message: '类型 值不能为空', trigger: 'change' },
{ required: true, type: 'number', message: '类型 值不能为空', trigger: 'blur' },
],
ownername: [
{ required: true, type: 'string', message: '负责人 值不能为空', trigger: 'change' },
{ required: true, type: 'string', message: '负责人 值不能为空', trigger: 'blur' },
],
}
/**
* 详情模型集合
*
* @type {*}
* @memberof Edit_MainEditFormBase
*/
public detailsModel: any = {
group1: new FormGroupPanelModel({ caption: '列表信息', detailType: 'GROUPPANEL', name: 'group1', visible: true, isShowCaption: true, form: this, showMoreMode: 0, uiActionGroup: { caption: '', langbase: 'entities.ibizlist.edit_main_form', extractMode: 'ITEM', details: [] } }),
formpage1: new FormPageModel({ caption: '基本信息', detailType: 'FORMPAGE', name: 'formpage1', visible: true, isShowCaption: true, form: this, showMoreMode: 0 }),
srfupdatedate: new FormItemModel({ caption: '更新时间', detailType: 'FORMITEM', name: 'srfupdatedate', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 0 }),
srforikey: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srforikey', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }),
srfkey: new FormItemModel({ caption: '列表', detailType: 'FORMITEM', name: 'srfkey', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }),
srfmajortext: new FormItemModel({ caption: '名称', detailType: 'FORMITEM', name: 'srfmajortext', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }),
srftempmode: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srftempmode', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }),
srfuf: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srfuf', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }),
srfdeid: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srfdeid', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }),
srfsourcekey: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srfsourcekey', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }),
listname: new FormItemModel({ caption: '名称', detailType: 'FORMITEM', name: 'listname', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }),
type: new FormItemModel({ caption: '类型', detailType: 'FORMITEM', name: 'type', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }),
purpose: new FormItemModel({ caption: '用途', detailType: 'FORMITEM', name: 'purpose', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }),
membertype: new FormItemModel({ caption: '目标对象', detailType: 'FORMITEM', name: 'membertype', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }),
source: new FormItemModel({ caption: '来源', detailType: 'FORMITEM', name: 'source', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }),
transactioncurrencyname: new FormItemModel({ caption: '货币', detailType: 'FORMITEM', name: 'transactioncurrencyname', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }),
cost: new FormItemModel({ caption: '成本', detailType: 'FORMITEM', name: 'cost', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }),
ownername: new FormItemModel({ caption: '负责人', detailType: 'FORMITEM', name: 'ownername', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }),
description: new FormItemModel({ caption: '说明', detailType: 'FORMITEM', name: 'description', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }),
transactioncurrencyid: new FormItemModel({ caption: '货币', detailType: 'FORMITEM', name: 'transactioncurrencyid', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }),
listid: new FormItemModel({ caption: '列表', detailType: 'FORMITEM', name: 'listid', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }),
};
}
\ No newline at end of file
/**
* Edit_Main 部件模型
*
* @export
* @class Edit_MainModel
*/
export default class Edit_MainModel {
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof Edit_MainModel
*/
public getDataItems(): any[] {
return [
{
name: 'srfwfmemo',
prop: 'srfwfmemo',
dataType: 'TEXT',
},
// 前端新增修改标识,新增为"0",修改为"1"或未设值
{
name: 'srffrontuf',
prop: 'srffrontuf',
dataType: 'TEXT',
},
{
name: 'srfupdatedate',
prop: 'updatedate',
dataType: 'DATETIME',
},
{
name: 'srforikey',
},
{
name: 'srfkey',
prop: 'listid',
dataType: 'GUID',
},
{
name: 'srfmajortext',
prop: 'listname',
dataType: 'TEXT',
},
{
name: 'srftempmode',
},
{
name: 'srfuf',
},
{
name: 'srfdeid',
},
{
name: 'srfsourcekey',
},
{
name: 'listname',
prop: 'listname',
dataType: 'TEXT',
},
{
name: 'type',
prop: 'type',
dataType: 'YESNO',
},
{
name: 'purpose',
prop: 'purpose',
dataType: 'TEXT',
},
{
name: 'membertype',
prop: 'membertype',
dataType: 'INT',
},
{
name: 'source',
prop: 'source',
dataType: 'TEXT',
},
{
name: 'transactioncurrencyname',
prop: 'transactioncurrencyname',
dataType: 'PICKUPTEXT',
},
{
name: 'cost',
prop: 'cost',
dataType: 'BIGDECIMAL',
},
{
name: 'ownername',
prop: 'ownername',
dataType: 'TEXT',
},
{
name: 'description',
prop: 'description',
dataType: 'TEXT',
},
{
name: 'transactioncurrencyid',
prop: 'transactioncurrencyid',
dataType: 'PICKUP',
},
{
name: 'listid',
prop: 'listid',
dataType: 'GUID',
},
{
name: 'ibizlist',
prop: 'listid',
dataType: 'FONTKEY',
},
]
}
}
\ No newline at end of file
<i-form :model="this.data" class='app-form' ref='form' id='ibizlist_edit_main' style="">
<input style="display:none;" />
<row >
<i-col v-show="detailsModel.group1.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-group :model="detailsModel.group1" layoutType="TABLE_24COL" titleStyle="" class='' :uiActionGroup="detailsModel.group1.uiActionGroup" @groupuiactionclick="groupUIActionClick($event)" :caption="$t('entities.ibizlist.edit_main_form.details.group1')" :isShowCaption="true" uiStyle="DEFAULT" :titleBarCloseMode="1" :isInfoGroupMode="false" >
<app-form-group-data-panel slot="dataInfoPanel" :model="detailsModel.group1" :data="data" :context="context" :viewparams="viewparams"/>
<row>
<i-col v-show="detailsModel.listname.visible" :style="{}" :md="{ span: 12, offset: 0 }" :lg="{ span: 8, offset: 0 }" :xl="{ span: 6, offset: 0 }">
<app-form-item name='listname' :itemRules="this.rules.listname" class='' :caption="$t('entities.ibizlist.edit_main_form.details.listname')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.listname.error" :isEmptyCaption="false" labelPos="LEFT">
<input-box v-model="data.listname" @enter="onEnter($event)" unit="" :disabled="detailsModel.listname.disabled" type='text' style=""></input-box>
</app-form-item>
</i-col>
<i-col v-show="detailsModel.type.visible" :style="{}" :md="{ span: 12, offset: 0 }" :lg="{ span: 8, offset: 0 }" :xl="{ span: 6, offset: 0 }">
<app-form-item name='type' :itemRules="this.rules.type" class='' :caption="$t('entities.ibizlist.edit_main_form.details.type')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.type.error" :isEmptyCaption="false" labelPos="LEFT">
<dropdown-list
v-model="data.type"
:data="data"
:context="context"
:viewparams="viewparams"
:localContext ='{ }'
:localParam ='{ }'
:disabled="detailsModel.type.disabled"
style="width:100px;width: 100px;"
valueType="number"
tag='YesNo'
codelistType='STATIC'
placeholder='请选择...'
/>
</app-form-item>
</i-col>
<i-col v-show="detailsModel.purpose.visible" :style="{}" :md="{ span: 12, offset: 0 }" :lg="{ span: 8, offset: 0 }" :xl="{ span: 6, offset: 0 }">
<app-form-item name='purpose' :itemRules="this.rules.purpose" class='' :caption="$t('entities.ibizlist.edit_main_form.details.purpose')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.purpose.error" :isEmptyCaption="false" labelPos="LEFT">
<input-box v-model="data.purpose" @enter="onEnter($event)" unit="" :disabled="detailsModel.purpose.disabled" type='text' style=""></input-box>
</app-form-item>
</i-col>
<i-col v-show="detailsModel.membertype.visible" :style="{}" :md="{ span: 12, offset: 0 }" :lg="{ span: 8, offset: 0 }" :xl="{ span: 6, offset: 0 }">
<app-form-item name='membertype' :itemRules="this.rules.membertype" class='' :caption="$t('entities.ibizlist.edit_main_form.details.membertype')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.membertype.error" :isEmptyCaption="false" labelPos="LEFT">
<input-box v-model="data.membertype" @enter="onEnter($event)" unit="" :disabled="detailsModel.membertype.disabled" type='number' style=""></input-box>
</app-form-item>
</i-col>
<i-col v-show="detailsModel.source.visible" :style="{}" :md="{ span: 12, offset: 0 }" :lg="{ span: 8, offset: 0 }" :xl="{ span: 6, offset: 0 }">
<app-form-item name='source' :itemRules="this.rules.source" class='' :caption="$t('entities.ibizlist.edit_main_form.details.source')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.source.error" :isEmptyCaption="false" labelPos="LEFT">
<input-box v-model="data.source" @enter="onEnter($event)" unit="" :disabled="detailsModel.source.disabled" type='text' style=""></input-box>
</app-form-item>
</i-col>
<i-col v-show="detailsModel.transactioncurrencyname.visible" :style="{}" :md="{ span: 12, offset: 0 }" :lg="{ span: 8, offset: 0 }" :xl="{ span: 6, offset: 0 }">
<app-form-item name='transactioncurrencyname' :itemRules="this.rules.transactioncurrencyname" class='' :caption="$t('entities.ibizlist.edit_main_form.details.transactioncurrencyname')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.transactioncurrencyname.error" :isEmptyCaption="false" labelPos="LEFT">
<app-picker
:formState="formState"
:data="data"
:context="context"
:viewparams="viewparams"
:localContext ='{ }'
:localParam ='{ }'
:disabled="detailsModel.transactioncurrencyname.disabled"
name='transactioncurrencyname'
deMajorField='currencyname'
deKeyField='transactioncurrency'
:service="service"
:acParams="{ serviceName: 'TransactionCurrencyService', interfaceName: 'FetchDefault'}"
valueitem='transactioncurrencyid'
:value="data.transactioncurrencyname"
:pickupView="{ viewname: 'transaction-currency-pickup-view', title: $t('entities.transactioncurrency.views.pickupview.title'), deResParameters: [], parameters: [{ pathName: 'transactioncurrencies', parameterName: 'transactioncurrency' }, { pathName: 'pickupview', parameterName: 'pickupview' } ], placement:'' }"
style=""
@formitemvaluechange="onFormItemValueChange($event)">
</app-picker>
</app-form-item>
</i-col>
<i-col v-show="detailsModel.cost.visible" :style="{}" :md="{ span: 12, offset: 0 }" :lg="{ span: 8, offset: 0 }" :xl="{ span: 6, offset: 0 }">
<app-form-item name='cost' :itemRules="this.rules.cost" class='' :caption="$t('entities.ibizlist.edit_main_form.details.cost')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.cost.error" :isEmptyCaption="false" labelPos="LEFT">
<input-box v-model="data.cost" @enter="onEnter($event)" unit="" :disabled="detailsModel.cost.disabled" type='number' style=""></input-box>
</app-form-item>
</i-col>
<i-col v-show="detailsModel.ownername.visible" :style="{}" :md="{ span: 12, offset: 0 }" :lg="{ span: 8, offset: 0 }" :xl="{ span: 6, offset: 0 }">
<app-form-item name='ownername' :itemRules="this.rules.ownername" class='' :caption="$t('entities.ibizlist.edit_main_form.details.ownername')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.ownername.error" :isEmptyCaption="false" labelPos="LEFT">
<input-box v-model="data.ownername" @enter="onEnter($event)" unit="" :disabled="detailsModel.ownername.disabled" type='text' style=""></input-box>
</app-form-item>
</i-col>
<i-col v-show="detailsModel.description.visible" :style="{}" :md="{ span: 24, offset: 0 }" :lg="{ span: 24, offset: 0 }" :xl="{ span: 24, offset: 0 }">
<app-form-item name='description' :itemRules="this.rules.description" class='' :caption="$t('entities.ibizlist.edit_main_form.details.description')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.description.error" :isEmptyCaption="false" labelPos="LEFT">
<input-box v-model="data.description" @enter="onEnter($event)" unit="" :disabled="detailsModel.description.disabled" type='text' style=""></input-box>
</app-form-item>
</i-col>
</row>
</app-form-group>
</i-col>
</row>
</i-form>
\ No newline at end of file
<template src="./edit-main-form.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { Edit_MainEditFormBase } from './edit-main-form-base';
/**
* form部件
*
* @export
* @class Edit_MainEditForm
* @extends {Edit_MainEditFormBase}
*/
@Component({
components: {
}
})
@VueLifeCycleProcessing()
export default class Edit_MainEditForm extends Edit_MainEditFormBase { }
</script>
...@@ -12,6 +12,6 @@ CMD echo "The application will start in ${IBIZ_SLEEP}s..." && \ ...@@ -12,6 +12,6 @@ CMD echo "The application will start in ${IBIZ_SLEEP}s..." && \
sleep ${IBIZ_SLEEP} && \ sleep ${IBIZ_SLEEP} && \
java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /businesscentral-app-businesscentral.jar java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /businesscentral-app-businesscentral.jar
EXPOSE 10320 EXPOSE 8080
ADD businesscentral-app-businesscentral.jar /businesscentral-app-businesscentral.jar ADD businesscentral-app-businesscentral.jar /businesscentral-app-businesscentral.jar
...@@ -3,23 +3,9 @@ services: ...@@ -3,23 +3,9 @@ services:
businesscentral-app-businesscentral: businesscentral-app-businesscentral:
image: registry.cn-shanghai.aliyuncs.com/ibizsys/businesscentral-app-businesscentral:latest image: registry.cn-shanghai.aliyuncs.com/ibizsys/businesscentral-app-businesscentral:latest
ports: ports:
- "10320:10320" - "8080:8080"
networks: networks:
- agent_network - agent_network
environment:
- SPRING_CLOUD_NACOS_DISCOVERY_IP=172.16.240.110
- SERVER_PORT=10320
- SPRING_CLOUD_NACOS_DISCOVERY_SERVER-ADDR=172.16.240.110:8848
- SPRING_REDIS_HOST=172.16.240.110
- SPRING_REDIS_PORT=6379
- SPRING_REDIS_DATABASE=0
- SPRING_DATASOURCE_USERNAME=a_LAB01_e85d8801c
- SPRING_DATASOURCE_PASSWORD=b1@@@772
- SPRING_DATASOURCE_URL=jdbc:mysql://172.16.186.185:3306/a_LAB01_e85d8801c?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&useOldAliasMetadataBehavior=true
- SPRING_DATASOURCE_DRIVER-CLASS-NAME=com.mysql.jdbc.Driver
- SPRING_DATASOURCE_DEFAULTSCHEMA=a_LAB01_e85d8801c
- CAS=https://passport.ibizlab.cn
- NACOS=172.16.240.110:8848
deploy: deploy:
resources: resources:
limits: limits:
......
...@@ -6,11 +6,11 @@ zuul: ...@@ -6,11 +6,11 @@ zuul:
routes: routes:
fisaccount: fisaccount:
path: /fisaccounts/** path: /fisaccounts/**
serviceId: ibizprojectoperations-poejectoperationsapi serviceId: ${ibiz.ref.service.ibizprojectoperations-poejectoperationsapi:ibizprojectoperations-poejectoperationsapi}
stripPrefix: false stripPrefix: false
psaaccount: psaaccount:
path: /psaaccounts/** path: /psaaccounts/**
serviceId: ibizprojectoperations-poejectoperationsapi serviceId: ${ibiz.ref.service.ibizprojectoperations-poejectoperationsapi:ibizprojectoperations-poejectoperationsapi}
stripPrefix: false stripPrefix: false
sensitive-headers: sensitive-headers:
- Cookie,Set-Cookie,Authorization - Cookie,Set-Cookie,Authorization
此差异已折叠。
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册