Page generation method and device, electronic equipment and storage medium
By providing a page generation method and device without programming on the business intelligence platform, the problem of programming basics in the prior art is solved, and the simplification of page generation and the increase in popularity are achieved.
Patent Information
- Application Number
- CN202411573741.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-05
- Publication Date
- 2025-02-14
AI Technical Summary
The page generation method of existing business intelligence platforms requires programming basics, which limits the use of users without programming experience, is highly professional and has a low popularity rate.
A page generation method and device are proposed, by receiving page editing requests and generating requests, displaying page templates and inserting field values in data sources into data insertion area to generate target pages without programming.
It enables page generation without programming, which is suitable for users with weak programming experience, improves usage penetration and simplifies the page generation process.
Smart Images

Figure CN119440510A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of artificial intelligence technology, and in particular to a page generation method and device, an electronic device, and a storage medium. Background Art
[0002] With the development of science and technology, data information has become an important part of human life, and information visualization can easily process and display data information.
[0003] Business Intelligence (BI) platform is one of the most widely used data tools. One of the core functions of the BI platform is data visualization. It converts data into intuitive and easy-to-understand visual information through various visualization methods such as charts, dashboards, and geographic maps. Since the BI platform mainly uses SQL and Python, which have a broad developer base, the learning cost is very low and it is deeply favored by enterprises.
[0004] The BI platform processes data visualization by writing code. For users, this means that they need to have a certain programming foundation, which is not suitable for most users, especially those without programming experience. In other words, the above page generation method is highly professional and has a low popularity rate. Summary of the invention
[0005] The main purpose of the embodiments of the present application is to propose a page generation and device, an electronic device and a storage medium, aiming to increase the popularity of use.
[0006] To achieve the above objective, a first aspect of an embodiment of the present application provides a page generation method, the method comprising:
[0007] Receiving a page editing request, the page editing request including an identifier of a data source, the data source including at least one field, each of the fields corresponding to at least one field value;
[0008] In response to the page editing request, displaying a page template, the page template including a label corresponding to each of the fields and a data insertion area corresponding to each label;
[0009] Receive page generation request;
[0010] In response to the page generation request, the field value in the data source is inserted into the data insertion area to generate a first target page.
[0011] In some embodiments, displaying a page template in response to the page editing request includes:
[0012] In response to the page editing request, determining a field to be bound from each of the fields;
[0013] According to the field to be bound and the corresponding at least one field value, the label and the data insertion area are set in the initial page template to generate the page template;
[0014] The page template is displayed.
[0015] In some embodiments, the step of setting the label and the data insertion area in the initial page template according to the field to be bound and the corresponding at least one field value to generate the page template includes:
[0016] For each of the fields to be bound and the corresponding at least one field value, according to the number of the field values, setting data display areas in the initial page template in the same number as the number of the field values;
[0017] In each of the data display areas, a label corresponding to each of the fields to be bound and the data insertion area are set to obtain the page template.
[0018] In some embodiments, after the data in the data source is inserted into the data insertion area in response to the page generation request to generate the first target page, the method further includes:
[0019] Displaying the first target page;
[0020] receiving an attribute editing request, the attribute editing request including at least one attribute value;
[0021] In response to the property editing request, the first target page is changed based on the at least one property value, and a second target page is displayed.
[0022] In some embodiments, the at least one property value comprises a first property value:
[0023] The step of changing the first target page based on the at least one attribute value in response to the attribute editing request to generate a second target page includes:
[0024] In response to the property editing request, the page display style of the first target page is changed based on the first property value to obtain the second target page, wherein the first property value is generated according to a first logical expression for changing the page display style.
[0025] In some embodiments, the at least one attribute value includes a second attribute value;
[0026] The step of changing the first target page based on the at least one attribute value in response to the attribute editing request to generate a second target page includes:
[0027] In response to the property editing request, the field value display style of the target field in the first target page is changed based on the second property value to obtain the second target page, and the second property value is generated according to a second logical expression used to change the field value display style of the target field.
[0028] In some embodiments, the data source is a data table; and in response to the property editing request, changing the field value display style of the target field in the first target page based on the second property value to obtain the second target page includes:
[0029] In response to the attribute editing request, acquiring the second logical expression pre-entered in the data table;
[0030] If the second logical expression is verified, the second attribute value is generated according to the second logical expression and the field value corresponding to the target field;
[0031] The field value display style of the target field in the first target page is changed based on the second attribute value to obtain the second target page.
[0032] To achieve the above-mentioned purpose, a second aspect of an embodiment of the present application provides a page generation device, the device comprising:
[0033] A receiving module, configured to receive a page editing request, wherein the page editing request includes an identifier of a data source, wherein the data source includes at least one field, and each of the fields corresponds to at least one field value;
[0034] A processing module, configured to display a page template in response to the page editing request, wherein the page template includes a label corresponding to each of the fields and a data insertion area corresponding to each label;
[0035] The receiving module is also used to receive a page generation request;
[0036] The processing module is further used to insert the field value in the data source into the data insertion area in response to the page generation request to generate a first target page.
[0037] In some embodiments, in some embodiments, the device further includes: a display module.
[0038] The processing module is further used to determine the field to be bound from each field in response to the page editing request. The processing module is further used to set a label and a data insertion area in the initial page template according to the field to be bound and the corresponding at least one field value to generate a page template. The display module is used to display the page template.
[0039] In some embodiments, the processing module is also used to set, for each field to be bound and at least one corresponding field value, in the initial page template, the same number of data display areas as the number of field values according to the number of field values; in each data display area, set a label and a data insertion area corresponding to each field to be bound, to obtain a page template.
[0040] In some embodiments, the display module is further used to display the first target page. The receiving module 1201 is further used to receive a property editing request, the property editing request including at least one property value. The processing module 1202 is further used to respond to the property editing request, change the first target page based on the at least one property value, and display the second target page.
[0041] In some embodiments, the processing module is also used to respond to a property editing request, change the page display style of the first target page based on the first property value to obtain a second target page, and the first property value is generated according to a first logical expression for changing the page display style.
[0042] In some embodiments, the processing module is also used to respond to a property editing request, change the field value display style of the target field in the first target page based on the second property value, and obtain a second target page, wherein the second property value is generated according to a second logical expression for changing the field value display style of the target field.
[0043] In some embodiments, the processing module is also used to obtain a second logical expression pre-entered in the data table in response to an attribute editing request; if the second logical expression is verified, a second attribute value is generated according to the second logical expression and the field value corresponding to the target field.
[0044] To achieve the above objectives, a third aspect of an embodiment of the present application proposes an electronic device, which includes a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the method described in the first aspect is implemented.
[0045] To achieve the above-mentioned purpose, the fourth aspect of an embodiment of the present application proposes a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method described in the first aspect is implemented.
[0046] The page generation method and device, electronic device and storage medium proposed in the present application can directly insert the field values in the data source into the page template to generate the page, without the need to generate the page in a programming manner. It is suitable for users with weak programming experience, especially those with no programming experience. The corresponding page can be obtained through simple operations, and it can be suitable for most users, thereby increasing the popularity of use. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] Figure 1 is a flow chart of a page generation method provided by an embodiment of the present application;
[0048] Figure 2 It is a schematic diagram of the platform interface provided by the embodiment of the present application;
[0049] Figure 3 This is a schematic diagram of a page template provided in an embodiment of the present application;
[0050] Figure 4 This is another schematic diagram of the platform interface provided in the embodiment of the present application;
[0051] Figure 5 yes Figure 1 Flow chart of step S102 in FIG.
[0052] Figure 6 is another flow chart of the page generation method provided in the embodiment of the present application;
[0053] Figure 7 This is another schematic diagram of the platform interface provided by the embodiment of the present application;
[0054] Figure 8 It is a schematic diagram of the page display style of the target page provided in the embodiment of the present application;
[0055] Fig. 9 It is a more schematic diagram of the field value display style of the target field in the target page provided by the embodiment of the present application;
[0056] Fig.10 is a schematic diagram of a second target page provided in an embodiment of the present application;
[0057] Fig.11 This is a schematic diagram of the attribute insertion column interface provided in an embodiment of the present application;
[0058] Fig.12 is a structural schematic diagram of a page generating device provided in an embodiment of the present application;
[0059] Fig.13 It is a schematic diagram of the hardware structure of the electronic device provided in the embodiment of the present application. DETAILED DESCRIPTION
[0060] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0061] It should be noted that, although the functional modules are divided in the device schematic diagram and the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the device or the order in the flowchart. The terms "first", "second", etc. in the specification, claims and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0062] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.
[0063] The BI platform processes data visualization by writing code. For users, when developing dynamic attributes, they need to consult documents and have a deep understanding of the input and output data formats, which means that they need to have a certain programming foundation, which is not suitable for most users, especially those without programming experience. In other words, the above page generation method is highly professional and has a low popularity rate.
[0064] Based on this, the embodiments of the present application provide a page generation method and device, an electronic device and a storage medium, aiming to increase the popularity of usage.
[0065] The page generation method and device, electronic device and storage medium provided in the embodiments of the present application are specifically described through the following embodiments. First, the page generation method in the embodiments of the present application is described.
[0066] The embodiments of the present application can acquire and process relevant data based on artificial intelligence technology. Among them, artificial intelligence (AI) is the 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.
[0067] AI basic technologies generally include sensors, dedicated AI chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, mechatronics, etc. AI software technologies mainly include computer vision technology, robotics technology, biometrics technology, speech processing technology, natural language processing technology, and machine learning / deep learning.
[0068] The page generation method provided in the embodiment of the present application relates to the field of artificial intelligence technology. The page generation method provided in the embodiment of the present application can be applied to a terminal, can be applied to a server side, or can be software running in a terminal or a server side. In some embodiments, the terminal can be a smart phone, a tablet computer, a laptop computer, a desktop computer, etc.; the server side can be configured as an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms; the software can be an application that implements the page generation method, etc., but is not limited to the above forms.
[0069] The present application can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc. The present application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application can also be practiced in distributed computing environments, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.
[0070] Figure 1 is a flow chart of a page generation method provided in an embodiment of the present application. Figure 1 The method may include but is not limited to steps S101 to S104.
[0071] Step S101: receiving a page editing request, wherein the page editing request includes an identifier of a data source, wherein the data source includes at least one field, and each of the fields corresponds to at least one field value.
[0072] In this embodiment, the user triggers a page editing request in the platform interface, and the page editing request includes an identifier of a data source, at least one field in the data source, and each field corresponds to at least one field value, wherein the identifier of the data source can be the name of the data source or the ID of the data source.
[0073] Specifically, the data source is obtained in the following ways:
[0074] A filtering condition for a data source is obtained, where the filtering condition includes at least one target field; data matching the target field is obtained from the original data, where the matching data is the data source.
[0075] In this embodiment, the user selects or enters a filter condition in the platform interface. The filter condition is used to filter the data to ensure that only data that meets the specific condition is displayed or processed. The filter condition includes at least one target field, see Figure 2 The interface includes filter components, row dimension components, column dimension components, and query components ( Figure 2 (not shown), where the user selects a field through the filter component, such as statistical time, for example, July, August and September 2023; the user selects 3 fields through the column dimension component, including: net premium value NBEV, year-on-year, and achievement rate, where net premium value is an indicator used to measure the present value of insurance products. The statistical time field is selected through the row dimension component, and the above statistical time, NBEV, year-on-year, and achievement rate are all target fields. The user triggers a data filtering request by clicking the query component, receives the data filtering request, and obtains the filtering conditions for the data source.
[0076] Furthermore, data matching the target field is obtained from the original data. The original data includes multiple fields, each field corresponds to at least one field value. The corresponding data is matched from the original data according to the target field. The matched data is the data source. The filtered data source is displayed in the platform interface. See Figure 2 The data source can be in the form of a table. The filtered data is displayed in the interface. The row header of the table corresponds to the statistical time of the row dimension, the column header corresponds to the three fields of the column dimension, and the data area is the numerical value corresponding to the row header and column header.
[0077] Optionally, the platform interface also includes an organization tree component, including multiple regional identifiers. When filtering, the user can select the corresponding regional identifier through the organization number component. For example, select region A and add the regional identifier to the filtering conditions. The filtered data is the NBEV, year-on-year growth, and achievement rate of region A in July, August and September 2023.
[0078] Step S102, in response to the page editing request, displaying a page template, wherein the page template includes a label corresponding to each of the fields and a data insertion area corresponding to each label.
[0079] In this embodiment, in response to a page editing request, a page template is displayed, the page template including a label corresponding to each field, and each label corresponds to a data insertion area, the data insertion area is used to insert the field value of the corresponding field.
[0080] See also Figure 3 , Figure 3 It is a schematic diagram of a page template. The page template includes a label corresponding to NBEV and a label corresponding to YOY. Each label corresponds to a data insertion area. The area labeled 1 is the data insertion area corresponding to the field value of NBEV, and the area labeled 2 is the data insertion area corresponding to the field value of YOY. In the details, you can configure information related to the target page so that you can view more information related to the target page.
[0081] It should be noted that the above-mentioned labels and label data insertion areas are not limited to the above-mentioned positions in the interface, but can also be other positions in the interface. The fields are not limited to the above-mentioned NBEV, year-on-year, and achievement rate.
[0082] Step S103: receiving a page generation request.
[0083] In this embodiment, the user triggers a generation control in the platform interface and receives a page generation request.
[0084] Step S104, in response to the page generation request, inserting the field value in the data source into the data insertion area to generate a first target page.
[0085] In this embodiment, in response to the page generation request, the field value in the data source is inserted into the data insertion area to generate the first target page. Figure 4 , the field value is inserted into the corresponding data insertion area to generate the first target page.
[0086] Steps S101 to S104 shown in the embodiment of the present application receive a page editing request, the page editing request includes an identifier of a data source, the data source includes at least one field, each field corresponds to at least one field value, and in response to the page editing request, a page template is displayed, the page template includes a label corresponding to each field, and a data insertion area corresponding to each label, a page generation request is received, and in response to the request, the field value in the data source is inserted into the data insertion area to generate a first target page. The field value in the data source can be directly inserted into the page template to generate a page, and there is no need to generate the page in a programming manner. The page is suitable for users with weak programming experience, especially users with no programming experience. The corresponding page can be obtained through simple operations. The page is suitable for most users, thereby increasing the popularity of use.
[0087] See also Figure 5 , Figure 5 yes Figure 1 Flow chart of step S102 in FIG. 1 ; in some embodiments, step S102 may include but is not limited to steps S501 to S502:
[0088] Step S501, in response to the page editing request, determining a field to be bound from each field.
[0089] In this embodiment, in response to a page editing request, the fields to be bound are determined from each field. If some fields do not need to be displayed in the first target page, the user can choose not to bind so that the first target page does not include the field. If some fields need to be displayed in the first target page, the user can choose to bind so that they are displayed in the first target page.
[0090] See also Figure 4 The data source includes three fields: NBEV, year-on-year growth, and achievement rate. By binding NBEV and year-on-year growth, but not the achievement rate, the first target page finally obtained does not include the achievement rate field and the corresponding field value. Users can configure it by themselves to get different display effects.
[0091] Step S502: according to the field to be bound and the corresponding at least one field value, the label and the data insertion area are set in the initial page template to generate the page template.
[0092] In this embodiment, according to the field to be bound and at least one corresponding field value, a label and a data insertion area are set in the initial page template, and the data insertion area is used to insert the field value, thereby generating a page template.
[0093] Step S503: display the page template.
[0094] In this embodiment, a page template is displayed, and the page template can be automatically generated through fields and field values. The user can flexibly configure the fields to obtain different page templates.
[0095] In some embodiments, according to the field to be bound and the corresponding at least one field value, setting a label and a data insertion area in the initial page template to generate a page template includes:
[0096] For each of the fields to be bound and at least one corresponding field value, data display areas with the same number as the number of field values are set in the initial page template according to the number of the field values; in each of the data display areas, labels corresponding to each of the fields to be bound and the data insertion area are set to obtain the page template.
[0097] In this embodiment, for each field to be bound and at least one field value corresponding to each field to be bound, a data display area is set in the initial page template according to the number of field values, and the number of data display areas is the same as the number of field values, that is, the same number of data display areas as the number of field values are set in the initial module, and in each data display area, each field to be bound and a label corresponding to each field to be bound and a data insertion area are set.
[0098] See also Figure 4 The fields to be bound include NBEV and YoY. NBEV corresponds to 3 field values, and YoY corresponds to 3 field values. In the initial page template, set data display areas with the same number as the field values, that is, set 3 data display areas. In each data display area, set the label corresponding to each field to be bound, as well as the data insertion area, obtain the page template, and display the page template.
[0099] See also Figure 6 , Figure 6 is another flow chart of the page generation method provided in the embodiment of the present application; Figure 6 The method may include but is not limited to steps S601 to S607:
[0100] Step S601: receiving a page editing request, wherein the page editing request includes an identifier of a data source, wherein the data source includes at least one field, and each of the fields corresponds to at least one field value.
[0101] In this embodiment, the user triggers a page editing request in the platform interface, and the page editing request includes an identifier of a data source, at least one field in the data source, and each field corresponds to at least one field value, wherein the identifier of the data source can be the name of the data source or the ID of the data source.
[0102] Specifically, the data source is obtained in the following ways:
[0103] A filtering condition for a data source is obtained, where the filtering condition includes at least one target field; data matching the target field is obtained from the original data, where the matching data is the data source.
[0104] In this embodiment, the user selects or enters a filter condition in the platform interface. The filter condition is used to filter the data to ensure that only data that meets the specific condition is displayed or processed. The filter condition includes at least one target field, see Figure 2 The interface includes filter components, row dimension components, column dimension components, and query components ( Figure 2(not shown), where the user selects a field through the filter component, such as statistical time, for example, July, August and September 2023; the user selects 3 fields through the column dimension component, including: net premium value NBEV, year-on-year, and achievement rate, where net premium value is an indicator used to measure the present value of insurance products. The statistical time field is selected through the row dimension component, and the above statistical time, NBEV, year-on-year, and achievement rate are all target fields. The user triggers a data filtering request by clicking the query component, receives the data filtering request, and obtains the filtering conditions for the data source.
[0105] Furthermore, data matching the target field is obtained from the original data. The original data includes multiple fields, each field corresponds to at least one field value. The corresponding data is matched from the original data according to the target field. The matched data is the data source. The filtered data source is displayed in the platform interface. See Figure 2 The data source can be in the form of a table. The filtered data is displayed in the interface. The row header of the table corresponds to the statistical time of the row dimension, the column header corresponds to the three fields of the column dimension, and the data area is the numerical value corresponding to the row header and column header.
[0106] Optionally, the platform interface also includes an organization tree component, including multiple regional identifiers. When filtering, the user can select the corresponding regional identifier through the organization number component. For example, select region A and add the regional identifier to the filtering conditions. The filtered data is the NBEV, year-on-year growth, and achievement rate of region A in July, August and September 2023.
[0107] Step S602: in response to the page editing request, display a page template, wherein the page template includes a label corresponding to each of the fields and a data insertion area corresponding to each label.
[0108] In this embodiment, in response to a page editing request, a page template is displayed, the page template including a label corresponding to each field, and each label corresponds to a data insertion area, the data insertion area is used to insert the field value of the corresponding field.
[0109] See also Figure 3 , Figure 3 It is a schematic diagram of a page template. The page template includes a label corresponding to NBEV and a label corresponding to YOY. Each label corresponds to a data insertion area. The area labeled 1 is the data insertion area corresponding to the field value of NBEV, and the area labeled 2 is the data insertion area corresponding to the field value of YOY. In the details, you can configure information related to the target page so that you can view more information related to the target page.
[0110] It should be noted that the above-mentioned labels and label data insertion areas are not limited to the above-mentioned positions in the interface, but can also be other positions in the interface. The fields are not limited to the above-mentioned NBEV, year-on-year, and achievement rate.
[0111] Step S603: receiving a page generation request.
[0112] In this embodiment, the user triggers a generation control in the platform interface and receives a page generation request.
[0113] Step S604: In response to the page generation request, insert the field value in the data source into the data insertion area to generate a first target page.
[0114] In this embodiment, in response to the page generation request, the field value in the data source is inserted into the data insertion area to generate the first target page. Figure 4 , the field value is inserted into the corresponding data insertion area to generate the first target page.
[0115] S605: Display the first target page.
[0116] In this embodiment, the first target page is displayed, and adjustments are made to the target page. The page style of the first target page may be adjusted, and / or the display style of the field values in the first target page may be adjusted.
[0117] S606: Receive an attribute editing request, where the attribute editing request includes at least one attribute value.
[0118] In this embodiment, a property editing request is received, and the property editing request includes at least one property value. If a first property value is included, the page style of the first target page is adjusted based on the first property value; if a second property value is included, the field value display style in the first target page is adjusted based on the second property value.
[0119] S607: In response to the property editing request, the first target page is changed based on the at least one property value, and a second target page is displayed.
[0120] In this embodiment, in response to a property editing request, the first page is changed based on at least one property value, the changed second target page is displayed, and the first target page is adjusted to obtain the page the user wants, which can meet different display requirements.
[0121] In the embodiment of the present application, users can optimize the generated pages according to their own needs and flexibly configure the pages.
[0122] In some embodiments, the at least one property value includes a first property value; in response to the property edit request, changing the first target page based on the at least one property value and displaying the second target page includes:
[0123] In response to the property editing request, the page display style of the first target page is changed based on the first property value to obtain the second target page, wherein the first property value is generated according to a first logical expression for changing the page display style.
[0124] In this embodiment, at least one attribute value includes a first attribute value, which is generated based on a first logical expression for changing the page display style. The first logical expression is input in advance by a user, and the page display style of the first target page is changed based on the first attribute value to obtain a second target page.
[0125] See also Figure 7 For the first target page, by clicking the Edit Table Column component, the Edit Table Column interface is displayed, and the data source can be edited to change the first target page and obtain the second target page. The Edit Table Column can insert columns into the table corresponding to the data source, and can insert data columns, calculation columns, and attribute columns. Among them, the data column: located in the data area, is a secondary processing based on the result data. For example, the result column has the achieved value and the planned value, and the inserted data column can be processed to produce the column corresponding to the achievement rate. The data column can also be bound to the target page. A new field can be inserted before or after an existing field. See Figure 7 , select the insertion position. For example, if you want to insert it into the column before the NBEV field, click "Insert before column" corresponding to NBEV to insert a field in the column before NEBV; if you want to insert it into the column after the YoY field, click "Insert after column" corresponding to YoY to insert a field in the column after YoY; you can also re-edit the field where NBEV is located by clicking the "Edit" control corresponding to NBEV to edit the field where NBEV is located; you can also delete the field where NBEV is located by clicking the "Delete" control corresponding to NBEV to delete the field where NBEV is located in the data source. Operation column: Similar to the data column, but it will not be bound to the target page. It is only used as an intermediate product of the operation and may be bound to the target page after being calculated again. Among them, attribute column: used to write attribute expressions.
[0126] Specifically, the change of the page display style of the first target page may be to change the background color of the page, see Figure 8In the table corresponding to the data source, the first logical expression is input by the user. The first logical expression is: =IF(VALUE(D2)>200,"white","#FF000010"). The first logical expression is for the page background color (background) of the first target page. The meaning of the first logical expression is that the field value of the field corresponding to D2, that is, the field value of the achievement rate: if D2% is greater than 200, the page background color of the second target page is white, otherwise the page background color of the second target page is #FF00000, that is, pink.
[0127] It should be noted that the actual values in the table are replaced by letters, and D2% in the first logical expression should be the actual value of the achievement rate, so that the first logical expression can be established. The change of the page display style of the first target page is not limited to the page background color, but can also be a change of other attributes such as size.
[0128] Specifically, see Figure 8 , through the first logical expression and the field value of the target field corresponding to D2, the page background color of the second target page is determined to be pink, for the field value of the target field corresponding to D3, the page background color of the second target page is determined to be white, for the field value of the target field corresponding to D4, the page background color of the second target page is determined to be white. Fig.10 In the first data display area, the second data display area and the third data display area on the second target page, the background color of the first data display area is white, and the background color of the second data display area and the third data display area is white. Figure 4 In the first target page, the background color of the first data display area, the second data display area and the third data display area is white, which usually displays the default color of the template. In order to make it clear to the viewing users, the background color can be changed in the above way.
[0129] The embodiment of the present application can change various attributes in the page through flexibly configuring the page to meet different display requirements. The page is changed by means of logical expressions, which is easy for users to operate. It is suitable for users with weak editing experience and provides a simpler page generation method.
[0130] In some embodiments, the at least one property value includes a second property value; in response to the property edit request, changing the first target page based on the at least one property value to generate the second target page includes:
[0131] In response to the attribute editing request, the display style of the field value of the target field in the first target page is changed based on the second attribute value, and the second target page is obtained. The second attribute value is generated according to a second logical expression for changing the display style of the field value of the target field.
[0132] In this embodiment, at least one attribute value includes a second attribute value, which is generated according to a second logical expression for the display style of the field value of the target field. The second logical expression is pre-input by the user. The display style of the field value of the target field in the first target page is changed based on the second attribute value, and the second target page is obtained.
[0133] Specifically, the change in the display style of the field value of the target field in the first target page can be a change in font color, font size, picture address in details, and unit of the field, and the change is made by inserting an attribute column in the interface described in the new column. See Fig.11 , select the target field in the bound column. For example, select NBEV, select color (i.e., font color) in the column description, click OK, and display the table corresponding to the data source. For example, Fig. 9 as shown, for the field NBEV, select font color in the column description, add a new column in the table: NBEVcolor, and the user inputs the second logical expression: =IF(B2<MEDIAN(b,b),"red","green"). The second logical expression is for the display style of the field value of the target field in the first target page. The meaning of the second logical expression is that if the field value of the target field NBEV: A is less than the column median, then the color of the field value of NBEV in the second target page is red, otherwise the color of the field value of NBEV in the second target page is green.
[0134] It should be noted that the actual numerical values in the table are all replaced by letters. The A in the above second logical expression should be the actual numerical value of the achievement rate for the second logical expression to hold. The change in the display style of the field value is not limited to font color, font size, picture address in details, and unit of the field.
[0135] Specifically, see Figure 8 , through the first logical expression and the field value of the target field corresponding to B2, it is determined that the color of the field value of NBEV in the second target page is red. For the field value of the target field corresponding to B3, it is determined that the color of the field value of NBEV in the second target page is green. For the field value of the target field corresponding to B4, it is determined that the color of the field value of NBEV in the second target page is green. Continue to see Fig.10In the first data display area, the second data display area, and the third data display area on the second target page, the color of the NBEV field value in the first data display area is red, and the color of the NBEV field value in the second data display area and the third data display area is green. Figure 4 In the first target page, the NBEV field values and the year-on-year field values in the first data display area, the second data display area, and the third data display area are black, and usually display the default font color of the template. In order to facilitate understanding of the differences between data and to better display the page, the font colors of different fields can be changed in the above way.
[0136] The embodiment of the present application can change various attributes in the page through flexibly configuring the page to meet different display requirements. The page is changed by means of logical expressions, which is easy for users to operate. It is suitable for users with weak editing experience and provides a simpler page generation method.
[0137] In some embodiments, the data source is a data table; in response to the property editing request, the field value display style of the target field in the first target page is changed based on the second property value to obtain the second target page, including:
[0138] In response to the property editing request, the second logical expression pre-entered in the data table is obtained; if the second logical expression is verified, the second property value is generated according to the second logical expression and the field value corresponding to the target field; based on the second property value, the field value display style of the target field in the first target page is changed to obtain the second target page.
[0139] In this embodiment, the data source is a data table. In response to a property editing request, a second logical expression pre-entered in the data table is obtained, and the second logical expression is verified. If the second logical expression is verified, a second property value is generated according to the second logical expression and the field value corresponding to the target field, so that the field value display style of the target field in the first target page is changed based on the second property value. See Fig. 9, verify the second logical expression: =IF(B2<MEDIAN(b,b),"red","gree n"). If the verification passes, generate an attribute value according to the second logical expression and the field value corresponding to the target field, i.e., NEBV, which is A. If A is less than the column median, the second attribute value is red, i.e., red. If A is greater than or equal to the column median, the second attribute value is green, i.e., green. An attribute column is added to the data source table, and corresponding functions are written to output the corresponding attribute values according to the dynamic logic. A two-layer structure is adopted, which can change the page display style and the field value display style at two levels to meet different display requirements, and users can configure according to their needs.
[0140] In the embodiment of the present application, the user edits the function expression of the dynamic logic, and uses the alternative code of the function of the table to write the logic steps. The built-in functions of the table can greatly reduce the threshold of logical expression. The dynamic attribute declaration method of the embodiment of the present application effectively solves the complexity problem of the existing processing of dynamic attributes, reduces the difficulty of expressing dynamic attributes, and improves the expression efficiency. This method makes the editing and display of attribute logic more intuitive and easy to debug, enabling business personnel without programming skills to edit logic, further reducing the usage threshold.
[0141] Please refer to Fig.12 , the embodiment of the present application also provides a page generation device, which can implement the above page generation method. The device 120 includes:
[0142] A receiving module 1201, configured to receive a page editing request, where the page editing request includes an identifier of a data source, and the data source includes at least one field, and each field corresponds to at least one field value. A processing module 1202, configured to display a page template in response to the page editing request, where the page template includes a label corresponding to each field and a data insertion area corresponding to each label. The receiving module 1201 is further configured to receive a page generation request. The processing module 1202 is further configured to insert the field values in the data source into the data insertion area in response to the page generation request to generate a first target page.
[0143] In some embodiments, the device further includes: a display module.
[0144] The processing module 1202 is further configured to determine a field to be bound from each field in response to the page editing request. The processing module 1202 is further configured to set the label and the data insertion area in the initial page template according to the field to be bound and the corresponding at least one field value to generate the page template. The display module is configured to display the page template.
[0145] In some embodiments, the processing module 1202 is also used to set, for each of the fields to be bound and at least one corresponding field value, the same number of data display areas as the number of field values in the initial page template according to the number of field values; the processing module 1202 is also used to set, in each of the data display areas, a label corresponding to each of the fields to be bound and the data insertion area to obtain the page template.
[0146] In some embodiments, the display module is further configured to display the first target page. The receiving module 1201 is further configured to receive a property editing request, wherein the property editing request includes at least one property value. The processing module 1202 is further configured to respond to the property editing request, change the first target page based on the at least one property value, and display the second target page.
[0147] In some embodiments, the processing module 1202 is also used to respond to the property editing request, change the page display style of the first target page based on the first property value, and obtain the second target page, wherein the first property value is generated according to a first logical expression for changing the page display style.
[0148] In some embodiments, the processing module 1202 is also used to respond to the property editing request, change the field value display style of the target field in the first target page based on the second property value, and obtain the second target page, wherein the second property value is generated according to a second logical expression used to change the field value display style of the target field.
[0149] In some embodiments, the processing module 1202 is also used to obtain the second logical expression pre-entered in the data table in response to the property editing request; if the second logical expression is verified, the second property value is generated according to the second logical expression and the field value corresponding to the target field; based on the second property value, the field value display style of the target field in the first target page is changed to obtain the second target page.
[0150] The specific implementation of the above-mentioned page generation device is substantially the same as the specific implementation of the above-mentioned page generation method, and will not be described in detail herein.
[0151] The embodiment of the present application also provides an electronic device, the electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the above page generation method when executing the computer program. The electronic device can be any intelligent terminal including a tablet computer, a car computer, etc.
[0152] See also Fig.13 , Fig.13The hardware structure of an electronic device of another embodiment is illustrated, and the electronic device includes:
[0153] The processor 1301 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application;
[0154] The memory 1302 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 1302 can store an operating system and other application programs. When the technical solution provided in the embodiment of this specification is implemented by software or firmware, the relevant program code is stored in the memory 1302, and the processor 1301 calls and executes the page generation method of the embodiment of this application;
[0155] Input / output interface 1303, used to implement information input and output;
[0156] The communication interface 1304 is used to realize the communication interaction between the device and other devices. The communication can be realized through a wired manner (such as USB, network cable, etc.) or a wireless manner (such as mobile network, WIFI, Bluetooth, etc.);
[0157] A bus 1305 that transmits information between the various components of the device (e.g., the processor 1301, the memory 1302, the input / output interface 1303, and the communication interface 1304);
[0158] The processor 1301 , the memory 1302 , the input / output interface 1303 and the communication interface 1304 are connected to each other in communication within the device via a bus 1305 .
[0159] An embodiment of the present application further provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the above-mentioned page generation method is implemented.
[0160] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0161] The page generation method, page generation device, electronic device and storage medium provided in the embodiments of the present application can directly insert the field values in the data source into the page template to generate a page, without the need to generate the page in a programming way. It is suitable for users with weak programming experience, especially those with no programming experience. The corresponding page can be obtained through simple operations. It can be applicable to most users, thereby increasing the popularity of use. In addition, the user edits the function to express dynamic logic, uses the substitute code of the function of the table to write the logic step, and the built-in function of the table can greatly reduce the threshold of logical expression. The dynamic attribute declaration method of the embodiment of the present application effectively solves the complexity problem of existing processing of dynamic attributes, reduces the difficulty of expressing dynamic attributes, and improves the expression efficiency. This method makes the editing and display of attribute logic more intuitive and easy to debug, so that business personnel without programming skills can also edit logic, further reducing the threshold of use.
[0162] The embodiments described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Those skilled in the art will appreciate that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
[0163] Those skilled in the art will appreciate that the technical solutions shown in the figures do not constitute a limitation on the embodiments of the present application, and may include more or fewer steps than shown in the figures, or a combination of certain steps, or different steps.
[0164] The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0165] Those skilled in the art will appreciate that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices may be implemented as software, firmware, hardware, or a suitable combination thereof.
[0166] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0167] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.
[0168] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the above units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0169] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0170] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0171] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including multiple instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store programs.
[0172] The preferred embodiments of the present invention are described above with reference to the accompanying drawings, but the scope of the rights of the present invention is not limited thereto. Any modification, equivalent substitution and improvement made by a person skilled in the art without departing from the scope and essence of the present invention should be within the scope of the rights of the present invention.
Claims
1. A page generation method, characterized in that: The method comprises: Receiving a page editing request, the page editing request including an identifier of a data source, the data source including at least one field, each of the fields corresponding to at least one field value; In response to the page editing request, displaying a page template, the page template including a label corresponding to each of the fields and a data insertion area corresponding to each label; Receive page generation request; In response to the page generation request, the field value in the data source is inserted into the data insertion area to generate a first target page.
2. The method according to claim 1, characterized in that The step of displaying a page template in response to the page editing request includes: In response to the page editing request, determining a field to be bound from each of the fields; According to the field to be bound and the corresponding at least one field value, the label and the data insertion area are set in the initial page template to generate the page template; The page template is displayed.
3. The method according to claim 2, characterized in that The step of setting the label and the data insertion area in the initial page template according to the field to be bound and the corresponding at least one field value to generate the page template includes: For each of the fields to be bound and the corresponding at least one field value, according to the number of the field values, setting data display areas in the initial page template in the same number as the number of the field values; In each of the data display areas, a label corresponding to each of the fields to be bound and the data insertion area are set to obtain the page template.
4. The method according to claim 1, characterized in that After the data in the data source is inserted into the data insertion area in response to the page generation request to generate the first target page, the method further includes: Displaying the first target page; receiving an attribute editing request, the attribute editing request including at least one attribute value; In response to the property editing request, the first target page is changed based on the at least one property value, and a second target page is displayed.
5. The page generation method according to claim 4, characterized in that: The at least one attribute value comprises a first attribute value: The step of changing the first target page based on the at least one attribute value in response to the attribute editing request to generate a second target page includes: In response to the property editing request, the page display style of the first target page is changed based on the first property value to obtain the second target page, wherein the first property value is generated according to a first logical expression for changing the page display style.
6. The method according to claim 4, characterized in that The at least one attribute value includes a second attribute value; The step of changing the first target page based on the at least one attribute value in response to the attribute editing request to generate a second target page includes: In response to the property editing request, the field value display style of the target field in the first target page is changed based on the second property value to obtain the second target page, and the second property value is generated according to a second logical expression used to change the field value display style of the target field.
7. The method according to claim 6, characterized in that The data source is a data table; The step of changing the field value display style of the target field in the first target page based on the second attribute value in response to the attribute editing request to obtain the second target page includes: In response to the attribute editing request, acquiring the second logical expression pre-entered in the data table; If the second logical expression is verified, the second attribute value is generated according to the second logical expression and the field value corresponding to the target field; The field value display style of the target field in the first target page is changed based on the second attribute value to obtain the second target page.
8. A page generating device, characterized in that: The device comprises: A receiving module, configured to receive a page editing request, wherein the page editing request includes an identifier of a data source, wherein the data source includes at least one field, and each of the fields corresponds to at least one field value; A processing module, configured to display a page template in response to the page editing request, wherein the page template includes a label corresponding to each of the fields and a data insertion area corresponding to each label; The receiving module is also used to receive a page generation request; The processing module is further used to insert the field value in the data source into the data insertion area in response to the page generation request to generate a first target page.
9. An electronic device, characterized in that: The electronic device comprises a memory and a processor, the memory stores a computer program, and the processor implements the page generation method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the page generation method according to any one of claims 1 to 7 is implemented.