CN102866895A - Method for quickly positioning function customizing entrance - Google Patents
Method for quickly positioning function customizing entrance Download PDFInfo
- Publication number
- CN102866895A CN102866895A CN2012103704943A CN201210370494A CN102866895A CN 102866895 A CN102866895 A CN 102866895A CN 2012103704943 A CN2012103704943 A CN 2012103704943A CN 201210370494 A CN201210370494 A CN 201210370494A CN 102866895 A CN102866895 A CN 102866895A
- Authority
- CN
- China
- Prior art keywords
- function
- item
- user
- customized
- items
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 55
- 230000001960 triggered effect Effects 0.000 claims description 3
- 238000010586 diagram Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000001914 filtration Methods 0.000 description 1
- 238000002955 isolation Methods 0.000 description 1
Images
Landscapes
- User Interface Of Digital Computer (AREA)
Abstract
本发明涉及云计算技术领域,特别是一种快速定位功能定制入口的方法。本发明首先通过功能名称集中管理,并通过功能名称关联权限控制,预定义可用于定制的功能项,终端用户从其有权限的项中选择并定制快速入口功能项,达到快速实现功能的目的;页面代码分散定义功能模块并关联到快速入口功能集合中,并且页面依据功能名称展示图标,当用户点击触发时搜索快速入口功能集合找到关联的功能模块并调用,最终实现快速定位的目标。本发明解决了由于系统功能太多而造成用户不知道如何找到功能的问题,并满足不同业务需求的用户定制不同的快捷功能项。可以应用于功能定制入口的快速定位。
The invention relates to the technical field of cloud computing, in particular to a method for rapidly locating function customization entrances. In the present invention, firstly, through the centralized management of the function name, and through the function name association authority control, the function items that can be used for customization are predefined, and the terminal user selects and customizes the quick entry function item from the items with authority, so as to achieve the purpose of quickly realizing the function; The page code disperses the definition of function modules and associates them with the quick entry function set, and the page displays icons according to the function name. When the user clicks on the trigger, the quick entry function set is searched to find the associated function module and invoked, and finally achieves the goal of quick positioning. The invention solves the problem that users do not know how to find the functions due to too many system functions, and customizes different shortcut function items for users with different business needs. It can be applied to the quick positioning of function customization entrances.
Description
技术领域 technical field
本发明涉及云计算技术领域,特别是一种快速定位功能定制入口的方法。The invention relates to the technical field of cloud computing, in particular to a method for rapidly locating function customization entrances.
背景技术 Background technique
云计算系统管理操作命令较多,也导致前端管理平台需要较多功能模块;而且有时功能结构层次较深,导致用户必须花费较长时间来查到功能模块入口并触发功能。为了尽量减少时间,达到快速定位的目的;需要一种不影响原代码结构的专门的定制入口的方法。There are many management and operation commands in the cloud computing system, which also leads to the need for more functional modules on the front-end management platform; and sometimes the functional structure is deep, so it takes a long time for users to find the entry of the functional module and trigger the function. In order to reduce the time as much as possible and achieve the purpose of fast positioning; a special custom entry method that does not affect the structure of the original code is required.
发明内容 Contents of the invention
本发明解决的技术问题在于提供一种快速定位功能定制入口的方法,解决了由于系统功能太多而造成用户不知道如何找到功能的问题,并满足不同业务需求的用户定制不同的快捷功能项。The technical problem solved by the present invention is to provide a method for quickly locating the function customization entry, which solves the problem that users do not know how to find functions due to too many system functions, and customizes different shortcut function items for users with different business needs.
本发明解决上述技术问题的技术方案是:包括如下步骤,The technical solution of the present invention to solve the above-mentioned technical problem is: comprise the following steps,
第一步,预定义可定制功能项,其中包括功能名称、功能描述、功能图标名称、功能权限项名称等;The first step is to predefine customizable function items, including function name, function description, function icon name, function permission item name, etc.;
第二步,获取用户已经定制的功能项,根据定制方式和功能项属性采用相应的方式生成页面代码并展现在页面上供用户选择;The second step is to obtain the user-customized function items, generate page codes in a corresponding way according to the customization method and function item attributes, and display them on the page for users to choose;
第三步,用户选择需定制的功能项后保存其选择的定制项;In the third step, the user selects the function item to be customized and saves the customized item selected;
第四步,用户定制成功后依据功能项属性值展现在页面上,按顺序排列展示;Step 4: After the user has successfully customized, it is displayed on the page according to the attribute value of the function item, and the display is arranged in order;
第五步,将定制功能项关联到具体实现功能的位置,以触发具体功能的展现The fifth step is to associate the customized function item with the position where the function is realized, so as to trigger the display of the specific function
第六步,用户点击功能项按钮触发功能并调用。In the sixth step, the user clicks the button of the function item to trigger the function and call it.
定义定制功能项时设定当图标和关联权限名称为空时与功能名称相同,然后,通过AJAX请求后端获取全部可定制的功能项并过滤无权限的项;主要流程是:前端程序通过AJAX方式向后端请求数据,后端程序从数据库读取到全部定制项数据,然后逐一对比检查当前用户是否有权限操作此项,移除无权限的项,并将剩余的项封装成JSON数据包返回给前端程序处理。When defining a custom function item, set the icon and the associated permission name to be the same as the function name when they are empty, and then request the backend through AJAX to obtain all customizable function items and filter items without permission; the main process is: the front-end program passes AJAX method to request data from the backend, the backend program reads all custom item data from the database, and then checks one by one whether the current user has permission to operate this item, removes items without permission, and encapsulates the remaining items into JSON data packets Return to the front-end program for processing.
获取用户已经定制的功能项的主要流程是:前端程序通过上一步相同方式请求后端程序返回用户已经定制了的功能项JSON数据并解析逐一对比上一步取得的数据,将符合的功能项标记为已定制状态;然后逐项按以下两种方式中的一种方式生成前端页面代码,并将各项生成的代码合并展现到前端页面供用户选择;一种方式为增加方式,即跳过标记为已定制状态的项,将其他每一项生成可勾选的多选框代码;另一种方式为整体设置方式,即将每一项均生成可勾选的多选框代码,将标记为已定制状态的项默认设置为已选择状态,并可供用户反选。The main process of obtaining the function items customized by the user is: the front-end program requests the back-end program to return the JSON data of the function items customized by the user in the same way as the previous step, parses and compares the data obtained in the previous step one by one, and marks the matching function items as Customized status; then generate the front-end page code item by item in one of the following two ways, and combine and display the generated codes to the front-end page for users to choose; one way is to increase the way, that is, to skip the mark as For items in the customized state, each other item will generate a checkable multi-box code; the other method is the overall setting method, that is, each item will generate a checkable multi-box code, which will be marked as customized Stated items are set to the selected state by default and can be unselected by the user.
第三步的主要流程是:用户在前端页面勾选需要的功能项后点击保存按钮,前端程序触发数据提交请求并将数据发送到后端程序处理;后端程序数据保存到用户定制数据中并返回保存结果状态和原因;如果保存失败则直接提示用户保存失败及失败原因,如果保存成功则提示成功信息并将上一步中生成并展现的页面代码移除并刷新已定制项列表。The main process of the third step is: the user clicks the save button after checking the required function items on the front-end page, the front-end program triggers a data submission request and sends the data to the back-end program for processing; the back-end program data is saved to the user-defined data and Return the save result status and reason; if the save fails, the user will be prompted directly for the save failure and the reason for the failure; if the save is successful, a success message will be prompted and the page code generated and displayed in the previous step will be removed and the list of customized items will be refreshed.
第四步主要流程是:前端发送请求、后端返回当前用户已定制功能项数据包,解析并逐项处理后生成前端展示的页面代码,其中处理逻辑是:判断是否设置图标属性,如果没有设置则将名称当作图标名称,并判断图标是否存在;若不存在则使用默认图标代替,如果有描述属性则增加事件在用户查看时提示描述信息,最后添加事件在用户点击该图标时触发。The main process of the fourth step is: the front end sends a request, the back end returns the current user’s customized function item data package, and generates the page code displayed on the front end after parsing and processing item by item. The processing logic is: determine whether to set the icon attribute, if not set Then use the name as the icon name, and judge whether the icon exists; if it does not exist, use the default icon instead, if there is a description attribute, add an event to prompt the user to view the description information, and finally add an event to trigger when the user clicks on the icon.
第五步主要流程是:前端程序预先定义一个功能函数集合,将全部功能项操作函数预定义到此处,在功能函数实现的地方增加一段关联的操作将具体操作与预定义集合中的项关联,并在用户触发时通过此关联关系直接定位到功能实现模块。The main process of the fifth step is: the front-end program pre-defines a set of function functions, pre-defines the operation functions of all function items here, and adds an associated operation where the function function is realized, and associates the specific operation with the items in the pre-defined set , and directly locate the function realization module through this association relationship when triggered by the user.
采用本发明的方法具有如下有益效果:Adopt method of the present invention to have following beneficial effect:
1、支持通过用户管理控制权限:用户定制时支持将无权限的功能项过滤,只提供有权限的功能给用户选择定制;用户定制完成后触发功能模块前支持权限检查;1. Support authority control through user management: support filtering of function items without authority when customizing, and only provide authorized functions for users to choose to customize; support authority check before triggering function modules after user customization is completed;
2、快捷定位:用户定制后可方便快捷的定位到关联的功能模块中并自动执行;2. Quick positioning: after customization, users can conveniently and quickly locate the associated function modules and execute them automatically;
3、多种方式灵活定制:支持新增一项或多项功能项定制和配置所有定制功能项两种方式定制;3. Flexible customization in multiple ways: support customization of one or more functional items and configuration of all customized functional items;
4、完全隔离不影响功能正常使用:此方法只需要功能项关联到功能模块,不影响其功能的正常运行使用;4. Complete isolation does not affect the normal use of the function: this method only requires the function item to be associated with the function module, and does not affect the normal operation and use of its function;
5、独立运行不受具体功能影响:此方法独立运行,不受其具体实现功能的影响,只需关联定制项到其功能实现的位置,若未关联也只提示功能暂未支持,不影响正常使用。5. Independent operation is not affected by specific functions: This method operates independently and is not affected by its specific implementation functions. It only needs to associate the custom item to the location where its function is realized. If it is not associated, it will only prompt that the function is not supported yet, and it will not affect normal use.
附图说明Description of drawings
下面结合附图对本发明进一步说明:Below in conjunction with accompanying drawing, the present invention is further described:
图1为本发明功能定制流程图;Fig. 1 is a flowchart of function customization of the present invention;
图2为本发明功能展现效果图。Fig. 2 is a function display effect diagram of the present invention.
具体实施方式 Detailed ways
如图1所示,本发明快速定位功能定制入口方法的流程是;As shown in Figure 1, the process flow of the method for customizing the entrance of the rapid positioning function of the present invention is;
第一步,预定义可定制功能项,其中包括功能名称、功能描述、功能图标名称、功能权限项名称等,定义如下:The first step is to predefine customizable function items, including function name, function description, function icon name, function permission item name, etc., defined as follows:
CREATE TABLE `cus_items` (CREATE TABLE `cus_items` (
`id` tinyint(8) unsigned not null auto_increment,`id` tinyint(8) unsigned not null auto_increment,
`name` char(20) not null,`name` char(20) not null,
`desc` char(50) not null,`desc` char(50) not null,
`icon` char(50) default null,`icon` char(50) default null,
`func` char(50) default null,`func` char(50) default null,
PRIMARY KEY (`id`)PRIMARY KEY (`id`)
););
INSERT INTO cus_items VALUES ('1', 'createVM', '创建虚拟机',null,null);INSERT INTO cus_items VALUES ('1', 'createVM', 'create virtual machine',null,null);
INSERT INTO cus_items VALUES ('2', 'addUser', '新增用户',null,null);INSERT INTO cus_items VALUES ('2', 'addUser', 'Add User',null,null);
定义时设定当图标和关联权限名称为空时与功能名称相同,即如上记录中“创建虚拟机”项的图标为空时自动定位图标为createVM。When defining, it is set that when the icon and the associated permission name are empty, it is the same as the function name, that is, when the icon of the "create virtual machine" item in the above record is empty, the icon is automatically positioned as createVM.
然后,通过AJAX请求后端获取全部可定制的功能项并过滤无权限的项。主要过程是:前端程序通过AJAX方式向后端请求数据,后端程序从数据库读取到全部定制项数据,然后逐一对比检查当前用户是否有权限操作此项,移除无权限的项,并将剩余的项封装成JSON数据包返回给前端程序处理。Then, request the backend through AJAX to get all the customizable function items and filter the items without permission. The main process is: the front-end program requests data from the back-end through AJAX, the back-end program reads all custom item data from the database, and then compares and checks whether the current user has permission to operate this item, removes items without permission, and The remaining items are encapsulated into JSON packets and returned to the front-end program for processing.
第二步,获取用户已经定制的功能项,并根据定制方式不同采用不同的方式并依据功能项属性生成页面代码并展现在页面上供用户选择。主要过程是:前端程序通过上一步相同方式请求后端程序返回用户已经定制了的功能项JSON数据并解析逐一对比上一步取得的数据,将符合的功能项标记为已定制状态,然后逐项按以下两种方式中其中一种方式生成前端页面代码,并将各项生成的代码合并展现到前端页面供用户选择。以下两种方式为:The second step is to obtain the function items that have been customized by the user, and use different methods according to the customization method to generate page codes according to the function item attributes and display them on the page for users to choose. The main process is: the front-end program requests the back-end program to return the JSON data of the function items customized by the user in the same way as the previous step, parses and compares the data obtained in the previous step one by one, marks the matching function items as customized, and then presses the One of the following two methods generates the front-end page code, and combines and displays the generated codes on the front-end page for users to choose. The following two methods are:
1、增加方式,即跳过标记为已定制状态的项,将其他每一项生成可勾选的多选框代码。1. The way to add is to skip the items marked as customized, and generate a checkable multi-box code for each other item.
2、整体设置方式,即将每一项均生成可勾选的多选框代码,将标记为已定制状态的项默认设置为已选择状态,并可供用户反选。2. The overall setting method is to generate a multi-selection box code that can be checked for each item, and set the item marked as customized to the selected state by default, and can be unselected by the user.
第三步,用户选择需定制的功能项后保存其选择的定制项。主要过程是:用户在前端页面勾选需要的功能项后点击保存按钮,前端程序触发数据提交请求并将数据发送到后端程序处理,后端程序数据保存到用户定制数据中并返回保存结果(成功或失败)状态和原因,如果保存失败则直接提示用户保存失败及失败原因,否则如果保存成功则提示成功信息并将上一步中生成并展现的页面代码移除并刷新已定制项列表。In the third step, the user selects the function item to be customized and saves the customized item selected by the user. The main process is: the user clicks the save button after checking the required function items on the front-end page, the front-end program triggers a data submission request and sends the data to the back-end program for processing, the back-end program data is saved to the user-defined data and the saved result is returned ( success or failure) status and reason, if the save fails, the user will be prompted directly to save the failure and the reason for the failure, otherwise, if the save is successful, a success message will be prompted and the page code generated and displayed in the previous step will be removed and the list of customized items will be refreshed.
第四步,用户定制成功后依据功能项属性值展现在页面上,按顺序排列展示。主要过程是:前端发送请求后端返回当前用户已定制在功能项数据包,解析并逐项处理并生成前端展示的页面代码,其中处理逻辑如下:判断是否设置图标属性,如果没有设置则将名称当作图标名称,并判断图标是否存在,若不存在则使用默认图标代替,如果有描述属性则增加事件在用户查看时提示描述信息,最后添加事件在用户点击该图标时触发。In the fourth step, after the user has successfully customized, it is displayed on the page according to the attribute value of the function item, and the display is arranged in order. The main process is: the front end sends a request and the back end returns the function item data package customized by the current user, parses and processes it item by item, and generates the page code displayed on the front end. The processing logic is as follows: determine whether to set the icon attribute, if not set, set the name Take it as the icon name, and judge whether the icon exists. If it does not exist, use the default icon instead. If there is a description attribute, add an event to prompt the description information when the user views it. Finally, add an event to trigger when the user clicks on the icon.
第五步,将定制功能项关联到具体实现功能的位置,以触发具体功能的展现。主要过程是:前端程序预先定义一个功能函数集合,将全部功能项操作函数预定义到此处,在功能函数实现的地方增加一段关联的操作将具体操作与预定义集合中的项关联,并在用户触发时通过此关联关系直接定位到功能实现模块。如:The fifth step is to associate the customized function item with the position where the function is realized, so as to trigger the display of the specific function. The main process is: the front-end program pre-defines a set of function functions, pre-defines all function item operation functions here, adds an associated operation where the function function is realized, associates the specific operation with the items in the pre-defined set, and When triggered by the user, the function realization module is directly located through this association relationship. like:
GC.View.QuickLinks.CreateVM = GC.instance.createVm;GC.View.QuickLinks.CreateVM = GC.instance.createVm;
GC.View.QuickLinks.ChangePasswd = GC.User.ChangePassword;GC.View.QuickLinks.ChangePasswd = GC.User.ChangePassword;
最后,用户点击功能项按钮触发功能并调用。Finally, the user clicks the function item button to trigger the function and call it.
图2是本发明快速定位功能定制入口后的效果示意图;采用本发明的方法可以实现功能定制入口的快速定位。Fig. 2 is a schematic diagram of the effect of quickly locating the function-customized entrance of the present invention; the method of the present invention can realize the rapid positioning of the function-customized entrance.
Claims (11)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210370494.3A CN102866895B (en) | 2012-09-27 | 2012-09-27 | Method for quickly positioning function customizing entrance |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210370494.3A CN102866895B (en) | 2012-09-27 | 2012-09-27 | Method for quickly positioning function customizing entrance |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102866895A true CN102866895A (en) | 2013-01-09 |
CN102866895B CN102866895B (en) | 2015-06-17 |
Family
ID=47445777
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210370494.3A Active CN102866895B (en) | 2012-09-27 | 2012-09-27 | Method for quickly positioning function customizing entrance |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102866895B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105335132A (en) * | 2014-06-13 | 2016-02-17 | 阿里巴巴集团控股有限公司 | Method, apparatus and system for user-defined application function |
CN109711921A (en) * | 2018-11-08 | 2019-05-03 | 深圳市顺丰物业管理有限公司 | Customization of two-dimension code management method, device, system and storage medium |
CN113554409A (en) * | 2021-06-15 | 2021-10-26 | 杭州控客信息技术有限公司 | BOM system-based production testing tool materialization method and system |
CN114518880A (en) * | 2022-01-21 | 2022-05-20 | 厦门亿联网络技术股份有限公司 | XML interface entry control method, system, medium and terminal equipment |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6133915A (en) * | 1998-06-17 | 2000-10-17 | Microsoft Corporation | System and method for customizing controls on a toolbar |
US20050076308A1 (en) * | 2003-10-01 | 2005-04-07 | Mansell Wayne T. | Control system with customizable menu structure for personal mobility vehicle |
CN101179673A (en) * | 2006-11-06 | 2008-05-14 | 深圳Tcl新技术有限公司 | Method of customizing common function interface of television |
CN101261583A (en) * | 2008-04-18 | 2008-09-10 | 深圳国人通信有限公司 | System function rapid calling method |
-
2012
- 2012-09-27 CN CN201210370494.3A patent/CN102866895B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6133915A (en) * | 1998-06-17 | 2000-10-17 | Microsoft Corporation | System and method for customizing controls on a toolbar |
US20050076308A1 (en) * | 2003-10-01 | 2005-04-07 | Mansell Wayne T. | Control system with customizable menu structure for personal mobility vehicle |
CN101179673A (en) * | 2006-11-06 | 2008-05-14 | 深圳Tcl新技术有限公司 | Method of customizing common function interface of television |
CN101261583A (en) * | 2008-04-18 | 2008-09-10 | 深圳国人通信有限公司 | System function rapid calling method |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105335132A (en) * | 2014-06-13 | 2016-02-17 | 阿里巴巴集团控股有限公司 | Method, apparatus and system for user-defined application function |
CN105335132B (en) * | 2014-06-13 | 2020-03-24 | 阿里巴巴集团控股有限公司 | Method, device and system for customizing application program function |
CN109711921A (en) * | 2018-11-08 | 2019-05-03 | 深圳市顺丰物业管理有限公司 | Customization of two-dimension code management method, device, system and storage medium |
CN113554409A (en) * | 2021-06-15 | 2021-10-26 | 杭州控客信息技术有限公司 | BOM system-based production testing tool materialization method and system |
CN114518880A (en) * | 2022-01-21 | 2022-05-20 | 厦门亿联网络技术股份有限公司 | XML interface entry control method, system, medium and terminal equipment |
Also Published As
Publication number | Publication date |
---|---|
CN102866895B (en) | 2015-06-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11275730B2 (en) | Automated data analysis using combined queries | |
US11314574B2 (en) | Techniques for managing and analyzing log data | |
JP6742650B2 (en) | Application calling method and device using mobile browser | |
US11204681B2 (en) | Program orchestration method and electronic device | |
US20160019309A1 (en) | Modifying digital content based upon usage patterns | |
CN108804399B (en) | Form verification method and device | |
US9826027B2 (en) | User interfaces generated by a workflow engine | |
CN102866895B (en) | Method for quickly positioning function customizing entrance | |
WO2017059676A1 (en) | Smart card read/write methods and devices | |
CN107958365B (en) | Material information changing method and device, storage medium and electronic equipment | |
US20220019427A1 (en) | Methods for software development and operation process analytics and devices thereof | |
CN110781074A (en) | Automated testing method, device and storage medium | |
US20150161123A1 (en) | Techniques to diagnose live services | |
AU2020203975A1 (en) | Information display method, terminal, and server | |
CN105447072A (en) | Configurable interface framework as well as searching method and system utilizing framework | |
US20170168854A1 (en) | Application specific configurable graphical user interface | |
CN113076112A (en) | Database deployment method and device and electronic equipment | |
CN115033233B (en) | Interface calling method, device, electronic device and storage medium | |
JP6751778B2 (en) | Methods, electronic devices and storage media for realizing communication between business systems and multi-assembly | |
CN112685678B (en) | Page configuration method, page configuration device, computer equipment and storage medium | |
CN110309062A (en) | Use case generation method, device, electronic device and storage medium | |
CN118228313A (en) | Platform page display method and device, computer equipment and storage medium | |
CN116016683B (en) | Website data acquisition method, device, equipment and storage medium | |
CN108710465A (en) | License plate number input method virtual key display control method, storage medium and user terminal | |
RU2715287C1 (en) | Method, terminal and server for displaying information |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |