CN111708957A - Method, device and computer equipment for updating front-end page based on index and value index - Google Patents

Method, device and computer equipment for updating front-end page based on index and value index Download PDF

Info

Publication number
CN111708957A
CN111708957A CN202010479012.2A CN202010479012A CN111708957A CN 111708957 A CN111708957 A CN 111708957A CN 202010479012 A CN202010479012 A CN 202010479012A CN 111708957 A CN111708957 A CN 111708957A
Authority
CN
China
Prior art keywords
end page
updating
data
index
data table
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
CN202010479012.2A
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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen 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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN202010479012.2A priority Critical patent/CN111708957A/en
Publication of CN111708957A publication Critical patent/CN111708957A/en
Priority to PCT/CN2020/125063 priority patent/WO2021135598A1/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/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • 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/23Updating
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/951Indexing; Web crawling techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Abstract

The invention discloses a method, a device and computer equipment for updating a front-end page based on index and value indexing, wherein the method comprises the steps of acquiring the front-end page according to an updating request if the updating request for updating the front-end page is received; judging the type of the updating request according to a preset judgment rule; if the type of the updating request is to update a plurality of data in the front-end page, acquiring a prefabricated data table according to the front-end page, wherein the data table and the front-end page form an index relationship; updating the front-end page in an index mode according to the updating request and the data table; if the type of the updating request is to update single data in the front-end page, acquiring a preset template file according to the front-end page; and modifying the template file in a value reference mode according to the updating request to update the front-end page. The method and the device solve the problem that the value reference and the index cannot be combined to update the front-end page in the prior art based on the data updating technology, and improve the efficiency of updating the front-end page.

Description

Method, device and computer equipment for updating front-end page based on index and value index
Technical Field
The invention belongs to the technical field of data updating, and particularly relates to a method, a device and computer equipment for updating a front-end page based on indexes and value indexes.
Background
In conventional front-end and back-end development, due to the change of background data, data in a front-end page needs to be updated so that the front-end page and the background are kept consistent, the front-end page can be updated in a value reference mode generally, or in an index mode, and only one mode can be adopted to update the front-end page. When the corresponding single data content in the background and the front-end page changes, in order to not affect the overall display effect and the related content storage effect of the front-end page, the front-end page is generally updated by adopting a value reference mode, while the single data replacement and modification cannot be realized by adopting an index mode, and the problem of mistaken deletion is easily caused, so that great risk is caused; when a large amount of data in the front-end page needs to be modified, the data in the front-end page needs to be replaced or modified one by one in a value reference mode, so that the problem of careless mistakes during modification exists, the replacement work is relatively complex, a plurality of data in the front-end page are replaced in a unified mode through an index mode, and careless mistakes during modification of the front-end page data are avoided. Therefore, the technical problem of how to combine the value reference and the index to update the front page exists in the prior art.
Disclosure of Invention
The embodiment of the invention provides a method, a device and computer equipment for updating a front-end page based on index and value reference, and aims to solve the problem that the value reference and the index cannot be combined to update the front-end page in the prior art.
In a first aspect, an embodiment of the present invention provides a method for updating a front-end page based on an index and a value index, where the method includes:
if an updating request for updating a front-end page is received, acquiring the front-end page according to the updating request;
judging the type of the updating request according to a preset judgment rule;
if the type of the update request is to update a plurality of data in the front-end page, acquiring a prefabricated data table according to the front-end page, wherein the data table and the front-end page are in an index relationship;
updating the front-end page in an index mode according to the updating request and the data table;
if the type of the updating request is to update single data in the front-end page, acquiring a preset template file according to the front-end page;
and modifying the template file in a value reference mode according to the updating request so as to update the front-end page.
In a second aspect, an embodiment of the present invention provides an apparatus for updating a front page based on an index and a value index, including:
the front-end page acquiring unit is used for acquiring a front-end page according to an update request if the update request for updating the front-end page is received;
the judging unit is used for judging the type of the updating request according to a preset judging rule;
a data table obtaining unit, configured to obtain a pre-manufactured data table according to the front-end page if the type of the update request is to update multiple data in the front-end page, where the data table and the front-end page are in an index relationship;
the first updating unit is used for updating the front-end page in an index mode according to the updating request and the data table;
a template file obtaining unit, configured to obtain a preset template file according to the front-end page if the type of the update request is to update a single data in the front-end page;
and the second updating unit is used for modifying the template file in a value reference mode according to the updating request so as to update the front-end page.
In a third aspect, an embodiment of the present invention further provides a computer device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor, when executing the computer program, implements the method for updating a front-end page based on an index and a value index as described in the first aspect.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and the computer program, when executed by a processor, causes the processor to execute the method for updating a front-end page based on an index and a value according to the first aspect.
The embodiment of the invention provides a method, a device and computer equipment for updating a front-end page based on index and value indexing, wherein if an updating request for updating the front-end page is received, the front-end page is obtained according to the updating request; judging the type of the updating request according to a preset judgment rule; if the type of the update request is to update a plurality of data in the front-end page, acquiring a prefabricated data table according to the front-end page, wherein the data table and the front-end page are in an index relationship; updating the front-end page in an index mode according to the updating request and the data table; if the type of the updating request is to update single data in the front-end page, acquiring a preset template file according to the front-end page; and modifying the template file in a value reference mode according to the updating request so as to update the front-end page. The method and the device for updating the front-end page combine the advantages of the value index and the index to update the front-end page in the process of updating the front-end page, solve the problem that the value index and the index cannot be combined to update the front-end page in the prior art, and greatly improve the efficiency of updating the front-end page.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flowchart of a method for updating a front-end page based on an index and a value index according to an embodiment of the present invention;
fig. 2 is a schematic view of an application scenario of a method for updating a front-end page based on an index and a value index according to an embodiment of the present invention;
FIG. 3 is a sub-flowchart illustrating a method for updating a front-end page based on an index and a value index according to an embodiment of the present invention;
FIG. 4 is a schematic sub-flow chart of a method for updating a front-end page based on an index and a value index according to an embodiment of the present invention;
FIG. 5 is a schematic sub-flow chart of a method for updating a front-end page based on an index and a value index according to an embodiment of the present invention;
FIG. 6 is a schematic block diagram of an apparatus for updating a front-end page based on an index and a value index according to an embodiment of the present invention;
FIG. 7 is a schematic block diagram illustrating sub-units of an apparatus for updating a front-end page based on an index and a value index according to an embodiment of the present invention;
FIG. 8 is a schematic block diagram illustrating another sub-unit of an apparatus for updating a front-end page based on an index and a value index according to an embodiment of the present invention;
FIG. 9 is a schematic block diagram illustrating another sub-unit of an apparatus for updating a front-end page based on an index and a value index according to an embodiment of the present invention;
FIG. 10 is a schematic block diagram illustrating another sub-unit of an apparatus for updating a front-end page based on an index and a value index according to an embodiment of the present invention;
FIG. 11 is a schematic block diagram of a computer device provided by an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the specification of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
Referring to fig. 1 and fig. 2, fig. 1 is a schematic flowchart illustrating a method for updating a front-end page based on an index and a value index according to an embodiment of the present invention; fig. 2 is a schematic view of an application scenario of the method for updating a front-end page based on index and value index according to the embodiment of the present invention. The method for updating the front-end page based on the index and the value is applied to the terminal 10, the front-end page can be displayed in the terminal 10 in a page form, when the terminal 10 receives an update request for updating the data content in the preset front-end page, the terminal 10 obtains the front-end page from the server 20 according to the update request, the front-end page is stored in the server 10, the terminal 10 can be a mobile phone, a computer, a notebook or other terminal equipment with a page display function, and the server 20 is equipment with a data transmission and receiving function with the terminal 10.
As shown in fig. 1, the method includes steps S110 to S160.
S110, if an updating request for updating the front-end page is received, the front-end page is obtained according to the updating request.
And if an updating request for updating the front-end page is received, acquiring the front-end page according to the updating request. Specifically, the update request may be an update request sent by the server to the terminal to modify a specific front-end page stored in the server, or may be an instruction of the update request input by the terminal when the user needs to modify the specific front-end page stored in the server. The update request comprises the IP address of the front-end page stored in the server, and the terminal can acquire the front-end page corresponding to the IP address from the server after acquiring the IP address from the update request.
And S120, judging the type of the updating request according to a preset judgment rule.
And judging the type of the updating request according to a preset judgment rule. Specifically, the judgment rule is rule information that the terminal performs identification judgment according to whether the data in the front-end page needs to be updated in batch in the update request, and in this embodiment, the type of updating the front-end page can be judged by judging the number of the data in the update front-end page. For example, when the type of the update request is to update the batch data in the front-end page, the terminal determines that the type of the update request is to modify the batch data in the front-end page, and when the type of the update request is to update the non-batch data in the front-end page, the terminal determines that the type of the update request is to modify the non-batch data in the front-end page.
S130, if the type of the updating request is to update a plurality of data in the front-end page, acquiring a prefabricated data table according to the front-end page, wherein the data table and the front-end page form an index relationship.
And if the type of the updating request is to update a plurality of data in the front-end page, acquiring a prefabricated data table according to the front-end page, wherein the data table and the front-end page form an index relationship. The data table is a data table indicating a corresponding relationship between logical records and physical records, each index item in the data table, which has an index relationship with the front-end page, is arranged in a key (or logical record number) sequence, after the terminal acquires the front-end page, the data table can be acquired through the front-end page, and the data table can be pre-stored in the terminal, can also be pre-stored in the server, and can also be pre-stored in the front-end page and stored in the server along with the front-end page, so that when the terminal acquires the front-end page, the data table is transmitted to the terminal along with the front-end page.
In one embodiment, as shown in fig. 3, step S130 includes S131 and S132.
S131, identifying the front-end page to obtain a prefabricated two-dimensional code in the front-end page.
And identifying the front page to obtain a prefabricated two-dimensional code in the front page. Specifically, the front-end page is provided with a picture of the two-dimensional code, the terminal has a function of scanning and identifying the two-dimensional code picture, and when the type of the update request is a request type for replacing batch data in the front-end page, the terminal starts the function of scanning and identifying to perform full-screen scanning in the front-end page so as to identify the two-dimensional code picture arranged in the front-end page, wherein the terminal can be a mobile phone, a tablet, a computer and other equipment with a function of identifying a pre-manufactured two-dimensional code in the front-end page.
In an embodiment, step S110 further includes S131 a.
S131a, acquiring data for generating the two-dimensional code from a preset database, generating the two-dimensional code according to the data, and setting the two-dimensional code in the front-end page.
And acquiring data for generating the two-dimension code from a preset database, generating the two-dimension code according to the data and setting the two-dimension code in the front-end page. Specifically, the terminal can be further configured to generate the front-end page before receiving an update request for updating the front-end page, the database is stored in the server, the terminal generates the two-dimensional code according to the data after acquiring the front-end page from the database, and the terminal sets the two-dimensional code in the front-end page in the form of a picture after generating the two-dimensional code, so that the front-end page can be updated only by scanning the two-dimensional code when the content in the front-end page needs to be updated subsequently.
In an embodiment, as shown in fig. 4, the generating the two-dimensional code according to the data in step S131a includes: s131a1, S131a2, and S131a 3.
S131a1, marking the data according to a preset marking rule to generate marking data.
Marking the data according to a preset marking rule to generate marking data. Specifically, the marking rule is used for marking the data to generate marking data, so that the content in the front-end page can be accurately modified by modifying the marking data in the subsequent process. For example, the data corresponding to the attribute name in the front-end page may be marked as a mark having the attribute name, and the data corresponding to the verbal content in the front-end page may be marked as a mark having the verbal content.
S131a2, generating the identifier of the UUID type from the marking data.
And generating an identifier of a UUID type by the marking data. Where UUID is an abbreviation for Universal Uniqueidentifier, which is a machine-generated identifier that is unique within a range (from a specific namespace to the world). Specifically, the identification data may be generated according to the identification in the identification data in the process of generating the identifier of the UUID type, for example, when the identification data may be represented by a data table name-data ID-data field, the data table name, the data ID, and the data field are combined to obtain the unique identifier of the UUID type.
S131a3, generating the two-dimensional code according to the identifier of the UUID type and setting the two-dimensional code in the front-end page.
And generating the two-dimensional code according to the identifier of the UUID type and setting the two-dimensional code in the front-end page. Specifically, the identifier of the UUID type is written into a two-dimensional code generator, so that the two-dimensional code can be generated, and after the two-dimensional code is generated, the two-dimensional code can be arranged in the front-end page in a picture mode. The two-dimension code is a pattern formed by combining data in a black and white small square (binary) mode, the two-dimension code generator is used for generating the two-dimension code, the two-dimension code generator needs a two-dimension code generation algorithm or a two-dimension code plug-in unit in the manufacturing process, and then calling software is compiled by using programming languages such as JAVA, C #, VB and the like to form the two-dimension code generator.
S132, analyzing the two-dimensional code to obtain the data table.
And analyzing the two-dimensional code to obtain the data table. Specifically, after the terminal scans and identifies the two-dimensional code in the front-end page, a two-dimensional code picture consisting of black and white small squares can be obtained from the two-dimensional code, and then the picture is analyzed to obtain the data table. In this embodiment, the data table is stored in the front-end page in the form of the two-dimensional code, so that in the process of updating the front-end page, the data table stored in the front-end page in the form of the two-dimensional code is only required to be obtained from the front-end page after the front-end page is obtained, and the data table can be smoothly used in the process of updating the front-end page and the front-end page is updated in an index manner.
In one embodiment, as shown in fig. 5, step S132 includes S1321 and S1322.
S1321, analyzing the two-dimensional code to obtain the identifier of the UUID type.
And analyzing the two-dimensional code to obtain the identifier of the UUID type. The two-dimensional code stores data information for generating content in the front-end page, and the data information of the front-end page is obtained by analyzing the two-dimensional code, and in this embodiment, the data information is an identifier of the UUID type. Specifically, a two-dimensional code decoder may be used to decode the two-dimensional code during the process of parsing the two-dimensional code, so as to obtain the identifier of the UUID type.
S1322, generating the data table according to the identifier of the UUID type.
And generating the data table according to the identifier of the UUID type. Specifically, after the terminal analyzes the two-dimensional code to obtain the identifier of the UUID type, a data table in an index relationship with data in the front-end page is created according to the identifier of the UUID type, and when a data field at a specific position in the front-end page needs to be obtained, the data field can be obtained in the front-end page by querying the data table so as to replace the data in the front-end page, and then the front-end page is updated.
In one embodiment, the identifier of the UUID type in step S1322 exists in the data table in a serialized form.
The identifier of the UUID type is present in the data table in serialized form. Specifically, the identifier of the UUID type exists in the form of a json character string in the data table, the identifier of the UUID type is data information of content in the front-end page, and data corresponding to the directory can be acquired from the front-end page by referring to the identifier of the UUID type in the data table.
And after the replacement, the addition and the deletion are carried out, the front-end page can be updated by storing the data table.
And S140, updating the front-end page in an index mode according to the updating request and the data table.
And updating the front-end page in an index mode according to the updating request and the data table. Specifically, when the type of the update request is a request type for updating a plurality of data in the front-end page, the update request includes a data field for updating the plurality of data in the front-end page and an ID corresponding to the data field, and the terminal can search the directory corresponding to the ID in the data table through the ID, where the ID of the data field and the ID of the data field corresponding to the data field are the same ID. Because the data table and the data field in the front-end page are in an index relationship, the directory of the terminal uses the data field in the update request to replace after acquiring the data field corresponding to the directory from the front-end page, thereby updating the front-end page.
S150, if the type of the updating request is to update single data in the front-end page, acquiring a preset template file according to the front-end page.
And if the type of the updating request is to update single data in the front-end page, acquiring a preset template file according to the front-end page. Specifically, the template file is a modification template set for modifying data in the front-end page, and when the template file is modified and stored, the front-end page corresponding to the template file can be automatically updated to correspond to the template file after the template file is stored. And each data in the template file corresponds to each data in the front-end page one by one, and the modified data in the template file is transmitted to the front-end page in a value reference mode, so that the front-end page can be updated.
And S160, modifying the template file in a value reference mode according to the updating request so as to update the front-end page.
And modifying the template file in a value reference mode according to the updating request so as to update the front-end page. Specifically, when the type of the update request is a request type for updating a single data in the front-end page, the update request includes the single data for updating the single data in the front-end page and an ID of the single data, the terminal replaces the single data at the ID in the template file with the single data in the update request according to the ID of the single data, and the front-end page can be updated by storing the template after the replacement is completed according to a value reference manner.
An embodiment of the present invention further provides an apparatus 100 for updating a front-end page based on an index and a value index, where the apparatus is configured to perform any one of the foregoing embodiments of updating a front-end page. Specifically, referring to fig. 6, fig. 6 is a schematic block diagram of an apparatus 100 for updating a front page based on an index and a value index according to an embodiment of the present invention.
As shown in fig. 6, the apparatus 100 for updating a front page based on an index and a value index includes a front page obtaining unit 110, a determining unit 120, a data table obtaining unit 130, a first updating unit 140, a template file obtaining unit 150, and a second updating unit 160.
The front-end page obtaining unit 110 is configured to, if an update request for updating a front-end page is received, obtain the front-end page according to the update request.
The update request may be an update request sent by the server to the terminal to modify a specific front-end page stored in the server, or may be an instruction of the update request input in the terminal when the user needs to modify the specific front-end page stored in the server. The update request comprises the IP address of the front-end page stored in the server, and the terminal can acquire the front-end page corresponding to the IP address from the server after acquiring the IP address from the update request.
The determining unit 120 is configured to determine the type of the update request according to a preset determination rule.
The judgment rule is rule information which is identified and judged by the terminal according to whether the data in the front-end page needs to be updated in batches or not in the updating request. For example, when the type of the update request is to update the batch data in the front-end page, the terminal determines that the type of the update request is to modify the batch data in the front-end page, and when the type of the update request is to update the non-batch data in the front-end page, the terminal determines that the type of the update request is to modify the non-batch data in the front-end page.
A data table obtaining unit 130, configured to obtain a pre-made data table according to the front-end page if the type of the update request is to update multiple data in the front-end page, where the data table and the front-end page have an index relationship.
The data table is a data table indicating a corresponding relationship between logical records and physical records, each index item in the data table, which has an index relationship with the front-end page, is arranged in a key (or logical record number) sequence, after the terminal acquires the front-end page, the data table can be acquired through the front-end page, and the data table can be pre-stored in the terminal, can also be pre-stored in the server, and can also be pre-stored in the front-end page and stored in the server along with the front-end page, so that when the terminal acquires the front-end page, the data table is transmitted to the terminal along with the front-end page.
In other invention embodiments, as shown in fig. 7, the data table obtaining unit 130 includes a recognition unit 131 and an analysis unit 132.
The identifying unit 131 is configured to identify the front page to obtain a prefabricated two-dimensional code in the front page.
The front-end page is provided with a picture of the two-dimensional code, the terminal has a function of scanning and identifying the two-dimensional code picture, and when the type of the updating request is a request type for replacing batch data in the front-end page, the terminal starts the function of scanning and identifying to perform full-screen scanning in the front-end page so as to identify the two-dimensional code picture arranged in the front-end page.
In other embodiments of the present invention, the apparatus 100 for updating a front page based on an index and a value index further includes a generating unit 131 a.
The generating unit 131a is configured to acquire data for generating the two-dimensional code from a preset database, generate the two-dimensional code according to the data, and set the two-dimensional code in the front-end page.
The terminal can be used for generating the front page before receiving an update request for updating the front page, the database is stored in the server, the terminal generates the two-dimensional code according to the data after acquiring the front page from the database, and the two-dimensional code is arranged in the front page in a picture form after generating the two-dimensional code, so that when the content in the front page needs to be updated subsequently, the front page can be updated only by scanning the two-dimensional code
In another embodiment of the present invention, as shown in fig. 8, the generating unit 131a includes: a data identification unit 131a1, an identifier generation unit 131a2, and a two-dimensional code generation unit 131a 3.
The data identification unit 131a1 is configured to identify the data according to a preset identification rule to generate identification data.
The data corresponding to the front-end page is marked according to different attributes of the data in the front-end page, for example, the data corresponding to the attribute name in the front-end page can be marked as a mark with the attribute name, and the data corresponding to the conversational content in the front-end page can be marked as a mark with the conversational content.
An identifier generating unit 131a2, configured to generate the identifier of UUID type from the marking data.
The identification data may be generated according to an identification in the identification data in the process of generating the identifier of the UUID type, for example, when the identification data may be represented by a data table name-data ID-data field, the data table name, the data ID, and the data field are combined to obtain a unique identifier of the UUID type.
The two-dimensional code generating unit 131a3 is configured to generate the two-dimensional code according to the identifier of the UUID type and set the two-dimensional code in the front-end page.
The two-dimension code is a pattern formed by combining data in a black and white small square (binary) mode, the two-dimension code generator is used for generating the two-dimension code, the two-dimension code generator needs a two-dimension code generation algorithm or a two-dimension code plug-in unit in the manufacturing process, and then calling software is compiled by using programming languages such as JAVA, C #, VB and the like to form the two-dimension code generator.
And the analyzing unit 132 is configured to analyze the two-dimensional code to obtain the data table.
After the terminal scans and identifies the two-dimensional code in the front-end page, a two-dimensional code picture consisting of black and white small blocks can be obtained from the two-dimensional code, and the picture is analyzed to obtain the data sheet.
In other invention embodiments, as shown in fig. 9, the parsing unit 132 includes an identifier obtaining unit 1321 and a data table generating unit 1322.
An identifier obtaining unit 1321, configured to parse the two-dimensional code to obtain an identifier of the UUID type.
The two-dimensional code stores data information for generating the content in the front-end page, and the data information of the front-end page is obtained by analyzing the two-dimensional code, wherein in this embodiment, the data information is an identifier of the UUID type. Specifically, a two-dimensional code decoder may be used to decode the two-dimensional code during the process of parsing the two-dimensional code, so as to obtain the identifier of the UUID type.
A data table generating unit 1322 is configured to generate the data table according to the identifier of the UUID type.
And after the terminal analyzes the two-dimensional code to obtain the identifier of the UUID type, creating a data table which is in an index relation with data in the front-end page according to the identifier of the UUID type, and when the data field at a specific position in the front-end page needs to be obtained, obtaining the data field in the front-end page by inquiring the data table so as to replace the data in the front-end page and further update the front-end page.
In other embodiments of the present invention, as shown in fig. 10, the data table generating unit 1322 includes a storage unit 1322 a.
A storage unit 1322a for storing the identifier of the UUID type in a serialized form in the data table.
The identifier of the UUID type exists in the data table in the form of a json character string, the identifier of the UUID type is data information of content in the front-end page, and data corresponding to the directory can be acquired from the front-end page through the identifier of the UUID type in the data table.
A first updating unit 140, configured to update the front-end page in an indexed manner according to the update request and the data table.
The updating request comprises a data field for updating a plurality of data in the front-end page and an ID corresponding to the data field, the terminal can search the directory corresponding to the ID in the data table through the ID, and the directory obtains the data field corresponding to the directory from the front-end page and then replaces the data field in the updating request, so that the front-end page is updated.
A template file obtaining unit 150, configured to obtain a preset template file according to the front-end page if the type of the update request is to update a single data in the front-end page.
The template file is used for modifying the content in the front-end page, each data in the template file corresponds to each data in the front-end page one by one, and the modified data in the template file is transmitted to the front-end page in a value reference mode, so that the front-end page can be updated.
A second updating unit 160, configured to modify the template file in a manner of value reference according to the update request to update the front-end page.
When the type of the update request is a request type for updating single data in the front-end page, the update request comprises the single data for updating the single data in the front-end page and the ID of the single data, the terminal replaces the single data at the ID in the template file with the single data in the update request according to the ID of the single data, and the front-end page can be updated by storing the template after the replacement is completed.
The device 100 for updating a front-end page based on index and value index provided by the embodiment of the present invention is used for executing the method for updating a front-end page based on index and value index, and if an update request for updating a front-end page is received, the front-end page is obtained according to the update request; judging the type of the updating request according to a preset judgment rule; if the type of the update request is to update a plurality of data in the front-end page, acquiring a prefabricated data table according to the front-end page, wherein the data table and the front-end page are in an index relationship; updating the front-end page in an index mode according to the updating request and the data table; if the type of the updating request is to update single data in the front-end page, acquiring a preset template file according to the front-end page; and modifying the template file in a value reference mode according to the updating request so as to update the front-end page.
Referring to fig. 11, fig. 11 is a schematic block diagram of a computer device according to an embodiment of the present invention.
Referring to fig. 11, the device 500 includes a processor 502, memory, and a network interface 505 connected by a system bus 501, where the memory may include a non-volatile storage medium 503 and an internal memory 504.
The non-volatile storage medium 503 may store an operating system 5031 and a computer program 5032. The computer program 5032, when executed, may cause the processor 502 to perform a method of updating a front-end page based on the index and the value index.
The processor 502 is used to provide computing and control capabilities that support the operation of the overall device 500.
The internal memory 504 provides an environment for the execution of the computer program 5032 in the non-volatile storage medium 503, and when the computer program 5032 is executed by the processor 502, the processor 502 may be caused to perform a method for updating a front-end page based on the index and the value index.
The network interface 505 is used for network communication, such as providing transmission of data information. Those skilled in the art will appreciate that the configuration shown in fig. 11 is a block diagram of only a portion of the configuration associated with aspects of the present invention and does not constitute a limitation of the apparatus 500 to which aspects of the present invention may be applied, and that a particular apparatus 500 may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
Wherein the processor 502 is configured to run the computer program 5032 stored in the memory to implement the following functions: if an updating request for updating a front-end page is received, acquiring the front-end page according to the updating request; judging the type of the updating request according to a preset judgment rule; if the type of the update request is to update a plurality of data in the front-end page, acquiring a prefabricated data table according to the front-end page, wherein the data table and the front-end page are in an index relationship; updating the front-end page in an index mode according to the updating request and the data table; if the type of the updating request is to update single data in the front-end page, acquiring a preset template file according to the front-end page; and modifying the template file in a value reference mode according to the updating request so as to update the front-end page.
Those skilled in the art will appreciate that the embodiment of the apparatus 500 illustrated in fig. 11 does not constitute a limitation on the specific construction of the apparatus 500, and in other embodiments, the apparatus 500 may include more or fewer components than those illustrated, or some components may be combined, or a different arrangement of components. For example, in some embodiments, the apparatus 500 may only include the memory and the processor 502, and in such embodiments, the structure and function of the memory and the processor 502 are the same as those of the embodiment shown in fig. 11, and are not repeated herein.
It should be understood that in the present embodiment, the Processor 502 may be a Central Processing Unit (CPU), and the Processor 502 may also be other general-purpose processors 502, a Digital Signal Processor 502 (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, etc. The general-purpose processor 502 may be a microprocessor 502 or the processor 502 may be any conventional processor 502 or the like.
In another embodiment of the present invention, a computer storage medium is provided. The storage medium may be a non-volatile computer-readable storage medium. The storage medium stores a computer program 5032, wherein the computer program 5032 when executed by the processor 502 performs the steps of: if an updating request for updating a front-end page is received, acquiring the front-end page according to the updating request; judging the type of the updating request according to a preset judgment rule; if the type of the update request is to update a plurality of data in the front-end page, acquiring a prefabricated data table according to the front-end page, wherein the data table and the front-end page are in an index relationship; updating the front-end page in an index mode according to the updating request and the data table; if the type of the updating request is to update single data in the front-end page, acquiring a preset template file according to the front-end page; and modifying the template file in a value reference mode according to the updating request so as to update the front-end page.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses, devices and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again. Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be embodied in electronic hardware, computer software, or combinations of both, and that the components and steps of the examples have been described in a functional general in the foregoing description for the purpose of illustrating clearly the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided by the present invention, it should be understood that the disclosed apparatus, device and method can be implemented in other ways. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only a logical division, and there may be other divisions when the actual implementation is performed, or units having the same function may be grouped into one unit, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may also be an electric, mechanical or other form of connection.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment of the present invention.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a storage medium. Based on such understanding, the technical solution of the present invention essentially contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product stored in a storage medium and including instructions for causing a device 500 (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a magnetic disk, or an optical disk.
While the invention has been described with reference to specific embodiments, the invention is not limited thereto, and various equivalent modifications and substitutions can be easily made by those skilled in the art within the technical scope of the invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A method for updating a front-end page based on an index and a value index, comprising the steps of:
if an updating request for updating a front-end page is received, acquiring the front-end page according to the updating request;
judging the type of the updating request according to a preset judgment rule;
if the type of the update request is to update a plurality of data in the front-end page, acquiring a prefabricated data table according to the front-end page, wherein the data table and the front-end page are in an index relationship;
updating the front-end page in an index mode according to the updating request and the data table;
if the type of the updating request is to update single data in the front-end page, acquiring a preset template file according to the front-end page;
and modifying the template file in a value reference mode according to the updating request so as to update the front-end page.
2. The method for updating a front-end page based on index and value according to claim 1, wherein the obtaining a pre-manufactured data table according to the front-end page comprises:
identifying the front-end page to obtain a prefabricated two-dimensional code in the front-end page;
and analyzing the two-dimensional code to obtain the data table.
3. The method for updating a front-end page based on index and value as claimed in claim 2, wherein said step of, if an update request for updating the front-end page is received, further comprises:
and acquiring data for generating the two-dimension code from a preset database, generating the two-dimension code according to the data and setting the two-dimension code in the front-end page.
4. The method for updating a front-end page based on index and value according to claim 3, wherein the generating the two-dimensional code according to the data comprises:
marking the data according to a preset marking rule to generate marking data;
generating an identifier of a UUID type by the marking data;
and generating the two-dimensional code according to the identifier of the UUID type and setting the two-dimensional code in the front-end page.
5. The method of claim 4, wherein parsing the two-dimensional code to obtain the data table comprises:
analyzing the two-dimensional code to obtain an identifier of the UUID type;
and generating the data table according to the identifier of the UUID type.
6. The method of claim 5, wherein the identifier of the UUID type is stored in the data table in a serialized form.
7. An apparatus for updating a front-end page based on an index and a value index, comprising:
the front-end page acquiring unit is used for acquiring a front-end page according to an update request if the update request for updating the front-end page is received;
the judging unit is used for judging the type of the updating request according to a preset judging rule;
a data table obtaining unit, configured to obtain a pre-manufactured data table according to the front-end page if the type of the update request is to update multiple data in the front-end page, where the data table and the front-end page are in an index relationship;
the first updating unit is used for updating the front-end page in an index mode according to the updating request and the data table;
a template file obtaining unit, configured to obtain a preset template file according to the front-end page if the type of the update request is to update a single data in the front-end page;
and the second updating unit is used for modifying the template file in a value reference mode according to the updating request so as to update the front-end page.
8. The apparatus for updating a front-end page based on index and value according to claim 7, wherein the data table obtaining unit comprises:
the identification unit is used for identifying the front-end page to obtain a prefabricated two-dimensional code in the front-end page;
and the analyzing unit is used for analyzing the two-dimensional code to obtain the data table.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of updating a front-end page based on an index and a value index according to any one of claims 1 to 6 when executing the computer program.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program which, when executed by a processor, causes the processor to carry out the method of updating a front-end page based on an index and a value index according to any one of claims 1 to 6.
CN202010479012.2A 2020-05-29 2020-05-29 Method, device and computer equipment for updating front-end page based on index and value index Pending CN111708957A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202010479012.2A CN111708957A (en) 2020-05-29 2020-05-29 Method, device and computer equipment for updating front-end page based on index and value index
PCT/CN2020/125063 WO2021135598A1 (en) 2020-05-29 2020-10-30 Method, apparatus, and computer device for updating front-end page on basis of index and value

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010479012.2A CN111708957A (en) 2020-05-29 2020-05-29 Method, device and computer equipment for updating front-end page based on index and value index

Publications (1)

Publication Number Publication Date
CN111708957A true CN111708957A (en) 2020-09-25

Family

ID=72539049

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010479012.2A Pending CN111708957A (en) 2020-05-29 2020-05-29 Method, device and computer equipment for updating front-end page based on index and value index

Country Status (2)

Country Link
CN (1) CN111708957A (en)
WO (1) WO2021135598A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021135598A1 (en) * 2020-05-29 2021-07-08 平安科技(深圳)有限公司 Method, apparatus, and computer device for updating front-end page on basis of index and value
CN114546389A (en) * 2022-04-25 2022-05-27 浙江大华技术股份有限公司 Front-end page generation method, audio and video analysis method, device and medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1205571C (en) * 2000-02-04 2005-06-08 美国联机股份有限公司 System and method for delivering and rendering scalable web pages
CN104657479A (en) * 2015-02-17 2015-05-27 广东新农人农业科技股份有限公司 Method and system for displaying updated data on webpage
CN107872500A (en) * 2016-09-28 2018-04-03 阿里巴巴集团控股有限公司 Update processing method, device, server and the client of five application page data
CN108776592B (en) * 2018-05-23 2022-04-05 北京五八信息技术有限公司 Page construction method, device, equipment and storage medium
CN110851209B (en) * 2019-11-08 2023-07-21 北京字节跳动网络技术有限公司 Data processing method and device, electronic equipment and storage medium
CN111708957A (en) * 2020-05-29 2020-09-25 平安科技(深圳)有限公司 Method, device and computer equipment for updating front-end page based on index and value index

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021135598A1 (en) * 2020-05-29 2021-07-08 平安科技(深圳)有限公司 Method, apparatus, and computer device for updating front-end page on basis of index and value
CN114546389A (en) * 2022-04-25 2022-05-27 浙江大华技术股份有限公司 Front-end page generation method, audio and video analysis method, device and medium

Also Published As

Publication number Publication date
WO2021135598A1 (en) 2021-07-08

Similar Documents

Publication Publication Date Title
CN109542399B (en) Software development method and device, terminal equipment and computer readable storage medium
CN105511873B (en) User interface control display method and device
CN110955416A (en) Interface document generation method, device, equipment and computer storage medium
CN112765023B (en) Test case generation method and device
CN109951354B (en) Terminal equipment identification method, system and storage medium
CN111708957A (en) Method, device and computer equipment for updating front-end page based on index and value index
US11727701B2 (en) Techniques to determine document recognition errors
CN110580189A (en) method and device for generating front-end page, computer equipment and storage medium
CN108415998B (en) Application dependency relationship updating method, terminal, device and storage medium
CN114090671A (en) Data import method and device, electronic equipment and storage medium
US11244000B2 (en) Information processing apparatus and non-transitory computer readable medium storing program for creating index for document retrieval
CN111859863A (en) Document structure conversion method and device, storage medium and electronic equipment
CN107506474B (en) Database operation method and device based on object mapping
CN116468062A (en) Page display method and device based on graphic code
CN107168687B (en) Method and equipment for setting game instruction macro
CN112988810B (en) Information searching method, device and equipment
CN114356330A (en) Page configuration method and device, electronic equipment and storage medium
CN112069236A (en) Associated file display method, device, equipment and storage medium
CN113254470A (en) Data change method and device, computer equipment and storage medium
CN112905931A (en) Page information display method and device, electronic equipment and storage medium
CN112835494A (en) Voice recognition result error correction method and device
CN114817793B (en) Page generation method, device, equipment and storage medium
CN107729013B (en) Method for managing operation buttons on web page and computer-readable storage medium
CN114840743B (en) Model recommendation method and device, electronic equipment and readable storage medium
CN112199428B (en) Application management system, method and terminal equipment of functional data block

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