CN112487067A - Method, device and storage medium for page display based on data configuration - Google Patents

Method, device and storage medium for page display based on data configuration Download PDF

Info

Publication number
CN112487067A
CN112487067A CN202011397485.4A CN202011397485A CN112487067A CN 112487067 A CN112487067 A CN 112487067A CN 202011397485 A CN202011397485 A CN 202011397485A CN 112487067 A CN112487067 A CN 112487067A
Authority
CN
China
Prior art keywords
page
display
data
requirement
determining
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011397485.4A
Other languages
Chinese (zh)
Inventor
丁冠文
孙建龙
吴小斌
陶佳城
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guotai Epoint Software Co Ltd
Original Assignee
Guotai Epoint Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guotai Epoint Software Co Ltd filed Critical Guotai Epoint Software Co Ltd
Priority to CN202011397485.4A priority Critical patent/CN112487067A/en
Publication of CN112487067A publication Critical patent/CN112487067A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/248Presentation of query results
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/26Visual data mining; Browsing structured data

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application relates to a method, a device and a storage medium for page display based on data configuration, belonging to the technical field of computers, wherein the method comprises the following steps: acquiring a page display requirement, wherein the page display requirement comprises a data source requirement, a database requirement, a data table requirement and a data display requirement; determining a target data source indicated by the data source demand; determining a target database indicated by database requirements in a target data source; determining a target data table indicated by data table requirements in a target database; determining page elements to be displayed according to the data display requirements and the target data table; performing page rendering on the page element to be displayed so as to display a page corresponding to the page display requirement; the problem that when each data form is independently developed into a page, the page development efficiency is low can be solved; the page development efficiency can be improved; and after the structure of the data table is changed, code adjustment is not required to be developed, and only reconfiguration is required.

Description

Method, device and storage medium for page display based on data configuration
Technical Field
The application relates to a method, a device and a storage medium for page display based on data configuration, and belongs to the technical field of computers.
Background
Electronic forms are typically presented in an informatization system as pages for users to enter and view data. Generally, for electronic forms with different contents, different pages need to be developed for display.
However, as the number of electronic forms increases, the pages corresponding to each electronic form need to be repeatedly developed, and the development efficiency is low.
Disclosure of Invention
The application provides a method, a device and a storage medium for page display based on data configuration, which can solve the problem of low page development efficiency when each data form is independently developed into a page. The application provides the following technical scheme:
in a first aspect, a method for performing page display based on data configuration is provided, where the method includes:
acquiring a page display requirement, wherein the page display requirement comprises a data source requirement, a database requirement, a data table requirement and a data display requirement;
determining a target data source indicated by the data source demand;
determining a target database of the database demand indication in the target data source;
determining a target data table of the data table demand indication in the target database;
determining page elements to be displayed according to the data display requirements and the target data table;
and rendering the page of the page element to be displayed so as to display the page corresponding to the page display requirement.
Optionally, the number of the target data tables is at least two; the determining the page elements to be displayed according to the data display requirements and the target data table comprises the following steps:
fusing at least two target data tables to obtain a fused view;
and determining the page elements to be displayed according to the data display requirements and the fused view.
Optionally, the data presentation requirement includes: the field to be displayed in the target data table, the display name of the field to be displayed, the display effect of the field to be displayed and the display size of the field to be displayed.
Optionally, the page rendering on the page element to be displayed includes:
acquiring a page template corresponding to the display effect;
and calling a universal data interface to obtain the field to be displayed and the display name, and rendering the page on the page template according to the display size.
Optionally, the acquiring a page display requirement includes:
displaying a content configuration page;
receiving the data display requirement input through the content configuration page.
Optionally, the acquiring a page display requirement includes:
displaying a data selection page;
and receiving the data source requirement, the database requirement and the data table requirement which are input through the data selection page.
Optionally, after performing page rendering on the to-be-displayed page element to display a page corresponding to the page display requirement, the method further includes:
and receiving an updating operation of the page display requirement to obtain an updated page display requirement so as to trigger the display of the page corresponding to the updated page display requirement.
In a second aspect, an apparatus for page display based on data configuration is provided, the apparatus comprising:
the system comprises a demand acquisition module, a demand display module and a display module, wherein the demand acquisition module is used for acquiring page display demands, and the page display demands comprise data source demands, database demands, data table demands and data display demands;
the data source determining module is used for determining a target data source indicated by the data source demand;
a database determination module for determining a target database indicated by the database demand in the target data source;
the data table determining module is used for determining a target data table indicated by the data table requirement in the target database;
the element determining module is used for determining the elements of the page to be displayed according to the data display requirements and the target data table;
and the page rendering module is used for rendering the page of the page element to be displayed so as to display the page corresponding to the page display requirement.
In a third aspect, an apparatus for page presentation based on data configuration is provided, the apparatus comprising a processor and a memory; the memory stores a program, and the program is loaded and executed by the processor to implement the method for page display based on data configuration according to the first aspect.
In a fourth aspect, a computer-readable storage medium is provided, in which a program is stored, and the program is loaded and executed by the processor to implement the method for page display based on data configuration according to the first aspect.
The beneficial effect of this application lies in: the method comprises the steps that page display requirements are obtained, wherein the page display requirements comprise data source requirements, database requirements, data table requirements and data display requirements; determining a target data source indicated by the data source demand; determining a target database indicated by database requirements in a target data source; determining a target data table indicated by data table requirements in a target database; determining page elements to be displayed according to the data display requirements and the target data table; performing page rendering on the page element to be displayed so as to display a page corresponding to the page display requirement; the problem that when each data form is independently developed into a page, the page development efficiency is low can be solved; the user only needs to perform relevant configuration, the display of the corresponding pages of different data packets can be realized, and the page development efficiency can be improved. Meanwhile, after the structure of the data table is changed, code adjustment is not required to be developed, and only reconfiguration is required.
The foregoing description is only an overview of the technical solutions of the present application, and in order to make the technical solutions of the present application more clear and clear, and to implement the technical solutions according to the content of the description, the following detailed description is made with reference to the preferred embodiments of the present application and the accompanying drawings.
Drawings
FIG. 1 is a flowchart of a method for page display based on data configuration according to an embodiment of the present application;
FIG. 2 is a block diagram of an apparatus for page display based on data configuration according to an embodiment of the present application;
FIG. 3 is a block diagram of an apparatus for page display based on data configuration according to an embodiment of the present application.
Detailed Description
The following detailed description of embodiments of the present application will be described in conjunction with the accompanying drawings and examples. The following examples are intended to illustrate the present application but are not intended to limit the scope of the present application.
Optionally, the execution subject of each embodiment is taken as an example to describe the electronic device, the electronic device may be a device with a page display function, such as a terminal or a server, the terminal may be a mobile phone, a computer, a tablet computer, and the like, and the embodiment does not limit the type of the electronic device.
Fig. 1 is a flowchart of a method for page display based on data configuration according to an embodiment of the present application. The method at least comprises the following steps:
step 101, acquiring a page display requirement, wherein the page display requirement comprises a data source requirement, a database requirement, a data table requirement and a data display requirement.
A data source refers to a source that generates data for defining a path to connect to a database. The data source may be a certain application program or a certain component in the electronic device, and the embodiment does not limit the type of the data source.
The database is used for storing data. A database may be connected to one or more data sources. At least one data table is stored in each database.
Optionally, acquiring a page display requirement includes: displaying a data selection page; data source requirements, database requirements and data table requirements input through the data selection page are received.
In one example, a data selection page has a plurality of data sources displayed therein that are selectable; when selection operation of a target data source is received, obtaining a data source requirement, and displaying a plurality of selectable databases related to the target data source through a data selection page; when selection operation on a target database is received, database requirements are obtained, and a plurality of data tables in the target database are displayed through a data selection page; upon receiving a selection operation for a target data table, a data table requirement is obtained.
Of course, the electronic device may generate the data source requirement, the database requirement, and the data table requirement in other manners, such as: the method includes the steps that a user inputs a data source identifier of a target data source to generate a data source requirement, inputs a database identifier of a target database to generate a database requirement, inputs a data table identifier of a target data table to generate a data table requirement and the like.
Optionally, acquiring a page display requirement includes: displaying a content configuration page; and receiving data display requirements input through the content configuration page.
In one example, the data display requirement includes a field to be displayed, a display name of the field to be displayed, a display effect of the field to be displayed, and a display size of the field to be displayed in the target data table. The content configuration page comprises a plurality of selectable fields to be displayed, a display name input control, a display effect selection control and a display size setting control in the target data table; receiving a selection operation of at least one field to be displayed; acquiring a display name of each field to be displayed input through the display name input control; acquiring the display effect of each field to be displayed input through the display effect selection control; and acquiring the display size of each field to be displayed, which is input through the display size setting control, so as to obtain the data display requirement.
Wherein, the display size can be the display length and/or the display width of the field to be displayed.
Step 102, determining a target data source indicated by the data source requirement.
Step 103, determining a target database indicated by the database demand in the target data source.
Step 104, determining a target data table indicated by the data table requirement in the target database.
And 105, determining the elements of the page to be displayed according to the data display requirement and the target data table.
When the number of the target data tables is at least two, determining the page elements to be displayed according to the data display requirements and the target data tables, wherein the method comprises the following steps: fusing at least two target data tables to obtain a fused view; and determining the elements of the page to be displayed according to the data display requirement and the fused view.
Wherein at least two target data tables are fused
And when the number of the target data tables is one, directly determining the elements of the page to be displayed according to the data display requirement and the target data tables.
And 106, performing page rendering on the page element to be displayed so as to display the page corresponding to the page display requirement.
The method for rendering the page to be displayed comprises the following steps of: acquiring a page template corresponding to the display effect; and calling a universal data interface to obtain the field to be displayed and the display name, and rendering the page on the page template according to the display size.
Optionally, after performing page rendering on the page element to be displayed to display a page corresponding to the page display requirement, the method further includes: and receiving the updating operation of the page display requirement to obtain the updated page display requirement so as to trigger the display of the page corresponding to the updated page display requirement.
For the description of displaying the page corresponding to the updated page display requirement, refer to step 102 and step 106, which is not described herein again.
In summary, in the method for performing page display based on data configuration provided by this embodiment, the page display requirement is obtained, and the page display requirement includes a data source requirement, a database requirement, a data table requirement, and a data display requirement; determining a target data source indicated by the data source demand; determining a target database indicated by database requirements in a target data source; determining a target data table indicated by data table requirements in a target database; determining page elements to be displayed according to the data display requirements and the target data table; performing page rendering on the page element to be displayed so as to display a page corresponding to the page display requirement; the problem that when each data form is independently developed into a page, the page development efficiency is low can be solved; the user only needs to perform relevant configuration, the display of the corresponding pages of different data packets can be realized, and the page development efficiency can be improved. Meanwhile, after the structure of the data table is changed, code adjustment is not required to be developed, and only reconfiguration is required.
FIG. 2 is a block diagram of an apparatus for page display based on data configuration according to an embodiment of the present application. The device at least comprises the following modules: a requirement acquisition module 210, a data source determination module 220, a database determination module 230, a data table determination module 240, an element determination module 250, and a page rendering module 260.
The demand acquisition module 210 is configured to acquire a page display demand, where the page display demand includes a data source demand, a database demand, a data table demand, and a data display demand;
a data source determining module 220, configured to determine a target data source indicated by the data source requirement;
a database determining module 230, configured to determine a target database indicated by the database requirement in the target data source;
a data table determining module 240, configured to determine a target data table indicated by the data table requirement in the target database;
an element determining module 250, configured to determine a page element to be displayed according to the data display requirement and the target data table;
and a page rendering module 260, configured to perform page rendering on the to-be-displayed page element, so as to display a page corresponding to the page display requirement.
For relevant details reference is made to the above-described method embodiments.
It should be noted that: in the device for performing page display based on data configuration provided in the foregoing embodiment, when performing page display based on data configuration, only the division of the functional modules is taken as an example, and in practical applications, the function distribution may be completed by different functional modules as needed, that is, the internal structure of the device for performing page display based on data configuration is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the device for performing page display based on data configuration and the method for performing page display based on data configuration provided by the above embodiments belong to the same concept, and specific implementation processes thereof are detailed in the method embodiments and are not described herein again.
FIG. 3 is a block diagram of an apparatus for page display based on data configuration according to an embodiment of the present application. The apparatus comprises at least a processor 301 and a memory 302.
Processor 301 may include one or more processing cores, such as: 4 core processors, 8 core processors, etc. The processor 301 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 301 may also include a main processor and a coprocessor, where the main processor is a processor for Processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 301 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed on the display screen. In some embodiments, the processor 301 may further include an AI (Artificial Intelligence) processor for processing computing operations related to machine learning.
Memory 302 may include one or more computer-readable storage media, which may be non-transitory. Memory 302 may also include high speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in memory 302 is used to store at least one instruction for execution by processor 301 to implement the method for page presentation based on data configuration provided by the method embodiments herein.
In some embodiments, the device for page display based on data configuration may further include: a peripheral interface and at least one peripheral. The processor 301, memory 302 and peripheral interface may be connected by bus or signal lines. Each peripheral may be connected to the peripheral interface via a bus, signal line, or circuit board. Illustratively, peripheral devices include, but are not limited to: radio frequency circuit, touch display screen, audio circuit, power supply, etc.
Of course, the apparatus for page display based on data configuration may also include fewer or more components, which is not limited in this embodiment.
Optionally, the present application further provides a computer-readable storage medium, where a program is stored in the computer-readable storage medium, and the program is loaded and executed by a processor to implement the method for performing page display based on data configuration according to the foregoing method embodiment.
Optionally, the present application further provides a computer product, which includes a computer-readable storage medium, where a program is stored in the computer-readable storage medium, and the program is loaded and executed by a processor to implement the method for page display based on data configuration according to the foregoing method embodiment.
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method for page display based on data configuration is characterized in that the method comprises the following steps:
acquiring a page display requirement, wherein the page display requirement comprises a data source requirement, a database requirement, a data table requirement and a data display requirement;
determining a target data source indicated by the data source demand;
determining a target database of the database demand indication in the target data source;
determining a target data table of the data table demand indication in the target database;
determining page elements to be displayed according to the data display requirements and the target data table;
and rendering the page of the page element to be displayed so as to display the page corresponding to the page display requirement.
2. The method of claim 1, wherein the number of target data tables is at least two; the determining the page elements to be displayed according to the data display requirements and the target data table comprises the following steps:
fusing at least two target data tables to obtain a fused view;
and determining the page elements to be displayed according to the data display requirements and the fused view.
3. The method of claim 1, wherein the data presentation requirements comprise: the field to be displayed in the target data table, the display name of the field to be displayed, the display effect of the field to be displayed and the display size of the field to be displayed.
4. The method according to claim 3, wherein the page rendering of the page element to be displayed comprises:
acquiring a page template corresponding to the display effect;
and calling a universal data interface to obtain the field to be displayed and the display name, and rendering the page on the page template according to the display size.
5. The method of claim 1, wherein the obtaining page display requirements comprises:
displaying a content configuration page;
receiving the data display requirement input through the content configuration page.
6. The method of claim 1, wherein the obtaining page display requirements comprises:
displaying a data selection page;
and receiving the data source requirement, the database requirement and the data table requirement which are input through the data selection page.
7. The method according to claim 1, wherein after performing page rendering on the page element to be displayed to display a page corresponding to the page display requirement, the method further comprises:
and receiving an updating operation of the page display requirement to obtain an updated page display requirement so as to trigger the display of the page corresponding to the updated page display requirement.
8. An apparatus for page display based on data configuration, the apparatus comprising:
the system comprises a demand acquisition module, a demand display module and a display module, wherein the demand acquisition module is used for acquiring page display demands, and the page display demands comprise data source demands, database demands, data table demands and data display demands;
the data source determining module is used for determining a target data source indicated by the data source demand;
a database determination module for determining a target database indicated by the database demand in the target data source;
the data table determining module is used for determining a target data table indicated by the data table requirement in the target database;
the element determining module is used for determining the elements of the page to be displayed according to the data display requirements and the target data table;
and the page rendering module is used for rendering the page of the page element to be displayed so as to display the page corresponding to the page display requirement.
9. An apparatus for page presentation based on data configuration, the apparatus comprising a processor and a memory; the memory stores a program which is loaded and executed by the processor to implement the method for page presentation based on data configuration according to any one of claims 1 to 7.
10. A computer-readable storage medium, in which a program is stored, which, when being executed by a processor, is configured to implement the method for page presentation based on data configuration according to any one of claims 1 to 7.
CN202011397485.4A 2020-12-04 2020-12-04 Method, device and storage medium for page display based on data configuration Pending CN112487067A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011397485.4A CN112487067A (en) 2020-12-04 2020-12-04 Method, device and storage medium for page display based on data configuration

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011397485.4A CN112487067A (en) 2020-12-04 2020-12-04 Method, device and storage medium for page display based on data configuration

Publications (1)

Publication Number Publication Date
CN112487067A true CN112487067A (en) 2021-03-12

Family

ID=74939242

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011397485.4A Pending CN112487067A (en) 2020-12-04 2020-12-04 Method, device and storage medium for page display based on data configuration

Country Status (1)

Country Link
CN (1) CN112487067A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114064817A (en) * 2021-11-16 2022-02-18 重庆赛迪奇智人工智能科技有限公司 Data processing method and device, electronic equipment and storage medium
CN114489907A (en) * 2022-01-29 2022-05-13 国泰新点软件股份有限公司 System operation guiding method, device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104636393A (en) * 2013-11-13 2015-05-20 航天信息股份有限公司 Self-adaptation report form establishing method based on user self-definition behavior analysis
CN104778241A (en) * 2015-04-08 2015-07-15 北京京东尚科信息技术有限公司 Report generation method and system
CN105512139A (en) * 2014-09-26 2016-04-20 阿里巴巴集团控股有限公司 Method and device for implementing data visualization
CN110597896A (en) * 2019-09-10 2019-12-20 深圳证券交易所 Data display method, data display device and terminal equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104636393A (en) * 2013-11-13 2015-05-20 航天信息股份有限公司 Self-adaptation report form establishing method based on user self-definition behavior analysis
CN105512139A (en) * 2014-09-26 2016-04-20 阿里巴巴集团控股有限公司 Method and device for implementing data visualization
CN104778241A (en) * 2015-04-08 2015-07-15 北京京东尚科信息技术有限公司 Report generation method and system
CN110597896A (en) * 2019-09-10 2019-12-20 深圳证券交易所 Data display method, data display device and terminal equipment

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114064817A (en) * 2021-11-16 2022-02-18 重庆赛迪奇智人工智能科技有限公司 Data processing method and device, electronic equipment and storage medium
CN114489907A (en) * 2022-01-29 2022-05-13 国泰新点软件股份有限公司 System operation guiding method, device and storage medium
CN114489907B (en) * 2022-01-29 2024-03-12 国泰新点软件股份有限公司 System operation guiding method, device and storage medium

Similar Documents

Publication Publication Date Title
CN108228169B (en) Chart making method, device, equipment and medium based on eCharts tool
CN107958365B (en) Material information changing method and device, storage medium and electronic equipment
CN108228293B (en) Interface skin switching method and device
CN109471626B (en) Page logic structure, page generation method, page data processing method and device
CN112487067A (en) Method, device and storage medium for page display based on data configuration
CN107592334A (en) A kind of information popularization method, apparatus and equipment
CN112114787A (en) Report generation method and device and storage medium
CN112783783A (en) Webpage point burying method, device and equipment and readable storage medium
CN111552506A (en) Business rule configuration method, device and storage medium
CN113407254B (en) Form generation method and device, electronic equipment and storage medium
CN114265657A (en) Method and device for displaying page of applet
CN111142989A (en) Object management method, device and storage medium
CN114116712A (en) Extended field processing method and device, electronic equipment and storage medium
CN112487035A (en) Label storage and query method and device based on elastic search
CN114237743A (en) Interface loading method and device, electronic equipment and storage medium
CN115114280A (en) Report generation processing method, device and equipment
CN116383018B (en) Method and system for self-defining flow tracking plug-in
CN116339733B (en) Application page generation method, system, electronic device and medium
US20170185270A1 (en) Animation display method for view and terminal device
CN113128193A (en) Document processing method and device
CN109471764B (en) Method, device, terminal and storage medium for quickly reading system information
CN117435651A (en) Test data processing method, device, computer equipment and storage medium
CN114328467A (en) Database interaction method, device and equipment and storage medium
CN116841541A (en) Data list display method, device, equipment and medium
CN117520419A (en) BI data interaction analysis method based on field relation mapping

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