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

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

上级 dbd13739
...@@ -688,7 +688,7 @@ ...@@ -688,7 +688,7 @@
"viewtag": "ad37d44e57c18e4431a609968203c646" "viewtag": "ad37d44e57c18e4431a609968203c646"
}, },
"ibizbooklistview": { "ibizbooklistview": {
"title": "图书列表视图", "title": "图书列表视图(内置功能)",
"caption": "图书", "caption": "图书",
"viewtype": "DELISTVIEW", "viewtype": "DELISTVIEW",
"viewmodule": "Sample", "viewmodule": "Sample",
......
...@@ -195,6 +195,7 @@ export default { ...@@ -195,6 +195,7 @@ export default {
menuitem80: "代码表分组", menuitem80: "代码表分组",
menuitem81: "当前页聚合", menuitem81: "当前页聚合",
menuitem82: "远程聚合", menuitem82: "远程聚合",
menuitem83: "列表",
menuitem14: "树视图", menuitem14: "树视图",
menuitem60: "静态节点", menuitem60: "静态节点",
menuitem61: "动态节点(代码表)", menuitem61: "动态节点(代码表)",
......
...@@ -195,6 +195,7 @@ export default { ...@@ -195,6 +195,7 @@ export default {
menuitem80: "代码表分组", menuitem80: "代码表分组",
menuitem81: "当前页聚合", menuitem81: "当前页聚合",
menuitem82: "远程聚合", menuitem82: "远程聚合",
menuitem83: "列表",
menuitem14: "树视图", menuitem14: "树视图",
menuitem60: "静态节点", menuitem60: "静态节点",
menuitem61: "动态节点(代码表)", menuitem61: "动态节点(代码表)",
......
...@@ -32,7 +32,7 @@ export default { ...@@ -32,7 +32,7 @@ export default {
}, },
listview: { listview: {
caption: "图书", caption: "图书",
title: "图书列表视图", title: "图书列表视图(内置功能)",
}, },
editview: { editview: {
caption: "图书", caption: "图书",
...@@ -201,7 +201,7 @@ export default { ...@@ -201,7 +201,7 @@ export default {
uiactions: { uiactions: {
}, },
}, },
mob_list: { lnternalfunclist_list: {
nodata:"", nodata:"",
uiactions: { uiactions: {
}, },
...@@ -434,6 +434,8 @@ export default { ...@@ -434,6 +434,8 @@ export default {
}, },
usr2gridviewtoolbar_toolbar: { usr2gridviewtoolbar_toolbar: {
}, },
listviewtoolbar_toolbar: {
},
internalfuncgridviewtoolbar_toolbar: { internalfuncgridviewtoolbar_toolbar: {
tbitem3: { tbitem3: {
caption: "New", caption: "New",
...@@ -566,6 +568,4 @@ export default { ...@@ -566,6 +568,4 @@ export default {
}, },
usr3gridviewtoolbar_toolbar: { usr3gridviewtoolbar_toolbar: {
}, },
listviewtoolbar_toolbar: {
},
}; };
\ No newline at end of file
...@@ -31,7 +31,7 @@ export default { ...@@ -31,7 +31,7 @@ export default {
}, },
listview: { listview: {
caption: "图书", caption: "图书",
title: "图书列表视图", title: "图书列表视图(内置功能)",
}, },
editview: { editview: {
caption: "图书", caption: "图书",
...@@ -200,7 +200,7 @@ export default { ...@@ -200,7 +200,7 @@ export default {
uiactions: { uiactions: {
}, },
}, },
mob_list: { lnternalfunclist_list: {
nodata:"", nodata:"",
uiactions: { uiactions: {
}, },
...@@ -433,6 +433,8 @@ export default { ...@@ -433,6 +433,8 @@ export default {
}, },
usr2gridviewtoolbar_toolbar: { usr2gridviewtoolbar_toolbar: {
}, },
listviewtoolbar_toolbar: {
},
internalfuncgridviewtoolbar_toolbar: { internalfuncgridviewtoolbar_toolbar: {
tbitem3: { tbitem3: {
caption: "新建", caption: "新建",
...@@ -565,6 +567,4 @@ export default { ...@@ -565,6 +567,4 @@ export default {
}, },
usr3gridviewtoolbar_toolbar: { usr3gridviewtoolbar_toolbar: {
}, },
listviewtoolbar_toolbar: {
},
}; };
\ No newline at end of file
...@@ -591,6 +591,24 @@ mock.onGet('v7/main-menuappmenu').reply((config: any) => { ...@@ -591,6 +591,24 @@ mock.onGet('v7/main-menuappmenu').reply((config: any) => {
resourcetag: '', resourcetag: '',
}, },
], ],
},
{
id: 'E97FD588-0DFD-4A22-8CB4-EEB1B9A7688F',
name: 'menuitem83',
text: '列表',
type: 'MENUITEM',
counterid: '',
tooltip: '列表',
expanded: false,
separator: false,
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: '',
icon: '',
textcls: '',
appfunctag: 'AppFunc11',
resourcetag: '',
}, },
{ {
id: '534c63277bcefae8821ec042203428c6', id: '534c63277bcefae8821ec042203428c6',
......
...@@ -696,7 +696,7 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => { ...@@ -696,7 +696,7 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewtag": "ad37d44e57c18e4431a609968203c646" "viewtag": "ad37d44e57c18e4431a609968203c646"
}, },
"ibizbooklistview": { "ibizbooklistview": {
"title": "图书列表视图", "title": "图书列表视图(内置功能)",
"caption": "图书", "caption": "图书",
"viewtype": "DELISTVIEW", "viewtype": "DELISTVIEW",
"viewmodule": "Sample", "viewmodule": "Sample",
......
.ibizbooklist-view{
position: relative;
}
.toolbar-container {
button {
margin: 6px 0px 4px 4px;
.caption {
margin-left: 4px;
}
}
.seperator {
color: #dcdee2;
margin: 0 0px 0 4px;
}
}
// this is less
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import IBIZBOOKListViewBase from './ibizbooklist-view-base.vue';
import view_list from '@widgets/ibizbook/lnternal-func-list-list/lnternal-func-list-list.vue';
import view_searchform from '@widgets/ibizbook/default-searchform/default-searchform.vue';
@Component({
components: {
view_list,
view_searchform,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
if(!Object.is(vm.navModel,"route")){
vm.initNavDataWithTab(vm.viewCacheData);
}
vm.$store.commit('addCurPageViewtag', { fullPath: to.fullPath, viewtag: vm.viewtag });
});
},
})
export default class IBIZBOOKListView extends IBIZBOOKListViewBase {
}
</script>
\ No newline at end of file
...@@ -35,8 +35,8 @@ export const PageComponents = { ...@@ -35,8 +35,8 @@ export const PageComponents = {
Vue.component('ibizorder-sf5-grid-view', () => import('@pages/sample/ibizorder-sf5-grid-view/ibizorder-sf5-grid-view.vue')); Vue.component('ibizorder-sf5-grid-view', () => import('@pages/sample/ibizorder-sf5-grid-view/ibizorder-sf5-grid-view.vue'));
Vue.component('ibizcustomer-edit-view', () => import('@pages/sample/ibizcustomer-edit-view/ibizcustomer-edit-view.vue')); Vue.component('ibizcustomer-edit-view', () => import('@pages/sample/ibizcustomer-edit-view/ibizcustomer-edit-view.vue'));
Vue.component('ibizorder-type-pickup-grid-view', () => import('@pages/sample/ibizorder-type-pickup-grid-view/ibizorder-type-pickup-grid-view.vue')); Vue.component('ibizorder-type-pickup-grid-view', () => import('@pages/sample/ibizorder-type-pickup-grid-view/ibizorder-type-pickup-grid-view.vue'));
Vue.component('ibizorder-sedit-view2', () => import('@pages/sample/ibizorder-sedit-view2/ibizorder-sedit-view2.vue'));
Vue.component('ibizhardware-edit-view', () => import('@pages/sample/ibizhardware-edit-view/ibizhardware-edit-view.vue')); Vue.component('ibizhardware-edit-view', () => import('@pages/sample/ibizhardware-edit-view/ibizhardware-edit-view.vue'));
Vue.component('ibizorder-sedit-view2', () => import('@pages/sample/ibizorder-sedit-view2/ibizorder-sedit-view2.vue'));
Vue.component('ibizsample0017-edit-view', () => import('@pages/sample/ibizsample0017-edit-view/ibizsample0017-edit-view.vue')); Vue.component('ibizsample0017-edit-view', () => import('@pages/sample/ibizsample0017-edit-view/ibizsample0017-edit-view.vue'));
Vue.component('ibizcpuedit-view', () => import('@pages/sample/ibizcpuedit-view/ibizcpuedit-view.vue')); Vue.component('ibizcpuedit-view', () => import('@pages/sample/ibizcpuedit-view/ibizcpuedit-view.vue'));
Vue.component('ibizorder-odsp-d40-wfgrid-view', () => import('@pages/sample/ibizorder-odsp-d40-wfgrid-view/ibizorder-odsp-d40-wfgrid-view.vue')); Vue.component('ibizorder-odsp-d40-wfgrid-view', () => import('@pages/sample/ibizorder-odsp-d40-wfgrid-view/ibizorder-odsp-d40-wfgrid-view.vue'));
...@@ -87,6 +87,7 @@ export const PageComponents = { ...@@ -87,6 +87,7 @@ export const PageComponents = {
Vue.component('ibizsoftware-suit-grid-view9', () => import('@pages/sample/ibizsoftware-suit-grid-view9/ibizsoftware-suit-grid-view9.vue')); Vue.component('ibizsoftware-suit-grid-view9', () => import('@pages/sample/ibizsoftware-suit-grid-view9/ibizsoftware-suit-grid-view9.vue'));
Vue.component('ibizorder-sf6-grid-view', () => import('@pages/sample/ibizorder-sf6-grid-view/ibizorder-sf6-grid-view.vue')); Vue.component('ibizorder-sf6-grid-view', () => import('@pages/sample/ibizorder-sf6-grid-view/ibizorder-sf6-grid-view.vue'));
Vue.component('ibizorder-detail-edit-view', () => import('@pages/sample/ibizorder-detail-edit-view/ibizorder-detail-edit-view.vue')); Vue.component('ibizorder-detail-edit-view', () => import('@pages/sample/ibizorder-detail-edit-view/ibizorder-detail-edit-view.vue'));
Vue.component('ibizbooklist-view', () => import('@pages/sample/ibizbooklist-view/ibizbooklist-view.vue'));
Vue.component('ibizsample0017-form-pickup-view', () => import('@pages/sample/ibizsample0017-form-pickup-view/ibizsample0017-form-pickup-view.vue')); Vue.component('ibizsample0017-form-pickup-view', () => import('@pages/sample/ibizsample0017-form-pickup-view/ibizsample0017-form-pickup-view.vue'));
Vue.component('ibizbookrow-edit-grid-view', () => import('@pages/sample/ibizbookrow-edit-grid-view/ibizbookrow-edit-grid-view.vue')); Vue.component('ibizbookrow-edit-grid-view', () => import('@pages/sample/ibizbookrow-edit-grid-view/ibizbookrow-edit-grid-view.vue'));
Vue.component('ibizhardware-index-pickup-view', () => import('@pages/sample/ibizhardware-index-pickup-view/ibizhardware-index-pickup-view.vue')); Vue.component('ibizhardware-index-pickup-view', () => import('@pages/sample/ibizhardware-index-pickup-view/ibizhardware-index-pickup-view.vue'));
...@@ -96,8 +97,8 @@ export const PageComponents = { ...@@ -96,8 +97,8 @@ export const PageComponents = {
Vue.component('ibizorder-detail-f6-edit-view', () => import('@pages/sample/ibizorder-detail-f6-edit-view/ibizorder-detail-f6-edit-view.vue')); Vue.component('ibizorder-detail-f6-edit-view', () => import('@pages/sample/ibizorder-detail-f6-edit-view/ibizorder-detail-f6-edit-view.vue'));
Vue.component('ibizbookusr4-grid-view', () => import('@pages/sample/ibizbookusr4-grid-view/ibizbookusr4-grid-view.vue')); Vue.component('ibizbookusr4-grid-view', () => import('@pages/sample/ibizbookusr4-grid-view/ibizbookusr4-grid-view.vue'));
Vue.component('ibizorder-sedit-view3', () => import('@pages/sample/ibizorder-sedit-view3/ibizorder-sedit-view3.vue')); Vue.component('ibizorder-sedit-view3', () => import('@pages/sample/ibizorder-sedit-view3/ibizorder-sedit-view3.vue'));
Vue.component('ibizsample0003-sf2-edit-view', () => import('@pages/sample/ibizsample0003-sf2-edit-view/ibizsample0003-sf2-edit-view.vue'));
Vue.component('ibizbookinternal-func-grid-view', () => import('@pages/sample/ibizbookinternal-func-grid-view/ibizbookinternal-func-grid-view.vue')); Vue.component('ibizbookinternal-func-grid-view', () => import('@pages/sample/ibizbookinternal-func-grid-view/ibizbookinternal-func-grid-view.vue'));
Vue.component('ibizsample0003-sf2-edit-view', () => import('@pages/sample/ibizsample0003-sf2-edit-view/ibizsample0003-sf2-edit-view.vue'));
Vue.component('ibizorder-odsp-d10-wfgrid-view', () => import('@pages/sample/ibizorder-odsp-d10-wfgrid-view/ibizorder-odsp-d10-wfgrid-view.vue')); Vue.component('ibizorder-odsp-d10-wfgrid-view', () => import('@pages/sample/ibizorder-odsp-d10-wfgrid-view/ibizorder-odsp-d10-wfgrid-view.vue'));
Vue.component('ibizorder-sf3-grid-view', () => import('@pages/sample/ibizorder-sf3-grid-view/ibizorder-sf3-grid-view.vue')); Vue.component('ibizorder-sf3-grid-view', () => import('@pages/sample/ibizorder-sf3-grid-view/ibizorder-sf3-grid-view.vue'));
Vue.component('ibizstorage-edit-view', () => import('@pages/sample/ibizstorage-edit-view/ibizstorage-edit-view.vue')); Vue.component('ibizstorage-edit-view', () => import('@pages/sample/ibizstorage-edit-view/ibizstorage-edit-view.vue'));
......
...@@ -571,32 +571,32 @@ const router = new Router({ ...@@ -571,32 +571,32 @@ const router = new Router({
component: () => import('@pages/sample/ibizorder-type-pickup-grid-view/ibizorder-type-pickup-grid-view.vue'), component: () => import('@pages/sample/ibizorder-type-pickup-grid-view/ibizorder-type-pickup-grid-view.vue'),
}, },
{ {
path: 'ibizorders/:ibizorder?/seditview2/:seditview2?', path: 'ibizhardwares/:ibizhardware?/editview/:editview?',
meta: { meta: {
caption: 'entities.ibizorder.views.seditview2.caption', caption: 'entities.ibizhardware.views.editview.caption',
info:'', info:'',
parameters: [ parameters: [
{ pathName: 'index', parameterName: 'index' }, { pathName: 'index', parameterName: 'index' },
{ pathName: 'ibizorders', parameterName: 'ibizorder' }, { pathName: 'ibizhardwares', parameterName: 'ibizhardware' },
{ pathName: 'seditview2', parameterName: 'seditview2' }, { pathName: 'editview', parameterName: 'editview' },
], ],
requireAuth: true, requireAuth: true,
}, },
component: () => import('@pages/sample/ibizorder-sedit-view2/ibizorder-sedit-view2.vue'), component: () => import('@pages/sample/ibizhardware-edit-view/ibizhardware-edit-view.vue'),
}, },
{ {
path: 'ibizhardwares/:ibizhardware?/editview/:editview?', path: 'ibizorders/:ibizorder?/seditview2/:seditview2?',
meta: { meta: {
caption: 'entities.ibizhardware.views.editview.caption', caption: 'entities.ibizorder.views.seditview2.caption',
info:'', info:'',
parameters: [ parameters: [
{ pathName: 'index', parameterName: 'index' }, { pathName: 'index', parameterName: 'index' },
{ pathName: 'ibizhardwares', parameterName: 'ibizhardware' }, { pathName: 'ibizorders', parameterName: 'ibizorder' },
{ pathName: 'editview', parameterName: 'editview' }, { pathName: 'seditview2', parameterName: 'seditview2' },
], ],
requireAuth: true, requireAuth: true,
}, },
component: () => import('@pages/sample/ibizhardware-edit-view/ibizhardware-edit-view.vue'), component: () => import('@pages/sample/ibizorder-sedit-view2/ibizorder-sedit-view2.vue'),
}, },
{ {
path: 'ibizsample0017s/:ibizsample0017?/editview/:editview?', path: 'ibizsample0017s/:ibizsample0017?/editview/:editview?',
...@@ -1298,6 +1298,20 @@ const router = new Router({ ...@@ -1298,6 +1298,20 @@ const router = new Router({
}, },
component: () => import('@pages/sample/ibizorder-detail-edit-view/ibizorder-detail-edit-view.vue'), component: () => import('@pages/sample/ibizorder-detail-edit-view/ibizorder-detail-edit-view.vue'),
}, },
{
path: 'ibizbooks/:ibizbook?/listview/:listview?',
meta: {
caption: 'entities.ibizbook.views.listview.caption',
info:'',
parameters: [
{ pathName: 'index', parameterName: 'index' },
{ pathName: 'ibizbooks', parameterName: 'ibizbook' },
{ pathName: 'listview', parameterName: 'listview' },
],
requireAuth: true,
},
component: () => import('@pages/sample/ibizbooklist-view/ibizbooklist-view.vue'),
},
{ {
path: 'ibizsample0017s/:ibizsample0017?/formpickupview/:formpickupview?', path: 'ibizsample0017s/:ibizsample0017?/formpickupview/:formpickupview?',
meta: { meta: {
...@@ -1425,32 +1439,32 @@ const router = new Router({ ...@@ -1425,32 +1439,32 @@ const router = new Router({
component: () => import('@pages/sample/ibizorder-sedit-view3/ibizorder-sedit-view3.vue'), component: () => import('@pages/sample/ibizorder-sedit-view3/ibizorder-sedit-view3.vue'),
}, },
{ {
path: 'ibizsample0003s/:ibizsample0003?/sf2editview/:sf2editview?', path: 'ibizbooks/:ibizbook?/internalfuncgridview/:internalfuncgridview?',
meta: { meta: {
caption: 'entities.ibizsample0003.views.sf2editview.caption', caption: 'entities.ibizbook.views.internalfuncgridview.caption',
info:'', info:'',
parameters: [ parameters: [
{ pathName: 'index', parameterName: 'index' }, { pathName: 'index', parameterName: 'index' },
{ pathName: 'ibizsample0003s', parameterName: 'ibizsample0003' }, { pathName: 'ibizbooks', parameterName: 'ibizbook' },
{ pathName: 'sf2editview', parameterName: 'sf2editview' }, { pathName: 'internalfuncgridview', parameterName: 'internalfuncgridview' },
], ],
requireAuth: true, requireAuth: true,
}, },
component: () => import('@pages/sample/ibizsample0003-sf2-edit-view/ibizsample0003-sf2-edit-view.vue'), component: () => import('@pages/sample/ibizbookinternal-func-grid-view/ibizbookinternal-func-grid-view.vue'),
}, },
{ {
path: 'ibizbooks/:ibizbook?/internalfuncgridview/:internalfuncgridview?', path: 'ibizsample0003s/:ibizsample0003?/sf2editview/:sf2editview?',
meta: { meta: {
caption: 'entities.ibizbook.views.internalfuncgridview.caption', caption: 'entities.ibizsample0003.views.sf2editview.caption',
info:'', info:'',
parameters: [ parameters: [
{ pathName: 'index', parameterName: 'index' }, { pathName: 'index', parameterName: 'index' },
{ pathName: 'ibizbooks', parameterName: 'ibizbook' }, { pathName: 'ibizsample0003s', parameterName: 'ibizsample0003' },
{ pathName: 'internalfuncgridview', parameterName: 'internalfuncgridview' }, { pathName: 'sf2editview', parameterName: 'sf2editview' },
], ],
requireAuth: true, requireAuth: true,
}, },
component: () => import('@pages/sample/ibizbookinternal-func-grid-view/ibizbookinternal-func-grid-view.vue'), component: () => import('@pages/sample/ibizsample0003-sf2-edit-view/ibizsample0003-sf2-edit-view.vue'),
}, },
{ {
path: 'ibizorders/:ibizorder?/odsp_d10_wfgridview/:odsp_d10_wfgridview?', path: 'ibizorders/:ibizorder?/odsp_d10_wfgridview/:odsp_d10_wfgridview?',
...@@ -2926,6 +2940,19 @@ const router = new Router({ ...@@ -2926,6 +2940,19 @@ const router = new Router({
}, },
component: () => import('@pages/sample/ibizorder-f10-edit-view/ibizorder-f10-edit-view.vue'), component: () => import('@pages/sample/ibizorder-f10-edit-view/ibizorder-f10-edit-view.vue'),
}, },
{
path: '/ibizbooks/:ibizbook?/listview/:listview?',
meta: {
caption: 'entities.ibizbook.views.listview.caption',
info:'',
parameters: [
{ pathName: 'ibizbooks', parameterName: 'ibizbook' },
{ pathName: 'listview', parameterName: 'listview' },
],
requireAuth: true,
},
component: () => import('@pages/sample/ibizbooklist-view/ibizbooklist-view.vue'),
},
{ {
path: '/ibizsample0002s/:ibizsample0002?/ibizsample0001s/:ibizsample0001?/sf6editview/:sf6editview?', path: '/ibizsample0002s/:ibizsample0002?/ibizsample0001s/:ibizsample0001?/sf6editview/:sf6editview?',
meta: { meta: {
......
...@@ -189,6 +189,7 @@ export const viewstate: any = { ...@@ -189,6 +189,7 @@ export const viewstate: any = {
'13ed6c02918e612bac45715a6f300f2f', '13ed6c02918e612bac45715a6f300f2f',
'aa68a83577209ff0ec3864aec4e194f2', 'aa68a83577209ff0ec3864aec4e194f2',
'd69d223e4d3aeb8d947ac9b9ddc60a7e', 'd69d223e4d3aeb8d947ac9b9ddc60a7e',
'b038c48269316664e5b48380a879fd99',
'19d36909f837de28880553dc9a190922', '19d36909f837de28880553dc9a190922',
'bc76c982dd2264463427eb57e9ed3fba', 'bc76c982dd2264463427eb57e9ed3fba',
'3ebf0cd640e39a4e7efe30ec1cf32b43', '3ebf0cd640e39a4e7efe30ec1cf32b43',
...@@ -917,6 +918,16 @@ export const viewstate: any = { ...@@ -917,6 +918,16 @@ export const viewstate: any = {
'460fc1d5b6f2e2012b281df34d929f3b', '460fc1d5b6f2e2012b281df34d929f3b',
], ],
}, },
{
viewtag: 'b038c48269316664e5b48380a879fd99',
viewmodule: 'Sample',
viewname: 'IBIZBOOKListView',
viewaction: '',
viewdatachange: false,
refviews: [
'b3429ecc4d89a02bc5f5279f1bd7f620',
],
},
{ {
viewtag: 'b09ceb3081717c0ed4fe19f9986598a0', viewtag: 'b09ceb3081717c0ed4fe19f9986598a0',
viewmodule: 'Sample', viewmodule: 'Sample',
......
...@@ -653,6 +653,9 @@ export default class MainMenuBase extends Vue implements ControlInterface { ...@@ -653,6 +653,9 @@ export default class MainMenuBase extends Vue implements ControlInterface {
case 'Auto338': case 'Auto338':
this.clickAuto338(item); this.clickAuto338(item);
return; return;
case 'AppFunc11':
this.clickAppFunc11(item);
return;
case 'Auto129': case 'Auto129':
this.clickAuto129(item); this.clickAuto129(item);
return; return;
...@@ -1757,6 +1760,29 @@ export default class MainMenuBase extends Vue implements ControlInterface { ...@@ -1757,6 +1760,29 @@ export default class MainMenuBase extends Vue implements ControlInterface {
}) })
} }
/**
* 图书列表视图(内置功能)
*
* @param {*} [item={}]
* @memberof MainMenu
*/
public clickAppFunc11(item: any = {}) {
const viewparam: any = {};
Object.assign(viewparam, {});
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'ibizbooks', parameterName: 'ibizbook' },
{ pathName: 'listview', parameterName: 'listview' },
];
const path: string = this.$viewTool.buildUpRoutePath(this.$route, {}, deResParameters, parameters, [], viewparam);
if(Object.is(this.$route.fullPath,path)){
return;
}
this.$nextTick(function(){
this.$router.push(path);
})
}
/** /**
* 辅助输入提示 * 辅助输入提示
* *
......
...@@ -627,6 +627,25 @@ export default class MainMenuModel { ...@@ -627,6 +627,25 @@ export default class MainMenuModel {
authtag:'Web-MainMenu-menuitem82', authtag:'Web-MainMenu-menuitem82',
}, },
], ],
},
{
id: 'E97FD588-0DFD-4A22-8CB4-EEB1B9A7688F',
name: 'menuitem83',
text: '列表',
type: 'MENUITEM',
counterid: '',
tooltip: '列表',
expanded: false,
separator: false,
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: '',
icon: '',
textcls: '',
appfunctag: 'AppFunc11',
resourcetag: '',
authtag:'Web-MainMenu-menuitem83',
}, },
{ {
id: '534c63277bcefae8821ec042203428c6', id: '534c63277bcefae8821ec042203428c6',
......
/**
* LnternalFuncList 部件模型
*
* @export
* @class LnternalFuncListModel
*/
export default class LnternalFuncListModel {
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof LnternalFuncListListMode
*/
public getDataItems(): any[] {
return [
{
name: 'ibizbookid',
},
{
name: 'author',
},
{
name: 'type',
},
{
name: 'booknumber',
},
{
name: 'press',
},
{
name: 'ibizbookname',
},
{
name: 'price',
},
{
name: 'srfkey',
prop: 'ibizbookid',
dataType: 'GUID',
},
{
name: 'srfmajortext',
prop: 'ibizbookname',
dataType: 'TEXT',
},
{
name: 'ibizbook',
prop: 'ibizbookid',
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 IBIZBOOKService from '@/service/ibizbook/ibizbook-service';
import LnternalFuncListModel from './lnternal-func-list-list-model';
/**
* LnternalFuncList 部件服务对象
*
* @export
* @class LnternalFuncListService
*/
export default class LnternalFuncListService extends ControlService {
/**
* 图书服务对象
*
* @type {IBIZBOOKService}
* @memberof LnternalFuncListService
*/
public appEntityService: IBIZBOOKService = new IBIZBOOKService({ $store: this.getStore() });
/**
* 设置从数据模式
*
* @type {boolean}
* @memberof LnternalFuncListService
*/
public setTempMode(){
this.isTempMode = false;
}
/**
* Creates an instance of LnternalFuncListService.
*
* @param {*} [opts={}]
* @memberof LnternalFuncListService
*/
constructor(opts: any = {}) {
super(opts);
this.model = new LnternalFuncListModel();
}
/**
* 查询数据
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof LnternalFuncListService
*/
@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 LnternalFuncListService
*/
@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 LnternalFuncListService
*/
@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 LnternalFuncListService
*/
@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;
}
.app-list-item {
line-height: 34px;
border-radius:5px;
padding: 6px;
margin: 6px;
box-shadow: 0px 0px 2px 1px rgb(209, 208, 208);
background: #f7f7fa;
min-height: 24px;
display: flex;
justify-content: space-between;
align-items: center;
}
.app-list-item.isSelect {
background: #ecf5ff;
border-left: 5px solid #2d8cf0;
box-shadow: 0px 0px 3px 1px #82bff7;
}
.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 LnternalFuncListBase from './lnternal-func-list-list-base.vue';
@Component({
components: {
}
})
export default class LnternalFuncList extends LnternalFuncListBase {
}
</script>
\ No newline at end of file
...@@ -302,7 +302,7 @@ ...@@ -302,7 +302,7 @@
{ {
"appid":"Web", "appid":"Web",
"appname":"演示应用", "appname":"演示应用",
"appmenu":[{"menuid":"MainMenu", "menuname":"MainMenu", "menuitem":[{ "id":"menuitem1" , "name":"工作台" },{ "id":"menuitem3" , "name":"控件" , "items":[{ "id":"menuitem6" , "name":"默认数据类型" },{ "id":"menuitem7" , "name":"默认编辑器类型" },{ "id":"menuitem15" , "name":"基础表单项" },{ "id":"menuitem72" , "name":"编辑器扩展" }]},{ "id":"menuitem4" , "name":"部件" , "items":[{ "id":"menuitem12" , "name":"编辑表单" , "items":[{ "id":"menuitem47" , "name":"默认值" },{ "id":"menuitem48" , "name":"输入提示" },{ "id":"menuitem49" , "name":"辅助输入" },{ "id":"menuitem50" , "name":"自动填充" },{ "id":"menuitem51" , "name":"超链接" },{ "id":"menuitem52" , "name":"值重置" },{ "id":"menuitem55" , "name":"动态显示" },{ "id":"menuitem53" , "name":"动态启用" },{ "id":"menuitem54" , "name":"动态空输入" },{ "id":"menuitem56" , "name":"表单项更新" }]},{ "id":"menuitem16" , "name":"搜索表单" },{ "id":"menuitem13" , "name":"表格" , "items":[{ "id":"menuitem57" , "name":"禁用排序" },{ "id":"menuitem59" , "name":"行操作" },{ "id":"menuitem58" , "name":"行编辑" },{ "id":"menuitem73" , "name":"表格内置功能" },{ "id":"menuitem74" , "name":"行编辑" },{ "id":"menuitem75" , "name":"新建默认值" },{ "id":"menuitem76" , "name":"更新默认值" },{ "id":"menuitem77" , "name":"表格值规则" },{ "id":"menuitem78" , "name":"自动分组" },{ "id":"menuitem80" , "name":"代码表分组" },{ "id":"menuitem81" , "name":"当前页聚合" },{ "id":"menuitem82" , "name":"远程聚合" }]},{ "id":"menuitem14" , "name":"树视图" , "items":[{ "id":"menuitem60" , "name":"静态节点" },{ "id":"menuitem61" , "name":"动态节点(代码表)" },{ "id":"menuitem62" , "name":"动态节点(实体)" },{ "id":"menuitem63" , "name":"右键操作" },{ "id":"menuitem64" , "name":"动态参数过滤" }]},{ "id":"menuitem37" , "name":"图表" , "items":[{ "id":"menuitem38" , "name":"柱状图" },{ "id":"menuitem39" , "name":"折线图" },{ "id":"menuitem40" , "name":"饼图" },{ "id":"menuitem41" , "name":"区域图" },{ "id":"menuitem42" , "name":"雷达图" },{ "id":"menuitem43" , "name":"仪表盘" },{ "id":"menuitem44" , "name":"K线图" }]},{ "id":"menuitem17" , "name":"向导" },{ "id":"menuitem18" , "name":"界面行为" , "items":[{ "id":"menuitem65" , "name":"前端界面行为" },{ "id":"menuitem66" , "name":"后台界面行为" }]}]},{ "id":"menuitem5" , "name":"视图" , "items":[{ "id":"menuitem9" , "name":"列表视图" , "items":[{ "id":"menuitem19" , "name":"常规表格视图" },{ "id":"menuitem21" , "name":"左右表格视图" },{ "id":"menuitem20" , "name":"嵌入表格视图" }]},{ "id":"menuitem8" , "name":"编辑视图" , "items":[{ "id":"menuitem22" , "name":"常规编辑视图" },{ "id":"menuitem23" , "name":"左右编辑视图" },{ "id":"menuitem24" , "name":"分页编辑视图" },{ "id":"menuitem25" , "name":"嵌入编辑视图" }]},{ "id":"menuitem26" , "name":"选择视图" , "items":[{ "id":"menuitem27" , "name":"单选视图" },{ "id":"menuitem28" , "name":"多选视图" },{ "id":"menuitem29" , "name":"树形选择视图" },{ "id":"menuitem30" , "name":"左右单选视图" },{ "id":"menuitem31" , "name":"左右多选视图" }]},{ "id":"menuitem10" , "name":"导航视图" , "items":[{ "id":"menuitem32" , "name":"常规导航视图" },{ "id":"menuitem33" , "name":"分页导航视图" },{ "id":"menuitem34" , "name":"嵌入导航视图" }]},{ "id":"menuitem11" , "name":"其他视图" , "items":[{ "id":"menuitem35" , "name":"图表视图" },{ "id":"menuitem36" , "name":"报表视图" }]},{ "id":"menuitem79" , "name":"表格视图" }]},{ "id":"menuitem69" , "name":"工作流" },{ "id":"menuitem2" , "name":"更多" , "items":[{ "id":"menuitem46" , "name":"数据导出导入" },{ "id":"menuitem45" , "name":"数据打印" },{ "id":"menuitem67" , "name":"索引实体" },{ "id":"menuitem68" , "name":"继承实体" },{ "id":"menuitem70" , "name":"主状态" },{ "id":"menuitem71" , "name":"多表单" }]}] }] "appmenu":[{"menuid":"MainMenu", "menuname":"MainMenu", "menuitem":[{ "id":"menuitem1" , "name":"工作台" },{ "id":"menuitem3" , "name":"控件" , "items":[{ "id":"menuitem6" , "name":"默认数据类型" },{ "id":"menuitem7" , "name":"默认编辑器类型" },{ "id":"menuitem15" , "name":"基础表单项" },{ "id":"menuitem72" , "name":"编辑器扩展" }]},{ "id":"menuitem4" , "name":"部件" , "items":[{ "id":"menuitem12" , "name":"编辑表单" , "items":[{ "id":"menuitem47" , "name":"默认值" },{ "id":"menuitem48" , "name":"输入提示" },{ "id":"menuitem49" , "name":"辅助输入" },{ "id":"menuitem50" , "name":"自动填充" },{ "id":"menuitem51" , "name":"超链接" },{ "id":"menuitem52" , "name":"值重置" },{ "id":"menuitem55" , "name":"动态显示" },{ "id":"menuitem53" , "name":"动态启用" },{ "id":"menuitem54" , "name":"动态空输入" },{ "id":"menuitem56" , "name":"表单项更新" }]},{ "id":"menuitem16" , "name":"搜索表单" },{ "id":"menuitem13" , "name":"表格" , "items":[{ "id":"menuitem57" , "name":"禁用排序" },{ "id":"menuitem59" , "name":"行操作" },{ "id":"menuitem58" , "name":"行编辑" },{ "id":"menuitem73" , "name":"表格内置功能" },{ "id":"menuitem74" , "name":"行编辑" },{ "id":"menuitem75" , "name":"新建默认值" },{ "id":"menuitem76" , "name":"更新默认值" },{ "id":"menuitem77" , "name":"表格值规则" },{ "id":"menuitem78" , "name":"自动分组" },{ "id":"menuitem80" , "name":"代码表分组" },{ "id":"menuitem81" , "name":"当前页聚合" },{ "id":"menuitem82" , "name":"远程聚合" }]},{ "id":"menuitem83" , "name":"列表" },{ "id":"menuitem14" , "name":"树视图" , "items":[{ "id":"menuitem60" , "name":"静态节点" },{ "id":"menuitem61" , "name":"动态节点(代码表)" },{ "id":"menuitem62" , "name":"动态节点(实体)" },{ "id":"menuitem63" , "name":"右键操作" },{ "id":"menuitem64" , "name":"动态参数过滤" }]},{ "id":"menuitem37" , "name":"图表" , "items":[{ "id":"menuitem38" , "name":"柱状图" },{ "id":"menuitem39" , "name":"折线图" },{ "id":"menuitem40" , "name":"饼图" },{ "id":"menuitem41" , "name":"区域图" },{ "id":"menuitem42" , "name":"雷达图" },{ "id":"menuitem43" , "name":"仪表盘" },{ "id":"menuitem44" , "name":"K线图" }]},{ "id":"menuitem17" , "name":"向导" },{ "id":"menuitem18" , "name":"界面行为" , "items":[{ "id":"menuitem65" , "name":"前端界面行为" },{ "id":"menuitem66" , "name":"后台界面行为" }]}]},{ "id":"menuitem5" , "name":"视图" , "items":[{ "id":"menuitem9" , "name":"列表视图" , "items":[{ "id":"menuitem19" , "name":"常规表格视图" },{ "id":"menuitem21" , "name":"左右表格视图" },{ "id":"menuitem20" , "name":"嵌入表格视图" }]},{ "id":"menuitem8" , "name":"编辑视图" , "items":[{ "id":"menuitem22" , "name":"常规编辑视图" },{ "id":"menuitem23" , "name":"左右编辑视图" },{ "id":"menuitem24" , "name":"分页编辑视图" },{ "id":"menuitem25" , "name":"嵌入编辑视图" }]},{ "id":"menuitem26" , "name":"选择视图" , "items":[{ "id":"menuitem27" , "name":"单选视图" },{ "id":"menuitem28" , "name":"多选视图" },{ "id":"menuitem29" , "name":"树形选择视图" },{ "id":"menuitem30" , "name":"左右单选视图" },{ "id":"menuitem31" , "name":"左右多选视图" }]},{ "id":"menuitem10" , "name":"导航视图" , "items":[{ "id":"menuitem32" , "name":"常规导航视图" },{ "id":"menuitem33" , "name":"分页导航视图" },{ "id":"menuitem34" , "name":"嵌入导航视图" }]},{ "id":"menuitem11" , "name":"其他视图" , "items":[{ "id":"menuitem35" , "name":"图表视图" },{ "id":"menuitem36" , "name":"报表视图" }]},{ "id":"menuitem79" , "name":"表格视图" }]},{ "id":"menuitem69" , "name":"工作流" },{ "id":"menuitem2" , "name":"更多" , "items":[{ "id":"menuitem46" , "name":"数据导出导入" },{ "id":"menuitem45" , "name":"数据打印" },{ "id":"menuitem67" , "name":"索引实体" },{ "id":"menuitem68" , "name":"继承实体" },{ "id":"menuitem70" , "name":"主状态" },{ "id":"menuitem71" , "name":"多表单" }]}] }]
} }
] ]
} }
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册