CN114911479A - Interface generation method, device, equipment and storage medium based on configuration - Google Patents
Interface generation method, device, equipment and storage medium based on configuration Download PDFInfo
- Publication number
- CN114911479A CN114911479A CN202210593971.6A CN202210593971A CN114911479A CN 114911479 A CN114911479 A CN 114911479A CN 202210593971 A CN202210593971 A CN 202210593971A CN 114911479 A CN114911479 A CN 114911479A
- Authority
- CN
- China
- Prior art keywords
- interface
- configuration
- elements
- generation method
- standard reference
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/38—Creation or generation of source code for implementing user interfaces
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44505—Configuring for program initiating, e.g. using registry, configuration files
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Debugging And Monitoring (AREA)
Abstract
Description
技术领域technical field
本发明涉及研发管理领域,尤其涉及一种基于配置化的界面生成方法、装置、电子设备及存储介质。The invention relates to the field of research and development management, and in particular, to a configuration-based interface generation method, device, electronic device and storage medium.
背景技术Background technique
随着业务的持续发展,人员流动造成的系统功能缺失,急需业务系统通过后端管理系统的界面展示系统的各种功能,业务功能的增加对前端界面开发人员的需求也增加了,因此需要提出一种界面生成方法。With the continuous development of the business, the lack of system functions caused by the flow of personnel is urgently needed for the business system to display various functions of the system through the interface of the back-end management system. The increase of business functions also increases the demand for front-end interface developers. Therefore, it is necessary to propose An interface generation method.
现有的界面生成方法通常是通过关联数据库生成单笔的增删改查或者界面拖拽功能,这种方法只适用于简单的单表业务开发,拖拽功能也局限于前端特定的技术框架,进而导致界面生成的效率较低,因此亟待提出一种效率更高的界面生成方法。The existing interface generation method usually generates a single addition, deletion, modification and query or interface dragging function through an associated database. This method is only suitable for simple single-table business development, and the dragging function is also limited to the specific front-end technical framework, and then As a result, the interface generation efficiency is low, so it is urgent to propose a more efficient interface generation method.
发明内容SUMMARY OF THE INVENTION
本发明提供一种基于配置化的界面生成方法、装置、电子设备及存储介质,其主要目的在于提高界面生成的效率。The present invention provides a configuration-based interface generation method, device, electronic device and storage medium, the main purpose of which is to improve the efficiency of interface generation.
为实现上述目的,本发明提供的一种基于配置化的界面生成方法,包括:To achieve the above purpose, a configuration-based interface generation method provided by the present invention includes:
获取待参考历史界面,并识别出所述待参考历史界面中的多个界面元素;Obtain the historical interface to be referenced, and identify a plurality of interface elements in the historical interface to be referenced;
根据接收到的界面功能请求对多个所述界面元素进行元素筛选,得到多个标准参考元素;Perform element screening on a plurality of the interface elements according to the received interface function request to obtain a plurality of standard reference elements;
分别对多个所述标准参考元素进行配置化处理,得到元素配置模块;Perform configuration processing on a plurality of the standard reference elements respectively to obtain an element configuration module;
接收预设聚合平台中的业务数据,基于所述元素配置模块对所述业务数据进行界面展示,得到业务数据界面。The business data in the preset aggregation platform is received, and an interface is displayed on the business data based on the element configuration module to obtain a business data interface.
可选地,所述识别出所述待参考历史界面中的多个界面元素,包括:Optionally, the identifying a plurality of interface elements in the to-be-referenced history interface includes:
识别出多种界面元素定位插件对应的通用插口,所述通用插口中配置有接口调用信息;Identifying general sockets corresponding to various interface element positioning plug-ins, the general sockets are configured with interface calling information;
通过所述通用插口读取所述所述界面元素的元素类名及所述待参考历史界面中的界面元素。The element class name of the interface element and the interface element in the to-be-referenced history interface are read through the general socket.
可选地,所述识别出多种界面元素定位插件对应的通用插口之前,所述方法还包括:Optionally, before identifying the universal sockets corresponding to multiple interface element positioning plug-ins, the method further includes:
获取多种界面生成框架对应的多种界面元素定位插件;Obtain various interface element positioning plug-ins corresponding to various interface generation frameworks;
根据多种界面元素定位插件的接口信息生成通用接口。Generate a general interface according to the interface information of the positioning plug-in of various interface elements.
可选地,所述根据接收到的界面功能请求对多个所述界面元素进行元素筛选,得到多个标准参考元素,包括:Optionally, performing element screening on a plurality of the interface elements according to the received interface function request to obtain a plurality of standard reference elements, including:
获取多个所述界面元素的元素数量,根据所述元素数量为多个所述界面元素生成对应的数字编码,并在所述界面元素所处的位置展示对应的数字编码;Acquire the number of elements of a plurality of the interface elements, generate corresponding digital codes for the plurality of interface elements according to the number of elements, and display the corresponding digital codes at the positions of the interface elements;
对所述界面功能请求进行解析处理,得到解析功能文本,提取出所述解析功能文本中的功能关键词,并在预设的编码参考表中搜索得到所述功能关键词对应的目标数字编码;Perform parsing processing on the interface function request, obtain parsing function text, extract function keywords in the parsing function text, and search a preset coding reference table to obtain the target digital code corresponding to the function keyword;
根据所述目标数字编码确定对应的界面元素,并将对应的界面元素作为标准参考元素。The corresponding interface element is determined according to the target digital code, and the corresponding interface element is used as a standard reference element.
可选地,所述根据所述元素数量为多个所述界面元素生成对应的数字编码,包括:Optionally, generating corresponding digital codes for a plurality of the interface elements according to the number of elements, including:
将所述元素数量与预设的参考阈值进行比较;comparing the number of elements with a preset reference threshold;
当所述元素数量小于或者等于所述参考阈值时,采用预设第一编码规则对所述界面元素进行数字编码,得到所述界面元素对应的数字编码;When the number of elements is less than or equal to the reference threshold, digitally encode the interface element by using a preset first encoding rule to obtain a digital code corresponding to the interface element;
当所述元素数量大于所述参考阈值时,采用预设第二编码规则对所述界面元素进行数字编码,得到所述界面元素对应的数字编码。When the number of elements is greater than the reference threshold, a preset second encoding rule is used to digitally encode the interface element to obtain a digital encoding corresponding to the interface element.
可选地,所述分别对多个所述标准参考元素进行配置化处理,得到元素配置模块,包括:Optionally, performing configuration processing on a plurality of the standard reference elements respectively to obtain an element configuration module, including:
分别识别出多个所述标准参考元素中的第一元素、第二元素和第三元素;respectively identifying the first element, the second element and the third element in the plurality of the standard reference elements;
对所述第一元素进行元素新增处理,得到第一配置元素;Perform element addition processing on the first element to obtain a first configuration element;
基于预设的修改规则对所述第二元素进行元素修改处理,得到第二配置元素;Perform element modification processing on the second element based on a preset modification rule to obtain a second configuration element;
对所述第三元素进行权限配置处理,得到第三配置元素;Perform permission configuration processing on the third element to obtain a third configuration element;
对所述第一配置元素、所述第二配置元素和所述第三配置元素进行整合处理,得到元素配置模块。The first configuration element, the second configuration element and the third configuration element are integrated to obtain an element configuration module.
可选地,所述基于所述元素配置模块对所述业务数据进行界面展示,得到业务数据界面,包括:Optionally, performing interface display on the business data based on the element configuration module to obtain a business data interface, including:
对所述业务数据进行数据清洗,得到标准数据;Data cleaning is performed on the business data to obtain standard data;
基于所述元素配置模块对所述标准数据进行数据配置,得到业务数据界面。Data configuration is performed on the standard data based on the element configuration module to obtain a service data interface.
为了解决上述问题,本发明还提供一种基于配置化的界面生成装置,所述装置包括:In order to solve the above problems, the present invention also provides a configuration-based interface generation device, the device includes:
元素识别模块,用于获取待参考历史界面,并识别出所述待参考历史界面中的多个界面元素;an element identification module, configured to acquire the historical interface to be referenced, and identify a plurality of interface elements in the historical interface to be referenced;
元素筛选模块,用于根据接收到的界面功能请求对多个所述界面元素进行元素筛选,得到多个标准参考元素;an element screening module, configured to perform element screening on a plurality of the interface elements according to the received interface function request to obtain a plurality of standard reference elements;
配置化模块,用于分别对多个所述标准参考元素进行配置化处理,得到元素配置模块;a configuration module, configured to perform configuration processing on a plurality of the standard reference elements respectively to obtain an element configuration module;
界面展示模块,用于接收预设聚合平台中的业务数据,基于所述元素配置模块对所述业务数据进行界面展示,得到业务数据界面。The interface display module is used for receiving the business data in the preset aggregation platform, and performing interface display on the business data based on the element configuration module to obtain a business data interface.
为了解决上述问题,本发明还提供一种电子设备,所述电子设备包括:In order to solve the above problems, the present invention also provides an electronic device, the electronic device includes:
至少一个处理器;以及,at least one processor; and,
与所述至少一个处理器通信连接的存储器;其中,a memory communicatively coupled to the at least one processor; wherein,
所述存储器存储有可被所述至少一个处理器执行的计算机程序,所述计算机程序被所述至少一个处理器执行,以使所述至少一个处理器能够执行上述所述的基于配置化的界面生成方法。The memory stores a computer program executable by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to execute the configuration-based interface described above Generate method.
为了解决上述问题,本发明还提供一种存储介质,所述存储介质中存储有至少一个计算机程序,所述至少一个计算机程序被电子设备中的处理器执行以实现上述所述的基于配置化的界面生成方法。In order to solve the above problem, the present invention also provides a storage medium, where at least one computer program is stored in the storage medium, and the at least one computer program is executed by a processor in an electronic device to realize the above-mentioned configuration-based Interface generation method.
本发明实施例中,通过识别出待参考历史界面中的多个界面元素,并根据接收到的界面功能请求对多个所述界面元素进行元素筛选,得到多个标准参考元素,所述标准参考元素可以作为后续配置化的数据基础,分别对多个所述标准参考元素进行配置化处理,得到元素配置模块,所述元素配置模块可以作为高效界面生成的参考模块,接收预设聚合平台中的业务数据,基于所述元素配置模块对所述业务数据进行界面展示,得到业务数据界面。提高了界面生成的效率。因此本发明提出的基于配置化的界面生成方法、装置、电子设备及存储介质,可以解决界面生成的效率较低的问题。In the embodiment of the present invention, by identifying a plurality of interface elements in the historical interface to be referenced, and performing element screening on the plurality of interface elements according to the received interface function request, a plurality of standard reference elements are obtained. Elements can be used as the data basis for subsequent configuration, and a plurality of the standard reference elements are configured separately to obtain an element configuration module. The element configuration module can be used as a reference module for efficient interface generation. For business data, interface display is performed on the business data based on the element configuration module to obtain a business data interface. Improved the efficiency of interface generation. Therefore, the configuration-based interface generation method, device, electronic device and storage medium proposed by the present invention can solve the problem of low interface generation efficiency.
附图说明Description of drawings
图1为本发明一实施例提供的基于配置化的界面生成方法的流程示意图;1 is a schematic flowchart of a configuration-based interface generation method provided by an embodiment of the present invention;
图2为图1中其中一个步骤的详细实施流程示意图;Fig. 2 is a detailed implementation flow diagram of one of the steps in Fig. 1;
图3为图1中其中一个步骤的详细实施流程示意图;Fig. 3 is a detailed implementation flow diagram of one of the steps in Fig. 1;
图4为图1中其中一个步骤的详细实施流程示意图;Fig. 4 is a detailed implementation flow diagram of one of the steps in Fig. 1;
图5为图4中其中一个步骤的详细实施流程示意图;Fig. 5 is a detailed implementation flow diagram of one of the steps in Fig. 4;
图6为图1中其中一个步骤的详细实施流程示意图;Fig. 6 is a detailed implementation flow diagram of one of the steps in Fig. 1;
图7为图1中其中一个步骤的详细实施流程示意图;Fig. 7 is a detailed implementation flow diagram of one of the steps in Fig. 1;
图8为本发明一实施例提供的基于配置化的界面生成装置的功能模块图;8 is a functional block diagram of a configuration-based interface generation device provided by an embodiment of the present invention;
图9为本发明一实施例提供的实现所述基于配置化的界面生成方法的电子设备的结构示意图。FIG. 9 is a schematic structural diagram of an electronic device implementing the configuration-based interface generation method according to an embodiment of the present invention.
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The realization, functional characteristics and advantages of the present invention will be further described with reference to the accompanying drawings in conjunction with the embodiments.
具体实施方式Detailed ways
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。It should be understood that the specific embodiments described herein are only used to explain the present invention, but not to limit the present invention.
本申请实施例提供一种基于配置化的界面生成方法。所述基于配置化的界面生成方法的执行主体包括但不限于服务端、终端等能够被配置为执行本申请实施例提供的该方法的电子设备中的至少一种。换言之,所述基于配置化的界面生成方法可以由安装在终端设备或服务端设备的软件或硬件来执行,所述软件可以是区块链平台。所述服务端包括但不限于:单台服务器、服务器集群、云端服务器或云端服务器集群等。所述服务器可以是独立的服务器,也可以是提供云服务、云数据库、云计算、云函数、云存储、网络服务、云通信、中间件服务、域名服务、安全服务、内容分发网络(ContentDelivery Network,CDN)、以及大数据和人工智能平台等基础云计算服务的云服务器。The embodiment of the present application provides a configuration-based interface generation method. The execution body of the configuration-based interface generation method includes, but is not limited to, at least one of electronic devices that can be configured to execute the method provided by the embodiments of the present application, such as a server and a terminal. In other words, the configuration-based interface generation method can be executed by software or hardware installed on a terminal device or a server device, and the software can be a blockchain platform. The server includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, and the like. The server can be an independent server, or can provide cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery network (Content Delivery Network) , CDN), and cloud servers for basic cloud computing services such as big data and artificial intelligence platforms.
参照图1所示,为本发明一实施例提供的基于配置化的界面生成方法的流程示意图。在本实施例中,所述基于配置化的界面生成方法包括以下步骤S1-S4:Referring to FIG. 1 , it is a schematic flowchart of a configuration-based interface generation method provided by an embodiment of the present invention. In this embodiment, the configuration-based interface generation method includes the following steps S1-S4:
S1、获取待参考历史界面,并识别出所述待参考历史界面中的多个界面元素。S1. Acquire a history interface to be referenced, and identify a plurality of interface elements in the history interface to be referenced.
本发明实施例中,所述待参考历史界面是指后端管理系统中的管理界面,其中,所述待参考历史界面中包含多个不同功能的界面元素,每一个界面元素具有不同的功能,所述界面元素可以为图标和光标、菜单、工具栏、状态栏或者交互对象。In this embodiment of the present invention, the history interface to be referenced refers to a management interface in a back-end management system, wherein the history interface to be referenced includes a plurality of interface elements with different functions, and each interface element has a different function. The interface elements may be icons and cursors, menus, toolbars, status bars, or interactive objects.
由于一个待参考历史界面中往往包含不止一个界面元素,因此需要识别出所述待参考历史界面中的多个界面元素,并以多个所述界面元素作为参考,便于后续进行元素拆解。Since a historical interface to be referenced often contains more than one interface element, it is necessary to identify a plurality of interface elements in the historical interface to be referenced, and use the plurality of interface elements as a reference to facilitate subsequent element disassembly.
具体地,参照图2所示,所述识别出所述待参考历史界面中的多个界面元素,包括以下步骤S11-S12:Specifically, referring to FIG. 2 , the identifying a plurality of interface elements in the to-be-referenced history interface includes the following steps S11-S12:
S11、识别出多种界面元素定位插件对应的通用插口,所述通用插口中配置有接口调用信息;S11, identifying general sockets corresponding to various interface element positioning plug-ins, where interface calling information is configured in the general socket;
S12、通过所述通用插口读取所述所述界面元素的元素类名及所述待参考历史界面中的界面元素。S12. Read the element class name of the interface element and the interface element in the to-be-referenced history interface through the universal socket.
详细地,所述界面元素定位插件用于对界面中的界面元素进行定位操作,通用接口中配置有用于指示调用各界面元素定位插件接口的接口调用信息。该通用接口为统一对外接口,用于读取不同界面生成框架生成的界面中的界面元素。其中,通用接口可以是已经生成的或者临时根据多种界面元素定位插件生成的接口。通过读取通用接口中的接口调用信息,可以调用各界面元素定位插件接口,进而可以把通过通用接口读取到界面元素发送到各对应的界面元素定位插件,以由对应的界面元素定位插件进行元素定位。Specifically, the interface element locating plug-in is used for locating interface elements in the interface, and the general interface is configured with interface invocation information for instructing invoking the interface of each interface element locating plug-in. The general interface is a unified external interface, which is used to read interface elements in interfaces generated by different interface generation frameworks. Wherein, the common interface may be an interface that has been generated or an interface that is temporarily generated according to a variety of interface element positioning plug-ins. By reading the interface call information in the general interface, the interface element positioning plug-in interface can be called, and then the interface elements read through the general interface can be sent to each corresponding interface element positioning plug-in, so that the corresponding interface element positioning plug-in can perform the corresponding interface element positioning plug-in. Element positioning.
进一步地,参照图3所示,所述识别出多种界面元素定位插件对应的通用插口之前,所述方法还包括以下步骤S101-S102:Further, as shown in FIG. 3 , before identifying the universal sockets corresponding to various interface element positioning plug-ins, the method further includes the following steps S101-S102:
S101、获取多种界面生成框架对应的多种界面元素定位插件;S101. Obtain multiple interface element positioning plug-ins corresponding to multiple interface generation frameworks;
S102、根据多种界面元素定位插件的接口信息生成通用接口。S102. Generate a general interface according to the interface information of the positioning plug-in of various interface elements.
详细地,所述通用接口为根据多种界面生成框架对应的多种界面元素定位插件的接口信息生成的接口,因此可以通过通用接口调用各个界面元素定位插件的接口。In detail, the general interface is an interface generated according to the interface information of various interface element locating plug-ins corresponding to various interface generating frameworks, so the interfaces of each interface element locating plug-in can be called through the general interface.
例如,假设UILocator为针对UI构建框架生成的界面的界面元素定位器,用于对UI界面的界面元素进行元素定位。UILocator可以对多种类别的UI构建框架生成的界面进行元素定位。例如IE界面、Sap界面,Chrome界面等。UILocator设置统一对外接口,即通用接口。可通过UILocator的接口读取界面元素之后,由界面元素定位插件IELocator、SapLocator或ChromeLocator获取界面元素的定位信息。For example, it is assumed that UILocator is an interface element locator for the interface generated by the UI construction framework, and is used for element positioning of interface elements of the UI interface. UILocator can locate elements of interfaces generated by various types of UI construction frameworks. For example, IE interface, Sap interface, Chrome interface, etc. UILocator sets a unified external interface, that is, a general interface. After reading the interface element through the interface of UILocator, the location information of the interface element can be obtained by the interface element location plug-in IELocator, SapLocator or ChromeLocator.
S2、根据接收到的界面功能请求对多个所述界面元素进行元素筛选,得到多个标准参考元素。S2. Perform element screening on a plurality of the interface elements according to the received interface function request to obtain a plurality of standard reference elements.
本发明实施例中,所述界面功能请求是指需要对界面进行何种操作的需求,例如,新增一个界面功能,修改一个界面功能等。由于不同的界面功能所需要用到的界面元素不一样,因此需要从多个所述界面元素中筛选出一个或者多个界面元素进行后续的配置化处理。In the embodiment of the present invention, the interface function request refers to a requirement of what operation needs to be performed on the interface, for example, adding an interface function, modifying an interface function, and the like. Since different interface functions require different interface elements, one or more interface elements need to be screened out from a plurality of the interface elements for subsequent configuration processing.
具体地,参照图4所示,所述根据接收到的界面功能请求对多个所述界面元素进行元素筛选,得到多个标准参考元素,包括以下步骤S21-S23:Specifically, referring to FIG. 4 , performing element screening on a plurality of the interface elements according to the received interface function request to obtain a plurality of standard reference elements, including the following steps S21-S23:
S21、获取多个所述界面元素的元素数量,根据所述元素数量为多个所述界面元素生成对应的数字编码,并在所述界面元素所处的位置展示对应的数字编码;S21, obtaining the element quantity of a plurality of the interface elements, generating corresponding digital codes for the plurality of the interface elements according to the element quantities, and displaying the corresponding digital codes at the positions of the interface elements;
S22、对所述界面功能请求进行解析处理,得到解析功能文本,提取出所述解析功能文本中的功能关键词,并在预设的编码参考表中搜索得到所述功能关键词对应的目标数字编码;S22. Perform parsing processing on the interface function request to obtain parsing function text, extract function keywords in the parsing function text, and search a preset coding reference table to obtain target numbers corresponding to the function keywords coding;
S23、根据所述目标数字编码确定对应的界面元素,并将对应的界面元素作为标准参考元素。S23. Determine the corresponding interface element according to the target digital code, and use the corresponding interface element as a standard reference element.
详细地,所述界面元素可以是可满足交互需求的软件或系统界面所包含的满足用户交互要求的一系列元素,例如:窗口、对话框、菜单、滚动条或图标等。In detail, the interface elements may be a series of elements included in the software or system interface that can meet the interaction requirements and meet the user interaction requirements, such as: windows, dialog boxes, menus, scroll bars or icons.
进一步地,参照图5所示,所述根据所述元素数量为多个所述界面元素生成对应的数字编码,包括以下步骤S201-S203:Further, referring to FIG. 5 , generating corresponding digital codes for a plurality of the interface elements according to the number of elements includes the following steps S201-S203:
S201、将所述元素数量与预设的参考阈值进行比较;S201, comparing the number of elements with a preset reference threshold;
S202、当所述元素数量小于或者等于所述参考阈值时,采用预设第一编码规则对所述界面元素进行数字编码,得到所述界面元素对应的数字编码;S202, when the number of elements is less than or equal to the reference threshold, digitally encode the interface element by using a preset first encoding rule to obtain a digital code corresponding to the interface element;
S203、当所述元素数量大于所述参考阈值时,采用预设第二编码规则对所述界面元素进行数字编码,得到所述界面元素对应的数字编码。S203. When the number of elements is greater than the reference threshold, digitally encode the interface element by using a preset second encoding rule to obtain a digital code corresponding to the interface element.
详细地,所述参考阈值可根据不同的需求进行设定,例如:当所述参考阈值设置为10,即当所述界面元素的数量小于等于10时,可按照0~9的编码规则(即第一编码规则)对各界面元素进行编码;当所述元素数量大于10时,可按照00~99的编码规则(即第二编码规则)对各界面元素进行编码(00、01、02……99)。In detail, the reference threshold can be set according to different requirements, for example: when the reference threshold is set to 10, that is, when the number of the interface elements is less than or equal to 10, the coding rules of 0 to 9 (ie, The first coding rule) encodes each interface element; when the number of elements is greater than 10, each interface element can be coded (00, 01, 02... 99).
S3、分别对多个所述标准参考元素进行配置化处理,得到元素配置模块。S3. Perform configuration processing on a plurality of the standard reference elements respectively to obtain an element configuration module.
本发明实施例中,通过对所述标准参考元素进行配置化处理,得到所述元素配置模块,其中,所述元素配置模块可以提高了研发的效率,作为后续使用的基础配置模块。In the embodiment of the present invention, the element configuration module is obtained by performing configuration processing on the standard reference element, wherein the element configuration module can improve the efficiency of research and development and serve as a basic configuration module for subsequent use.
具体地,参照图6所示,所述分别对多个所述标准参考元素进行配置化处理,得到元素配置模块,包括以下步骤S31-S35:Specifically, as shown in FIG. 6 , the configuration processing is performed on a plurality of the standard reference elements respectively to obtain an element configuration module, including the following steps S31-S35:
S31、分别识别出多个所述标准参考元素中的第一元素、第二元素和第三元素;S31, respectively identifying the first element, the second element and the third element in the plurality of the standard reference elements;
S32、对所述第一元素进行元素新增处理,得到第一配置元素;S32, performing element addition processing on the first element to obtain a first configuration element;
S33、基于预设的修改规则对所述第二元素进行元素修改处理,得到第二配置元素;S33, performing element modification processing on the second element based on a preset modification rule to obtain a second configuration element;
S34、对所述第三元素进行权限配置处理,得到第三配置元素;S34, performing authority configuration processing on the third element to obtain a third configuration element;
S35、对所述第一配置元素、所述第二配置元素和所述第三配置元素进行整合处理,得到元素配置模块。S35. Perform integration processing on the first configuration element, the second configuration element and the third configuration element to obtain an element configuration module.
详细地,在本方案中,所述第一元素为菜单,所述第二元素为表头,所述第三元素为权限。对所述第一元素进行元素新增处理是指进行新增菜单处理,一般是指在主菜单下面再增添子菜单,例如所述主菜单为系统管理、财务管理、系统监控和系统工具,可以在主菜单财务管理下新增缴费记录、费用信息、退款列表和历史缴费记录等多个子菜单。基于预设的修改规则对所述第二元素进行元素修改处理是指对表头中的插入选项、编辑选项、列表选项进行选择,对字段列名、字段描述、物理类型等表头进行填空。例如,字段列名为id,字段描述为null,物理类型为Int(11),Java类型为Long,Java属性为Id等。对所述第三元素进行权限配置处理是指对权限的开放进行选择,在本方案中,财务管理部门的权限只针对于无抵押产品部,而不针对无抵押引擎配置员、无抵押存量审核员和无抵押存量配置员等。Specifically, in this solution, the first element is a menu, the second element is a header, and the third element is a permission. Performing element addition processing on the first element refers to performing new menu processing, generally referring to adding submenus under the main menu. For example, the main menu is system management, financial management, system monitoring and system tools. In the main menu of financial management, several submenus such as payment records, fee information, refund list and historical payment records are added. Performing element modification processing on the second element based on a preset modification rule refers to selecting insert options, editing options, and list options in the header, and filling in the blanks in headers such as field column names, field descriptions, and physical types. For example, the field column name is id, the field description is null, the physical type is Int(11), the Java type is Long, the Java property is Id, etc. Performing permission configuration processing on the third element refers to selecting the opening of permissions. In this solution, the permissions of the financial management department are only for the unsecured product department, not for the unsecured engine configurator and the unsecured stock audit. members and unsecured stock allocators, etc.
S4、接收预设聚合平台中的业务数据,基于所述元素配置模块对所述业务数据进行界面展示,得到业务数据界面。S4. Receive business data in the preset aggregation platform, and display the business data on an interface based on the element configuration module to obtain a business data interface.
本发明实施例中,所述预设聚合平台是指进行数据选择时提供数据源的服务平台,所有数据来源都可以从这个服务平台获取得到数据。In the embodiment of the present invention, the preset aggregation platform refers to a service platform that provides data sources during data selection, and all data sources can obtain data from this service platform.
具体地,参照图7所示,所述基于所述元素配置模块对所述业务数据进行界面展示,得到业务数据界面,包括以下步骤S41-S42:Specifically, referring to FIG. 7 , the interface display of the business data based on the element configuration module to obtain a business data interface includes the following steps S41-S42:
S41、对所述业务数据进行数据清洗,得到标准数据;S41, performing data cleaning on the business data to obtain standard data;
S42、基于所述元素配置模块对所述标准数据进行数据配置,得到业务数据界面。S42. Perform data configuration on the standard data based on the element configuration module to obtain a service data interface.
详细地,所述数据清洗包括但不限于数据删除,数据核对,数据验证等处理,目的是为了保证标准数据的准确性,同时避免数据冗余。In detail, the data cleaning includes but is not limited to data deletion, data verification, data verification and other processing, the purpose is to ensure the accuracy of standard data and avoid data redundancy.
本发明实施例中,通过识别出待参考历史界面中的多个界面元素,并根据接收到的界面功能请求对多个所述界面元素进行元素筛选,得到多个标准参考元素,所述标准参考元素可以作为后续配置化的数据基础,分别对多个所述标准参考元素进行配置化处理,得到元素配置模块,所述元素配置模块可以作为高效界面生成的参考模块,接收预设聚合平台中的业务数据,基于所述元素配置模块对所述业务数据进行界面展示,得到业务数据界面。提高了界面生成的效率。因此本发明提出的基于配置化的界面生成方法可以解决界面生成的效率较低的问题。In the embodiment of the present invention, by identifying a plurality of interface elements in the historical interface to be referenced, and performing element screening on the plurality of interface elements according to the received interface function request, a plurality of standard reference elements are obtained. Elements can be used as the data basis for subsequent configuration, and a plurality of the standard reference elements are configured separately to obtain an element configuration module. The element configuration module can be used as a reference module for efficient interface generation. For business data, interface display is performed on the business data based on the element configuration module to obtain a business data interface. Improved the efficiency of interface generation. Therefore, the configuration-based interface generation method proposed by the present invention can solve the problem of low interface generation efficiency.
如图8所示,是本发明一实施例提供的基于配置化的界面生成装置的功能模块图。As shown in FIG. 8 , it is a functional block diagram of a configuration-based interface generation apparatus provided by an embodiment of the present invention.
本发明所述基于配置化的界面生成装置100可以安装于电子设备中。根据实现的功能,所述基于配置化的界面生成装置100可以包括元素识别模块101、元素筛选模块102、配置化模块103及界面展示模块104。本发明所述模块也可以称之为单元,是指一种能够被电子设备处理器所执行,并且能够完成固定功能的一系列计算机程序段,其存储在电子设备的存储器中。The configuration-based
在本实施例中,关于各模块/单元的功能如下:In this embodiment, the functions of each module/unit are as follows:
所述元素识别模块101,用于获取待参考历史界面,并识别出所述待参考历史界面中的多个界面元素;The
所述元素筛选模块102,用于根据接收到的界面功能请求对多个所述界面元素进行元素筛选,得到多个标准参考元素;The
所述配置化模块103,用于分别对多个所述标准参考元素进行配置化处理,得到元素配置模块;The
所述界面展示模块104,用于接收预设聚合平台中的业务数据,基于所述元素配置模块对所述业务数据进行界面展示,得到业务数据界面。The
详细地,所述基于配置化的界面生成装置100各模块的具体实施方式如下:In detail, the specific implementation of each module of the configuration-based
步骤一、获取待参考历史界面,并识别出所述待参考历史界面中的多个界面元素。Step 1: Obtain the historical interface to be referenced, and identify a plurality of interface elements in the historical interface to be referenced.
本发明实施例中,所述待参考历史界面是指后端管理系统中的管理界面,其中,所述待参考历史界面中包含多个不同功能的界面元素,每一个界面元素具有不同的功能,所述界面元素可以为图标和光标、菜单、工具栏、状态栏或者交互对象。In this embodiment of the present invention, the history interface to be referenced refers to a management interface in a back-end management system, wherein the history interface to be referenced includes a plurality of interface elements with different functions, and each interface element has a different function. The interface elements may be icons and cursors, menus, toolbars, status bars, or interactive objects.
由于一个待参考历史界面中往往包含不止一个界面元素,因此需要识别出所述待参考历史界面中的多个界面元素,并以多个所述界面元素作为参考,便于后续进行元素拆解。Since a historical interface to be referenced often contains more than one interface element, it is necessary to identify a plurality of interface elements in the historical interface to be referenced, and use the plurality of interface elements as a reference to facilitate subsequent element disassembly.
具体地,所述识别出所述待参考历史界面中的多个界面元素,包括:Specifically, the identifying a plurality of interface elements in the to-be-referenced history interface includes:
识别出多种界面元素定位插件对应的通用插口,所述通用插口中配置有接口调用信息;Identifying general sockets corresponding to various interface element positioning plug-ins, the general sockets are configured with interface calling information;
通过所述通用插口读取所述所述界面元素的元素类名及所述待参考历史界面中的界面元素。The element class name of the interface element and the interface element in the to-be-referenced history interface are read through the general socket.
详细地,所述界面元素定位插件用于对界面中的界面元素进行定位操作,通用接口中配置有用于指示调用各界面元素定位插件接口的接口调用信息。该通用接口为统一对外接口,用于读取不同界面生成框架生成的界面中的界面元素。其中,通用接口可以是已经生成的或者临时根据多种界面元素定位插件生成的接口。通过读取通用接口中的接口调用信息,可以调用各界面元素定位插件接口,进而可以把通过通用接口读取到界面元素发送到各对应的界面元素定位插件,以由对应的界面元素定位插件进行元素定位。Specifically, the interface element locating plug-in is used for locating interface elements in the interface, and the general interface is configured with interface invocation information for instructing invoking the interface of each interface element locating plug-in. The general interface is a unified external interface, which is used to read interface elements in interfaces generated by different interface generation frameworks. Wherein, the common interface may be an interface that has been generated or an interface that is temporarily generated according to a variety of interface element positioning plug-ins. By reading the interface call information in the general interface, the interface element positioning plug-in interface can be called, and then the interface elements read through the general interface can be sent to each corresponding interface element positioning plug-in, so that the corresponding interface element positioning plug-in can perform the corresponding interface element positioning plug-in. Element positioning.
进一步地,所述识别出多种界面元素定位插件对应的通用插口之前,所述方法还包括:Further, before identifying the universal sockets corresponding to various interface element positioning plug-ins, the method further includes:
获取多种界面生成框架对应的多种界面元素定位插件;Obtain various interface element positioning plug-ins corresponding to various interface generation frameworks;
根据多种界面元素定位插件的接口信息生成通用接口。Generate a general interface according to the interface information of the positioning plug-in of various interface elements.
详细地,所述通用接口为根据多种界面生成框架对应的多种界面元素定位插件的接口信息生成的接口,因此可以通过通用接口调用各个界面元素定位插件的接口。In detail, the general interface is an interface generated according to the interface information of various interface element locating plug-ins corresponding to various interface generating frameworks, so the interfaces of each interface element locating plug-in can be called through the general interface.
例如,假设UILocator为针对UI构建框架生成的界面的界面元素定位器,用于对UI界面的界面元素进行元素定位。UILocator可以对多种类别的UI构建框架生成的界面进行元素定位。例如IE界面、Sap界面,Chrome界面等。UILocator设置统一对外接口,即通用接口。可通过UILocator的接口读取界面元素之后,由界面元素定位插件IELocator、SapLocator或ChromeLocator获取界面元素的定位信息。For example, it is assumed that UILocator is an interface element locator for an interface generated by the UI construction framework, and is used to perform element positioning on interface elements of the UI interface. UILocator can locate elements of interfaces generated by various types of UI construction frameworks. For example, IE interface, Sap interface, Chrome interface, etc. UILocator sets a unified external interface, that is, a general interface. After reading the interface element through the interface of UILocator, the location information of the interface element can be obtained by the interface element location plug-in IELocator, SapLocator or ChromeLocator.
步骤二、根据接收到的界面功能请求对多个所述界面元素进行元素筛选,得到多个标准参考元素。Step 2: Perform element screening on a plurality of the interface elements according to the received interface function request to obtain a plurality of standard reference elements.
本发明实施例中,所述界面功能请求是指需要对界面进行何种操作的需求,例如,新增一个界面功能,修改一个界面功能等。由于不同的界面功能所需要用到的界面元素不一样,因此需要从多个所述界面元素中筛选出一个或者多个界面元素进行后续的配置化处理。In the embodiment of the present invention, the interface function request refers to a requirement of what operation needs to be performed on the interface, for example, adding an interface function, modifying an interface function, and the like. Since different interface functions require different interface elements, one or more interface elements need to be screened out from a plurality of the interface elements for subsequent configuration processing.
具体地,所述根据接收到的界面功能请求对多个所述界面元素进行元素筛选,得到多个标准参考元素,包括:Specifically, performing element screening on a plurality of the interface elements according to the received interface function request to obtain a plurality of standard reference elements, including:
获取多个所述界面元素的元素数量,根据所述元素数量为多个所述界面元素生成对应的数字编码,并在所述界面元素所处的位置展示对应的数字编码;Acquire the number of elements of a plurality of the interface elements, generate corresponding digital codes for the plurality of interface elements according to the number of elements, and display the corresponding digital codes at the positions of the interface elements;
对所述界面功能请求进行解析处理,得到解析功能文本,提取出所述解析功能文本中的功能关键词,并在预设的编码参考表中搜索得到所述功能关键词对应的目标数字编码;Perform parsing processing on the interface function request, obtain parsing function text, extract function keywords in the parsing function text, and search a preset coding reference table to obtain the target digital code corresponding to the function keyword;
根据所述目标数字编码确定对应的界面元素,并将对应的界面元素作为标准参考元素。The corresponding interface element is determined according to the target digital code, and the corresponding interface element is used as a standard reference element.
详细地,所述界面元素可以是可满足交互需求的软件或系统界面所包含的满足用户交互要求的一系列元素,例如:窗口、对话框、菜单、滚动条或图标等。In detail, the interface elements may be a series of elements included in the software or system interface that can meet the interaction requirements and meet the user interaction requirements, such as: windows, dialog boxes, menus, scroll bars or icons.
进一步地,所述根据所述元素数量为多个所述界面元素生成对应的数字编码,包括:Further, generating corresponding digital codes for a plurality of the interface elements according to the number of elements, including:
将所述元素数量与预设的参考阈值进行比较;comparing the number of elements with a preset reference threshold;
当所述元素数量小于或者等于所述参考阈值时,采用预设第一编码规则对所述界面元素进行数字编码,得到所述界面元素对应的数字编码;When the number of elements is less than or equal to the reference threshold, digitally encode the interface element by using a preset first encoding rule to obtain a digital code corresponding to the interface element;
当所述元素数量大于所述参考阈值时,采用预设第二编码规则对所述界面元素进行数字编码,得到所述界面元素对应的数字编码。When the number of elements is greater than the reference threshold, a preset second encoding rule is used to digitally encode the interface element to obtain a digital encoding corresponding to the interface element.
详细地,所述参考阈值可根据不同的需求进行设定,例如:当所述参考阈值设置为10,即当所述界面元素的数量小于等于10时,可按照0~9的编码规则(即第一编码规则)对各界面元素进行编码;当所述元素数量大于10时,可按照00~99的编码规则(即第二编码规则)对各界面元素进行编码(00、01、02……99)。In detail, the reference threshold can be set according to different requirements, for example: when the reference threshold is set to 10, that is, when the number of the interface elements is less than or equal to 10, the coding rules of 0 to 9 (ie, The first coding rule) encodes each interface element; when the number of elements is greater than 10, each interface element can be coded (00, 01, 02... 99).
步骤三、分别对多个所述标准参考元素进行配置化处理,得到元素配置模块。Step 3: Perform configuration processing on a plurality of the standard reference elements to obtain an element configuration module.
本发明实施例中,通过对所述标准参考元素进行配置化处理,得到所述元素配置模块,其中,所述元素配置模块可以提高了研发的效率,作为后续使用的基础配置模块。In the embodiment of the present invention, the element configuration module is obtained by performing configuration processing on the standard reference element, wherein the element configuration module can improve the efficiency of research and development and serve as a basic configuration module for subsequent use.
具体地,所述分别对多个所述标准参考元素进行配置化处理,得到元素配置模块,包括:Specifically, the configuration processing is performed on a plurality of the standard reference elements respectively to obtain an element configuration module, including:
分别识别出多个所述标准参考元素中的第一元素、第二元素和第三元素;respectively identifying the first element, the second element and the third element in the plurality of the standard reference elements;
对所述第一元素进行元素新增处理,得到第一配置元素;Perform element addition processing on the first element to obtain a first configuration element;
基于预设的修改规则对所述第二元素进行元素修改处理,得到第二配置元素;Perform element modification processing on the second element based on a preset modification rule to obtain a second configuration element;
对所述第三元素进行权限配置处理,得到第三配置元素;Perform permission configuration processing on the third element to obtain a third configuration element;
对所述第一配置元素、所述第二配置元素和所述第三配置元素进行整合处理,得到元素配置模块。The first configuration element, the second configuration element and the third configuration element are integrated to obtain an element configuration module.
详细地,在本方案中,所述第一元素为菜单,所述第二元素为表头,所述第三元素为权限。对所述第一元素进行元素新增处理是指进行新增菜单处理,一般是指在主菜单下面再增添子菜单,例如所述主菜单为系统管理、财务管理、系统监控和系统工具,可以在主菜单财务管理下新增缴费记录、费用信息、退款列表和历史缴费记录等多个子菜单。基于预设的修改规则对所述第二元素进行元素修改处理是指对表头中的插入选项、编辑选项、列表选项进行选择,对字段列名、字段描述、物理类型等表头进行填空。例如,字段列名为id,字段描述为null,物理类型为Int(11),Java类型为Long,Java属性为Id等。对所述第三元素进行权限配置处理是指对权限的开放进行选择,在本方案中,财务管理部门的权限只针对于无抵押产品部,而不针对无抵押引擎配置员、无抵押存量审核员和无抵押存量配置员等。Specifically, in this solution, the first element is a menu, the second element is a header, and the third element is a permission. Performing element addition processing on the first element refers to performing new menu processing, generally referring to adding submenus under the main menu. For example, the main menu is system management, financial management, system monitoring and system tools. In the main menu of financial management, several submenus such as payment records, fee information, refund list and historical payment records are added. Performing element modification processing on the second element based on a preset modification rule refers to selecting insert options, editing options, and list options in the header, and filling in the blanks in headers such as field column names, field descriptions, and physical types. For example, the field column name is id, the field description is null, the physical type is Int(11), the Java type is Long, the Java property is Id, etc. Performing permission configuration processing on the third element refers to selecting the opening of permissions. In this solution, the permissions of the financial management department are only for the unsecured product department, not for the unsecured engine configurator and the unsecured stock audit. members and unsecured stock allocators, etc.
步骤四、接收预设聚合平台中的业务数据,基于所述元素配置模块对所述业务数据进行界面展示,得到业务数据界面。Step 4: Receive the business data in the preset aggregation platform, display the business data on the interface based on the element configuration module, and obtain a business data interface.
本发明实施例中,所述预设聚合平台是指进行数据选择时提供数据源的服务平台,所有数据来源都可以从这个服务平台获取得到数据。In the embodiment of the present invention, the preset aggregation platform refers to a service platform that provides data sources during data selection, and all data sources can obtain data from this service platform.
具体地,所述基于所述元素配置模块对所述业务数据进行界面展示,得到业务数据界面,包括:Specifically, the interface display of the business data based on the element configuration module to obtain a business data interface includes:
对所述业务数据进行数据清洗,得到标准数据;Data cleaning is performed on the business data to obtain standard data;
基于所述元素配置模块对所述标准数据进行数据配置,得到业务数据界面。Data configuration is performed on the standard data based on the element configuration module to obtain a service data interface.
详细地,所述数据清洗包括但不限于数据删除,数据核对,数据验证等处理,目的是为了保证标准数据的准确性,同时避免数据冗余。In detail, the data cleaning includes but is not limited to data deletion, data verification, data verification and other processing, the purpose is to ensure the accuracy of standard data and avoid data redundancy.
本发明实施例中,通过识别出待参考历史界面中的多个界面元素,并根据接收到的界面功能请求对多个所述界面元素进行元素筛选,得到多个标准参考元素,所述标准参考元素可以作为后续配置化的数据基础,分别对多个所述标准参考元素进行配置化处理,得到元素配置模块,所述元素配置模块可以作为高效界面生成的参考模块,接收预设聚合平台中的业务数据,基于所述元素配置模块对所述业务数据进行界面展示,得到业务数据界面。提高了界面生成的效率。因此本发明提出的基于配置化的界面生成装置可以解决界面生成的效率较低的问题。In the embodiment of the present invention, by identifying a plurality of interface elements in the historical interface to be referenced, and performing element screening on the plurality of interface elements according to the received interface function request, a plurality of standard reference elements are obtained. Elements can be used as the data basis for subsequent configuration, and a plurality of the standard reference elements are configured separately to obtain an element configuration module. The element configuration module can be used as a reference module for efficient interface generation. For business data, interface display is performed on the business data based on the element configuration module to obtain a business data interface. Improved the efficiency of interface generation. Therefore, the configuration-based interface generation device proposed by the present invention can solve the problem of low interface generation efficiency.
如图9所示,是本发明一实施例提供的实现基于配置化的界面生成方法的电子设备的结构示意图。As shown in FIG. 9 , it is a schematic structural diagram of an electronic device implementing a configuration-based interface generation method provided by an embodiment of the present invention.
所述电子设备1可以包括处理器10、存储器11、通信总线12以及通信接口13,还可以包括存储在所述存储器11中并可在所述处理器10上运行的计算机程序,如基于配置化的界面生成程序。The electronic device 1 may include a
其中,所述处理器10在一些实施例中可以由集成电路组成,例如可以由单个封装的集成电路所组成,也可以是由多个相同功能或不同功能封装的集成电路所组成,包括一个或者多个中央处理器(Central Processing Unit,CPU)、微处理器、数字处理芯片、图形处理器及各种控制芯片的组合等。所述处理器10是所述电子设备的控制核心(ControlUnit),利用各种接口和线路连接整个电子设备的各个部件,通过运行或执行存储在所述存储器11内的程序或者模块(例如执行基于配置化的界面生成程序等),以及调用存储在所述存储器11内的数据,以执行电子设备的各种功能和处理数据。The
所述存储器11至少包括一种类型的可读存储介质,所述可读存储介质包括闪存、移动硬盘、多媒体卡、卡型存储器(例如:SD或DX存储器等)、磁性存储器、磁盘、光盘等。所述存储器11在一些实施例中可以是电子设备的内部存储单元,例如该电子设备的移动硬盘。所述存储器11在另一些实施例中也可以是电子设备的外部存储设备,例如电子设备上配备的插接式移动硬盘、智能存储卡(Smart Media Card,SMC)、安全数字(Secure Digital,SD)卡、闪存卡(Flash Card)等。进一步地,所述存储器11还可以既包括电子设备的内部存储单元也包括外部存储设备。所述存储器11不仅可以用于存储安装于电子设备的应用软件及各类数据,例如基于配置化的界面生成程序的代码等,还可以用于暂时地存储已经输出或者将要输出的数据。The
所述通信总线12可以是外设部件互连标准(Peripheral ComponentInterconnect,简称PCI)总线或扩展工业标准结构(Extended Industry StandardArchitecture,简称EISA)总线等。该总线可以分为地址总线、数据总线、控制总线等。所述总线被设置为实现所述存储器11以及至少一个处理器10等之间的连接通信。The
所述通信接口13用于上述电子设备与其他设备之间的通信,包括网络接口和用户接口。可选地,所述网络接口可以包括有线接口和/或无线接口(如WI-FI接口、蓝牙接口等),通常用于在该电子设备与其他电子设备之间建立通信连接。所述用户接口可以是显示器(Display)、输入单元(比如键盘(Keyboard)),可选地,用户接口还可以是标准的有线接口、无线接口。可选地,在一些实施例中,显示器可以是LED显示器、液晶显示器、触控式液晶显示器以及OLED(Organic Light-Emitting Diode,有机发光二极管)触摸器等。其中,显示器也可以适当的称为显示屏或显示单元,用于显示在电子设备中处理的信息以及用于显示可视化的用户界面。The
图9仅示出了具有部件的电子设备,本领域技术人员可以理解的是,图9示出的结构并不构成对所述电子设备1的限定,可以包括比图示更少或者更多的部件,或者组合某些部件,或者不同的部件布置。FIG. 9 only shows an electronic device with components. Those skilled in the art can understand that the structure shown in FIG. 9 does not constitute a limitation on the electronic device 1, and may include fewer or more components than those shown in the drawings. components, or a combination of certain components, or a different arrangement of components.
例如,尽管未示出,所述电子设备还可以包括给各个部件供电的电源(比如电池),优选地,电源可以通过电源管理装置与所述至少一个处理器10逻辑相连,从而通过电源管理装置实现充电管理、放电管理、以及功耗管理等功能。电源还可以包括一个或一个以上的直流或交流电源、再充电装置、电源故障检测电路、电源转换器或者逆变器、电源状态指示器等任意组件。所述电子设备还可以包括多种传感器、蓝牙模块、Wi-Fi模块等,在此不再赘述。For example, although not shown, the electronic device may also include a power source (such as a battery) for powering the various components, preferably, the power source may be logically connected to the at least one
应该了解,所述实施例仅为说明之用,在专利申请范围上并不受此结构的限制。It should be understood that the embodiments are only used for illustration, and are not limited by this structure in the scope of the patent application.
所述电子设备1中的所述存储器11存储的基于配置化的界面生成程序是多个指令的组合,在所述处理器10中运行时,可以实现:The configuration-based interface generation program stored in the
获取待参考历史界面,并识别出所述待参考历史界面中的多个界面元素;Obtain the historical interface to be referenced, and identify a plurality of interface elements in the historical interface to be referenced;
根据接收到的界面功能请求对多个所述界面元素进行元素筛选,得到多个标准参考元素;Perform element screening on a plurality of the interface elements according to the received interface function request to obtain a plurality of standard reference elements;
分别对多个所述标准参考元素进行配置化处理,得到元素配置模块;Perform configuration processing on a plurality of the standard reference elements respectively to obtain an element configuration module;
接收预设聚合平台中的业务数据,基于所述元素配置模块对所述业务数据进行界面展示,得到业务数据界面。The business data in the preset aggregation platform is received, and an interface is displayed on the business data based on the element configuration module to obtain a business data interface.
具体地,所述处理器10对上述指令的具体实现方法可参考附图对应实施例中相关步骤的描述,在此不赘述。Specifically, for the specific implementation method of the above-mentioned instruction by the
进一步地,所述电子设备1集成的模块/单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个存储介质中。所述存储介质可以是易失性的,也可以是非易失性的。例如,所述计算机可读介质可以包括:能够携带所述计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM,Read-Only Memory)。Further, if the modules/units integrated in the electronic device 1 are implemented in the form of software functional units and sold or used as independent products, they may be stored in a storage medium. The storage medium may be volatile or non-volatile. For example, the computer-readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a removable hard disk, a magnetic disk, an optical disc, a computer memory, a read-only memory (ROM, Read-Only). Memory).
本发明还提供一种存储介质,所述可读存储介质存储有计算机程序,所述计算机程序在被电子设备的处理器所执行时,可以实现:The present invention also provides a storage medium, where the readable storage medium stores a computer program, and when the computer program is executed by the processor of the electronic device, the computer program can realize:
获取待参考历史界面,并识别出所述待参考历史界面中的多个界面元素;Obtain the historical interface to be referenced, and identify a plurality of interface elements in the historical interface to be referenced;
根据接收到的界面功能请求对多个所述界面元素进行元素筛选,得到多个标准参考元素;Perform element screening on a plurality of the interface elements according to the received interface function request to obtain a plurality of standard reference elements;
分别对多个所述标准参考元素进行配置化处理,得到元素配置模块;Perform configuration processing on a plurality of the standard reference elements respectively to obtain an element configuration module;
接收预设聚合平台中的业务数据,基于所述元素配置模块对所述业务数据进行界面展示,得到业务数据界面。The business data in the preset aggregation platform is received, and an interface is displayed on the business data based on the element configuration module to obtain a business data interface.
在本发明所提供的几个实施例中,应该理解到,所揭露的设备,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。In the several embodiments provided by the present invention, it should be understood that the disclosed apparatus, apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are only illustrative. For example, the division of the modules is only a logical function division, and there may be other division manners in actual implementation.
所述作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。The modules described as separate components may or may not be physically separated, and components shown as modules may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
另外,在本发明各个实施例中的各功能模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能模块的形式实现。In addition, each functional module in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware, or can be implemented in the form of hardware plus software function modules.
对于本领域技术人员而言,显然本发明不限于上述示范性实施例的细节,而且在不背离本发明的精神或基本特征的情况下,能够以其他的具体形式实现本发明。It will be apparent to those skilled in the art that the present invention is not limited to the details of the above-described exemplary embodiments, but that the present invention may be embodied in other specific forms without departing from the spirit or essential characteristics of the invention.
因此,无论从哪一点来看,均应将实施例看作是示范性的,而且是非限制性的,本发明的范围由所附权利要求而不是上述说明限定,因此旨在将落在权利要求的等同要件的含义和范围内的所有变化涵括在本发明内。不应将权利要求中的任何附关联图标记视为限制所涉及的权利要求。Therefore, the embodiments are to be regarded in all respects as illustrative and not restrictive, and the scope of the invention is to be defined by the appended claims rather than the foregoing description, which are therefore intended to fall within the scope of the claims. All changes within the meaning and range of the equivalents of , are included in the present invention. Any reference signs in the claims shall not be construed as limiting the involved claim.
本发明所指区块链是分布式数据存储、点对点传输、共识机制、加密算法等计算机技术的新型应用模式。区块链(Blockchain),本质上是一个去中心化的数据库,是一串使用密码学方法相关联产生的数据块,每一个数据块中包含了一批次网络交易的信息,用于验证其信息的有效性(防伪)和生成下一个区块。区块链可以包括区块链底层平台、平台产品服务层以及应用服务层等。The blockchain referred to in the present invention is a new application mode of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanism, and encryption algorithm. Blockchain, essentially a decentralized database, is a series of data blocks associated with cryptographic methods. Each data block contains a batch of network transaction information to verify its Validity of information (anti-counterfeiting) and generation of the next block. The blockchain can include the underlying platform of the blockchain, the platform product service layer, and the application service layer.
本申请实施例可以基于人工智能技术对相关的数据进行获取和处理。其中,人工智能(Artificial Intelligence,AI)是利用数字计算机或者数字计算机控制的机器模拟、延伸和扩展人的智能,感知环境、获取知识并使用知识获得最佳结果的理论、方法、技术及应用系统。The embodiments of the present application may acquire and process related data based on artificial intelligence technology. Among them, artificial intelligence (AI) is a theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results. .
此外,显然“包括”一词不排除其他单元或步骤,单数不排除复数。系统权利要求中陈述的多个单元或装置也可以由一个单元或装置通过软件或者硬件来实现。第一、第二等词语用来表示名称,而并不表示任何特定的顺序。Furthermore, it is clear that the word "comprising" does not exclude other units or steps and the singular does not exclude the plural. Several units or means recited in the system claims can also be realized by one unit or means by means of software or hardware. The words first, second, etc. are used to denote names and do not denote any particular order.
最后应说明的是,以上实施例仅用以说明本发明的技术方案而非限制,尽管参照较佳实施例对本发明进行了详细说明,本领域的普通技术人员应当理解,可以对本发明的技术方案进行修改或等同替换,而不脱离本发明技术方案的精神和范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and not to limit them. Although the present invention has been described in detail with reference to the preferred embodiments, those of ordinary skill in the art should understand that the technical solutions of the present invention can be Modifications or equivalent substitutions can be made without departing from the spirit and scope of the technical solutions of the present invention.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210593971.6A CN114911479A (en) | 2022-05-27 | 2022-05-27 | Interface generation method, device, equipment and storage medium based on configuration |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210593971.6A CN114911479A (en) | 2022-05-27 | 2022-05-27 | Interface generation method, device, equipment and storage medium based on configuration |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN114911479A true CN114911479A (en) | 2022-08-16 |
Family
ID=82768472
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202210593971.6A Pending CN114911479A (en) | 2022-05-27 | 2022-05-27 | Interface generation method, device, equipment and storage medium based on configuration |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN114911479A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115328483A (en) * | 2022-08-22 | 2022-11-11 | 北京达佳互联信息技术有限公司 | Method and device for managing service function entrance, electronic equipment and storage medium |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US10540064B1 (en) * | 2016-12-21 | 2020-01-21 | Juniper Networks, Inc. | Framework for creating hierarchical navigation trees using user interface plugins |
| CN111078339A (en) * | 2019-11-29 | 2020-04-28 | 苏宁云计算有限公司 | Interface element positioning method and device, computer equipment and storage medium |
| CN113268303A (en) * | 2021-05-27 | 2021-08-17 | 北京大米科技有限公司 | Interface element configuration method and device, storage medium and electronic equipment |
-
2022
- 2022-05-27 CN CN202210593971.6A patent/CN114911479A/en active Pending
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US10540064B1 (en) * | 2016-12-21 | 2020-01-21 | Juniper Networks, Inc. | Framework for creating hierarchical navigation trees using user interface plugins |
| CN111078339A (en) * | 2019-11-29 | 2020-04-28 | 苏宁云计算有限公司 | Interface element positioning method and device, computer equipment and storage medium |
| CN113268303A (en) * | 2021-05-27 | 2021-08-17 | 北京大米科技有限公司 | Interface element configuration method and device, storage medium and electronic equipment |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115328483A (en) * | 2022-08-22 | 2022-11-11 | 北京达佳互联信息技术有限公司 | Method and device for managing service function entrance, electronic equipment and storage medium |
| CN115328483B (en) * | 2022-08-22 | 2024-03-19 | 北京达佳互联信息技术有限公司 | Management method and device for business function entry, electronic equipment and storage medium |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN113239106B (en) | Excel file export method and device, electronic equipment and storage medium | |
| CN114881616A (en) | Business process execution method and device, electronic equipment and storage medium | |
| CN114398282A (en) | Test script generation method, device, device and storage medium | |
| CN113806434A (en) | Big data processing method, device, equipment and medium | |
| CN113282854A (en) | Data request response method and device, electronic equipment and storage medium | |
| CN111985194A (en) | Data storage method and device, electronic equipment and storage medium | |
| CN112580079A (en) | Authority configuration method and device, electronic equipment and readable storage medium | |
| CN115543198A (en) | Method, device, electronic equipment and storage medium for unstructured data into lake | |
| CN115033605A (en) | Data query method and device, electronic equipment and storage medium | |
| CN114626103A (en) | Data consistency comparison method, device, equipment and medium | |
| CN112328656B (en) | Service query method, device, equipment and storage medium based on middle platform architecture | |
| CN113434542A (en) | Data relation identification method and device, electronic equipment and storage medium | |
| CN112667244A (en) | Data verification method, apparatus, electronic device and computer-readable storage medium | |
| CN115220740A (en) | Database environment deployment method, device, electronic device and storage medium | |
| CN114519084A (en) | Block chain-based medical data inspection method, device, equipment and medium | |
| CN114547696A (en) | File desensitization method and device, electronic equipment and storage medium | |
| CN114911479A (en) | Interface generation method, device, equipment and storage medium based on configuration | |
| CN114138243A (en) | Function calling method, device, equipment and storage medium based on development platform | |
| CN113268514A (en) | Multidimensional data statistical method and device, electronic equipment and storage medium | |
| CN113469649A (en) | Project progress analysis method and device, electronic equipment and storage medium | |
| CN113468175A (en) | Data compression method and device, electronic equipment and storage medium | |
| CN112686759A (en) | Account checking monitoring method, device, equipment and medium | |
| CN111859452A (en) | Page information verification method, apparatus, device, and computer-readable storage medium | |
| CN113434359B (en) | Data traceability system construction method and device, electronic device and readable storage medium | |
| CN113672483B (en) | Device log storage method and device, electronic device and medium |
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 |