CN108776609A - A kind of method, apparatus, computer storage media and the terminal of management navigation menu - Google Patents

A kind of method, apparatus, computer storage media and the terminal of management navigation menu Download PDF

Info

Publication number
CN108776609A
CN108776609A CN201810676592.7A CN201810676592A CN108776609A CN 108776609 A CN108776609 A CN 108776609A CN 201810676592 A CN201810676592 A CN 201810676592A CN 108776609 A CN108776609 A CN 108776609A
Authority
CN
China
Prior art keywords
navigation menu
permission
routed path
menu
routing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810676592.7A
Other languages
Chinese (zh)
Inventor
杨浩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201810676592.7A priority Critical patent/CN108776609A/en
Publication of CN108776609A publication Critical patent/CN108776609A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Abstract

A kind of method, apparatus, computer storage media and the terminal of management navigation menu, including:Establish the mapping relations of the routed path of navigation menu, navigation menu permission and navigation menu;When determining that navigation menu has permission according to navigation menu permission, the routed path of navigation menu is registered to routing according to the mapping relations of foundation.The embodiment of the present invention simplifies complexity when carrying out permission modification, improves the efficiency of navigation menu management.

Description

A kind of method, apparatus, computer storage media and the terminal of management navigation menu
Technical field
Present document relates to but be not limited to cloud, espespecially a kind of management method, apparatus of navigation menu, computer storage media And terminal.
Background technology
Possess a large amount of function menu in cloud platform, system is needed through user role come dynamic control user right.This The relationship of a little menus and permission is individually safeguarded by front-end code and backstage code at present, and the later stage carries out permission if necessary When modification, needs not only to change backstage code but also change front-end code, complex disposal process and less efficient;In addition, before and after carrying out When the exploitation of platform separation, efficiency is often relatively low.
Invention content
It is the general introduction of the theme to being described in detail herein below.This general introduction is not to limit the protection model of claim It encloses.
The embodiment of the present invention provides a kind of method, apparatus, computer storage media and the terminal of management navigation menu, can Simplify complexity when carrying out permission modification, promotes the efficiency of navigation menu management.
An embodiment of the present invention provides a kind of methods of management navigation menu, including:
Establish the mapping relations of the routed path of navigation menu, navigation menu permission and navigation menu;
When determining that navigation menu has permission according to navigation menu permission, according to the mapping relations of foundation by navigation menu Routed path is registered to routing.
Optionally, the mapping relations packet of the routed path for establishing navigation menu, navigation menu permission and navigation menu It includes:
According to the routed path information of the identity information of navigation menu, navigation menu permission and navigation menu, preset In database, the mapping relations are established;
Wherein, the identity information includes following one or more kinds of information:Unique identity, Chinese, English Literary fame claims;Navigation menu permission includes:Whether navigation menu has the information of permission.
Optionally, described that the routed path of navigation menu is registered to routing, including:
It is route Router based on Vue-, the routed path for the navigation menu having permission is registered in routing.
Optionally, it is described the routed path of navigation menu is registered to routing before, the method further includes:
The navigation menu that will be provided with permission adds according to preset strategy and is loaded into hypertext markup language HTML.
On the other hand, the embodiment of the present invention also provides a kind of device of management navigation menu, including:Map unit and registration Unit;Wherein,
Map unit is used for:Establish the mapping relations of the routed path of navigation menu, navigation menu permission and navigation menu;
Registering unit is used for:When determining that navigation menu has permission according to navigation menu permission, closed according to the mapping of foundation The routed path of navigation menu is registered to routing by system.
Optionally, the map unit is specifically used for:
According to the routed path information of the identity information of navigation menu, navigation menu permission and navigation menu, preset In database, the mapping relations are established;
Wherein, the identity information includes following one or more kinds of information:Unique identity, Chinese, English Literary fame claims;Navigation menu permission includes:Whether navigation menu has the information of permission.
Optionally, the registering unit is used to the routed path of navigation menu being registered to routing, including:
It is route Router based on Vue-, the routed path for the navigation menu having permission is registered in routing.
Optionally, described device further includes adding device, is used for:
The navigation menu that will be provided with permission adds according to preset strategy and is loaded into hypertext markup language HTML.
In another aspect, the embodiment of the present invention also provides a kind of computer storage media, deposited in the computer storage media Contain computer executable instructions, the method that the computer executable instructions are used to execute above-mentioned management navigation menu.
Further aspect, the embodiment of the present invention also provide a kind of terminal, including:Memory and processor;Wherein,
Processor is configured as executing the program instruction in memory;
Program instruction reads in processor and executes following operation:
Establish the mapping relations of the routed path of navigation menu, navigation menu permission and navigation menu;
When determining that navigation menu has permission according to navigation menu permission, according to the mapping relations of foundation by navigation menu Routed path is registered to routing.
Compared with the relevant technologies, technical scheme includes:Establish navigation menu, navigation menu permission and navigation menu Routed path mapping relations;When determining that navigation menu has permission according to navigation menu permission, closed according to the mapping of foundation The routed path of navigation menu is registered to routing by system.The embodiment of the present invention simplifies complexity when carrying out permission modification, carries The efficiency of navigation menu management is risen.
Other features and advantages of the present invention will be illustrated in the following description, also, partly becomes from specification It obtains it is clear that understand through the implementation of the invention.The purpose of the present invention and other advantages can be by specification, rights Specifically noted structure is realized and is obtained in claim and attached drawing.
Description of the drawings
Attached drawing is used for providing further understanding technical solution of the present invention, and a part for constitution instruction, with this The embodiment of application technical solution for explaining the present invention together, does not constitute the limitation to technical solution of the present invention.
Fig. 1 is the flow chart for the method that the embodiment of the present invention manages navigation menu;
Fig. 2 is the structure diagram for the device that the embodiment of the present invention manages navigation menu.
Specific implementation mode
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with attached drawing to the present invention Embodiment be described in detail.It should be noted that in the absence of conflict, in the embodiment and embodiment in the application Feature mutually can arbitrarily combine.
Step shown in the flowchart of the accompanying drawings can be in the computer system of such as a group of computer-executable instructions It executes.Also, although logical order is shown in flow charts, and it in some cases, can be with suitable different from herein Sequence executes shown or described step.
Fig. 1 is the flow chart for the method that the embodiment of the present invention manages navigation menu, as shown in Figure 1, including:
Step 101, establish navigation menu, navigation menu permission and navigation menu routed path mapping relations;
Optionally, the embodiment of the present invention establishes reflecting for the routed path of navigation menu, navigation menu permission and navigation menu The relationship of penetrating includes:
According to the routed path information of the identity information of navigation menu, navigation menu permission and navigation menu, preset In database, the mapping relations are established;
Wherein, the identity information includes following one or more kinds of information:Unique identity, Chinese, English Literary fame claims;Navigation menu permission includes:Whether navigation menu has the information of permission.
Step 102 when determining that navigation menu has permission according to navigation menu permission, will be led according to the mapping relations of foundation The routed path of boat menu is registered to routing.
Optionally, the routed path of navigation menu is registered to routing by the embodiment of the present invention, including:
It is route Router based on Vue-, the routed path for the navigation menu having permission is registered in routing.Here, Vue It is a set of gradual frame for building user interface.Unlike other large-scale frames, Vue is designed to the bottom of from It successively applies upwards.The core library of Vue only focuses on view layer, is not only easy to left-hand seat, is also convenient for and third party library or existing project It integrates.On the other hand, when being used in combination with the tools chain of modernization and various support class libraries, Vue is also fully able to be multiple Miscellaneous single page application provides driving.
Optionally, it is described the routed path of navigation menu is registered to routing before, present invention method further includes:
The navigation menu that will be provided with permission, adds according to preset strategy and is loaded into hypertext markup language (HTML)。
Compared with the relevant technologies, technical scheme includes:Establish navigation menu, navigation menu permission and navigation menu Routed path mapping relations;When determining that navigation menu has permission according to navigation menu permission, closed according to the mapping of foundation The routed path of navigation menu is registered to routing by system.The embodiment of the present invention simplifies complexity when carrying out permission modification, carries The efficiency of navigation menu management is risen.
Fig. 2 is the structure diagram for the device that the embodiment of the present invention manages navigation menu, as shown in Fig. 2, including:Map unit And registering unit;Wherein,
Map unit is used for:Establish the mapping relations of the routed path of navigation menu, navigation menu permission and navigation menu;
Optionally, map unit of the embodiment of the present invention is specifically used for:
According to the routed path information of the identity information of navigation menu, navigation menu permission and navigation menu, preset In database, the mapping relations are established;
Wherein, the identity information includes following one or more kinds of information:Unique identity, Chinese, English Literary fame claims;Navigation menu permission includes:Whether navigation menu has the information of permission.
Registering unit is used for:When determining that navigation menu has permission according to navigation menu permission, closed according to the mapping of foundation The routed path of navigation menu is registered to routing by system.
Optionally, registering unit of the embodiment of the present invention is used to the routed path of navigation menu being registered to routing, including:
It is route Router based on Vue-, the routed path for the navigation menu having permission is registered in routing.
Optionally, described device further includes adding device, is used for:
The navigation menu that will be provided with permission adds according to preset strategy and is loaded into hypertext markup language HTML.
The embodiment of the present invention also provides a kind of computer storage media, and computer is stored in the computer storage media Executable instruction, the method that the computer executable instructions are used to execute above-mentioned management navigation menu.
The embodiment of the present invention also provides a kind of terminal, including:Memory and processor;Wherein,
Processor is configured as executing the program instruction in memory;
Program instruction reads in processor and executes following operation:
Establish the mapping relations of the routed path of navigation menu, navigation menu permission and navigation menu;
When determining that navigation menu has permission according to navigation menu permission, according to the mapping relations of foundation by navigation menu Routed path is registered to routing.
Present invention method is carried out to understand detailed description below by way of using example, is only used for using example old The present invention is stated, is not intended to limit the scope of protection of the present invention.
Using example
Present invention application example establishes navigation menu object (navigation menu), permission object (navigation in background data base Menu permission), the mapping relations of routed path object (routed path of navigation menu);The dynamic rendering program of foreground menu; It route the program of dynamic registration;Processing procedure includes:
Mapping relations are preset to number by the mapping relations for 1, creating navigation menu object, permission object, routed path object According in library (such as in mysql databases);Database field may include:Data identity (ID), menu in Chinese title (menuName_cn) and/or English name (menuName_en), (jurisdiction), routed path whether are had permission (routerPath)
2, foreground by call back office interface, the navigation menu object got from database and with menu object phase Associated permission object and routed path object.The navigation menu for having permission is read, will be provided with permission passes through js (a kind of literal translation formula scripts of JavaScript are a kind of regime type, weak type, the language based on prototype, built-in support class Type.) after code adds (append) to html successively, be loaded into html;It will be provided with according to the logon mode of Vue-Router The corresponding routed path of navigation menu of permission is registered in routing
The navigation menu having permission is by present invention application example by the method for js codes successively append to html The processing method of state;Foreground gets navigation menu object, and navigation menu object is associated with routed path, register routing when The dynamic routed path that will be provided with permission is waited to be registered;
Present invention application example make cloud platform manage navigation menu, permission and route registration when it is more convenient, easily In later management service, efficiency is improved, reduces cost;Menu can be dynamically rendered according to mapping relations, is realized dynamic Route registration.
One of ordinary skill in the art will appreciate that all or part of step in the above method can be instructed by program Related hardware (such as processor) is completed, and described program can be stored in computer readable storage medium, as read-only memory, Disk or CD etc..Optionally, all or part of step of above-described embodiment can also be come using one or more integrated circuits It realizes.Correspondingly, the form realization of hardware may be used in each module/unit in above-described embodiment, such as passes through integrated electricity Its corresponding function is realized on road, can also be realized in the form of software function module, such as is stored in by processor execution Program/instruction in memory realizes its corresponding function.The present invention is not limited to the hardware and softwares of any particular form In conjunction with.
Although disclosed herein embodiment it is as above, the content only for ease of understanding the present invention and use Embodiment is not limited to the present invention.Technical staff in any fields of the present invention is taken off not departing from the present invention Under the premise of the spirit and scope of dew, any modification and variation, but the present invention can be carried out in the form and details of implementation Scope of patent protection, still should be subject to the scope of the claims as defined in the appended claims.

Claims (10)

1. a kind of method of management navigation menu, which is characterized in that including:
Establish the mapping relations of the routed path of navigation menu, navigation menu permission and navigation menu;
When determining that navigation menu has permission according to navigation menu permission, according to the mapping relations of foundation by the routing of navigation menu Path registration to routing.
2. according to the method described in claim 1, it is characterized in that, described establish navigation menu, navigation menu permission and navigation The mapping relations of the routed path of menu include:
According to the routed path information of the identity information of navigation menu, navigation menu permission and navigation menu, in preset data In library, the mapping relations are established;
Wherein, the identity information includes following one or more kinds of information:Unique identity, Chinese, English name Claim;Navigation menu permission includes:Whether navigation menu has the information of permission.
3. according to the method described in claim 1, it is characterized in that, described be registered to routing by the routed path of navigation menu, Including:
It is route Router based on Vue-, the routed path for the navigation menu having permission is registered in routing.
4. described that the routed path of navigation menu is registered to routing according to claims 1 to 3 any one of them method Before, the method further includes:
The navigation menu that will be provided with permission adds according to preset strategy and is loaded into hypertext markup language HTML.
5. a kind of device of management navigation menu, which is characterized in that including:Map unit and registering unit;Wherein,
Map unit is used for:Establish the mapping relations of the routed path of navigation menu, navigation menu permission and navigation menu;
Registering unit is used for:It, will according to the mapping relations of foundation when determining that navigation menu has permission according to navigation menu permission The routed path of navigation menu is registered to routing.
6. device according to claim 5, which is characterized in that the map unit is specifically used for:
According to the routed path information of the identity information of navigation menu, navigation menu permission and navigation menu, in preset data In library, the mapping relations are established;
Wherein, the identity information includes following one or more kinds of information:Unique identity, Chinese, English name Claim;Navigation menu permission includes:Whether navigation menu has the information of permission.
7. device according to claim 5, which is characterized in that the registering unit is used for the routed path of navigation menu It is registered to routing, including:
It is route Router based on Vue-, the routed path for the navigation menu having permission is registered in routing.
8. according to claim 5~7 any one of them device, described device further includes adding device, is used for:
The navigation menu that will be provided with permission adds according to preset strategy and is loaded into hypertext markup language HTML.
9. a kind of computer storage media, computer executable instructions, the calculating are stored in the computer storage media The method that machine executable instruction requires the management navigation menu described in any one of 1~4 for perform claim.
10. a kind of terminal, including:Memory and processor;Wherein,
Processor is configured as executing the program instruction in memory;
Program instruction reads in processor and executes following operation:
Establish the mapping relations of the routed path of navigation menu, navigation menu permission and navigation menu;
When determining that navigation menu has permission according to navigation menu permission, according to the mapping relations of foundation by the routing of navigation menu Path registration to routing.
CN201810676592.7A 2018-06-27 2018-06-27 A kind of method, apparatus, computer storage media and the terminal of management navigation menu Pending CN108776609A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810676592.7A CN108776609A (en) 2018-06-27 2018-06-27 A kind of method, apparatus, computer storage media and the terminal of management navigation menu

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810676592.7A CN108776609A (en) 2018-06-27 2018-06-27 A kind of method, apparatus, computer storage media and the terminal of management navigation menu

Publications (1)

Publication Number Publication Date
CN108776609A true CN108776609A (en) 2018-11-09

Family

ID=64030343

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810676592.7A Pending CN108776609A (en) 2018-06-27 2018-06-27 A kind of method, apparatus, computer storage media and the terminal of management navigation menu

Country Status (1)

Country Link
CN (1) CN108776609A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109740379A (en) * 2019-01-03 2019-05-10 山东浪潮通软信息科技有限公司 A kind of front end authority control method
CN109784033A (en) * 2018-12-13 2019-05-21 平安科技(深圳)有限公司 Operating right Dynamic Configuration and relevant device based on page menus
CN109885226A (en) * 2019-02-21 2019-06-14 山东浪潮云信息技术有限公司 A method of secondary navigation menu is realized based on Vue.js
CN110515683A (en) * 2019-07-15 2019-11-29 平安普惠企业管理有限公司 A kind of method, apparatus and storage medium of front end Vue page visual configuration
CN111949899A (en) * 2019-05-16 2020-11-17 新奥数能科技有限公司 Service integration method and service platform

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101044473A (en) * 2004-08-19 2007-09-26 Sk电信有限公司 Managing method and apparatus for servicing contents provided by content provider
CN101763266A (en) * 2010-01-13 2010-06-30 上海动量软件技术有限公司 Platform system and method for realizing cloud component deployment and configuration of computer software system
CN102436473A (en) * 2011-09-29 2012-05-02 用友软件股份有限公司 Menu management device and menu management method
CN105574043A (en) * 2014-10-17 2016-05-11 中国移动通信集团公司 Processing method and apparatus for front-end page of Web application
CN105930330A (en) * 2015-12-28 2016-09-07 中国银联股份有限公司 Portal system page display method and apparatus
CN106598591A (en) * 2016-12-12 2017-04-26 深圳竹信科技有限公司 Webpage dynamic menu generation method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101044473A (en) * 2004-08-19 2007-09-26 Sk电信有限公司 Managing method and apparatus for servicing contents provided by content provider
CN101763266A (en) * 2010-01-13 2010-06-30 上海动量软件技术有限公司 Platform system and method for realizing cloud component deployment and configuration of computer software system
CN102436473A (en) * 2011-09-29 2012-05-02 用友软件股份有限公司 Menu management device and menu management method
CN105574043A (en) * 2014-10-17 2016-05-11 中国移动通信集团公司 Processing method and apparatus for front-end page of Web application
CN105930330A (en) * 2015-12-28 2016-09-07 中国银联股份有限公司 Portal system page display method and apparatus
CN106598591A (en) * 2016-12-12 2017-04-26 深圳竹信科技有限公司 Webpage dynamic menu generation method and device

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109784033A (en) * 2018-12-13 2019-05-21 平安科技(深圳)有限公司 Operating right Dynamic Configuration and relevant device based on page menus
CN109740379A (en) * 2019-01-03 2019-05-10 山东浪潮通软信息科技有限公司 A kind of front end authority control method
CN109885226A (en) * 2019-02-21 2019-06-14 山东浪潮云信息技术有限公司 A method of secondary navigation menu is realized based on Vue.js
CN109885226B (en) * 2019-02-21 2021-06-11 浪潮云信息技术股份公司 Method for realizing secondary navigation menu based on Vue
CN111949899A (en) * 2019-05-16 2020-11-17 新奥数能科技有限公司 Service integration method and service platform
CN111949899B (en) * 2019-05-16 2024-03-08 新奥数能科技有限公司 Service integration method and service platform
CN110515683A (en) * 2019-07-15 2019-11-29 平安普惠企业管理有限公司 A kind of method, apparatus and storage medium of front end Vue page visual configuration
CN110515683B (en) * 2019-07-15 2022-12-13 平安普惠企业管理有限公司 Method and device for visual configuration of front-end Vue page and storage medium

Similar Documents

Publication Publication Date Title
CN108776609A (en) A kind of method, apparatus, computer storage media and the terminal of management navigation menu
FI118311B (en) Procedure, data processing apparatus, computer software product and arrangements for processing electronic data
CN110968325B (en) Applet conversion method and device
CN104484216B (en) Service interface document and on-line testing instrument generation method, device
US8635548B2 (en) Configuring a page for drag and drop arrangement of content artifacts in a page development tool
CN106293677B (en) A kind of code conversion method and device
CN109947433A (en) A kind of generation method of small routine, update method and device
CN103853535B (en) The method and apparatus for changing middleware
WO2015147656A2 (en) Automatic process and system for software development kit for application programming interface
CN109634588A (en) A kind of Office online file editing method and system being compatible with more browsers
US20100138477A1 (en) Crunching Dynamically Generated Script Files
CN112560100B (en) Data desensitizing method and device, computer readable storage medium and electronic equipment
CN102346780B (en) The acquisition methods of web page address and acquisition device
CN113126990B (en) Page development method, device, equipment and storage medium
CN106354483A (en) Data processing method and devices and electric equipment thereof
CN112733158A (en) Android system vulnerability detection method, electronic equipment and storage medium
CN110990001A (en) IVR (Interactive Voice response) process execution method and device
KR101552914B1 (en) Web server application framework web application processing method using the framework and computer readable medium processing the method
CN111414168B (en) Web application development method and device based on mind map and electronic equipment
CN109344412A (en) A kind of language transfer method, device, equipment and storage medium
KR101154717B1 (en) A method and apparatus for managing multiple languages in a data language
CN116107543A (en) Project changing method and device based on VUE engineering code project
CN109408057A (en) Method, apparatus, medium and the calculating equipment of automatic code generating
US7266814B2 (en) Namespace based function invocation
CN107423096A (en) A kind of method and device for realizing software installation

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20181109