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

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

上级 c66d4ba5
......@@ -700,6 +700,101 @@
}
]
},
{
"srfkey": "CodeList43",
"emptytext": "未定义",
"codelisttype":"static",
"items": [
{
"id": "HTMLeditor",
"label": "HTML编辑器",
"text": "HTML编辑器",
"class":"",
"data":"",
"codename":"Htmleditor",
"value": "HTMLeditor",
"disabled": false
}
, {
"id": "droplist",
"label": "下拉列表框",
"text": "下拉列表框",
"class":"",
"data":"",
"codename":"Droplist",
"value": "droplist",
"disabled": false
}
, {
"id": "picturecontrol",
"label": "图片控件",
"text": "图片控件",
"class":"",
"data":"",
"codename":"Picturecontrol",
"value": "picturecontrol",
"disabled": false
}
, {
"id": "textarea",
"label": "多行输入框",
"text": "多行输入框",
"class":"",
"data":"",
"codename":"Textarea",
"value": "textarea",
"disabled": false
}
, {
"id": "picker",
"label": "数据选择",
"text": "数据选择",
"class":"",
"data":"",
"codename":"Picker",
"value": "picker",
"disabled": false
}
, {
"id": "fileupload",
"label": "文件上传控件",
"text": "文件上传控件",
"class":"",
"data":"",
"codename":"Fileupload",
"value": "fileupload",
"disabled": false
}
, {
"id": "textbox",
"label": "文本框",
"text": "文本框",
"class":"",
"data":"",
"codename":"Textbox",
"value": "textbox",
"disabled": false
}
, {
"id": "label",
"label": "标签",
"text": "标签",
"class":"",
"data":"",
"codename":"Label",
"value": "label",
"disabled": false
}
]
},
{
"srfkey": "BookType",
"emptytext": "未定义",
......
......@@ -156,8 +156,8 @@
"appName":"扩展编辑器",
"portletCodeName": "appExtendEditorAmount",
"portletName": "扩展编辑器数量",
"groupCodeName":"Ungroup",
"groupName":"(未分类)",
"groupCodeName":"PortletCat7",
"groupName":"扩展编辑器",
"portletTYpe":"LIST","componentName":"ibizappextendeditor-app-extend-editor-amount-portlet"},
{"type":"app",
"appCodeName":"IBIZBOOK",
......@@ -324,7 +324,7 @@
"appName":"扩展编辑器",
"portletCodeName": "appExtendEditorAmount",
"portletName": "扩展编辑器数量",
"groupCodeName":"Ungroup",
"groupName":"(未分类)",
"groupCodeName":"PortletCat7",
"groupName":"扩展编辑器",
"portletTYpe":"LIST","componentName":"app-ibizappextendeditor-app-extend-editor-amount-portlet"}
]
\ No newline at end of file
......@@ -271,6 +271,14 @@
"viewname": "IBIZAPPVIEWEditView",
"viewtag": "27425bd0f023912440422d4ee90bb370"
},
"ibizbookexportandimportgridview": {
"title": "图书表格视图(数据导入导出)",
"caption": "数据导入导出",
"viewtype": "DEGRIDVIEW",
"viewmodule": "Sample",
"viewname": "IBIZBOOKExportAndImportGridView",
"viewtag": "28e0ba8bf7d5467c21c6f84b114e255f"
},
"ibizorderdetaillistview": {
"title": "订单明细列表视图",
"caption": "订单明细",
......@@ -583,6 +591,14 @@
"viewname": "IBIZOrderUsr2ChartView",
"viewtag": "502736ae9280400d7b8f74f057d363ab"
},
"ibizappextendeditorgridview": {
"title": "扩展编辑器表格视图",
"caption": "扩展编辑器",
"viewtype": "DEGRIDVIEW",
"viewmodule": "Sample",
"viewname": "IBIZAPPEXTENDEDITORGridView",
"viewtag": "50404c572c0128d7acf24b619beb2a57"
},
"ibizsoftwaresuitgridview9": {
"title": "软件表格视图",
"caption": "软件",
......@@ -1695,6 +1711,14 @@
"viewname": "IBIZOrderSGridView2",
"viewtag": "e7441fa67d425df343d996c745fb5d6b"
},
"ibizappextendeditoreditview": {
"title": "扩展编辑器编辑视图",
"caption": "扩展编辑器",
"viewtype": "DEEDITVIEW",
"viewmodule": "Sample",
"viewname": "IBIZAPPEXTENDEDITOREditView",
"viewtag": "e7f67094501adaf9fd3bd9c3ee074450"
},
"ibizbookgridexpview": {
"title": "图书表格导航视图",
"caption": "图书",
......
......@@ -101,6 +101,17 @@ function getLocaleResourceBase(){
"200": commonLogic.appcommonhandle("第二图书馆",null),
"empty": commonLogic.appcommonhandle("",null)
},
CodeList43: {
"HTMLeditor": commonLogic.appcommonhandle("HTML编辑器",null),
"droplist": commonLogic.appcommonhandle("下拉列表框",null),
"picturecontrol": commonLogic.appcommonhandle("图片控件",null),
"textarea": commonLogic.appcommonhandle("多行输入框",null),
"picker": commonLogic.appcommonhandle("数据选择",null),
"fileupload": commonLogic.appcommonhandle("文件上传控件",null),
"textbox": commonLogic.appcommonhandle("文本框",null),
"label": commonLogic.appcommonhandle("标签",null),
"empty": commonLogic.appcommonhandle("",null)
},
BookType: {
"仙侠": commonLogic.appcommonhandle("仙侠",null),
"武侠": commonLogic.appcommonhandle("武侠",null),
......
......@@ -101,6 +101,17 @@ function getLocaleResourceBase(){
"200": commonLogic.appcommonhandle("第二图书馆",null),
"empty": commonLogic.appcommonhandle("",null),
},
CodeList43: {
"HTMLeditor": commonLogic.appcommonhandle("HTML编辑器",null),
"droplist": commonLogic.appcommonhandle("下拉列表框",null),
"picturecontrol": commonLogic.appcommonhandle("图片控件",null),
"textarea": commonLogic.appcommonhandle("多行输入框",null),
"picker": commonLogic.appcommonhandle("数据选择",null),
"fileupload": commonLogic.appcommonhandle("文件上传控件",null),
"textbox": commonLogic.appcommonhandle("文本框",null),
"label": commonLogic.appcommonhandle("标签",null),
"empty": commonLogic.appcommonhandle("",null),
},
BookType: {
"仙侠": commonLogic.appcommonhandle("仙侠",null),
"武侠": commonLogic.appcommonhandle("武侠",null),
......
......@@ -20,6 +20,48 @@ function getLocaleResourceBase(){
caption: commonLogic.appcommonhandle("扩展编辑器",null),
title: commonLogic.appcommonhandle("扩展编辑器列表视图",null),
},
gridview: {
caption: commonLogic.appcommonhandle("扩展编辑器",null),
title: commonLogic.appcommonhandle("扩展编辑器表格视图",null),
},
editview: {
caption: commonLogic.appcommonhandle("扩展编辑器",null),
title: commonLogic.appcommonhandle("扩展编辑器编辑视图",null),
},
},
main_form: {
details: {
group1: commonLogic.appcommonhandle("扩展编辑器基本信息",null),
formpage1: commonLogic.appcommonhandle("基本信息",null),
srfupdatedate: commonLogic.appcommonhandle("更新时间",null),
srforikey: commonLogic.appcommonhandle("",null),
srfkey: commonLogic.appcommonhandle("扩展编辑器标识",null),
srfmajortext: commonLogic.appcommonhandle("扩展编辑器名称",null),
srftempmode: commonLogic.appcommonhandle("",null),
srfuf: commonLogic.appcommonhandle("",null),
srfdeid: commonLogic.appcommonhandle("",null),
srfsourcekey: commonLogic.appcommonhandle("",null),
ibizappextendeditorname: commonLogic.appcommonhandle("扩展编辑器名称",null),
extendeditortype: commonLogic.appcommonhandle("扩展编辑器类型",null),
extensionflag: commonLogic.appcommonhandle("扩展标识",null),
extendeditordescription: commonLogic.appcommonhandle("扩展编辑器描述",null),
ibizappextendeditorid: commonLogic.appcommonhandle("扩展编辑器标识",null),
amount: commonLogic.appcommonhandle("数量",null),
},
uiactions: {
},
},
main_grid: {
columns: {
ibizappextendeditorname: commonLogic.appcommonhandle("扩展编辑器名称",null),
extensionflag: commonLogic.appcommonhandle("扩展标识",null),
extendeditortype: commonLogic.appcommonhandle("扩展编辑器类型",null),
documentaddress: commonLogic.appcommonhandle("文档地址",null),
extendeditordescription: commonLogic.appcommonhandle("扩展编辑器描述",null),
},
nodata:commonLogic.appcommonhandle("",null),
uiactions: {
},
},
extendeditorlist_list: {
nodata:commonLogic.appcommonhandle("",null),
......@@ -40,6 +82,66 @@ function getLocaleResourceBase(){
},
listviewtoolbar_toolbar: {
},
editviewtoolbar_toolbar: {
tbitem3: {
caption: commonLogic.appcommonhandle("Save",null),
tip: commonLogic.appcommonhandle("Save",null),
},
tbitem5: {
caption: commonLogic.appcommonhandle("Save And Close",null),
tip: commonLogic.appcommonhandle("Save And Close Window",null),
},
},
gridviewtoolbar_toolbar: {
tbitem3: {
caption: commonLogic.appcommonhandle("New",null),
tip: commonLogic.appcommonhandle("New",null),
},
tbitem4: {
caption: commonLogic.appcommonhandle("Edit",null),
tip: commonLogic.appcommonhandle("Edit {0}",null),
},
deuiaction1: {
caption: commonLogic.appcommonhandle("刷新",null),
tip: commonLogic.appcommonhandle("刷新",null),
},
tbitem6: {
caption: commonLogic.appcommonhandle("Copy",null),
tip: commonLogic.appcommonhandle("Copy {0}",null),
},
tbitem7: {
caption: commonLogic.appcommonhandle("-",null),
tip: commonLogic.appcommonhandle("",null),
},
tbitem8: {
caption: commonLogic.appcommonhandle("Remove",null),
tip: commonLogic.appcommonhandle("Remove {0}",null),
},
tbitem9: {
caption: commonLogic.appcommonhandle("-",null),
tip: commonLogic.appcommonhandle("",null),
},
tbitem13: {
caption: commonLogic.appcommonhandle("Export",null),
tip: commonLogic.appcommonhandle("Export {0} Data To Excel",null),
},
tbitem10: {
caption: commonLogic.appcommonhandle("-",null),
tip: commonLogic.appcommonhandle("",null),
},
tbitem16: {
caption: commonLogic.appcommonhandle("其它",null),
tip: commonLogic.appcommonhandle("其它",null),
},
tbitem21: {
caption: commonLogic.appcommonhandle("Export Data Model",null),
tip: commonLogic.appcommonhandle("导出数据模型",null),
},
tbitem23: {
caption: commonLogic.appcommonhandle("数据导入",null),
tip: commonLogic.appcommonhandle("数据导入",null),
},
},
};
return data;
}
......
......@@ -20,6 +20,48 @@ function getLocaleResourceBase(){
caption: commonLogic.appcommonhandle("扩展编辑器",null),
title: commonLogic.appcommonhandle("扩展编辑器列表视图",null),
},
gridview: {
caption: commonLogic.appcommonhandle("扩展编辑器",null),
title: commonLogic.appcommonhandle("扩展编辑器表格视图",null),
},
editview: {
caption: commonLogic.appcommonhandle("扩展编辑器",null),
title: commonLogic.appcommonhandle("扩展编辑器编辑视图",null),
},
},
main_form: {
details: {
group1: commonLogic.appcommonhandle("扩展编辑器基本信息",null),
formpage1: commonLogic.appcommonhandle("基本信息",null),
srfupdatedate: commonLogic.appcommonhandle("更新时间",null),
srforikey: commonLogic.appcommonhandle("",null),
srfkey: commonLogic.appcommonhandle("扩展编辑器标识",null),
srfmajortext: commonLogic.appcommonhandle("扩展编辑器名称",null),
srftempmode: commonLogic.appcommonhandle("",null),
srfuf: commonLogic.appcommonhandle("",null),
srfdeid: commonLogic.appcommonhandle("",null),
srfsourcekey: commonLogic.appcommonhandle("",null),
ibizappextendeditorname: commonLogic.appcommonhandle("扩展编辑器名称",null),
extendeditortype: commonLogic.appcommonhandle("扩展编辑器类型",null),
extensionflag: commonLogic.appcommonhandle("扩展标识",null),
extendeditordescription: commonLogic.appcommonhandle("扩展编辑器描述",null),
ibizappextendeditorid: commonLogic.appcommonhandle("扩展编辑器标识",null),
amount: commonLogic.appcommonhandle("数量",null),
},
uiactions: {
},
},
main_grid: {
columns: {
ibizappextendeditorname: commonLogic.appcommonhandle("扩展编辑器名称",null),
extensionflag: commonLogic.appcommonhandle("扩展标识",null),
extendeditortype: commonLogic.appcommonhandle("扩展编辑器类型",null),
documentaddress: commonLogic.appcommonhandle("文档地址",null),
extendeditordescription: commonLogic.appcommonhandle("扩展编辑器描述",null),
},
nodata:commonLogic.appcommonhandle("",null),
uiactions: {
},
},
extendeditorlist_list: {
nodata:commonLogic.appcommonhandle("",null),
......@@ -40,6 +82,66 @@ function getLocaleResourceBase(){
},
listviewtoolbar_toolbar: {
},
editviewtoolbar_toolbar: {
tbitem3: {
caption: commonLogic.appcommonhandle("保存",null),
tip: commonLogic.appcommonhandle("保存",null),
},
tbitem5: {
caption: commonLogic.appcommonhandle("保存并关闭",null),
tip: commonLogic.appcommonhandle("保存并关闭",null),
},
},
gridviewtoolbar_toolbar: {
tbitem3: {
caption: commonLogic.appcommonhandle("新建",null),
tip: commonLogic.appcommonhandle("新建",null),
},
tbitem4: {
caption: commonLogic.appcommonhandle("编辑",null),
tip: commonLogic.appcommonhandle("编辑",null),
},
deuiaction1: {
caption: commonLogic.appcommonhandle("刷新",null),
tip: commonLogic.appcommonhandle("刷新",null),
},
tbitem6: {
caption: commonLogic.appcommonhandle("拷贝",null),
tip: commonLogic.appcommonhandle("拷贝",null),
},
tbitem7: {
caption: commonLogic.appcommonhandle("-",null),
tip: commonLogic.appcommonhandle("",null),
},
tbitem8: {
caption: commonLogic.appcommonhandle("删除",null),
tip: commonLogic.appcommonhandle("删除",null),
},
tbitem9: {
caption: commonLogic.appcommonhandle("-",null),
tip: commonLogic.appcommonhandle("",null),
},
tbitem13: {
caption: commonLogic.appcommonhandle("导出",null),
tip: commonLogic.appcommonhandle("导出",null),
},
tbitem10: {
caption: commonLogic.appcommonhandle("-",null),
tip: commonLogic.appcommonhandle("",null),
},
tbitem16: {
caption: commonLogic.appcommonhandle("其它",null),
tip: commonLogic.appcommonhandle("其它",null),
},
tbitem21: {
caption: commonLogic.appcommonhandle("导出数据模型",null),
tip: commonLogic.appcommonhandle("导出数据模型",null),
},
tbitem23: {
caption: commonLogic.appcommonhandle("数据导入",null),
tip: commonLogic.appcommonhandle("数据导入",null),
},
},
};
return data;
}
......
......@@ -54,6 +54,10 @@ function getLocaleResourceBase(){
caption: commonLogic.appcommonhandle("图书",null),
title: commonLogic.appcommonhandle("图书编辑视图",null),
},
exportandimportgridview: {
caption: commonLogic.appcommonhandle("数据导入导出",null),
title: commonLogic.appcommonhandle("图书表格视图(数据导入导出)",null),
},
autogrouplistview: {
caption: commonLogic.appcommonhandle("图书",null),
title: commonLogic.appcommonhandle("图书列表视图(自动分组)",null),
......@@ -576,6 +580,16 @@ function getLocaleResourceBase(){
uiactions: {
},
},
exporandimportgrid_grid: {
columns: {
ibizbookname: commonLogic.appcommonhandle("图书名称",null),
updateman: commonLogic.appcommonhandle("更新人",null),
updatedate: commonLogic.appcommonhandle("更新时间",null),
},
nodata:commonLogic.appcommonhandle("",null),
uiactions: {
},
},
main7_grid: {
columns: {
author: commonLogic.appcommonhandle("图书作者",null),
......@@ -1450,6 +1464,16 @@ function getLocaleResourceBase(){
tip: commonLogic.appcommonhandle("Save And Close Window",null),
},
},
exportandimportgridviewtoolbar_toolbar: {
deuiaction1: {
caption: commonLogic.appcommonhandle("数据导入",null),
tip: commonLogic.appcommonhandle("数据导入",null),
},
deuiaction2: {
caption: commonLogic.appcommonhandle("Export",null),
tip: commonLogic.appcommonhandle("Export {0} Data To Excel",null),
},
},
dashboardviewdashboard_sysportlet2_list_quicktoolbar_toolbar: {
deuiaction1: {
caption: commonLogic.appcommonhandle("New",null),
......
......@@ -54,6 +54,10 @@ function getLocaleResourceBase(){
caption: commonLogic.appcommonhandle("图书",null),
title: commonLogic.appcommonhandle("图书编辑视图",null),
},
exportandimportgridview: {
caption: commonLogic.appcommonhandle("数据导入导出",null),
title: commonLogic.appcommonhandle("图书表格视图(数据导入导出)",null),
},
autogrouplistview: {
caption: commonLogic.appcommonhandle("图书",null),
title: commonLogic.appcommonhandle("图书列表视图(自动分组)",null),
......@@ -576,6 +580,16 @@ function getLocaleResourceBase(){
uiactions: {
},
},
exporandimportgrid_grid: {
columns: {
ibizbookname: commonLogic.appcommonhandle("图书名称",null),
updateman: commonLogic.appcommonhandle("更新人",null),
updatedate: commonLogic.appcommonhandle("更新时间",null),
},
nodata:commonLogic.appcommonhandle("",null),
uiactions: {
},
},
main7_grid: {
columns: {
author: commonLogic.appcommonhandle("图书作者",null),
......@@ -1450,6 +1464,16 @@ function getLocaleResourceBase(){
tip: commonLogic.appcommonhandle("保存并关闭",null),
},
},
exportandimportgridviewtoolbar_toolbar: {
deuiaction1: {
caption: commonLogic.appcommonhandle("数据导入",null),
tip: commonLogic.appcommonhandle("数据导入",null),
},
deuiaction2: {
caption: commonLogic.appcommonhandle("数据导出",null),
tip: commonLogic.appcommonhandle("数据导出",null),
},
},
dashboardviewdashboard_sysportlet2_list_quicktoolbar_toolbar: {
deuiaction1: {
caption: commonLogic.appcommonhandle("新建",null),
......
......@@ -708,6 +708,101 @@ mock.onGet('./assets/json/data-dictionary.json').reply((config: any) => {
},
]
},
{
srfkey: "CodeList43",
emptytext: "未定义",
"codelisttype":"static",
items: [
{
id: "HTMLeditor",
label: "HTML编辑器",
text: "HTML编辑器",
"class":"",
"data":"",
"codename":"Htmleditor",
value: "HTMLeditor",
disabled: false,
},
{
id: "droplist",
label: "下拉列表框",
text: "下拉列表框",
"class":"",
"data":"",
"codename":"Droplist",
value: "droplist",
disabled: false,
},
{
id: "picturecontrol",
label: "图片控件",
text: "图片控件",
"class":"",
"data":"",
"codename":"Picturecontrol",
value: "picturecontrol",
disabled: false,
},
{
id: "textarea",
label: "多行输入框",
text: "多行输入框",
"class":"",
"data":"",
"codename":"Textarea",
value: "textarea",
disabled: false,
},
{
id: "picker",
label: "数据选择",
text: "数据选择",
"class":"",
"data":"",
"codename":"Picker",
value: "picker",
disabled: false,
},
{
id: "fileupload",
label: "文件上传控件",
text: "文件上传控件",
"class":"",
"data":"",
"codename":"Fileupload",
value: "fileupload",
disabled: false,
},
{
id: "textbox",
label: "文本框",
text: "文本框",
"class":"",
"data":"",
"codename":"Textbox",
value: "textbox",
disabled: false,
},
{
id: "label",
label: "标签",
text: "标签",
"class":"",
"data":"",
"codename":"Label",
value: "label",
disabled: false,
},
]
},
{
srfkey: "BookType",
emptytext: "未定义",
......
......@@ -166,8 +166,8 @@ mock.onGet('./assets/json/portlet-data.json').reply((config: any) => {
"appName":"扩展编辑器",
"portletCodeName": "appExtendEditorAmount",
"portletName": "扩展编辑器数量",
"groupCodeName":"Ungroup",
"groupName":"(未分类)",
"groupCodeName":"PortletCat7",
"groupName":"扩展编辑器",
"portletTYpe":"LIST","componentName":"ibizappextendeditor-app-extend-editor-amount-portlet"},
{"type":"app",
"appCodeName":"IBIZBOOK",
......@@ -334,8 +334,8 @@ mock.onGet('./assets/json/portlet-data.json').reply((config: any) => {
"appName":"扩展编辑器",
"portletCodeName": "appExtendEditorAmount",
"portletName": "扩展编辑器数量",
"groupCodeName":"Ungroup",
"groupName":"(未分类)",
"groupCodeName":"PortletCat7",
"groupName":"扩展编辑器",
"portletTYpe":"LIST","componentName":"app-ibizappextendeditor-app-extend-editor-amount-portlet"}
]];
});
\ No newline at end of file
......@@ -279,6 +279,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "IBIZAPPVIEWEditView",
"viewtag": "27425bd0f023912440422d4ee90bb370"
},
"ibizbookexportandimportgridview": {
"title": "图书表格视图(数据导入导出)",
"caption": "数据导入导出",
"viewtype": "DEGRIDVIEW",
"viewmodule": "Sample",
"viewname": "IBIZBOOKExportAndImportGridView",
"viewtag": "28e0ba8bf7d5467c21c6f84b114e255f"
},
"ibizorderdetaillistview": {
"title": "订单明细列表视图",
"caption": "订单明细",
......@@ -591,6 +599,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "IBIZOrderUsr2ChartView",
"viewtag": "502736ae9280400d7b8f74f057d363ab"
},
"ibizappextendeditorgridview": {
"title": "扩展编辑器表格视图",
"caption": "扩展编辑器",
"viewtype": "DEGRIDVIEW",
"viewmodule": "Sample",
"viewname": "IBIZAPPEXTENDEDITORGridView",
"viewtag": "50404c572c0128d7acf24b619beb2a57"
},
"ibizsoftwaresuitgridview9": {
"title": "软件表格视图",
"caption": "软件",
......@@ -1703,6 +1719,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "IBIZOrderSGridView2",
"viewtag": "e7441fa67d425df343d996c745fb5d6b"
},
"ibizappextendeditoreditview": {
"title": "扩展编辑器编辑视图",
"caption": "扩展编辑器",
"viewtype": "DEEDITVIEW",
"viewmodule": "Sample",
"viewname": "IBIZAPPEXTENDEDITOREditView",
"viewtag": "e7f67094501adaf9fd3bd9c3ee074450"
},
"ibizbookgridexpview": {
"title": "图书表格导航视图",
"caption": "图书",
......
......@@ -655,6 +655,16 @@ export default class IndexBase extends Vue {
* @memberof IndexBase
*/
public defPSAppView: any = {
codename: 'appportalview',
viewtitle: '工作台',
openmode: '',
width: 0,
height: 0,
deResParameters: [],
routepath: '/index/:index?/appportalview/:appportalview?',
parameters: [
{ pathName: 'appportalview', parameterName: 'appportalview' },
],
};
/**
......@@ -663,7 +673,7 @@ export default class IndexBase extends Vue {
* @type {boolean}
* @memberof IndexBase
*/
public isDefaultPage: boolean = false;
public isDefaultPage: boolean = true;
/**
* 空白视图模式
......
......@@ -97,6 +97,8 @@ export default class IBIZAPPEXTENDEDITORUIServiceBase extends UIService {
*/
public initViewMap(){
this.allViewMap.set(':',{viewname:'listview',srfappde:'ibizappextendeditors',component:'ibizappextendeditorlist-view'});
this.allViewMap.set('MDATAVIEW:',{viewname:'gridview',srfappde:'ibizappextendeditors',component:'ibizappextendeditorgrid-view'});
this.allViewMap.set('EDITVIEW:',{viewname:'editview',srfappde:'ibizappextendeditors',component:'ibizappextendeditoredit-view'});
}
/**
......
......@@ -101,6 +101,7 @@ export default class IBIZBOOKUIServiceBase extends UIService {
this.allViewMap.set(':',{viewname:'usr3editview',srfappde:'ibizbooks',component:'ibizbookusr3-edit-view'});
this.allViewMap.set(':',{viewname:'usr3listview',srfappde:'ibizbooks',component:'ibizbookusr3-list-view'});
this.allViewMap.set(':',{viewname:'editview3',srfappde:'ibizbooks',component:'ibizbookedit-view3'});
this.allViewMap.set(':',{viewname:'exportandimportgridview',srfappde:'ibizbooks',component:'ibizbookexport-and-import-grid-view'});
this.allViewMap.set(':',{viewname:'autogrouplistview',srfappde:'ibizbooks',component:'ibizbookauto-group-list-view'});
this.allViewMap.set(':',{viewname:'ruleseditview',srfappde:'ibizbooks',component:'ibizbookrules-edit-view'});
this.allViewMap.set(':',{viewname:'treegridexview',srfappde:'ibizbooks',component:'ibizbooktree-grid-ex-view'});
......
......@@ -446,6 +446,81 @@ export default class MainMenuBase extends Vue implements ControlInterface {
}
/**
* 处理菜单默认选中项
*
* @public
* @memberof MainMenuBase
*/
public doMenuSelect(): void {
if (!this.isDefaultPage || this.isBlankMode) {
return;
}
const appFuncs: any[] = this.menuMode.getAppFuncs();
if (this.$route && this.$route.matched && this.$route.matched.length == 2) { // 存在二级路由
const [{ }, matched] = this.$route.matched;
const appfunc: any = appFuncs.find((_appfunc: any) => Object.is(_appfunc.routepath, matched.path) && Object.is(_appfunc.appfuncyype, 'APPVIEW'));
if (appfunc) {
this.computeMenuSelect(this.menus, appfunc.appfunctag);
}
return;
} else if (this.defPSAppView && Object.keys(this.defPSAppView).length > 0) { // 存在默认视图
const appfunc: any = appFuncs.find((_appfunc: any) => Object.is(_appfunc.routepath, this.defPSAppView.routepath) && Object.is(_appfunc.appfuncyype, 'APPVIEW'));
if (appfunc) {
this.computeMenuSelect(this.menus, appfunc.appfunctag);
}
const viewparam: any = {};
const path: string = this.$viewTool.buildUpRoutePath(this.$route, {}, this.defPSAppView.deResParameters, this.defPSAppView.parameters, [], viewparam);
this.$router.push(path);
return;
}
this.computeMenuSelect(this.menus, '');
let item = this.compute(this.menus, this.defaultActive);
if (Object.keys(item).length === 0) {
return;
}
if(!item.hidden){
this.click(item);
}
}
/**
* 计算菜单选中项
*
* @public
* @param {any[]} items
* @param {string} appfunctag
* @returns {boolean}
* @memberof MainMenuBase
*/
public computeMenuSelect(items: any[], appfunctag: string): boolean {
const appFuncs: any[] = this.menuMode.getAppFuncs();
return items.some((item: any) => {
if (Object.is(appfunctag, '') && !Object.is(item.appfunctag, '') && item.opendefault) {
const appfunc = appFuncs.find((_appfunc: any) => Object.is(_appfunc.appfunctag, item.appfunctag));
if (appfunc.routepath) {
this.defaultActive = item.name;
this.setHideSideBar(item);
return true;
}
}
if (Object.is(item.appfunctag, appfunctag) && item.opendefault) {
this.setHideSideBar(item);
this.defaultActive = item.name;
return true;
}
if (item.items && item.items.length > 0) {
const state = this.computeMenuSelect(item.items, appfunctag);
if (state) {
this.defaultOpeneds.push(item.name);
return true;
}
}
return false;
});
}
/**
* 获取菜单项数据
*
......@@ -483,6 +558,9 @@ export default class MainMenuBase extends Vue implements ControlInterface {
* @memberof MainMenuBase
*/
public setHideSideBar(item: any): void {
if (item.hidesidebar) {
this.$emit('collapsechange', true);
}
}
/**
......@@ -3587,6 +3665,7 @@ export default class MainMenuBase extends Vue implements ControlInterface {
}
this.dataProcess(inputMenus);
this.menus = inputMenus;
this.doMenuSelect();
}
/**
......
......@@ -17,26 +17,10 @@ module.exports = {
// proxy: "http://127.0.0.1:8080/",
historyApiFallback: {
rewrites: [
// { from: /^\/index$/, to: '/index.html' },
]
}
},
pages: {
// 新增默认首页入口
index : {
// page 的入口
entry: 'src/pages/sample/index/main.ts',
// 模板来源
template: 'src/template.html',
// 在 dist/index.html 的输出
filename: 'index.html',
// 当使用 title 选项时,
// template 中的 title 标签需要是 <title><%= htmlWebpackPlugin.options.title %></title>
title: '',
// 在这个页面中包含的块,默认情况下会包含
// 提取出来的通用 chunk 和 vendor chunk。
// chunks: ['chunk-vendors', 'chunk-common', 'index']
},
index: {
// page 的入口
entry: 'src/pages/sample/index/main.ts',
......@@ -55,7 +39,9 @@ module.exports = {
// 多核打包
parallel: os.cpus().length > 1,
chainWebpack: (config) => {
// 删除自动计算预加载资源
config.plugins.delete('preload-index')
// 删除预加载资源
config.plugins.delete('prefetch-index')
config.resolve.alias
.set('@ibizsys', resolve('src/ibizsys'))
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册