CN113158115A - Configuration page display method and device, electronic equipment and storage medium - Google Patents

Configuration page display method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113158115A
CN113158115A CN202110381979.1A CN202110381979A CN113158115A CN 113158115 A CN113158115 A CN 113158115A CN 202110381979 A CN202110381979 A CN 202110381979A CN 113158115 A CN113158115 A CN 113158115A
Authority
CN
China
Prior art keywords
data
configuration data
unit
configuration
display mode
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
CN202110381979.1A
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.)
Beijing Fangjianghu Technology Co Ltd
Original Assignee
Beijing Fangjianghu Technology 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 Beijing Fangjianghu Technology Co Ltd filed Critical Beijing Fangjianghu Technology Co Ltd
Priority to CN202110381979.1A priority Critical patent/CN113158115A/en
Publication of CN113158115A publication Critical patent/CN113158115A/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/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • 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/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • 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

Landscapes

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

Abstract

The application provides a configuration page display method and device, electronic equipment and a storage medium. The method comprises the following steps: acquiring configuration data on a data storage service platform; performing recursive traversal on the configuration data; determining the data type of the traversed configuration data; and rendering and displaying the corresponding configuration data on a page according to the display mode corresponding to the data type. The method can realize the visual display mode of the configuration page and improve the user experience.

Description

Configuration page display method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of image recognition technologies, and in particular, to a method and an apparatus for displaying a configuration page, an electronic device, and a storage medium.
Background
Data storage services are typically those that support both technician and non-technician modifications to configuration data, such as the apollo service, which provides configuration pages that support the editing of text and Object Notation (JSON) characters.
For non-technical personnel, the difficulty in editing JSON is too high, various errors are easy to occur, service reading fails, a system makes mistakes, and a user cannot normally access the system;
for technicians, when configuration data is changed each time, the original configuration needs to be manually copied to a webpage with special formatted data, format conversion is performed first, then modification is performed, and the working efficiency is low.
Disclosure of Invention
In view of this, the present application provides a configuration page display method, an apparatus, an electronic device, and a storage medium, which can implement a visual display mode of a configuration page and improve user experience.
In order to solve the technical problem, the technical scheme of the application is realized as follows:
in one embodiment, a configuration page display method is provided, the method comprising:
acquiring configuration data on a data storage service platform;
performing recursive traversal on the configuration data;
determining the data type of the traversed configuration data;
and rendering and displaying the corresponding configuration data on a page according to the display mode corresponding to the data type.
Wherein the method further comprises:
receiving updated configuration data input through a page;
determining whether the updated configuration data is consistent with the data type of the corresponding configuration data acquired from the data storage service platform, and if so, sending the updated configuration data to the data storage service platform for updating; otherwise, rejecting the updating of the configuration data through the page.
Wherein after the obtaining of the configuration data on the data storage service platform and before the performing of the recursive traversal on the configuration data, the method further comprises:
analyzing the configuration data;
and if the structure type of the configuration data obtained by analysis is a JSON structure, performing deserialization operation on the configuration data.
Wherein the data type comprises one or any combination of the following:
number, string, url, array, object.
Wherein the content of the first and second substances,
the display mode corresponding to the number is a digital form;
if the character string is a Date, the corresponding display mode is a Date assembly; if the character string is in color, selecting a ColorPicker component for the color in a corresponding display mode; if the character string is not a date or a color and the length of the character string is greater than a preset length value, the corresponding display mode is a multi-line text input control TextArea form; if the character string is not a date or a color, and the length of the character string is not greater than a preset length value, the corresponding display mode is a single-line text input control input form;
if the uniform resource locator url is a picture, the corresponding display mode is a picture component; if the url is not a picture, the corresponding display mode is an input form;
when the data type is an array, recursively traversing each element in the array until the data types of all the traversed elements are not arrays and not objects, and ending the recursive traversal;
and when the data type is an object, recursively traversing the key values corresponding to each key in the object until the traversed data types of all the key values are not arrays and are not objects, and ending the recursive traversal.
In another embodiment, an embodiment of the present application is further provided to provide a configuration page display apparatus, including: the device comprises a configuration unit, an acquisition unit, a traversal unit, a determination unit and a display unit;
the configuration unit is used for configuring the corresponding relation between the data type and the display mode;
the acquisition unit is used for acquiring configuration data on the data storage service platform;
the traversal unit is used for performing recursive traversal on the configuration data acquired by the acquisition unit;
the determining unit is used for determining the data type of the configuration data traversed by the traversing unit according to the corresponding relation configured by the configuration unit;
and the display unit is used for rendering and displaying the corresponding configuration data on a page according to the display mode corresponding to the data type determined by the determination unit.
Wherein the apparatus further comprises: a receiving unit and a transmitting unit;
the receiving unit is used for receiving updated configuration data input through a page;
the determining unit is further configured to determine whether the updated configuration data received by the receiving unit is consistent with the data type of the corresponding configuration data acquired from the data storage service platform;
the sending unit is used for sending the updated configuration data to the data storage service platform for updating when the determining unit determines that the data types are consistent; otherwise, rejecting the updating of the configuration data through the page.
Wherein the apparatus further comprises: an analysis unit;
the analysis unit is used for analyzing the configuration data acquired by the acquisition unit; and if the structure type of the configuration data obtained by analysis is a JSON structure, performing deserialization operation on the configuration data.
Wherein the data type comprises one or any combination of the following:
number, string, url, array, object.
Wherein the content of the first and second substances,
the display mode corresponding to the number is a digital form;
if the character string is a Date, the corresponding display mode is a Date assembly; if the character string is in color, selecting a ColorPicker component for the color in a corresponding display mode; if the character string is not a date or a color and the length of the character string is greater than a preset length value, the corresponding display mode is a multi-line text input control TextArea form; if the character string is not a date or a color, and the length of the character string is not greater than a preset length value, the corresponding display mode is a single-line text input control input form;
if the uniform resource locator url is a picture, the corresponding display mode is a picture component; if the url is not a picture, the corresponding display mode is an input form;
when the data type is an array, recursively traversing each element in the array until the data types of all the traversed elements are not arrays and not objects, and ending the recursive traversal;
and when the data type is an object, recursively traversing the key values corresponding to each key in the object until the traversed data types of all the key values are not arrays and are not objects, and ending the recursive traversal.
In another embodiment, an electronic device is provided comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the configuration page display method as described when executing the program.
In another embodiment, a computer readable storage medium is provided, having stored thereon a computer program which, when executed by a processor, performs the steps of the configuration page display method.
According to the technical scheme, the configuration data are obtained from the storage service platform, the data type of the data in the configuration data is determined, the data are rendered and displayed on the page according to the display mode corresponding to the data type, the visual display mode of the configuration page is achieved, and the user experience is improved.
The configuration data can be modified through a visual configuration page, JSON code writing is not needed, and the configuration data can be modified in a text and picture mode. As the JSON file does not need to be copied, the updating efficiency of the configuration data is improved, JSON codes do not need to be input, the modification difficulty is reduced, and the user experience is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, 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 only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive labor.
Fig. 1 is a schematic view illustrating a display flow of a configuration page according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a configuration page in an embodiment of the present application;
FIG. 3 is a schematic diagram illustrating a configuration data update process according to an embodiment of the present application;
fig. 4 is a schematic view illustrating a display flow of a configuration page in the third embodiment of the present application;
FIG. 5 is a schematic diagram of an apparatus for implementing the above technique in an embodiment of the present application;
fig. 6 is a schematic physical structure diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. 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 application.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are, for example, capable of operation in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprising" and "having," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements explicitly listed, but may include other steps or elements not explicitly listed or inherent to such process, method, article, or apparatus.
The technical solution of the present invention will be described in detail with specific examples. Several of the following embodiments may be combined with each other and some details of the same or similar concepts or processes may not be repeated in some embodiments.
The embodiment of the application provides a configuration page display method, which is applied to a display device, and is encapsulated again on the basis of open access provided by a data storage service, such as an apollo service, so that a data configuration visual page is provided, a user can modify configuration data conveniently, and the efficiency of modifying the configuration data is improved on the premise of not editing JSON.
The following describes in detail a process of implementing a configuration page display in an embodiment of the present application with reference to the drawings.
Example one
Referring to fig. 1, fig. 1 is a schematic view illustrating a display flow of a configuration page according to a first embodiment of the present application. The method comprises the following specific steps:
step 101, obtaining configuration data on a data storage service platform.
During specific implementation, a web service can be built by adopting a node and a act on a display device, the interface provided by the storage service platform is called by the node part to obtain configuration data, and the configuration data is transmitted to a web page developed based on the act to obtain the configuration data to be displayed.
In the process of acquiring the configuration data on the data storage service platform, the HTTP protocol is used interactively for realizing, an HTTP request is sent, and an HTTP response is received to acquire the configuration data.
The above manner of acquiring the configuration data is only an example, and the specific implementation is not limited to the above implementation.
Step 102, performing recursive traversal on the configuration data.
There may be multiple data types of data in the configuration data, requiring recursive traversal of the configuration data.
And 103, determining the data type of the traversed configuration data.
The data types referred to herein include one or any combination of the following:
number, string, url, array, object.
Pre-configuring the corresponding relation between the data type and the display mode:
the display mode corresponding to the number is a digital form;
if the character string is a Date, the corresponding display mode is a Date (Date) component; if the character string is in color, the corresponding display mode is a color selection (ColorPicker) component; if the character string is not a date or a color and the length of the character string is greater than a preset length value, the corresponding display mode is a multi-line text input control (TextArea) form; if the character string is not a date or a color, and the length of the character string is not greater than a preset length value, the corresponding display mode is a single-line text input control (input) form;
if the uniform resource locator (url) is a picture, the corresponding display mode is a picture component; if the url is not a picture, the corresponding display mode is an input form;
when the data type is an array, recursively traversing each element in the array until the data types of all the traversed elements are not arrays and not objects, and ending the recursive traversal;
if the elements of an array M are A, B and C, and the data type of A is an array, the data type of each element in A is not an array and is not an object; the data type of C is an object, the data type of the key value corresponding to each key in C is not an object and is not data, and the data type of B is not an array and is not an object.
Performing a recursive traversal on each element in the array M, specifically:
when traversing to the element A, determining that the data type of the element A is an array, traversing each element in the element A, and when determining that the traversed elements are not arrays and are not objects, ending the traversal of the element A;
when traversing to the element B, the data type of the element B is not an array and is not an object, and the traversal of the element B is finished;
and when the traversed key values are determined not to be the arrays and not to be the objects, ending the traversal of the element C.
And when the data type is an object, recursively traversing the key values corresponding to each key in the object until the traversed data types of all the key values are not arrays and are not objects, and ending the recursive traversal.
And 104, rendering and displaying corresponding configuration data on a page according to the display mode corresponding to the data type.
At this point, the display of the present configuration page is completed.
Referring to fig. 2, fig. 2 is a schematic diagram of a configuration page in the embodiment of the present application. As for the display text and the picture aiming at the configuration data in fig. 2, when the data on the configuration page is modified, the JSON code does not need to be edited, and the data can be input in a text Chinese character input mode; if the picture exists, the picture can be directly uploaded, and fig. 2 in the embodiment of the present application takes the case that the picture does not exist as an example.
According to the method and the device, the configuration data are obtained from the storage service platform, the data type of the data in the configuration data is determined, the data are rendered and displayed on the page according to the display mode corresponding to the data type, the visual display mode of the configuration page is achieved, and the user experience is improved.
Example two
Referring to fig. 3, fig. 3 is a schematic diagram of a configuration data updating process in the embodiment of the present application. The method comprises the following specific steps:
step 301, receiving updated configuration data input through a page.
The configuration data is modified through the configuration page displayed in the first embodiment.
Step 302, determining whether the updated configuration data is consistent with the data type of the corresponding configuration data acquired from the data storage service platform, if so, executing step 303; otherwise, step 304 is performed.
The data types are consistent, when the original configuration data is numbers, character strings or urls, the corresponding data types need to be input to allow modification, and if the input data types are different from the data types of the original configuration data, the modification is not allowed.
Step 303, sending the updated configuration data to the data storage service platform for updating. The flow is ended.
And if the data types are the same, allowing modification, and uploading the modified configuration data to the data storage service platform for configuration data updating.
At step 304, updates to the configuration data are rejected via the page.
If the data types are not the same, the modification is not allowed, and the user is prompted to fail the modification, such as outputting a modification failure, or outputting a rejection submission.
According to the embodiment of the application, the configuration data is modified through the visual configuration page, JSON code writing is not needed, and the configuration data can be modified in a text and picture mode. As the JSON file does not need to be copied, the updating efficiency of the configuration data is improved, JSON codes do not need to be input, and the user experience is improved.
EXAMPLE III
Referring to fig. 4, fig. 4 is a schematic view illustrating a display flow of a configuration page in the third embodiment of the present application. The method comprises the following specific steps:
step 401, obtaining configuration data on a data storage service platform.
During specific implementation, a web service can be built by adopting a node and a act on a display device, the interface provided by the storage service platform is called by the node part to obtain configuration data, and the configuration data is transmitted to a web page developed based on the act to obtain the configuration data to be displayed.
In the process of acquiring the configuration data on the data storage service platform, the HTTP protocol is used interactively for realizing, an HTTP request is sent, and an HTTP response is received to acquire the configuration data.
The above manner of acquiring the configuration data is only an example, and the specific implementation is not limited to the above implementation.
Step 402, analyzing the configuration data, determining whether the structure type of the configuration data is a JSON structure, if so, executing step 403; otherwise, step 404 is performed.
Step 403, performing deserialization operation on the configuration data.
Step 404, performing recursive traversal on the configuration data.
The configuration data here is the configuration data of the non-JSON structure determined in step 402, or the configuration data after the deserialization operation is performed in step 403.
There may be multiple data types of data in the configuration data, requiring recursive traversal of the configuration data.
Step 405, determining the data type of the traversed configuration data.
The data types referred to herein include one or any combination of the following:
number, string, url, array, object.
The display mode corresponding to the number is a digital form;
if the character string is a Date, the corresponding display mode is a Date component; if the character string is in color, the corresponding display mode is a ColorPicker component; if the character string is not a date or a color and the length of the character string is greater than a preset length value, the corresponding display mode is a TextArea form; if the character string is not a date or a color, and the length of the character string is not greater than a preset length value, the corresponding display mode is an input form;
if the uniform resource locator url is a picture, the corresponding display mode is a picture component; if the url is not a picture, the corresponding display mode is an input form;
when the data type is an array, recursively traversing each element in the array until the data types of all the traversed elements are not arrays and not objects, and ending the recursive traversal;
and when the data type is an object, recursively traversing the key values corresponding to each key in the object until the traversed data types of all the key values are not arrays and are not objects, and ending the recursive traversal.
And 406, rendering and displaying the corresponding configuration data on a page according to the display mode corresponding to the data type.
At this point, the display of the present configuration page is completed.
According to the method and the device, the configuration data are obtained from the storage service platform, when the data structure of the configuration data is a JSON structure, deserialization operation needs to be performed firstly, the data type of the data in the configuration data is determined, and the data are rendered and displayed on the page according to the display mode corresponding to the data type, so that the visual display mode of the configuration page is realized, and the user experience is improved.
Based on the same inventive concept, the embodiment of the application also provides a configuration page display device. Referring to fig. 5, fig. 5 is a schematic structural diagram of an apparatus applied to the above technology in the embodiment of the present application. The device comprises: a configuration unit 501, an acquisition unit 502, a traversal unit 503, a determination unit 504, and a display unit 505;
a configuration unit 501, configured to configure a corresponding relationship between a data type and a display mode;
an obtaining unit 502, configured to obtain configuration data on a data storage service platform;
a traversal unit 503, configured to perform recursive traversal on the configuration data acquired by the acquisition unit 502;
a determining unit 504, configured to determine, according to the corresponding relationship configured by the configuration unit 501, a data type of the configuration data traversed by the traversing unit 503;
and a display unit 505, configured to render and display corresponding configuration data on a page according to the display mode corresponding to the data type determined by the determination unit 504.
Preferably, the apparatus further comprises: a receiving unit 506 and a transmitting unit 507;
a receiving unit 506, configured to receive updated configuration data input through a page;
a determining unit 504, configured to determine whether the updated configuration data received by the receiving unit 506 is consistent with the data type of the corresponding configuration data obtained from the data storage service platform;
a sending unit 507, configured to send the updated configuration data to the data storage service platform for updating when the determining unit 504 determines that the data types are consistent; otherwise, rejecting the updating of the configuration data through the page.
Preferably, the apparatus further comprises: an analysis unit 508;
an analyzing unit 508, configured to analyze the configuration data acquired by the acquiring unit 502; and if the structure type of the configuration data obtained by analysis is a JSON structure, performing deserialization operation on the configuration data.
Preferably, the data types include one or any combination of the following:
number, string, url, array, object.
Preferably, the first and second electrodes are formed of a metal,
the display mode corresponding to the number is a digital form;
if the character string is a Date, the corresponding display mode is a Date assembly; if the character string is in color, selecting a ColorPicker component for the color in a corresponding display mode; if the character string is not a date or a color and the length of the character string is greater than a preset length value, the corresponding display mode is a multi-line text input control TextArea form; if the character string is not a date or a color, and the length of the character string is not greater than a preset length value, the corresponding display mode is a single-line text input control input form;
if the uniform resource locator url is a picture, the corresponding display mode is a picture component; if the url is not a picture, the corresponding display mode is an input form;
when the data type is an array, recursively traversing each element in the array until the data types of all the traversed elements are not arrays and not objects, and ending the recursive traversal;
and when the data type is an object, recursively traversing the key values corresponding to each key in the object until the traversed data types of all the key values are not arrays and are not objects, and ending the recursive traversal.
The units of the above embodiments may be integrated into one body, or may be separately deployed; may be combined into one unit or further divided into a plurality of sub-units.
In another embodiment, an electronic device is also provided, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor implements the steps of the configuration page display method when executing the program.
In another embodiment, a computer readable storage medium is also provided, having stored thereon computer instructions, which when executed by a processor, may implement the steps in the configuration page display method.
Fig. 6 is a schematic physical structure diagram of an electronic device according to an embodiment of the present invention. As shown in fig. 6, the electronic device may include: a Processor (Processor)610, a communication Interface (Communications Interface)620, a Memory (Memory)630 and a communication bus 640, wherein the Processor 610, the communication Interface 620 and the Memory 630 communicate with each other via the communication bus 640. The processor 610 may call logic instructions in the memory 630 to perform the following method:
acquiring configuration data on a data storage service platform;
performing recursive traversal on the configuration data;
determining the data type of the traversed configuration data;
and rendering and displaying the corresponding configuration data on a page according to the display mode corresponding to the data type.
In addition, the logic instructions in the memory 630 may be implemented in software functional units and stored in a computer readable storage medium when the logic instructions are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a service platform, 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: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above-described embodiments of the apparatus are merely illustrative, and 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 modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a service platform, or a network device) to execute the method according to the embodiments or some parts of the embodiments.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (10)

1. A method for displaying a configuration page, the method comprising:
acquiring configuration data on a data storage service platform;
performing recursive traversal on the configuration data;
determining the data type of the traversed configuration data;
and rendering and displaying the corresponding configuration data on a page according to the display mode corresponding to the data type.
2. The method of claim 1, further comprising:
receiving updated configuration data input through the page;
determining whether the updated configuration data is consistent with the data type of the corresponding configuration data acquired from the data storage service platform, and if so, sending the updated configuration data to the data storage service platform for updating; otherwise, rejecting the updating of the configuration data through the page.
3. The method of claim 1, wherein after the obtaining configuration data on a data storage service platform and before the recursively traversing the configuration data, the method further comprises:
analyzing the configuration data;
and if the structure type of the configuration data obtained by analysis is an object notation JSON structure, performing deserialization operation on the configuration data.
4. The method of claim 1, wherein the data type includes one or any combination of the following:
numbers, strings, uniform resource locators url, arrays, objects.
5. The method of claim 4,
the display mode corresponding to the number is a digital form;
if the character string is a Date, the corresponding display mode is a Date assembly; if the character string is in color, selecting a ColorPicker component for the color in a corresponding display mode; if the character string is not a date or a color and the length of the character string is greater than a preset length value, the corresponding display mode is a multi-line text input control TextArea form; if the character string is not a date or a color, and the length of the character string is not greater than a preset length value, the corresponding display mode is a single-line text input control input form;
if the url is a picture, the corresponding display mode is a picture component; if the url is not a picture, the corresponding display mode is an input form;
when the data type is an array, recursively traversing each element in the array until the data types of all the traversed elements are not arrays and not objects, and ending the recursive traversal;
and when the data type is an object, recursively traversing the key values corresponding to each key in the object until the traversed data types of all the key values are not arrays and are not objects, and ending the recursive traversal.
6. A configuration page display apparatus, the apparatus comprising: the device comprises a configuration unit, an acquisition unit, a traversal unit, a determination unit and a display unit;
the configuration unit is used for configuring the corresponding relation between the data type and the display mode;
the acquisition unit is used for acquiring configuration data on the data storage service platform;
the traversal unit is used for performing recursive traversal on the configuration data acquired by the acquisition unit;
the determining unit is used for determining the data type of the configuration data traversed by the traversing unit according to the corresponding relation configured by the configuration unit;
and the display unit is used for rendering and displaying the corresponding configuration data on a page according to the display mode corresponding to the data type determined by the determination unit.
7. The apparatus of claim 6, further comprising: a receiving unit and a transmitting unit;
the receiving unit is used for receiving updated configuration data input through a page;
the determining unit is further configured to determine whether the updated configuration data received by the receiving unit is consistent with the data type of the corresponding configuration data acquired from the data storage service platform;
the sending unit is used for sending the updated configuration data to the data storage service platform for updating when the determining unit determines that the data types are consistent; otherwise, rejecting the updating of the configuration data through the page.
8. The apparatus of claim 6 or 7, further comprising: an analysis unit;
the analysis unit is used for analyzing the configuration data acquired by the acquisition unit; and if the structure type of the configuration data obtained by analysis is an object notation JSON structure, performing deserialization operation on the configuration data.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method according to any of claims 1-5 when executing the program.
10. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, is adapted to carry out the method of any one of claims 1 to 5.
CN202110381979.1A 2021-04-09 2021-04-09 Configuration page display method and device, electronic equipment and storage medium Pending CN113158115A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110381979.1A CN113158115A (en) 2021-04-09 2021-04-09 Configuration page display method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110381979.1A CN113158115A (en) 2021-04-09 2021-04-09 Configuration page display method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113158115A true CN113158115A (en) 2021-07-23

Family

ID=76888920

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110381979.1A Pending CN113158115A (en) 2021-04-09 2021-04-09 Configuration page display method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113158115A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115981750A (en) * 2023-02-09 2023-04-18 中远海运科技股份有限公司 Component configuration method based on recursive algorithm

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106708480A (en) * 2015-07-29 2017-05-24 腾讯科技(深圳)有限公司 Management platform realization method and apparatus
CN110704394A (en) * 2019-09-03 2020-01-17 苏宁云计算有限公司 Report configuration modification method and device
CN111352682A (en) * 2018-12-24 2020-06-30 北京嘀嘀无限科技发展有限公司 Page rendering method, device, server and readable storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106708480A (en) * 2015-07-29 2017-05-24 腾讯科技(深圳)有限公司 Management platform realization method and apparatus
CN111352682A (en) * 2018-12-24 2020-06-30 北京嘀嘀无限科技发展有限公司 Page rendering method, device, server and readable storage medium
CN110704394A (en) * 2019-09-03 2020-01-17 苏宁云计算有限公司 Report configuration modification method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115981750A (en) * 2023-02-09 2023-04-18 中远海运科技股份有限公司 Component configuration method based on recursive algorithm

Similar Documents

Publication Publication Date Title
CN106681921B (en) Method and device for realizing data parameterization
CN113382083B (en) Webpage screenshot method and device
CN106202006A (en) Document generating method and device
US20190050376A1 (en) Automatic value formatting based on intrinsic structural semantics
CN106020504A (en) Information output method and device
CN109684008A (en) Card rendering method, device, terminal and computer readable storage medium
CN107015801A (en) A kind of web page display method and application terminal
CN109783357A (en) The method and device of test application program, computer equipment, storage medium
CN113158115A (en) Configuration page display method and device, electronic equipment and storage medium
CN110750244A (en) Code synchronization method and device, electronic equipment and storage medium
CN109669678A (en) Template engine integration method, device, electronic equipment and storage medium
CN104346460B (en) Carry out the method, apparatus and browser client of file download
CN110908646B (en) Building block type callback function block construction method and device, storage medium and processor
CN105278928A (en) IVR external interface configuration method and IVR external interface configuration device
CN107506597A (en) Medical files acquisition methods, terminal and server
CN104980473B (en) UI resource loading method and system
CN108345508A (en) Interface calls test method and device
CN108153845B (en) Method and device for exporting background image data
CN114153440A (en) Data processing method and device, storage medium and electronic device
CN111026739B (en) Batch data cleaning method and device, computer equipment and storage medium
CN109683994B (en) Method and device for determining view construction time, storage medium and electronic equipment
CN113254830A (en) Webpage configuration method and device, electronic equipment and storage medium
CN113312104A (en) Advertisement conversion method and system based on small program
CN112486484A (en) Webpage version generation method and device
CN105072103A (en) Method for calling based on pattern code and device

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