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

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

上级 02058628
...@@ -90,14 +90,6 @@ ...@@ -90,14 +90,6 @@
{"type":"appde", {"type":"appde",
"appCodeName":"IBIZAPPEDITOR", "appCodeName":"IBIZAPPEDITOR",
"appName":"编辑器", "appName":"编辑器",
"portletCodeName": "appExtendEditor",
"portletName": "扩展编辑器数量",
"groupCodeName":"Ungroup",
"groupName":"(未分类)",
"portletTYpe":"LIST","componentName":"ibizappeditor-app-extend-editor-portlet"},
{"type":"appde",
"appCodeName":"IBIZAPPEDITOR",
"appName":"编辑器",
"portletCodeName": "EditorList", "portletCodeName": "EditorList",
"portletName": "编辑器列表", "portletName": "编辑器列表",
"groupCodeName":"PortletCat4", "groupCodeName":"PortletCat4",
...@@ -159,6 +151,14 @@ ...@@ -159,6 +151,14 @@
"groupCodeName":"Ungroup", "groupCodeName":"Ungroup",
"groupName":"(未分类)", "groupName":"(未分类)",
"portletTYpe":"LIST","componentName":"ibizappctrl-app-ctrl-amount-portlet"}, "portletTYpe":"LIST","componentName":"ibizappctrl-app-ctrl-amount-portlet"},
{"type":"appde",
"appCodeName":"IBIZAPPEXTENDEDITOR",
"appName":"扩展编辑器",
"portletCodeName": "appExtendEditorAmount",
"portletName": "扩展编辑器数量",
"groupCodeName":"Ungroup",
"groupName":"(未分类)",
"portletTYpe":"LIST","componentName":"ibizappextendeditor-app-extend-editor-amount-portlet"},
{"type":"app", {"type":"app",
"appCodeName":"IBIZBOOK", "appCodeName":"IBIZBOOK",
"appName":"图书", "appName":"图书",
...@@ -320,11 +320,11 @@ ...@@ -320,11 +320,11 @@
"groupName":"(未分类)", "groupName":"(未分类)",
"portletTYpe":"LIST","componentName":"app-ibizappeditor-app-editor-amount-portlet"}, "portletTYpe":"LIST","componentName":"app-ibizappeditor-app-editor-amount-portlet"},
{"type":"app", {"type":"app",
"appCodeName":"IBIZAPPEDITOR", "appCodeName":"IBIZAPPEXTENDEDITOR",
"appName":"编辑器", "appName":"扩展编辑器",
"portletCodeName": "appExtendEditor", "portletCodeName": "appExtendEditorAmount",
"portletName": "扩展编辑器数量", "portletName": "扩展编辑器数量",
"groupCodeName":"Ungroup", "groupCodeName":"Ungroup",
"groupName":"(未分类)", "groupName":"(未分类)",
"portletTYpe":"LIST","componentName":"app-ibizappeditor-app-extend-editor-portlet"} "portletTYpe":"LIST","componentName":"app-ibizappextendeditor-app-extend-editor-amount-portlet"}
] ]
\ No newline at end of file
...@@ -7,6 +7,14 @@ ...@@ -7,6 +7,14 @@
"viewname": "IBIZSample0003STabExpView", "viewname": "IBIZSample0003STabExpView",
"viewtag": "00a0716a2029a7fe79fe03b6f74c7c90" "viewtag": "00a0716a2029a7fe79fe03b6f74c7c90"
}, },
"ibizappextendeditorlistview": {
"title": "扩展编辑器列表视图",
"caption": "扩展编辑器",
"viewtype": "DELISTVIEW",
"viewmodule": "Sample",
"viewname": "IBIZAPPEXTENDEDITORListView",
"viewtag": "029cd8673e5bf4681a772c6110467f63"
},
"ibizorderdetailsmeditview9": { "ibizorderdetailsmeditview9": {
"title": "订单明细多表单编辑视图", "title": "订单明细多表单编辑视图",
"caption": "订单明细", "caption": "订单明细",
...@@ -1880,8 +1888,8 @@ ...@@ -1880,8 +1888,8 @@
"viewtag": "ffedffb9c57cb200c275ba15e9100da4" "viewtag": "ffedffb9c57cb200c275ba15e9100da4"
}, },
"appportalview": { "appportalview": {
"title": "应用门户视图", "title": "工作台",
"caption": "应用门户视图", "caption": "工作台",
"viewtype": "APPPORTALVIEW", "viewtype": "APPPORTALVIEW",
"viewmodule": "Ungroup", "viewmodule": "Ungroup",
"viewname": "AppPortalView", "viewname": "AppPortalView",
......
...@@ -165,8 +165,8 @@ function getAppLocale(){ ...@@ -165,8 +165,8 @@ function getAppLocale(){
title: commonLogic.appcommonhandle("可定制应用看板",null), title: commonLogic.appcommonhandle("可定制应用看板",null),
}, },
appportalview: { appportalview: {
caption: commonLogic.appcommonhandle("应用门户视图",null), caption: commonLogic.appcommonhandle("工作台",null),
title: commonLogic.appcommonhandle("应用门户视图",null), title: commonLogic.appcommonhandle("工作台",null),
}, },
apppanelview: { apppanelview: {
caption: commonLogic.appcommonhandle("",null), caption: commonLogic.appcommonhandle("",null),
......
...@@ -165,8 +165,8 @@ function getAppLocale(){ ...@@ -165,8 +165,8 @@ function getAppLocale(){
title: commonLogic.appcommonhandle("可定制应用看板",null), title: commonLogic.appcommonhandle("可定制应用看板",null),
}, },
appportalview: { appportalview: {
caption: commonLogic.appcommonhandle("应用门户视图",null), caption: commonLogic.appcommonhandle("工作台",null),
title: commonLogic.appcommonhandle("应用门户视图",null), title: commonLogic.appcommonhandle("工作台",null),
}, },
apppanelview: { apppanelview: {
caption: commonLogic.appcommonhandle("",null), caption: commonLogic.appcommonhandle("",null),
......
...@@ -72,11 +72,6 @@ function getLocaleResourceBase(){ ...@@ -72,11 +72,6 @@ function getLocaleResourceBase(){
uiactions: { uiactions: {
}, },
}, },
extendeditoramount_list: {
nodata:commonLogic.appcommonhandle("",null),
uiactions: {
},
},
editorlist_list: { editorlist_list: {
nodata:commonLogic.appcommonhandle("",null), nodata:commonLogic.appcommonhandle("",null),
uiactions: { uiactions: {
......
...@@ -72,11 +72,6 @@ function getLocaleResourceBase(){ ...@@ -72,11 +72,6 @@ function getLocaleResourceBase(){
uiactions: { uiactions: {
}, },
}, },
extendeditoramount_list: {
nodata:commonLogic.appcommonhandle("",null),
uiactions: {
},
},
editorlist_list: { editorlist_list: {
nodata:commonLogic.appcommonhandle("",null), nodata:commonLogic.appcommonhandle("",null),
uiactions: { uiactions: {
......
...@@ -15,6 +15,31 @@ function getLocaleResourceBase(){ ...@@ -15,6 +15,31 @@ function getLocaleResourceBase(){
amount: commonLogic.appcommonhandle("数量",null), amount: commonLogic.appcommonhandle("数量",null),
extendeditortype: commonLogic.appcommonhandle("扩展编辑器类型",null), extendeditortype: commonLogic.appcommonhandle("扩展编辑器类型",null),
}, },
views: {
listview: {
caption: commonLogic.appcommonhandle("扩展编辑器",null),
title: commonLogic.appcommonhandle("扩展编辑器列表视图",null),
},
},
extendeditorlist_list: {
nodata:commonLogic.appcommonhandle("",null),
uiactions: {
},
},
extendeditoramount_list: {
nodata:commonLogic.appcommonhandle("",null),
uiactions: {
},
},
default_searchform: {
details: {
formpage1: commonLogic.appcommonhandle("常规条件",null),
},
uiactions: {
},
},
listviewtoolbar_toolbar: {
},
}; };
return data; return data;
} }
......
...@@ -15,6 +15,31 @@ function getLocaleResourceBase(){ ...@@ -15,6 +15,31 @@ function getLocaleResourceBase(){
amount: commonLogic.appcommonhandle("数量",null), amount: commonLogic.appcommonhandle("数量",null),
extendeditortype: commonLogic.appcommonhandle("扩展编辑器类型",null), extendeditortype: commonLogic.appcommonhandle("扩展编辑器类型",null),
}, },
views: {
listview: {
caption: commonLogic.appcommonhandle("扩展编辑器",null),
title: commonLogic.appcommonhandle("扩展编辑器列表视图",null),
},
},
extendeditorlist_list: {
nodata:commonLogic.appcommonhandle("",null),
uiactions: {
},
},
extendeditoramount_list: {
nodata:commonLogic.appcommonhandle("",null),
uiactions: {
},
},
default_searchform: {
details: {
formpage1: commonLogic.appcommonhandle("常规条件",null),
},
uiactions: {
},
},
listviewtoolbar_toolbar: {
},
}; };
return data; return data;
} }
......
...@@ -119,6 +119,16 @@ function getLocaleResourceBase(){ ...@@ -119,6 +119,16 @@ function getLocaleResourceBase(){
uiactions: { uiactions: {
}, },
}, },
main_grid: {
columns: {
microcomponentname: commonLogic.appcommonhandle("微组件名称",null),
updateman: commonLogic.appcommonhandle("更新人",null),
updatedate: commonLogic.appcommonhandle("更新时间",null),
},
nodata:commonLogic.appcommonhandle("",null),
uiactions: {
},
},
default_searchform: { default_searchform: {
details: { details: {
formpage1: commonLogic.appcommonhandle("常规条件",null), formpage1: commonLogic.appcommonhandle("常规条件",null),
......
...@@ -119,6 +119,16 @@ function getLocaleResourceBase(){ ...@@ -119,6 +119,16 @@ function getLocaleResourceBase(){
uiactions: { uiactions: {
}, },
}, },
main_grid: {
columns: {
microcomponentname: commonLogic.appcommonhandle("微组件名称",null),
updateman: commonLogic.appcommonhandle("更新人",null),
updatedate: commonLogic.appcommonhandle("更新时间",null),
},
nodata:commonLogic.appcommonhandle("",null),
uiactions: {
},
},
default_searchform: { default_searchform: {
details: { details: {
formpage1: commonLogic.appcommonhandle("常规条件",null), formpage1: commonLogic.appcommonhandle("常规条件",null),
......
...@@ -100,14 +100,6 @@ mock.onGet('./assets/json/portlet-data.json').reply((config: any) => { ...@@ -100,14 +100,6 @@ mock.onGet('./assets/json/portlet-data.json').reply((config: any) => {
{"type":"appde", {"type":"appde",
"appCodeName":"IBIZAPPEDITOR", "appCodeName":"IBIZAPPEDITOR",
"appName":"编辑器", "appName":"编辑器",
"portletCodeName": "appExtendEditor",
"portletName": "扩展编辑器数量",
"groupCodeName":"Ungroup",
"groupName":"(未分类)",
"portletTYpe":"LIST","componentName":"ibizappeditor-app-extend-editor-portlet"},
{"type":"appde",
"appCodeName":"IBIZAPPEDITOR",
"appName":"编辑器",
"portletCodeName": "EditorList", "portletCodeName": "EditorList",
"portletName": "编辑器列表", "portletName": "编辑器列表",
"groupCodeName":"PortletCat4", "groupCodeName":"PortletCat4",
...@@ -169,6 +161,14 @@ mock.onGet('./assets/json/portlet-data.json').reply((config: any) => { ...@@ -169,6 +161,14 @@ mock.onGet('./assets/json/portlet-data.json').reply((config: any) => {
"groupCodeName":"Ungroup", "groupCodeName":"Ungroup",
"groupName":"(未分类)", "groupName":"(未分类)",
"portletTYpe":"LIST","componentName":"ibizappctrl-app-ctrl-amount-portlet"}, "portletTYpe":"LIST","componentName":"ibizappctrl-app-ctrl-amount-portlet"},
{"type":"appde",
"appCodeName":"IBIZAPPEXTENDEDITOR",
"appName":"扩展编辑器",
"portletCodeName": "appExtendEditorAmount",
"portletName": "扩展编辑器数量",
"groupCodeName":"Ungroup",
"groupName":"(未分类)",
"portletTYpe":"LIST","componentName":"ibizappextendeditor-app-extend-editor-amount-portlet"},
{"type":"app", {"type":"app",
"appCodeName":"IBIZBOOK", "appCodeName":"IBIZBOOK",
"appName":"图书", "appName":"图书",
...@@ -330,12 +330,12 @@ mock.onGet('./assets/json/portlet-data.json').reply((config: any) => { ...@@ -330,12 +330,12 @@ mock.onGet('./assets/json/portlet-data.json').reply((config: any) => {
"groupName":"(未分类)", "groupName":"(未分类)",
"portletTYpe":"LIST","componentName":"app-ibizappeditor-app-editor-amount-portlet"}, "portletTYpe":"LIST","componentName":"app-ibizappeditor-app-editor-amount-portlet"},
{"type":"app", {"type":"app",
"appCodeName":"IBIZAPPEDITOR", "appCodeName":"IBIZAPPEXTENDEDITOR",
"appName":"编辑器", "appName":"扩展编辑器",
"portletCodeName": "appExtendEditor", "portletCodeName": "appExtendEditorAmount",
"portletName": "扩展编辑器数量", "portletName": "扩展编辑器数量",
"groupCodeName":"Ungroup", "groupCodeName":"Ungroup",
"groupName":"(未分类)", "groupName":"(未分类)",
"portletTYpe":"LIST","componentName":"app-ibizappeditor-app-extend-editor-portlet"} "portletTYpe":"LIST","componentName":"app-ibizappextendeditor-app-extend-editor-amount-portlet"}
]]; ]];
}); });
\ No newline at end of file
...@@ -15,6 +15,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => { ...@@ -15,6 +15,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "IBIZSample0003STabExpView", "viewname": "IBIZSample0003STabExpView",
"viewtag": "00a0716a2029a7fe79fe03b6f74c7c90" "viewtag": "00a0716a2029a7fe79fe03b6f74c7c90"
}, },
"ibizappextendeditorlistview": {
"title": "扩展编辑器列表视图",
"caption": "扩展编辑器",
"viewtype": "DELISTVIEW",
"viewmodule": "Sample",
"viewname": "IBIZAPPEXTENDEDITORListView",
"viewtag": "029cd8673e5bf4681a772c6110467f63"
},
"ibizorderdetailsmeditview9": { "ibizorderdetailsmeditview9": {
"title": "订单明细多表单编辑视图", "title": "订单明细多表单编辑视图",
"caption": "订单明细", "caption": "订单明细",
...@@ -1888,8 +1896,8 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => { ...@@ -1888,8 +1896,8 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewtag": "ffedffb9c57cb200c275ba15e9100da4" "viewtag": "ffedffb9c57cb200c275ba15e9100da4"
}, },
"appportalview": { "appportalview": {
"title": "应用门户视图", "title": "工作台",
"caption": "应用门户视图", "caption": "工作台",
"viewtype": "APPPORTALVIEW", "viewtype": "APPPORTALVIEW",
"viewmodule": "Ungroup", "viewmodule": "Ungroup",
"viewname": "AppPortalView", "viewname": "AppPortalView",
......
...@@ -2,11 +2,11 @@ ...@@ -2,11 +2,11 @@
import { Component } from 'vue-property-decorator'; import { Component } from 'vue-property-decorator';
import MicroComponentGridViewBase from './micro-component-grid-view-base.vue'; import MicroComponentGridViewBase from './micro-component-grid-view-base.vue';
import view_form from '@widgets/micro-component/main-form/main-form.vue'; import view_grid from '@widgets/micro-component/main-grid/main-grid.vue';
import view_searchform from '@widgets/micro-component/default-searchform/default-searchform.vue'; import view_searchform from '@widgets/micro-component/default-searchform/default-searchform.vue';
@Component({ @Component({
components: { components: {
view_form, view_grid,
view_searchform, view_searchform,
}, },
beforeRouteEnter: (to: any, from: any, next: any) => { beforeRouteEnter: (to: any, from: any, next: any) => {
......
...@@ -10,7 +10,6 @@ import IBIZOrderDetailPortalComponentsList3 from '@/widgets/ibizorder-detail/por ...@@ -10,7 +10,6 @@ import IBIZOrderDetailPortalComponentsList3 from '@/widgets/ibizorder-detail/por
import IBIZOrderPortalComponentsOperation from '@/widgets/ibizorder/portal-components-operation-portlet/portal-components-operation-portlet.vue'; import IBIZOrderPortalComponentsOperation from '@/widgets/ibizorder/portal-components-operation-portlet/portal-components-operation-portlet.vue';
import IBIZOrderPortalComponentsList2 from '@/widgets/ibizorder/portal-components-list2-portlet/portal-components-list2-portlet.vue'; import IBIZOrderPortalComponentsList2 from '@/widgets/ibizorder/portal-components-list2-portlet/portal-components-list2-portlet.vue';
import IBIZOrderPortalComponentsChart from '@/widgets/ibizorder/portal-components-chart-portlet/portal-components-chart-portlet.vue'; import IBIZOrderPortalComponentsChart from '@/widgets/ibizorder/portal-components-chart-portlet/portal-components-chart-portlet.vue';
import IBIZAPPEDITORAppExtendEditor from '@/widgets/ibizappeditor/app-extend-editor-portlet/app-extend-editor-portlet.vue';
import IBIZAPPEDITORAppEditorListView from '@/widgets/ibizappeditor/app-editor-list-view-portlet/app-editor-list-view-portlet.vue'; import IBIZAPPEDITORAppEditorListView from '@/widgets/ibizappeditor/app-editor-list-view-portlet/app-editor-list-view-portlet.vue';
import IBIZAPPEDITOREditorChart from '@/widgets/ibizappeditor/editor-chart-portlet/editor-chart-portlet.vue'; import IBIZAPPEDITOREditorChart from '@/widgets/ibizappeditor/editor-chart-portlet/editor-chart-portlet.vue';
import IBIZAPPEDITORAppEditorAmount from '@/widgets/ibizappeditor/app-editor-amount-portlet/app-editor-amount-portlet.vue'; import IBIZAPPEDITORAppEditorAmount from '@/widgets/ibizappeditor/app-editor-amount-portlet/app-editor-amount-portlet.vue';
...@@ -19,6 +18,7 @@ import IBIZBOOKPortalComponentsView from '@/widgets/ibizbook/portal-components-v ...@@ -19,6 +18,7 @@ import IBIZBOOKPortalComponentsView from '@/widgets/ibizbook/portal-components-v
import IBIZAPPCTRLAppCtrlListView from '@/widgets/ibizappctrl/app-ctrl-list-view-portlet/app-ctrl-list-view-portlet.vue'; import IBIZAPPCTRLAppCtrlListView from '@/widgets/ibizappctrl/app-ctrl-list-view-portlet/app-ctrl-list-view-portlet.vue';
import IBIZAPPCTRLCtrlChart from '@/widgets/ibizappctrl/ctrl-chart-portlet/ctrl-chart-portlet.vue'; import IBIZAPPCTRLCtrlChart from '@/widgets/ibizappctrl/ctrl-chart-portlet/ctrl-chart-portlet.vue';
import IBIZAPPCTRLAppCtrlAmount from '@/widgets/ibizappctrl/app-ctrl-amount-portlet/app-ctrl-amount-portlet.vue'; import IBIZAPPCTRLAppCtrlAmount from '@/widgets/ibizappctrl/app-ctrl-amount-portlet/app-ctrl-amount-portlet.vue';
import IBIZAPPEXTENDEDITORAppExtendEditorAmount from '@/widgets/ibizappextendeditor/app-extend-editor-amount-portlet/app-extend-editor-amount-portlet.vue';
export const PortletComponent = { export const PortletComponent = {
install(v: any, opt: any) { install(v: any, opt: any) {
...@@ -42,7 +42,7 @@ export const PortletComponent = { ...@@ -42,7 +42,7 @@ export const PortletComponent = {
v.component('app-ibizappview-app-view-amount-portlet', IBIZAPPVIEWAppViewAmount); v.component('app-ibizappview-app-view-amount-portlet', IBIZAPPVIEWAppViewAmount);
v.component('app-ibizappctrl-app-ctrl-amount-portlet', IBIZAPPCTRLAppCtrlAmount); v.component('app-ibizappctrl-app-ctrl-amount-portlet', IBIZAPPCTRLAppCtrlAmount);
v.component('app-ibizappeditor-app-editor-amount-portlet', IBIZAPPEDITORAppEditorAmount); v.component('app-ibizappeditor-app-editor-amount-portlet', IBIZAPPEDITORAppEditorAmount);
v.component('app-ibizappeditor-app-extend-editor-portlet', IBIZAPPEDITORAppExtendEditor); v.component('app-ibizappextendeditor-app-extend-editor-amount-portlet', IBIZAPPEXTENDEDITORAppExtendEditorAmount);
v.component('ibizappview-app-view-list-portlet', IBIZAPPVIEWAppViewList); v.component('ibizappview-app-view-list-portlet', IBIZAPPVIEWAppViewList);
v.component('ibizappview-view-chart-portlet', IBIZAPPVIEWViewChart); v.component('ibizappview-view-chart-portlet', IBIZAPPVIEWViewChart);
v.component('ibizappview-app-view-amount-portlet', IBIZAPPVIEWAppViewAmount); v.component('ibizappview-app-view-amount-portlet', IBIZAPPVIEWAppViewAmount);
...@@ -54,7 +54,6 @@ export const PortletComponent = { ...@@ -54,7 +54,6 @@ export const PortletComponent = {
v.component('ibizorder-portal-components-operation-portlet', IBIZOrderPortalComponentsOperation); v.component('ibizorder-portal-components-operation-portlet', IBIZOrderPortalComponentsOperation);
v.component('ibizorder-portal-components-list2-portlet', IBIZOrderPortalComponentsList2); v.component('ibizorder-portal-components-list2-portlet', IBIZOrderPortalComponentsList2);
v.component('ibizorder-portal-components-chart-portlet', IBIZOrderPortalComponentsChart); v.component('ibizorder-portal-components-chart-portlet', IBIZOrderPortalComponentsChart);
v.component('ibizappeditor-app-extend-editor-portlet', IBIZAPPEDITORAppExtendEditor);
v.component('ibizappeditor-app-editor-list-view-portlet', IBIZAPPEDITORAppEditorListView); v.component('ibizappeditor-app-editor-list-view-portlet', IBIZAPPEDITORAppEditorListView);
v.component('ibizappeditor-editor-chart-portlet', IBIZAPPEDITOREditorChart); v.component('ibizappeditor-editor-chart-portlet', IBIZAPPEDITOREditorChart);
v.component('ibizappeditor-app-editor-amount-portlet', IBIZAPPEDITORAppEditorAmount); v.component('ibizappeditor-app-editor-amount-portlet', IBIZAPPEDITORAppEditorAmount);
...@@ -63,5 +62,6 @@ export const PortletComponent = { ...@@ -63,5 +62,6 @@ export const PortletComponent = {
v.component('ibizappctrl-app-ctrl-list-view-portlet', IBIZAPPCTRLAppCtrlListView); v.component('ibizappctrl-app-ctrl-list-view-portlet', IBIZAPPCTRLAppCtrlListView);
v.component('ibizappctrl-ctrl-chart-portlet', IBIZAPPCTRLCtrlChart); v.component('ibizappctrl-ctrl-chart-portlet', IBIZAPPCTRLCtrlChart);
v.component('ibizappctrl-app-ctrl-amount-portlet', IBIZAPPCTRLAppCtrlAmount); v.component('ibizappctrl-app-ctrl-amount-portlet', IBIZAPPCTRLAppCtrlAmount);
v.component('ibizappextendeditor-app-extend-editor-amount-portlet', IBIZAPPEXTENDEDITORAppExtendEditorAmount);
} }
}; };
\ No newline at end of file
...@@ -96,6 +96,7 @@ export default class IBIZAPPEXTENDEDITORUIServiceBase extends UIService { ...@@ -96,6 +96,7 @@ export default class IBIZAPPEXTENDEDITORUIServiceBase extends UIService {
* @memberof IBIZAPPEXTENDEDITORUIServiceBase * @memberof IBIZAPPEXTENDEDITORUIServiceBase
*/ */
public initViewMap(){ public initViewMap(){
this.allViewMap.set(':',{viewname:'listview',srfappde:'ibizappextendeditors',component:'ibizappextendeditorlist-view'});
} }
/** /**
......
...@@ -4,7 +4,7 @@ import AppPortalView_dbBase from './app-portal-view-db-dashboard-base.vue'; ...@@ -4,7 +4,7 @@ import AppPortalView_dbBase from './app-portal-view-db-dashboard-base.vue';
import view_db_sysportlet5 from '@widgets/ibizappview/app-view-amount-portlet/app-view-amount-portlet.vue'; import view_db_sysportlet5 from '@widgets/ibizappview/app-view-amount-portlet/app-view-amount-portlet.vue';
import view_db_sysportlet4 from '@widgets/ibizappeditor/editor-chart-portlet/editor-chart-portlet.vue'; import view_db_sysportlet4 from '@widgets/ibizappeditor/editor-chart-portlet/editor-chart-portlet.vue';
import view_db_sysportlet3 from '@widgets/ibizappctrl/ctrl-chart-portlet/ctrl-chart-portlet.vue'; import view_db_sysportlet3 from '@widgets/ibizappctrl/ctrl-chart-portlet/ctrl-chart-portlet.vue';
import view_db_sysportlet10 from '@widgets/ibizappeditor/app-extend-editor-portlet/app-extend-editor-portlet.vue'; import view_db_sysportlet10 from '@widgets/ibizappextendeditor/app-extend-editor-amount-portlet/app-extend-editor-amount-portlet.vue';
import view_db_sysportlet2 from '@widgets/ibizappview/view-chart-portlet/view-chart-portlet.vue'; import view_db_sysportlet2 from '@widgets/ibizappview/view-chart-portlet/view-chart-portlet.vue';
import view_db_sysportlet1 from '@widgets/ibizappview/app-view-list-portlet/app-view-list-portlet.vue'; import view_db_sysportlet1 from '@widgets/ibizappview/app-view-list-portlet/app-view-list-portlet.vue';
import view_db_sysportlet9 from '@widgets/ibizappeditor/app-editor-list-view-portlet/app-editor-list-view-portlet.vue'; import view_db_sysportlet9 from '@widgets/ibizappeditor/app-editor-list-view-portlet/app-editor-list-view-portlet.vue';
......
<template>
<div class='portlet app-extend-editor-amount ' :style="{'height': isAdaptiveSize ? 'calc(100% - 16px)' : getHeight,}">
<p class='portlet-title'>
<span>
扩展编辑器数量
</span>
</p>
<el-divider class="divider"></el-divider>
<div class="portlet-with-title">
<!-- 测试 -->
<view_db_sysportlet10_list
:viewState="viewState"
:viewparams="viewparams"
:context="context"
createAction="Create"
removeAction="Remove"
updateAction="Update"
fetchAction="FetchDefault"
:showBusyIndicator="true"
name="db_sysportlet10_list"
ref='db_sysportlet10_list'
@closeview="closeView($event)">
</view_db_sysportlet10_list>
</div>
</div>
</template>
<script lang='tsx'>
import { Vue, Component, Prop, Provide, Emit, Watch, Model,Inject } from 'vue-property-decorator';
import { CreateElement } from 'vue';
import { Subject, Subscription } from 'rxjs';
import { ControlInterface } from '@/interface/control';
import { UIActionTool,Util, ViewTool } from '@/utils';
import NavDataService from '@/service/app/navdata-service';
import IBIZAPPEXTENDEDITORService from '@/service/ibizappextendeditor/ibizappextendeditor-service';
import AppExtendEditorAmountService from './app-extend-editor-amount-portlet-service';
import IBIZAPPEXTENDEDITORUIService from '@/uiservice/ibizappextendeditor/ibizappextendeditor-ui-service';
import UIService from '@/uiservice/ui-service';
import { Environment } from '@/environments/environment';
@Component({
components: {
}
})
export default class IBIZAPPEXTENDEDITORAppExtendEditorAmountBase extends Vue implements ControlInterface {
/**
* 名称
*
* @type {string}
* @memberof AppExtendEditorAmountBase
*/
@Prop() public name?: string;
/**
* 视图通讯对象
*
* @type {Subject<ViewState>}
* @memberof AppExtendEditorAmountBase
*/
@Prop() public viewState!: Subject<ViewState>;
/**
* 应用上下文
*
* @type {*}
* @memberof AppExtendEditorAmountBase
*/
@Prop() public context!: any;
/**
* 视图参数
*
* @type {*}
* @memberof AppExtendEditorAmountBase
*/
@Prop() public viewparams!: any;
/**
* 视图状态事件
*
* @public
* @type {(Subscription | undefined)}
* @memberof AppExtendEditorAmountBase
*/
public viewStateEvent: Subscription | undefined;
/**
* 获取部件类型
*
* @returns {string}
* @memberof AppExtendEditorAmountBase
*/
public getControlType(): string {
return 'PORTLET'
}
/**
* 计数器服务对象集合
*
* @type {Array<*>}
* @memberof AppExtendEditorAmountBase
*/
public counterServiceArray:Array<any> = [];
/**
* 建构部件服务对象
*
* @type {AppExtendEditorAmountService}
* @memberof AppExtendEditorAmountBase
*/
public service: AppExtendEditorAmountService = new AppExtendEditorAmountService({ $store: this.$store });
/**
* 实体服务对象
*
* @type {IBIZAPPEXTENDEDITORService}
* @memberof AppExtendEditorAmountBase
*/
public appEntityService: IBIZAPPEXTENDEDITORService = new IBIZAPPEXTENDEDITORService({ $store: this.$store });
/**
* 界面UI服务对象
*
* @type {IBIZAPPEXTENDEDITORUIService}
* @memberof AppExtendEditorAmountBase
*/
public appUIService:IBIZAPPEXTENDEDITORUIService = new IBIZAPPEXTENDEDITORUIService(this.$store);
/**
* 关闭视图
*
* @param {any} args
* @memberof AppExtendEditorAmountBase
*/
public closeView(args: any): void {
let _this: any = this;
_this.$emit('closeview', [args]);
}
/**
* 计数器刷新
*
* @memberof AppExtendEditorAmountBase
*/
public counterRefresh(){
const _this:any =this;
if(_this.counterServiceArray && _this.counterServiceArray.length >0){
_this.counterServiceArray.forEach((item:any) =>{
if(item.refreshData && item.refreshData instanceof Function){
item.refreshData();
}
})
}
}
/**
* 长度
*
* @type {number}
* @memberof AppExtendEditorAmountBase
*/
@Prop() public height?: number;
/**
* 宽度
*
* @type {number}
* @memberof AppExtendEditorAmountBase
*/
@Prop() public width?: number;
/**
* 门户部件类型
*
* @type {number}
* @memberof AppExtendEditorAmountBase
*/
public portletType: string = 'list';
/**
* 视图默认使用
*
* @type {string}
* @memberof AppExtendEditorAmountBase
*/
@Inject({from:'navModel',default: 'tab'})
public navModel!:string;
/**
* 界面行为模型数据
*
* @memberof AppExtendEditorAmountBase
*/
public uiactionModel: any = {
}
/**
* 是否自适应大小
*
* @returns {boolean}
* @memberof AppExtendEditorAmountBase
*/
@Prop({default: false})public isAdaptiveSize!: boolean;
/**
* 获取多项数据
*
* @returns {any[]}
* @memberof AppExtendEditorAmountBase
*/
public getDatas(): any[] {
return [];
}
/**
* 获取单项树
*
* @returns {*}
* @memberof AppExtendEditorAmountBase
*/
public getData(): any {
return {};
}
/**
* 获取高度
*
* @returns {any[]}
* @memberof AppExtendEditorAmountBase
*/
get getHeight(){
if(!this.$util.isEmpty(this.height) && !this.$util.isNumberNaN(this.height)){
if(this.height == 0){
return 'auto';
}else{
return this.height+'px';
}
}else{
return '100px';
}
}
/**
* 刷新
*
* @memberof AppExtendEditorAmountBase
*/
public refresh(args?: any) {
this.viewState.next({ tag: 'db_sysportlet10_list', action: 'refresh', data: args });
}
/**
* vue 生命周期
*
* @memberof AppExtendEditorAmountBase
*/
public created() {
this.afterCreated();
}
/**
* 执行created后的逻辑
*
* @memberof AppExtendEditorAmountBase
*/
public afterCreated(){
if (this.viewState) {
this.viewStateEvent = this.viewState.subscribe(({ tag, action, data }) => {
if(Object.is(tag, "all-portlet") && Object.is(action,'loadmodel')){
this.calcUIActionAuthState(data);
}
if (!Object.is(tag, this.name)) {
return;
}
const refs: any = this.$refs;
Object.keys(refs).forEach((_name: string) => {
this.viewState.next({ tag: _name, action: action, data: data });
});
});
}
}
/**
* vue 生命周期
*
* @memberof AppExtendEditorAmountBase
*/
public destroyed() {
this.afterDestroy();
}
/**
* 执行destroyed后的逻辑
*
* @memberof AppExtendEditorAmountBase
*/
public afterDestroy() {
if (this.viewStateEvent) {
this.viewStateEvent.unsubscribe();
}
}
/**
* 计算界面行为权限
*
* @memberof AppExtendEditorAmountBase
*/
public calcUIActionAuthState(data:any = {}) {
// 如果是操作栏,不计算权限
if(this.portletType && Object.is('actionbar', this.portletType)) {
return;
}
let _this: any = this;
let uiservice: any = _this.appUIService ? _this.appUIService : new UIService(_this.$store);
if(_this.uiactionModel){
ViewTool.calcActionItemAuthState(data,_this.uiactionModel,uiservice);
}
}
}
</script>
<style lang='less'>
@import './app-extend-editor-amount-portlet.less';
</style>
/**
* AppExtendEditorAmount 部件模型
*
* @export
* @class AppExtendEditorAmountModel
*/
export default class AppExtendEditorAmountModel {
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof AppExtendEditorAmountModel
*/
public getDataItems(): any[] {
return [
{
name: 'createman',
},
{
name: 'updatedate',
},
{
name: 'createdate',
},
{
name: 'updateman',
},
{
name: 'ibizappextendeditorname',
},
{
name: 'ibizappextendeditor',
prop: 'ibizappextendeditorid',
},
{
name: 'extensionflag',
},
{
name: 'documentaddress',
},
{
name: 'extendeditordescription',
},
{
name: 'amount',
},
{
name: 'extendeditortype',
},
]
}
}
import { Http } from '@/utils';
import ControlService from '@/widgets/control-service';
/**
* AppExtendEditorAmount 部件服务对象
*
* @export
* @class AppExtendEditorAmountService
*/
export default class AppExtendEditorAmountService extends ControlService {
}
// this is less
.portlet{
height: 100%;
width: 100%;
> .portlet-title{
padding: 14px 16px;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
height: 52px;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
justify-content: space-between;
width:100%;
line-height: 22px;
font-size: 16px;
font-weight: 500;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
color: #304265;
font-weight: 600;
i{
margin-right: 5px;
}
>.portlet-action{
margin-left: 12px;
font-size: 14px;
>a{
padding: 6px;
}
}
}
> .divider {
margin: 0px 0px 11px 0px;
}
> .portlet-with-title{
width:100%;
height:calc(100% - 58px);
overflow:auto;
padding:0px 12px;
}
> .portlet-without-title{
width:100%;
height:100%;
overflow:auto;
padding:0px 12px;
}
.app-charts{
height: 100%!important;
}
.toolbar-container {
button{
margin: 6px 0px 4px 16px;
}
.ivu-badge{
.ivu-badge-count{
top: 0;
}
}
}
}
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import IBIZAPPEXTENDEDITORAppExtendEditorAmountBase from './app-extend-editor-amount-portlet-base.vue';
import view_db_sysportlet10_list from '@widgets/ibizappextendeditor/extend-editor-amount-list/extend-editor-amount-list.vue';
@Component({
components: {
view_db_sysportlet10_list,
}
})
export default class IBIZAPPEXTENDEDITORAppExtendEditorAmount extends IBIZAPPEXTENDEDITORAppExtendEditorAmountBase {
}
</script>
/**
* ExtendEditorAmount 部件模型
*
* @export
* @class ExtendEditorAmountModel
*/
export default class ExtendEditorAmountModel {
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof ExtendEditorAmountDb_sysportlet10_listMode
*/
public getDataItems(): any[] {
return [
{
name: 'srfamount',
prop: 'amount',
dataType: 'INT',
},
{
name: 'srfkey',
prop: 'ibizappextendeditorid',
dataType: 'GUID',
},
{
name: 'srfmajortext',
prop: 'ibizappextendeditorname',
dataType: 'TEXT',
},
{
name: 'ibizappextendeditor',
prop: 'ibizappextendeditorid',
dataType: 'FONTKEY',
},
{
name:'size',
prop:'size'
},
{
name:'query',
prop:'query'
},
{
name:'sort',
prop:'sort'
},
{
name:'page',
prop:'page'
},
// 前端新增修改标识,新增为"0",修改为"1"或未设值
{
name: 'srffrontuf',
prop: 'srffrontuf',
dataType: 'TEXT',
},
]
}
}
\ No newline at end of file
import { Http,Util,Errorlog } from '@/utils';
import ControlService from '@/widgets/control-service';
import IBIZAPPEXTENDEDITORService from '@/service/ibizappextendeditor/ibizappextendeditor-service';
import ExtendEditorAmountModel from './extend-editor-amount-list-model';
/**
* ExtendEditorAmount 部件服务对象
*
* @export
* @class ExtendEditorAmountService
*/
export default class ExtendEditorAmountService extends ControlService {
/**
* 扩展编辑器服务对象
*
* @type {IBIZAPPEXTENDEDITORService}
* @memberof ExtendEditorAmountService
*/
public appEntityService: IBIZAPPEXTENDEDITORService = new IBIZAPPEXTENDEDITORService({ $store: this.getStore() });
/**
* 设置从数据模式
*
* @type {boolean}
* @memberof ExtendEditorAmountService
*/
public setTempMode(){
this.isTempMode = false;
}
/**
* Creates an instance of ExtendEditorAmountService.
*
* @param {*} [opts={}]
* @memberof ExtendEditorAmountService
*/
constructor(opts: any = {}) {
super(opts);
this.model = new ExtendEditorAmountModel();
}
/**
* 查询数据
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof ExtendEditorAmountService
*/
@Errorlog
public search(action: string, context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
const {data:Data,context:Context} = this.handleRequestData(action,context,data,true);
return new Promise((resolve: any, reject: any) => {
const _appEntityService: any = this.appEntityService;
let result: Promise<any>;
if (_appEntityService[action] && _appEntityService[action] instanceof Function) {
result = _appEntityService[action](Context,Data, isloading);
}else{
result =_appEntityService.FetchDefault(Context,Data, isloading);
}
result.then(async (response) => {
await this.handleResponse(action, response);
resolve(response);
}).catch(response => {
reject(response);
});
});
}
/**
* 删除数据
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof ExtendEditorAmountService
*/
@Errorlog
public delete(action: string, context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
const {data:Data,context:Context} = this.handleRequestData(action,context,data,true);
return new Promise((resolve: any, reject: any) => {
const _appEntityService: any = this.appEntityService;
let result: Promise<any>;
if (_appEntityService[action] && _appEntityService[action] instanceof Function) {
result = _appEntityService[action](Context,Data, isloading);
}else{
result =_appEntityService.remove(Context,Data , isloading);
}
result.then((response) => {
this.handleResponse(action, response);
resolve(response);
}).catch(response => {
reject(response);
});
});
}
/**
* 添加数据
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof ExtendEditorAmountService
*/
@Errorlog
public add(action: string, context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
const {data:Data,context:Context} = this.handleRequestData(action,context,data,true);
return new Promise((resolve: any, reject: any) => {
const _appEntityService: any = this.appEntityService;
let result: Promise<any>;
if (_appEntityService[action] && _appEntityService[action] instanceof Function) {
result = _appEntityService[action](Context,Data, isloading);
}else{
result =_appEntityService.Create(Context,Data, isloading);
}
result.then((response) => {
this.handleResponse(action, response);
resolve(response);
}).catch(response => {
reject(response);
});
});
}
/**
* 修改数据
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof ExtendEditorAmountService
*/
@Errorlog
public update(action: string, context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
const {data:Data,context:Context} = this.handleRequestData(action,context,data,true);
return new Promise((resolve: any, reject: any) => {
const _appEntityService: any = this.appEntityService;
let result: Promise<any>;
if (_appEntityService[action] && _appEntityService[action] instanceof Function) {
result = _appEntityService[action](Context,Data,isloading);
}else{
result =_appEntityService.Update(Context,Data,isloading);
}
result.then((response) => {
this.handleResponse(action, response);
resolve(response);
}).catch(response => {
reject(response);
});
});
}
}
\ No newline at end of file
// this is less
.app-list {
height:100%;
flex-grow: 1;
overflow-y: auto;
.el-collapse-item__header.is-active{
color: #409eff;
background-color: #ecf5ff;
}
.el-collapse{
.el-collapse-item{
.el-collapse-item__wrap{
.el-collapse-item__content{
padding: 10px 0 10px 0;
}
}
}
}
.app-list-item {
line-height: 34px;
padding: 12px 6px;
min-height: 24px;
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 1px solid #f0f0f0;
.app-list-item-content {
width: 70%;
display: flex;
align-items: center;
.item-icon {
width: 40px;
height: 40px;
margin-right: 14px;
img {
width: 40px;
height: 40px;
border-radius: 50%;
}
}
.item-content-text {
display: flex;
flex-direction: column;
width: 80%;
.item-title {
font-size: 18px;
font-weight: bold;
}
.item-description{
height: 34px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.item-subtext {
color: #8c8c8c;
}
}
}
.app-list-item-date {
position: relative;
color: #8c8c8c;
}
}
.app-list-item.isSelect {
background: #ecf5ff;
border-radius: 2px;
border-color: rgb(197, 197, 197);
}
.app-list-item:hover {
background: #ecf5ff;
}
.loadmore {
text-align: center;
padding: 10px;
text-decoration: underline;
color: #82bff7;
cursor: default;
}
}
.app-list-empty {
height:100%;
color: #909399;
display: flex;
justify-content: center;
align-items: center;
}
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import ExtendEditorAmountBase from './extend-editor-amount-list-base.vue';
@Component({
components: {
}
})
export default class ExtendEditorAmount extends ExtendEditorAmountBase {
}
</script>
\ No newline at end of file
...@@ -2202,7 +2202,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -2202,7 +2202,7 @@ export default class MainBase extends Vue implements ControlInterface {
*/ */
public load(opt: any = {}): void { public load(opt: any = {}): void {
if(!this.loadAction){ if(!this.loadAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'microComponentGridView' + (this.$t('app.formpage.notconfig.loadaction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'microComponentEditView' + (this.$t('app.formpage.notconfig.loadaction') as string) });
return; return;
} }
const arg: any = { ...opt }; const arg: any = { ...opt };
...@@ -2237,7 +2237,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -2237,7 +2237,7 @@ export default class MainBase extends Vue implements ControlInterface {
*/ */
public loadDraft(opt: any = {}): void { public loadDraft(opt: any = {}): void {
if(!this.loaddraftAction){ if(!this.loaddraftAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'microComponentGridView' + (this.$t('app.formpage.notconfig.loaddraftaction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'microComponentEditView' + (this.$t('app.formpage.notconfig.loaddraftaction') as string) });
return; return;
} }
const arg: any = { ...opt } ; const arg: any = { ...opt } ;
...@@ -2298,7 +2298,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -2298,7 +2298,7 @@ export default class MainBase extends Vue implements ControlInterface {
const action: any = Object.is(data.srfuf, '1') ? this.updateAction : this.createAction; const action: any = Object.is(data.srfuf, '1') ? this.updateAction : this.createAction;
if(!action){ if(!action){
let actionName:any = Object.is(data.srfuf, '1')?"updateAction":"createAction"; let actionName:any = Object.is(data.srfuf, '1')?"updateAction":"createAction";
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'microComponentGridView' + (this.$t('app.formpage.notconfig.actionname') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'microComponentEditView' + (this.$t('app.formpage.notconfig.actionname') as string) });
return; return;
} }
Object.assign(arg,{viewparams:this.viewparams}); Object.assign(arg,{viewparams:this.viewparams});
...@@ -2406,7 +2406,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -2406,7 +2406,7 @@ export default class MainBase extends Vue implements ControlInterface {
const action: any = Object.is(data.srfuf, '1') ? this.updateAction : this.createAction; const action: any = Object.is(data.srfuf, '1') ? this.updateAction : this.createAction;
if(!action){ if(!action){
let actionName:any = Object.is(data.srfuf, '1')?"updateAction":"createAction"; let actionName:any = Object.is(data.srfuf, '1')?"updateAction":"createAction";
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'microComponentGridView' + (this.$t('app.formpage.notconfig.actionname') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'microComponentEditView' + (this.$t('app.formpage.notconfig.actionname') as string) });
return; return;
} }
Object.assign(arg,{viewparams:this.viewparams}); Object.assign(arg,{viewparams:this.viewparams});
...@@ -2483,7 +2483,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -2483,7 +2483,7 @@ export default class MainBase extends Vue implements ControlInterface {
public remove(opt:Array<any> = [],showResultInfo?: boolean): Promise<any> { public remove(opt:Array<any> = [],showResultInfo?: boolean): Promise<any> {
return new Promise((resolve: any, reject: any) => { return new Promise((resolve: any, reject: any) => {
if(!this.removeAction){ if(!this.removeAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'microComponentGridView' + (this.$t('app.formpage.notconfig.removeaction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'microComponentEditView' + (this.$t('app.formpage.notconfig.removeaction') as string) });
return; return;
} }
const arg: any = opt[0]; const arg: any = opt[0];
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册