sdindex-view-appmenu-model.ts 2.4 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
/**
 * SDIndexView 部件模型
 *
 * @export
 * @class SDIndexViewModel
 */
export default class SDIndexViewModel {

    /**
     * 菜单项集合
     *
     * @public
     * @type {any[]}
     * @memberof SDIndexViewModel
     */
    public items: any[] = [
        {
18
	id: '541951a398d53d906d35436fcb39a9f3',
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
	name: 'menuitem1',
	text: '文件',
	type: 'MENUITEM',
	counterid: '',
	tooltip: '文件',
	expanded: false,
	separator: false,
	hidden: false,
	hidesidebar: false,
	opendefault: false,
	iconcls: '',
	icon: '',
	textcls: '',
	appfunctag: 'Auto1',
	resourcetag: '',
	authtag:'web-SDIndexView-menuitem1',
35 36
},
        {
37
	id: '1d2cb876f234f9a7ecef37a9b70dd824',
38 39 40 41 42 43 44 45 46 47 48 49 50
	name: 'menuitem2',
	text: '动态模型',
	type: 'MENUITEM',
	counterid: '',
	tooltip: '动态模型',
	expanded: false,
	separator: false,
	hidden: false,
	hidesidebar: false,
	opendefault: false,
	iconcls: '',
	icon: '',
	textcls: '',
51
	appfunctag: 'AppFunc2',
52 53
	resourcetag: '',
	authtag:'web-SDIndexView-menuitem2',
54 55 56 57 58 59 60 61 62 63 64
},
    ];

	/**
	 * 应用功能集合
	 *
	 * @public
	 * @type {any[]}
	 * @memberof SDIndexViewModel
	 */
	public funcs: any[] = [
65
        {
66
            appfunctag: 'AppFunc2',
67 68
            appfuncyype: 'APPVIEW',
            openmode: '',
69
            codename: 'metadynamicmodeldynainstgridview',
70
            deResParameters: [],
71
            routepath: '/sdindexview/:sdindexview?/metadynamicmodels/:metadynamicmodel?/dynainstgridview/:dynainstgridview?',
72 73
            parameters: [
                { pathName: 'metadynamicmodels', parameterName: 'metadynamicmodel' },
74
                { pathName: 'dynainstgridview', parameterName: 'dynainstgridview' },
75 76
            ],
        },
77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110
        {
            appfunctag: 'Auto1',
            appfuncyype: 'APPVIEW',
            openmode: '',
            codename: 'sdfilegridview',
            deResParameters: [],
            routepath: '/sdindexview/:sdindexview?/sdfiles/:sdfile?/gridview/:gridview?',
            parameters: [
                { pathName: 'sdfiles', parameterName: 'sdfile' },
                { pathName: 'gridview', parameterName: 'gridview' },
            ],
        },
	];

    /**
     * 获取所有菜单项集合
     *
     * @returns {any[]}
     * @memberof SDIndexViewModel
     */
    public getAppMenuItems(): any[] {
        return this.items;
    }

    /**
     * 获取所有应用功能集合
     *
     * @returns {any[]}
     * @memberof SDIndexViewModel
     */
    public getAppFuncs(): any[] {
        return this.funcs;
    }
}