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

lab_gzf 部署微服务应用

上级 820410a1
......@@ -4509,6 +4509,23 @@
}
]
},
{
"srfkey": "Pricelevel__PaymentMethodCode",
"emptytext": "未定义",
"codelisttype":"static",
"items": [
{
"id": "1",
"label": "默认值",
"text": "默认值",
"data":"",
"codename":"Item_1",
"value": "1",
"disabled": false
}
]
},
{
"srfkey": "Goal__FiscalPeriod",
"emptytext": "未定义",
......@@ -5274,6 +5291,14 @@
}
]
},
{
"srfkey": "RelationshipsType",
"emptytext": "未定义",
"codelisttype":"dynamic",
"appdataentity":"",
"appdedataset":"",
"items": []
},
{
"srfkey": "Account__StateCode",
"emptytext": "未定义",
......
......@@ -71,6 +71,17 @@
.ivu-layout-content {
a[disable="true"] {
cursor: no-drop;
color: #c7cace;
fill: #c7cace;
}
a[disable="true"]:hover {
color: #c7cace;
fill: #c7cace;
}
h3 {
font-family: "Inter", sans-serif;
font-weight: 500;
......
......@@ -127,7 +127,7 @@ export interface PriceLevel {
importsequencenumber?: any;
/**
* 价格水平名称
* 价目表名称
*
* @returns {*}
* @memberof PriceLevel
......
......@@ -196,6 +196,7 @@ export default {
menuitem36: "计价单位组",
menuitem37: "价目表",
menuitem38: "折扣表",
menuitem31: "目标度量",
menuitem34: "消息通知",
menuitem35: "帮助",
left_exp: "左侧菜单",
......@@ -211,6 +212,7 @@ export default {
menuitem8: "潜在客户",
menuitem9: "商机",
menuitem10: "竞争对手",
menuitem25: "目标",
menuitem22: "宣传资料",
menuitem11: "报价单",
menuitem12: "订单",
......@@ -220,13 +222,9 @@ export default {
menuitem23: "市场营销",
menuitem30: "市场活动",
menuitem15: "市场营销列表",
menuitem24: "绩效",
menuitem25: "目标",
menuitem31: "目标度量",
menuitem27: "服务",
menuitem28: "服务案例",
menuitem32: "知识文章",
menuitem17: "案例客户",
bottom_exp: "底部内容",
footer_left: "底部左侧",
footer_center: "底部中间",
......
......@@ -196,6 +196,7 @@ export default {
menuitem36: "计价单位组",
menuitem37: "价目表",
menuitem38: "折扣表",
menuitem31: "目标度量",
menuitem34: "消息通知",
menuitem35: "帮助",
left_exp: "左侧菜单",
......@@ -211,6 +212,7 @@ export default {
menuitem8: "潜在客户",
menuitem9: "商机",
menuitem10: "竞争对手",
menuitem25: "目标",
menuitem22: "宣传资料",
menuitem11: "报价单",
menuitem12: "订单",
......@@ -220,13 +222,9 @@ export default {
menuitem23: "市场营销",
menuitem30: "市场活动",
menuitem15: "市场营销列表",
menuitem24: "绩效",
menuitem25: "目标",
menuitem31: "目标度量",
menuitem27: "服务",
menuitem28: "服务案例",
menuitem32: "知识文章",
menuitem17: "案例客户",
bottom_exp: "底部内容",
footer_left: "底部左侧",
footer_center: "底部中间",
......
......@@ -583,6 +583,10 @@ export default {
"0": "有效",
"empty": ""
},
Pricelevel__PaymentMethodCode: {
"1": "默认值",
"empty": ""
},
Goal__FiscalPeriod: {
"1": "1 季度",
"2": "2 季度",
......@@ -671,6 +675,9 @@ export default {
"0": "已开始",
"empty": ""
},
RelationshipsType: {
"empty": ""
},
Account__StateCode: {
"1": "停用",
"0": "可用",
......
......@@ -583,6 +583,10 @@ export default {
"0": "有效",
"empty": "",
},
Pricelevel__PaymentMethodCode: {
"1": "默认值",
"empty": "",
},
Goal__FiscalPeriod: {
"1": "1 季度",
"2": "2 季度",
......@@ -671,6 +675,9 @@ export default {
"0": "已开始",
"empty": "",
},
RelationshipsType: {
"empty": "",
},
Account__StateCode: {
"1": "停用",
"0": "可用",
......
......@@ -148,8 +148,10 @@ export default {
main_grid: {
columns: {
subject: "主题",
updateman: "更新人",
updatedate: "更新时间",
activitytypecode: "活动类型",
actualcost: "实际成本",
actualstart: "实际开始时间",
actualend: "实际结束时间",
},
uiactions: {
},
......
......@@ -147,8 +147,10 @@ export default {
main_grid: {
columns: {
subject: "主题",
updateman: "更新人",
updatedate: "更新时间",
activitytypecode: "活动类型",
actualcost: "实际成本",
actualstart: "实际开始时间",
actualend: "实际结束时间",
},
uiactions: {
},
......
......@@ -44,6 +44,8 @@ export default {
},
main_grid: {
columns: {
entity2name: "名称",
relationshipstype: "关系类型",
},
uiactions: {
},
......@@ -56,18 +58,18 @@ export default {
},
},
gridviewtoolbar_toolbar: {
tbitem3: {
deuiaction1: {
caption: "New",
tip: "New",
},
tbitem2: {
caption: "-",
tip: "",
},
tbitem4: {
caption: "Edit",
tip: "Edit {0}",
},
tbitem6: {
caption: "Copy",
tip: "Copy {0}",
},
tbitem7: {
caption: "-",
tip: "",
......
......@@ -43,6 +43,8 @@ export default {
},
main_grid: {
columns: {
entity2name: "名称",
relationshipstype: "关系类型",
},
uiactions: {
},
......@@ -55,18 +57,18 @@ export default {
},
},
gridviewtoolbar_toolbar: {
tbitem3: {
deuiaction1: {
caption: "新建",
tip: "新建",
},
tbitem2: {
caption: "-",
tip: "",
},
tbitem4: {
caption: "编辑",
tip: "编辑",
},
tbitem6: {
caption: "拷贝",
tip: "拷贝",
},
tbitem7: {
caption: "-",
tip: "",
......
......@@ -142,8 +142,9 @@ export default {
main_grid: {
columns: {
subject: "主题",
updateman: "更新人",
updatedate: "更新时间",
activitytypecode: "活动类型",
actualstart: "实际开始时间",
actualend: "实际结束时间",
},
uiactions: {
},
......
......@@ -141,8 +141,9 @@ export default {
main_grid: {
columns: {
subject: "主题",
updateman: "更新人",
updatedate: "更新时间",
activitytypecode: "活动类型",
actualstart: "实际开始时间",
actualend: "实际结束时间",
},
uiactions: {
},
......
......@@ -782,6 +782,14 @@ export default {
caption: "-",
tip: "",
},
tbitem14_active: {
caption: "重新激活",
tip: "重新激活",
},
tbitem15: {
caption: "-",
tip: "",
},
tbitem19: {
caption: "Filter",
tip: "Filter",
......
......@@ -781,6 +781,14 @@ export default {
caption: "-",
tip: "",
},
tbitem14_active: {
caption: "重新激活",
tip: "重新激活",
},
tbitem15: {
caption: "-",
tip: "",
},
tbitem19: {
caption: "过滤",
tip: "过滤",
......
......@@ -16,7 +16,7 @@ export default {
exchangerate: "汇率",
begindate: "开始日期",
importsequencenumber: "Import Sequence Number",
pricelevelname: "价格水平名称",
pricelevelname: "价目表名称",
statuscode: "状态描述",
freighttermscode: "货运条款",
createdate: "建立时间",
......@@ -45,21 +45,19 @@ export default {
details: {
group1: "pricelevel基本信息",
formpage1: "基本信息",
group2: "操作信息",
formpage2: "其它",
srfupdatedate: "更新时间",
srforikey: "",
srfkey: "价目表",
srfmajortext: "价格水平名称",
srfmajortext: "价目表名称",
srftempmode: "",
srfuf: "",
srfdeid: "",
srfsourcekey: "",
pricelevelname: "价格水平名称",
createman: "建立人",
createdate: "建立时间",
updateman: "更新人",
updatedate: "更新时间",
pricelevelname: "价目表名称",
begindate: "开始日期",
enddate: "结束日期",
paymentmethodcode: "付款方式",
description: "说明",
pricelevelid: "价目表",
},
uiactions: {
......@@ -67,9 +65,11 @@ export default {
},
main_grid: {
columns: {
pricelevelname: "价格水平名称",
updateman: "更新人",
updatedate: "更新时间",
pricelevelname: "价目表名称",
begindate: "开始日期",
enddate: "结束日期",
paymentmethodcode: "付款方式",
description: "说明",
},
uiactions: {
},
......
......@@ -15,7 +15,7 @@ export default {
exchangerate: "汇率",
begindate: "开始日期",
importsequencenumber: "Import Sequence Number",
pricelevelname: "价格水平名称",
pricelevelname: "价目表名称",
statuscode: "状态描述",
freighttermscode: "货运条款",
createdate: "建立时间",
......@@ -44,21 +44,19 @@ export default {
details: {
group1: "pricelevel基本信息",
formpage1: "基本信息",
group2: "操作信息",
formpage2: "其它",
srfupdatedate: "更新时间",
srforikey: "",
srfkey: "价目表",
srfmajortext: "价格水平名称",
srfmajortext: "价目表名称",
srftempmode: "",
srfuf: "",
srfdeid: "",
srfsourcekey: "",
pricelevelname: "价格水平名称",
createman: "建立人",
createdate: "建立时间",
updateman: "更新人",
updatedate: "更新时间",
pricelevelname: "价目表名称",
begindate: "开始日期",
enddate: "结束日期",
paymentmethodcode: "付款方式",
description: "说明",
pricelevelid: "价目表",
},
uiactions: {
......@@ -66,9 +64,11 @@ export default {
},
main_grid: {
columns: {
pricelevelname: "价格水平名称",
updateman: "更新人",
updatedate: "更新时间",
pricelevelname: "价目表名称",
begindate: "开始日期",
enddate: "结束日期",
paymentmethodcode: "付款方式",
description: "说明",
},
uiactions: {
},
......
......@@ -166,7 +166,7 @@ mock.onGet('v7/centralappmenu').reply((config: any) => {
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: 'fa fa-cog',
iconcls: 'fa fa-list-alt',
icon: '',
textcls: '',
appfunctag: 'Auto31',
......@@ -184,11 +184,29 @@ mock.onGet('v7/centralappmenu').reply((config: any) => {
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: 'fa fa-cog',
iconcls: 'fa fa-th-list',
icon: '',
textcls: '',
appfunctag: 'Auto23',
resourcetag: '',
},
{
id: 'C332BAD9-C1DC-44D2-A872-CD400C39C69F',
name: 'menuitem31',
text: '目标度量',
type: 'MENUITEM',
counterid: '',
tooltip: '目标度量',
expanded: false,
separator: false,
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: 'fa fa-line-chart',
icon: '',
textcls: '',
appfunctag: 'Auto28',
resourcetag: '',
},
],
},
......@@ -467,6 +485,24 @@ mock.onGet('v7/centralappmenu').reply((config: any) => {
textcls: '',
appfunctag: 'Auto12',
resourcetag: '',
},
{
id: '7865cc7821cd0417f5260b765479666c',
name: 'menuitem25',
text: '目标',
type: 'MENUITEM',
counterid: '',
tooltip: '目标',
expanded: false,
separator: false,
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: 'fa fa-flag-checkered',
icon: '',
textcls: '',
appfunctag: 'Auto13',
resourcetag: '',
},
],
},
......@@ -635,62 +671,6 @@ mock.onGet('v7/centralappmenu').reply((config: any) => {
resourcetag: '',
},
],
},
{
id: 'd122b1507a020737aad8946695937ce8',
name: 'menuitem24',
text: '绩效',
type: 'MENUITEM',
counterid: '',
tooltip: '绩效',
expanded: false,
separator: false,
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: 'fa fa-slack',
icon: '',
textcls: '',
appfunctag: '',
resourcetag: '',
items: [
{
id: '7865cc7821cd0417f5260b765479666c',
name: 'menuitem25',
text: '目标',
type: 'MENUITEM',
counterid: '',
tooltip: '目标',
expanded: false,
separator: false,
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: 'fa fa-flag-checkered',
icon: '',
textcls: '',
appfunctag: 'Auto13',
resourcetag: '',
},
{
id: 'C332BAD9-C1DC-44D2-A872-CD400C39C69F',
name: 'menuitem31',
text: '目标度量',
type: 'MENUITEM',
counterid: '',
tooltip: '目标度量',
expanded: false,
separator: false,
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: 'fa fa-line-chart',
icon: '',
textcls: '',
appfunctag: 'Auto28',
resourcetag: '',
},
],
},
{
id: '359e8fadad16fed7538b6017cfe73c38',
......@@ -745,24 +725,6 @@ mock.onGet('v7/centralappmenu').reply((config: any) => {
textcls: '',
appfunctag: 'Auto17',
resourcetag: '',
},
{
id: '2D4A2378-B18F-4CA3-A2C4-B5444C7A590B',
name: 'menuitem17',
text: '案例客户',
type: 'MENUITEM',
counterid: '',
tooltip: '案例客户',
expanded: false,
separator: false,
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: '',
icon: '',
textcls: '',
appfunctag: 'Auto19',
resourcetag: '',
},
],
},
......
......@@ -4517,6 +4517,23 @@ mock.onGet('./assets/json/data-dictionary.json').reply((config: any) => {
},
]
},
{
srfkey: "Pricelevel__PaymentMethodCode",
emptytext: "未定义",
"codelisttype":"static",
items: [
{
id: "1",
label: "默认值",
text: "默认值",
"data":"",
"codename":"Item_1",
value: "1",
disabled: false,
},
]
},
{
srfkey: "Goal__FiscalPeriod",
emptytext: "未定义",
......@@ -5282,6 +5299,14 @@ mock.onGet('./assets/json/data-dictionary.json').reply((config: any) => {
},
]
},
{
"srfkey": "RelationshipsType",
"emptytext": "未定义",
"codelisttype":"dynamic",
"appdataentity":"",
"appdedataset":"",
"items": []
},
{
srfkey: "Account__StateCode",
emptytext: "未定义",
......
export const PageComponents = {
install(Vue: any, opt: any) {
Vue.component('ibiz-list-stop-grid-view', () => import('@pages/marketing/ibiz-list-stop-grid-view/ibiz-list-stop-grid-view.vue'));
Vue.component('goal-child-goal-grid-view', () => import('@pages/sales/goal-child-goal-grid-view/goal-child-goal-grid-view.vue'));
Vue.component('quote-effective-grid-view', () => import('@pages/sales/quote-effective-grid-view/quote-effective-grid-view.vue'));
Vue.component('goal-child-goal-grid-view', () => import('@pages/sales/goal-child-goal-grid-view/goal-child-goal-grid-view.vue'));
Vue.component('invoice-info-invoice-view', () => import('@pages/finance/invoice-info-invoice-view/invoice-info-invoice-view.vue'));
Vue.component('ibiz-list-edit-data-panel-view', () => import('@pages/marketing/ibiz-list-edit-data-panel-view/ibiz-list-edit-data-panel-view.vue'));
Vue.component('competitor-option-view', () => import('@pages/sales/competitor-option-view/competitor-option-view.vue'));
......@@ -28,7 +28,6 @@ export const PageComponents = {
Vue.component('email-edit-view', () => import('@pages/base/email-edit-view/email-edit-view.vue'));
Vue.component('connection-role-pickup-view', () => import('@pages/runtime/connection-role-pickup-view/connection-role-pickup-view.vue'));
Vue.component('sales-literature-edit-data-panel-view', () => import('@pages/sales/sales-literature-edit-data-panel-view/sales-literature-edit-data-panel-view.vue'));
Vue.component('incident-customer-index-pickup-view', () => import('@pages/service/incident-customer-index-pickup-view/incident-customer-index-pickup-view.vue'));
Vue.component('invoice-grid-view', () => import('@pages/finance/invoice-grid-view/invoice-grid-view.vue'));
Vue.component('sales-literature-quick-create-view', () => import('@pages/sales/sales-literature-quick-create-view/sales-literature-quick-create-view.vue'));
Vue.component('contact-usable-grid-view', () => import('@pages/base/contact-usable-grid-view/contact-usable-grid-view.vue'));
......@@ -130,7 +129,6 @@ export const PageComponents = {
Vue.component('sales-order-summary-view', () => import('@pages/sales/sales-order-summary-view/sales-order-summary-view.vue'));
Vue.component('quote-detail-edit-view', () => import('@pages/sales/quote-detail-edit-view/quote-detail-edit-view.vue'));
Vue.component('product-stop-grid-view', () => import('@pages/product/product-stop-grid-view/product-stop-grid-view.vue'));
Vue.component('incident-customer-grid-view', () => import('@pages/service/incident-customer-grid-view/incident-customer-grid-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-quick-create', () => import('@pages/base/account-quick-create/account-quick-create.vue'));
......@@ -148,7 +146,6 @@ export const PageComponents = {
Vue.component('lead-edit-data-panel-view', () => import('@pages/sales/lead-edit-data-panel-view/lead-edit-data-panel-view.vue'));
Vue.component('discount-type-grid-view', () => import('@pages/sales/discount-type-grid-view/discount-type-grid-view.vue'));
Vue.component('product-state-tab-view', () => import('@pages/product/product-state-tab-view/product-state-tab-view.vue'));
Vue.component('incident-customer-index-pickup-data-view', () => import('@pages/service/incident-customer-index-pickup-data-view/incident-customer-index-pickup-data-view.vue'));
Vue.component('setting', () => import('@pages/ungroup/setting/setting.vue'));
Vue.component('price-level-edit-view', () => import('@pages/product/price-level-edit-view/price-level-edit-view.vue'));
Vue.component('invoice-quick-create-view', () => import('@pages/finance/invoice-quick-create-view/invoice-quick-create-view.vue'));
......@@ -157,8 +154,8 @@ export const PageComponents = {
Vue.component('sales-order-info', () => import('@pages/sales/sales-order-info/sales-order-info.vue'));
Vue.component('knowledge-article-info-kl-art-view', () => import('@pages/base/knowledge-article-info-kl-art-view/knowledge-article-info-kl-art-view.vue'));
Vue.component('sales-order-detail-edit-view', () => import('@pages/sales/sales-order-detail-edit-view/sales-order-detail-edit-view.vue'));
Vue.component('goal-edit-view', () => import('@pages/sales/goal-edit-view/goal-edit-view.vue'));
Vue.component('letter-edit-view', () => import('@pages/base/letter-edit-view/letter-edit-view.vue'));
Vue.component('goal-edit-view', () => import('@pages/sales/goal-edit-view/goal-edit-view.vue'));
Vue.component('transaction-currency-pickup-view', () => import('@pages/base/transaction-currency-pickup-view/transaction-currency-pickup-view.vue'));
Vue.component('incident-summary-view', () => import('@pages/service/incident-summary-view/incident-summary-view.vue'));
Vue.component('metric-pickup-grid-view', () => import('@pages/base/metric-pickup-grid-view/metric-pickup-grid-view.vue'));
......@@ -228,7 +225,6 @@ export const PageComponents = {
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('incident-customer-edit-view', () => import('@pages/service/incident-customer-edit-view/incident-customer-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('list-account-edit-view', () => import('@pages/marketing/list-account-edit-view/list-account-edit-view.vue'));
......@@ -256,8 +252,8 @@ export const PageComponents = {
Vue.component('sales-order-by-parent-key', () => import('@pages/sales/sales-order-by-parent-key/sales-order-by-parent-key.vue'));
Vue.component('product-pickup-grid-view', () => import('@pages/product/product-pickup-grid-view/product-pickup-grid-view.vue'));
Vue.component('list-lead-quick-create-by-list', () => import('@pages/marketing/list-lead-quick-create-by-list/list-lead-quick-create-by-list.vue'));
Vue.component('goal-summary-view', () => import('@pages/sales/goal-summary-view/goal-summary-view.vue'));
Vue.component('account-info', () => import('@pages/base/account-info/account-info.vue'));
Vue.component('goal-summary-view', () => import('@pages/sales/goal-summary-view/goal-summary-view.vue'));
Vue.component('connection-role-grid-view', () => import('@pages/runtime/connection-role-grid-view/connection-role-grid-view.vue'));
Vue.component('incident-pickup-view', () => import('@pages/service/incident-pickup-view/incident-pickup-view.vue'));
Vue.component('contact-edit-data-panel-view', () => import('@pages/base/contact-edit-data-panel-view/contact-edit-data-panel-view.vue'));
......
......@@ -506,16 +506,28 @@ export class KnowledgeArticleGridViewBase extends GridViewBase {
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'knowledgearticles', parameterName: 'knowledgearticle' },
{ pathName: 'quickcreateview', parameterName: 'quickcreateview' },
];
const _this: any = this;
const openIndexViewTab = (data: any) => {
const _data: any = { w: (new Date().getTime()) };
Object.assign(_data, data);
const routePath = this.$viewTool.buildUpRoutePath(this.$route, tempContext, deResParameters, parameters, args, _data);
this.$router.push(routePath);
const openDrawer = (view: any, data: any) => {
let container: Subject<any> = this.$appdrawer.openDrawer(view, tempContext, data);
container.subscribe((result: any) => {
if (!result || !Object.is(result.ret, 'OK')) {
return;
}
if (!xData || !(xData.refresh instanceof Function)) {
return;
}
xData.refresh(result.datas);
});
}
openIndexViewTab(data);
const view: any = {
viewname: 'knowledge-article-quick-create-view',
height: 0,
width: 0,
title: this.$t('entities.knowledgearticle.views.quickcreateview.title'),
placement: 'DRAWER_RIGHT',
};
openDrawer(view, data);
}
......
<studio-view-style2 viewName="invoiceeditview" viewTitle="发票编辑视图" class='deeditview invoice-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
......
......@@ -103,12 +103,11 @@ export class CampaignListGridViewBase extends GridViewBase {
* @memberof CampaignListGridView
*/
public toolBarModels: any = {
tbitem3: { name: 'tbitem3', caption: '新建', 'isShowCaption': true, 'isShowIcon': true, tooltip: '新建', iconcls: 'fa fa-file-text-o', icon: '', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'New', target: '', class: '' } },
deuiaction1: { name: 'deuiaction1', caption: '新建', 'isShowCaption': true, 'isShowIcon': true, tooltip: '新建', iconcls: 'fa fa-file-text-o', icon: '', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'New', target: '', class: '' } },
tbitem2: { name: 'tbitem2', type: 'SEPERATOR', visabled: true, dataaccaction: '', uiaction: { } },
tbitem4: { name: 'tbitem4', caption: '编辑', 'isShowCaption': true, 'isShowIcon': true, tooltip: '编辑', iconcls: 'fa fa-edit', icon: '', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'Edit', target: 'SINGLEKEY', class: '' } },
tbitem6: { name: 'tbitem6', caption: '拷贝', 'isShowCaption': true, 'isShowIcon': true, tooltip: '拷贝', iconcls: 'fa fa-copy', icon: '', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'Copy', target: 'SINGLEKEY', class: '' } },
tbitem7: { name: 'tbitem7', type: 'SEPERATOR', visabled: true, dataaccaction: '', uiaction: { } },
tbitem8: { name: 'tbitem8', caption: '删除', 'isShowCaption': true, 'isShowIcon': true, tooltip: '删除', iconcls: 'fa fa-remove', icon: '', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'Remove', target: 'MULTIKEY', class: '' } },
......@@ -172,21 +171,12 @@ export class CampaignListGridViewBase extends GridViewBase {
* @memberof CampaignListGridViewBase
*/
public toolbar_click($event: any, $event2?: any): void {
if (Object.is($event.tag, 'tbitem3')) {
this.toolbar_tbitem3_click(null, '', $event2);
if (Object.is($event.tag, 'deuiaction1')) {
this.toolbar_deuiaction1_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem4')) {
this.toolbar_tbitem4_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem6')) {
this.toolbar_tbitem6_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem24')) {
this.toolbar_tbitem24_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem25')) {
this.toolbar_tbitem25_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem8')) {
this.toolbar_tbitem8_click(null, '', $event2);
}
......@@ -297,7 +287,7 @@ export class CampaignListGridViewBase extends GridViewBase {
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem3_click(params: any = {}, tag?: any, $event?: any) {
public toolbar_deuiaction1_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
......@@ -345,90 +335,6 @@ export class CampaignListGridViewBase extends GridViewBase {
this.Edit(datas, contextJO,paramJO, $event, xData,this,"CampaignList");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem6_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.grid;
if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.Copy(datas, contextJO,paramJO, $event, xData,this,"CampaignList");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem24_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.grid;
if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.ToggleRowEdit(datas, contextJO,paramJO, $event, xData,this,"CampaignList");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem25_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.grid;
if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.NewRow(datas, contextJO,paramJO, $event, xData,this,"CampaignList");
}
/**
* 逻辑事件
*
......@@ -677,74 +583,6 @@ export class CampaignListGridViewBase extends GridViewBase {
_this.$Notice.error({ title: '错误', desc: 'opendata 视图处理逻辑不存在,请添加!' });
}
}
/**
* 拷贝
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof CampaignListGridViewBase
*/
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 CampaignListGridViewBase
*/
public ToggleRowEdit(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
xData.actualIsOpenEdit = !xData.actualIsOpenEdit;
}
/**
* 新建行
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof CampaignListGridViewBase
*/
public NewRow(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
const _this: any = this;
const data: any = {};
if (_this.hasOwnProperty('newRow') && _this.newRow instanceof Function) {
_this.newRow([{ ...data }], params, $event, xData);
} else if(xData.newRow && xData.newRow instanceof Function) {
xData.newRow([{ ...data }], params, $event, xData);
}else{
_this.$Notice.error({ title: '错误', desc: 'newRow 视图处理逻辑不存在,请添加!' });
}
}
/**
* 删除
*
......
<studio-view-style2 viewName="competitoreditview" viewTitle="竞争对手编辑视图" class='deeditview competitor-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
......
......@@ -117,6 +117,9 @@ export class LeadExcludedGridViewBase extends GridViewBase {
tbitem13: { name: 'tbitem13', caption: '导出', 'isShowCaption': true, 'isShowIcon': true, tooltip: '导出', iconcls: 'fa fa-file-excel-o', icon: '', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'ExportExcel', target: '' }, MaxRowCount: 1000, class: '' },
tbitem10: { name: 'tbitem10', type: 'SEPERATOR', visabled: true, dataaccaction: '', uiaction: { } },
tbitem14_active: { name: 'tbitem14_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: '' } },
tbitem15: { name: 'tbitem15', type: 'SEPERATOR', visabled: true, dataaccaction: '', uiaction: { } },
tbitem19: { name: 'tbitem19', caption: '过滤', 'isShowCaption': true, 'isShowIcon': true, tooltip: '过滤', iconcls: 'fa fa-filter', icon: '', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'ToggleFilter', target: '', class: '' } },
};
......@@ -191,6 +194,9 @@ export class LeadExcludedGridViewBase extends GridViewBase {
if (Object.is($event.tag, 'tbitem11')) {
this.toolbar_tbitem11_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem14_active')) {
this.toolbar_tbitem14_active_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem19')) {
this.toolbar_tbitem19_click(null, '', $event2);
}
......@@ -453,6 +459,35 @@ export class LeadExcludedGridViewBase extends GridViewBase {
this.Print(datas, contextJO,paramJO, $event, xData,this,"Lead");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem14_active_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.grid;
if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
const curUIService:LeadUIService = new LeadUIService();
curUIService.Lead_Active(datas,contextJO, paramJO, $event, xData,this,"Lead");
}
/**
* 逻辑事件
*
......
<studio-view-style2 viewName="quoteeditview" viewTitle="报价单编辑视图" class='deeditview quote-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
......
<studio-view-style2 viewName="salesordereditview" viewTitle="订单编辑视图" class='deeditview sales-order-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
......
......@@ -236,15 +236,6 @@ export const viewstate: any = {
'f440f1d3b950a89e6cb72cadea120b74',
],
},
{
viewtag: '0a46285598cda63074349563918d7ac5',
viewmodule: 'Service',
viewname: 'IncidentCustomerEditView',
viewaction: '',
viewdatachange: false,
refviews: [
],
},
{
viewtag: '0ab0bd0aaadd588905a82de62c80ff07',
viewmodule: 'Marketing',
......@@ -1833,15 +1824,6 @@ export const viewstate: any = {
refviews: [
],
},
{
viewtag: '86f2bf7bc2faf3dfd21f80626ab71a6b',
viewmodule: 'Service',
viewname: 'IncidentCustomerIndexPickupDataView',
viewaction: '',
viewdatachange: false,
refviews: [
],
},
{
viewtag: '8764cc6860a8981a549fcf693bbc44f6',
viewmodule: 'Base',
......@@ -1899,32 +1881,31 @@ export const viewstate: any = {
viewdatachange: false,
refviews: [
'0e4d8b949764a2c40c2b93261aed6fd8',
'00e8e9d547a2367a0e13e232ea85b920',
'ef8908af79e7631a6292209fa498a899',
'bd2a4adb1377cac6ebbbc883699f28d9',
'25bf5f8c2ebd1ce2be6d06717ed08a96',
'72a6c4ef002175090488d6f819020395',
'98a1ae9b4e6bf9282450b169a0c3ad9a',
'3202f3f503424c7a2c549b2c5186dc36',
'd6dde8e6dd703de9b544d3e5d9f07579',
'efe82dc0a6991dd88da8c33cee6bf451',
'8895fef7ce4f5bdd1cd8f950bd1f8bcc',
'2f0540af5db76052cee0e8e91f0204c4',
'02131b45343ed8c70e500cd8ac520361',
'02a20de31897da1246080987e9491e06',
'90b48a107932f432e0dde42791a51887',
'224e212f2d5e9c0a6a07b3c650f9b30c',
'02a20de31897da1246080987e9491e06',
'c67b638daa17df2f9ecf99fc1c396e2f',
'224e212f2d5e9c0a6a07b3c650f9b30c',
'02653a27f371622ac0a726752936646c',
'9af073dea1ea05903d52e8bdc5a03dd5',
'7FCD2E75-E34A-493C-922E-8AE47BCE08CA',
'3cac572b3a6905293a0e22e3f3fa3c04',
'9AE386A9-53DE-4F99-BCCA-747AEFE666A4',
'00367e275947880480763049e5c495be',
'00e8e9d547a2367a0e13e232ea85b920',
'bd2a4adb1377cac6ebbbc883699f28d9',
'3202f3f503424c7a2c549b2c5186dc36',
'd6dde8e6dd703de9b544d3e5d9f07579',
'efe82dc0a6991dd88da8c33cee6bf451',
'2f0540af5db76052cee0e8e91f0204c4',
'45fdc8ee4d1401d2d625e80177395ddc',
'92ca46ad4e3db8239701e2a136642d98',
'9AE386A9-53DE-4F99-BCCA-747AEFE666A4',
'3cac572b3a6905293a0e22e3f3fa3c04',
'7FCD2E75-E34A-493C-922E-8AE47BCE08CA',
'd1c35f3c52010e1428d7dc1a6bc82f63',
'4c14fc25c4155348b60b75f4763c0bec',
'00367e275947880480763049e5c495be',
],
},
{
......@@ -2043,19 +2024,6 @@ export const viewstate: any = {
'7cd4753a46e288fc3bac3a4d6b08c8d1',
],
},
{
viewtag: '92ca46ad4e3db8239701e2a136642d98',
viewmodule: 'Service',
viewname: 'IncidentCustomerGridView',
viewaction: '',
viewdatachange: false,
refviews: [
'd9fbe2e55e5592857cf43ed5c37e00da',
'0a46285598cda63074349563918d7ac5',
'9a96ebf2e57358b3590b9d4479edb77a',
'6e18ac74e5685439110f9b4e534ee005',
],
},
{
viewtag: '9433b49c4e43a15dfc8bbd91bdd4c27f',
viewmodule: 'Base',
......@@ -2931,16 +2899,6 @@ export const viewstate: any = {
refviews: [
],
},
{
viewtag: 'd9fbe2e55e5592857cf43ed5c37e00da',
viewmodule: 'Service',
viewname: 'IncidentCustomerIndexPickupView',
viewaction: '',
viewdatachange: false,
refviews: [
'86f2bf7bc2faf3dfd21f80626ab71a6b',
],
},
{
viewtag: 'da3f8c1f20f440f3df54d6c13a8de586',
viewmodule: 'Base',
......
......@@ -148,14 +148,29 @@ export default class KnowledgeArticleUIServiceBase extends UIService {
let deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'knowledgearticles', parameterName: 'knowledgearticle' },
{ pathName: 'quickcreateview', parameterName: 'quickcreateview' },
];
const openIndexViewTab = (data: any) => {
const routePath = actionContext.$viewTool.buildUpRoutePath(actionContext.$route, context, deResParameters, parameters, _args, data);
actionContext.$router.push(routePath);
return null;
}
openIndexViewTab(data);
const openDrawer = (view: any, data: any) => {
let container: Subject<any> = actionContext.$appdrawer.openDrawer(view, context,data);
container.subscribe((result: any) => {
if (!result || !Object.is(result.ret, 'OK')) {
return;
}
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-quick-create-view',
height: 0,
width: 0,
title: actionContext.$t('entities.knowledgearticle.views.quickcreateview.title'),
placement: 'DRAWER_RIGHT',
};
openDrawer(view, data);
}
/**
......
......@@ -63,6 +63,12 @@
<tab-pane :index="2" name='tabviewpanel3' tab='infotabexppanel' class=''
:label="(h) =>{
return h('div', [
h('i',{
class:'fa fa-file-text-o',
style:{
'margin-right' : '2px'
}
}),
h('span', '订单'),
h('Badge', {
props: {
......
此差异已折叠。
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册