CN111538544B - Method and device for displaying configuration data, electronic equipment and storage medium - Google Patents

Method and device for displaying configuration data, electronic equipment and storage medium Download PDF

Info

Publication number
CN111538544B
CN111538544B CN202010312767.3A CN202010312767A CN111538544B CN 111538544 B CN111538544 B CN 111538544B CN 202010312767 A CN202010312767 A CN 202010312767A CN 111538544 B CN111538544 B CN 111538544B
Authority
CN
China
Prior art keywords
configuration data
target object
directory
account
instruction
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.)
Active
Application number
CN202010312767.3A
Other languages
Chinese (zh)
Other versions
CN111538544A (en
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 Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information 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 Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN202010312767.3A priority Critical patent/CN111538544B/en
Publication of CN111538544A publication Critical patent/CN111538544A/en
Application granted granted Critical
Publication of CN111538544B publication Critical patent/CN111538544B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/901Indexing; Data structures therefor; Storage structures
    • G06F16/9017Indexing; Data structures therefor; Storage structures using directory or table look-up
    • 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/901Indexing; Data structures therefor; Storage structures
    • G06F16/9027Trees
    • 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/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • G06F9/4451User profiles; Roaming

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The disclosure relates to a method and a device for displaying configuration data, electronic equipment and a storage medium. The method comprises the following steps: responding to a configuration management instruction of an account, and acquiring configuration data; converting the data structure of the configuration data into a tree-shaped data structure; generating a tree directory according to the tree data structure, wherein the tree directory comprises an object contained in the configuration data and a parameter contained in the object; and displaying the configuration data to the account according to the tree directory. By adopting the method and the device, the configuration editor can quickly position the configuration to be modified.

Description

Method and device for displaying configuration data, electronic equipment and storage medium
Technical Field
The disclosure relates to the field of computer technology, and in particular, to a method and device for displaying configuration data, an electronic device and a storage medium.
Background
Configuration management is a particularly important feature in background management systems. Taking the fast-handed main application program as an example, whether a certain user displays a certain menu or not and whether a certain activity opens an activity entry or not are all realized by modifying the configuration in the background management system. Currently, the configuration in the background management system is usually presented in JSON (JavaScript Object Notation, JS object profile) format.
However, as application complexity of the application program increases, the corresponding configuration data size increases, which results in a failure of the configuration editor to quickly locate the configuration to be modified.
Disclosure of Invention
The disclosure provides a method, a device, an electronic device and a storage medium for displaying configuration data, so as to at least solve the problem that a configuration editor cannot quickly position to a configuration to be modified in the related art. The technical scheme of the present disclosure is as follows:
According to a first aspect of embodiments of the present disclosure, there is provided a method for displaying configuration data, the method including:
Responding to a configuration management instruction of an account, and acquiring configuration data;
converting the data structure of the configuration data into a tree-shaped data structure;
generating a tree directory according to the tree data structure, wherein the tree directory comprises an object contained in the configuration data and a parameter contained in the object;
and displaying the configuration data to the account according to the tree directory.
As an alternative embodiment, the method further comprises:
responding to an editing instruction of the account aiming at a target object, and displaying a visual editing form corresponding to the target object, wherein the visual editing form comprises visual editing table items corresponding to parameters contained in the target object;
Responding to an updating instruction of the account for the visual editing list item corresponding to the target parameter contained in the target object, and updating the visual editing list item corresponding to the target parameter;
Responding to a storage instruction of the account aiming at the visual editing list item corresponding to the target parameter, generating a configuration updating instruction according to the visual editing list item corresponding to the updated target parameter, and updating configuration data stored by target equipment according to the configuration updating instruction.
As an alternative embodiment, the method further comprises:
Responding to an editing instruction of the account aiming at a target object, and displaying local configuration data corresponding to the target object, wherein the local configuration data is configuration corresponding to the target object in the configuration data;
updating the local configuration data of the target object in response to an updating instruction of the account aiming at the target object;
And responding to a storage instruction of the account aiming at the target object, and sending a configuration updating instruction to target equipment, wherein the configuration updating instruction carries updated local configuration data corresponding to the target object, so that the target equipment updates the stored configuration data according to the configuration updating instruction.
As an optional implementation manner, the object included in the configuration data is a primary directory of the tree directory, the parameter included in the object is a secondary directory under the primary directory corresponding to the object, and the displaying the configuration data to the account according to the tree directory includes:
Displaying a first-level directory in the tree directory;
and hiding a secondary directory under the primary directory in the tree directory.
As an alternative embodiment, the method further comprises:
Responding to a display instruction of the account aiming at a target object, and displaying a secondary catalog under a primary catalog corresponding to the target object;
And hiding the secondary catalog under the primary catalog corresponding to the target object in response to a hiding instruction of the account for the target object.
According to a second aspect of embodiments of the present disclosure, there is provided a display device of configuration data, the device comprising:
the acquisition module is configured to respond to the configuration management instruction of the account and acquire configuration data;
a conversion module configured to convert a data structure of the configuration data into a tree data structure;
A generation module configured to generate a tree directory according to the tree data structure, wherein the tree directory comprises an object contained in the configuration data and a parameter contained in the object;
and the first display module is configured to display the configuration data to the account according to the tree directory.
As an alternative embodiment, the apparatus further comprises:
the second display module is configured to respond to an editing instruction of the account for a target object, and display a visual editing form corresponding to the target object, wherein the visual editing form comprises visual editing table items corresponding to parameters contained in the target object;
The first updating module is configured to respond to an updating instruction of the account for the visual editing table item corresponding to the target parameter contained by the target object, and update the visual editing table item corresponding to the target parameter;
The second updating module is configured to respond to a storage instruction of the account for the visual editing list item corresponding to the target parameter, generate a configuration updating instruction according to the visual editing list item corresponding to the updated target parameter, and update the configuration data stored by the target equipment according to the configuration updating instruction.
As an alternative embodiment, the apparatus further comprises:
the third display module is configured to respond to an editing instruction of the account for a target object and display local configuration data corresponding to the target object, wherein the local configuration data is the configuration corresponding to the target object in the configuration data;
a third updating module configured to update the local configuration data of the target object in response to an update instruction of the account for the target object;
The sending module is configured to respond to a storage instruction of the account for the target object and send a configuration updating instruction to target equipment, wherein the configuration updating instruction carries updated local configuration data corresponding to the target object, so that the target equipment updates the stored configuration data according to the configuration updating instruction.
As an optional implementation manner, the object included in the configuration data is a primary directory of the tree directory, the parameter included in the object is a secondary directory under the primary directory corresponding to the object, and the first display module is specifically configured to:
Displaying a first-level directory in the tree directory;
and hiding a secondary directory under the primary directory in the tree directory.
As an alternative embodiment, the apparatus further comprises:
The fourth display module is configured to respond to a display instruction of the account for a target object and display a secondary catalog under a primary catalog corresponding to the target object;
And the hiding module is configured to respond to a hiding instruction of the account for the target object and hide the secondary catalog under the primary catalog corresponding to the target object.
According to a third aspect of embodiments of the present disclosure, there is provided an electronic device, comprising:
A processor;
A memory for storing the processor-executable instructions;
Wherein the processor is configured to execute the instructions to implement the method of displaying configuration data according to any of the first aspects of the embodiments of the present disclosure.
According to a fourth aspect of embodiments of the present disclosure, there is provided a storage medium, which when executed by a processor of an electronic device, enables the electronic device to perform a method of displaying configuration data as in any of the first aspects of embodiments of the present disclosure.
According to a fifth aspect of embodiments of the present disclosure, there is provided a computer program product comprising a computer program stored in a readable storage medium, from which at least one processor of a device reads and executes the computer program, causing the device to perform the method of displaying configuration data as described in any one of the embodiments of the first aspect.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects: the terminal responds to the configuration management instruction of the account, acquires configuration data and converts the data structure of the configuration data into a tree-shaped data structure. Then, the terminal generates a tree directory according to the tree data structure. Wherein the tree directory includes objects contained in the configuration data and parameters contained in the objects. And then, the terminal displays the configuration data to the account according to the tree directory. In this way, the configuration data is displayed according to the tree directory, so that the account can be rapidly positioned to the configuration to be modified.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure and do not constitute an undue limitation on the disclosure.
FIG. 1 is an application environment diagram shown in accordance with an exemplary embodiment;
FIG. 2 is a flowchart illustrating a method of displaying configuration data, according to an exemplary embodiment;
FIG. 3A is configuration data of a JSON data structure shown according to an example embodiment;
FIG. 3B is an exemplary diagram illustrating one display configuration data in accordance with one illustrative embodiment;
FIG. 3C is an exemplary diagram illustrating one display configuration data in accordance with one illustrative embodiment;
FIG. 3D is an exemplary diagram illustrating one display configuration data in accordance with one illustrative embodiment;
FIG. 4A is a schematic diagram of a visual edit form, shown in accordance with an exemplary embodiment;
FIG. 4B is a schematic diagram of a visual edit form, shown in accordance with an exemplary embodiment;
FIG. 5A is a schematic diagram of one type of local configuration data, shown in accordance with an exemplary embodiment;
FIG. 5B is a schematic diagram of one type of local configuration data, shown in accordance with an exemplary embodiment;
FIG. 6 is a block diagram of a display device showing one type of configuration data according to one exemplary embodiment;
Fig. 7 is a block diagram illustrating an apparatus for display of configuration data, according to an example embodiment.
Detailed Description
In order to enable those skilled in the art to better understand the technical solutions of the present disclosure, the technical solutions of the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the foregoing figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the disclosure described herein may be capable of operation in sequences other than those illustrated or described herein. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
The method for displaying the configuration data provided by the present disclosure may be applied to an application environment as shown in fig. 1. Wherein the terminal 110 interacts with the server 120 through a network. Wherein the server 120 is configured to store configuration data. The terminal 110 is configured to obtain configuration data from the server 120 based on a configuration management instruction of an account, convert a data structure of the configuration data into a tree data structure, generate a tree directory according to the tree data structure, and display the configuration data to the account according to the tree directory.
Fig. 2 is a flowchart illustrating a method of displaying configuration data according to an exemplary embodiment, which is used in a terminal, as shown in fig. 2, and includes the following steps.
Step 210, obtaining configuration data in response to the configuration management instruction of the account.
In an implementation, when a configuration editor needs to manage configuration data in a background management system, the configuration editor may log into the background management system through a terminal using a pre-assigned account. The account may then click on the configuration management button in the background management system. Correspondingly, the terminal receives an account configuration management instruction. The terminal may then obtain configuration data from the server according to the configuration management instructions. The data structure of the configuration data may be a JSON data structure.
Optionally, the configuration editor may also directly import the configuration data into the terminal, so that after receiving the configuration management instruction of the account, the terminal may directly obtain the configuration data from the local without obtaining the configuration data from the server.
Step 220, converting the data structure of the configuration data into a tree data structure.
In implementation, after the terminal obtains the configuration data, the configuration data may be deeply traversed, and the data structure of the configuration data may be converted into a tree data structure. For example, the configuration data of the JSON data structure is: { "person": { "name": "tom", "age": "18" } "job": { "type": "engineer" }, the configuration data of the tree data structure is :{key:"person":[{key:"name",value:"tom"},{key:"age",value:"18"}],Key:"job":[{key:"type",value:"engineer"}]}., where the object "person", the object "job", the parameter "name", the parameter "age" and the parameter "type" are all key values in the tree structure.
Step 230, generating a tree directory according to the tree data structure.
Wherein the tree directory includes objects contained in the configuration data and parameters contained in the objects.
In implementation, after the terminal converts the data structure of the configuration data into the tree data structure, the tree directory may be further generated by parsing the configuration data of the tree data structure through the tree component in the component library. Wherein the tree directory includes objects contained in the configuration data and parameters contained in the objects.
Step 240, displaying the configuration data to the account according to the tree directory.
In implementation, after the terminal analyzes the configuration data of the tree data structure through the tree component to generate the tree catalog, the configuration data can be further displayed to the account through the tree component according to the tree catalog. In this way, the configuration data is displayed through the tree component, so that the account can be quickly positioned to the configuration to be modified. For example, fig. 3A is a configuration data { "person" of JSON data structure: { "name": "tom", "age": "18" } "job": { "type": "manager" }, fig. 3B is configuration data displayed by the terminal according to the tree directory through the tree component.
As an optional implementation manner, the object contained in the configuration data is a primary directory of the tree directory, and the parameter contained in the object is a secondary directory under the primary directory corresponding to the object. The terminal can display the primary catalogue in the tree catalogue and hide the secondary catalogue under the primary catalogue in the tree catalogue.
In the implementation, in order to further improve the speed of positioning the account to the configuration to be modified, when the terminal displays the configuration data to the account, the primary catalog in the tree catalog can be displayed, and the secondary catalog under the primary catalog in the tree catalog is hidden. For example, fig. 3C shows configuration data when hiding a secondary directory under a primary directory in a tree directory, and in fig. 3C, the configuration data of the JSON data structure is { "person": { "name": "tom", "age": "18" } "job": { "type": "manager" }, and when the configuration data is displayed according to the tree directory, the terminal 110 displays only the primary directory corresponding to the object "person" and the object "job", and hides the secondary directory corresponding to the parameter "name", the parameter "age" and the parameter "type".
As an optional implementation manner, the terminal may further display the second-level directory under the first-level directory corresponding to the target object according to a display instruction of the account, or hide the second-level directory under the first-level directory corresponding to the target object according to a hide instruction of the account, where the processing step includes.
Step one, a display instruction of an account aiming at a target object is responded, and a secondary catalog under a primary catalog corresponding to the target object is displayed.
In implementation, when a secondary directory under a primary directory corresponding to an object (i.e., a target object) is in a hidden state, an account may click on the primary directory corresponding to the target object in the tree component. Correspondingly, the terminal detects a display instruction of the account for the target object. Then, the terminal can display the secondary catalog under the primary catalog corresponding to the target object according to the display instruction aiming at the target object. At this time, the second-level directory under the first-level directory corresponding to the target object is in a display state. For example, fig. 3C is a hidden state of the secondary directory under the primary directory corresponding to the target object "person", and fig. 3D is a display state of the secondary directory under the primary directory corresponding to the target object "person".
Step two, responding to a hiding instruction of the account aiming at the target object, and hiding the secondary catalog under the primary catalog corresponding to the target object.
In implementation, when a secondary directory under a primary directory corresponding to an object (i.e., a target object) is in a display state, an account may click on the primary directory corresponding to the target object in the tree component. Correspondingly, the terminal detects a hiding instruction of the account for the target object. Then, the terminal can hide the secondary catalog under the primary catalog corresponding to the target object according to the hiding instruction for the target object. At this time, the secondary directory under the primary directory corresponding to the target object is in a hidden state. For example, fig. 3D shows that the second directory under the primary directory corresponding to the target object "person" is in a display state, and fig. 3C shows that the second directory under the primary directory corresponding to the target object "person" is in a hidden state.
As an alternative implementation manner, the terminal displays the configuration data according to the tree directory. The account may edit the configuration data. The manner in which the account may edit the configuration data may be varied, and this embodiment provides two possible implementations, as follows.
In one mode, the account edits the configuration data through the visual editing form, and the specific steps include.
Step one, responding to an editing instruction of an account aiming at a target object, and displaying a visual editing form corresponding to the target object.
The visual editing list comprises visual editing list items corresponding to parameters contained in the target object.
In an implementation, when an account needs to edit a target object, the account may double-click a primary directory corresponding to the target object in the tree component. Correspondingly, the terminal receives an edit instruction of the account for the target object. Then, the terminal can acquire the initial line number and the end line number of the target object in the configuration data according to the editing instruction for the target object, and display a visual editing form corresponding to the target object. The visual editing list comprises visual editing list items corresponding to parameters contained in the target object. For example, fig. 4A is a visual edit form of the target object "cdnList", and the visual edit form of the target object "cdnList" includes 4 visual edit entries of "cdn".
And step two, updating the visual editing list item corresponding to the target parameter in response to an updating instruction of the visual editing list item corresponding to the target parameter contained in the target object by the account.
In implementation, after the terminal displays the visual editing form of the target object, the account may perform an update operation (such as an adding operation, a deleting operation, a modifying operation, etc.) on the target parameter included in the target object. Correspondingly, the terminal receives an update instruction of the account for the target parameter. Wherein the update instruction contains the type of update operation (addition, deletion, modification, etc.) and the update content. Then, the terminal can update the visual editing list item of the target object according to the updating instruction of the account aiming at the target parameter. For example, fig. 4B is a modification of "k4.Static. Yximgs.com" of the first target parameter "cdn" to "k4.Static. Yximgs.com1".
And thirdly, responding to a storage instruction of the account aiming at the visual editing list item corresponding to the target parameter, generating a configuration updating instruction according to the visual editing list item corresponding to the updated target parameter, and updating the configuration data stored by the target equipment according to the configuration updating instruction.
In implementation, after the account updates the visual editing table item of the target parameter, a save button can be clicked. Correspondingly, the terminal receives a storage instruction of the account aiming at the target parameter. Then, the terminal can generate a configuration updating instruction according to the modification description code of the updated visual editing list item of the target parameter. For example, the modification description code of the visual editing table entry is { "op": "add", path: "/person/sex", value: "Man" }, the generated configuration update instruction is that the path of the modified configuration data is/person/sex, the operation type is addition, and the parameter value is Man. And then, the terminal can update the configuration data stored by the target equipment according to the configuration updating instruction. The target device may be a device that installs an application to which the configuration data pertains.
In a second mode, the account edits configuration data through the local configuration data, and the specific steps include.
Step one, responding to an editing instruction of an account aiming at a target object, and displaying local configuration data corresponding to the target object.
The local configuration data is the configuration corresponding to the target object in the configuration data.
In an implementation, when an account needs to edit a target object, the account may double-click a primary directory corresponding to the target object in the tree component. Correspondingly, the terminal receives an edit instruction of the account for the target object. Then, the terminal may obtain the starting line number and the ending line number of the target object in the configuration data according to the editing instruction for the target object, and display the local configuration data corresponding to the target object. The local configuration data is the configuration data between the initial line number and the end line number of the target object in the configuration data. For example, FIG. 5A is local configuration data for a target object "person".
And step two, updating the local configuration data of the target object in response to an updating instruction of the account for the target object.
In implementation, after the terminal displays the local configuration data of the target object, the account may perform an update operation (such as an adding operation, a deleting operation, a modifying operation, etc.) on the local configuration data of the target object. Correspondingly, the terminal receives an update instruction of the account for the target object. Wherein the update instruction contains the type of update operation (addition, deletion, modification, etc.) and the update content. Then, the terminal can update the local configuration data of the target object according to the update instruction of the account for the target object. For example, fig. 5B is a parameter "age" in the local configuration data of the target object "person": "18" is modified to "age": "19".
And step three, responding to a storage instruction of the account aiming at the target object, and sending a configuration updating instruction to target equipment.
The configuration updating instruction carries updated local configuration data corresponding to the target object, so that the target device updates the stored configuration data according to the configuration updating instruction.
In implementation, after the account updates the local configuration data of the target object, the save button may be clicked. Correspondingly, the terminal receives a storage instruction of the account for the target object. The terminal may then send a configuration update instruction to the target device. The configuration updating instruction carries updated local configuration data corresponding to the target object. Correspondingly, after receiving the configuration updating instruction, the target device can analyze the configuration updating instruction to obtain updated local configuration data of the target object carried in the configuration updating instruction. The target device may then update the local configuration data of the target object in the stored configuration data based on the updated local configuration data of the target object.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects: the terminal responds to the configuration management instruction of the account, acquires configuration data and converts the data structure of the configuration data into a tree-shaped data structure. Then, the terminal generates a tree directory according to the tree data structure. Wherein the tree directory includes objects contained in the configuration data and parameters contained in the objects. And then, the terminal displays the configuration data to the account according to the tree directory. In this way, the configuration data is displayed according to the tree directory, so that the account can be rapidly positioned to the configuration to be modified.
It should be understood that, although the steps in the flowchart of fig. 2 are shown in sequence as indicated by the arrows, the steps are not necessarily performed in sequence as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least a portion of the steps in fig. 2 may include a plurality of steps or stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily sequential, but may be performed in rotation or alternatively with at least a portion of the steps or stages in other steps or other steps.
Fig. 6 is a block diagram of a display device showing configuration data according to an exemplary embodiment. Referring to fig. 6, the apparatus includes:
An obtaining module 610 configured to obtain configuration data in response to a configuration management instruction of an account;
A conversion module 620 configured to convert the data structure of the configuration data into a tree data structure;
a generating module 630 configured to generate a tree directory according to the tree data structure, the tree directory including an object included in the configuration data and a parameter included in the object;
the first display module 640 is configured to display configuration data to the account according to the tree directory.
As an alternative embodiment, the device further comprises:
The second display module is configured to respond to an editing instruction of the account aiming at the target object, and display a visual editing form corresponding to the target object, wherein the visual editing form comprises visual editing table items corresponding to parameters contained in the target object;
the first updating module is configured to respond to an updating instruction of the account for the visual editing list item corresponding to the target parameter contained by the target object, and update the visual editing list item corresponding to the target parameter;
The second updating module is configured to respond to a storage instruction of the account for the visual editing list item corresponding to the target parameter, generate a configuration updating instruction according to the visual editing list item corresponding to the updated target parameter, and update the configuration data stored by the target equipment according to the configuration updating instruction.
As an alternative embodiment, the device further comprises:
The third display module is configured to respond to an editing instruction of an account for a target object and display local configuration data corresponding to the target object, wherein the local configuration data is the configuration corresponding to the target object in the configuration data;
The third updating module is configured to respond to an updating instruction of the account for the target object and update the local configuration data of the target object;
The sending module is configured to respond to a storage instruction of the account aiming at the target object and send a configuration updating instruction to the target device, wherein the configuration updating instruction carries updated local configuration data corresponding to the target object, so that the target device updates the stored configuration data according to the configuration updating instruction.
As an optional implementation manner, the object included in the configuration data is a primary directory of the tree directory, and the parameter included in the object is a secondary directory under the primary directory corresponding to the object, and the first display module 640 is specifically configured to:
Displaying a first-level directory in the tree directory;
And hiding the secondary directory under the primary directory in the tree directory.
As an alternative embodiment, the device further comprises:
the fourth display module is configured to respond to a display instruction of the account aiming at the target object and display a second-level catalog under the first-level catalog corresponding to the target object;
The hiding module is configured to respond to a hiding instruction of the account for the target object and hide the secondary catalog under the primary catalog corresponding to the target object.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects: the terminal responds to the configuration management instruction of the account, acquires configuration data and converts the data structure of the configuration data into a tree-shaped data structure. Then, the terminal generates a tree directory according to the tree data structure. Wherein the tree directory includes objects contained in the configuration data and parameters contained in the objects. And then, the terminal displays the configuration data to the account according to the tree directory. In this way, the configuration data is displayed according to the tree directory, so that the account can be rapidly positioned to the configuration to be modified.
The specific manner in which the various modules perform the operations in the apparatus of the above embodiments have been described in detail in connection with the embodiments of the method, and will not be described in detail herein.
Fig. 7 is a block diagram illustrating an apparatus 700 for display of configuration data, according to an example embodiment. For example, device 700 may be a mobile phone, computer, digital broadcast terminal, messaging device, game console, tablet device, medical device, exercise device, personal digital assistant, or the like.
Referring to fig. 7, device 700 may include one or more of the following components: a processing component 702, a memory 704, a power component 706, a multimedia component 708, an audio component 710, an input/output (I/O) interface 712, a sensor component 714, and a communication component 716.
The processing component 702 generally controls overall operation of the device 700, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 702 may include one or more processors 720 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 702 can include one or more modules that facilitate interaction between the processing component 702 and other components. For example, the processing component 702 may include a multimedia module to facilitate interaction between the multimedia component 708 and the processing component 702.
Memory 704 is configured to store various types of data to support operations at device 700. Examples of such data include instructions for any application or method operating on device 700, contact data, phonebook data, messages, pictures, video, and the like. The memory 704 may be implemented by any type of volatile or non-volatile memory device or combination thereof, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk, or optical disk.
The power supply component 706 provides power to the various components of the device 700. Power supply components 706 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for device 700.
The multimedia component 708 includes a screen between the device 700 and the user that provides an output interface. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only the boundary of a touch or slide action, but also the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 708 includes a front-facing camera and/or a rear-facing camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the device 700 is in an operational mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
The audio component 710 is configured to output and/or input audio signals. For example, the audio component 710 includes a Microphone (MIC) configured to receive external audio signals when the device 700 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 704 or transmitted via the communication component 716. In some embodiments, the audio component 710 further includes a speaker for outputting audio signals.
The I/O interface 712 provides an interface between the processing component 702 and peripheral interface modules, which may be a keyboard, click wheel, buttons, etc. These buttons may include, but are not limited to: homepage button, volume button, start button, and lock button.
The sensor assembly 714 includes one or more sensors for providing status assessment of various aspects of the device 700. For example, the sensor assembly 714 may detect an on/off state of the device 700, a relative positioning of the components, such as a display and keypad of the device 700, a change in position of the device 700 or a component of the device 700, the presence or absence of user contact with the device 700, an orientation or acceleration/deceleration of the device 700, and a change in temperature of the device 700. The sensor assembly 714 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 714 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 714 may also include an acceleration sensor, a gyroscopic sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 716 is configured to facilitate communication between the device 700 and other devices, either wired or wireless. The device 700 may access a wireless network based on a communication standard, such as WiFi, an operator network (e.g., 2G, 3G, 4G, or 5G), or a combination thereof. In one exemplary embodiment, the communication component 716 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 716 further includes a Near Field Communication (NFC) module to facilitate short range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 700 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic elements for executing the methods described above.
In an exemplary embodiment, a non-transitory computer readable storage medium is also provided, such as memory 704, including instructions executable by processor 720 of device 700 to perform the above-described method. For example, the non-transitory computer readable storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
In an exemplary embodiment, a computer program product is also provided, the program product comprising a computer program stored in a readable storage medium, from which at least one processor of the device reads and executes the computer program, causing the device to perform the above-described method of displaying configuration data.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any adaptations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

1. A method for displaying configuration data, the method comprising:
responding to a configuration management instruction of an account, and acquiring configuration data, wherein the data structure of the configuration data is in a JSON format;
performing depth traversal on the configuration data, and converting the data structure of the configuration data into a tree-shaped data structure;
Generating a tree directory according to the tree data structure, wherein the tree directory comprises an object contained in the configuration data and a parameter contained in the object, the object contained in the configuration data is a primary directory of the tree directory, and the parameter contained in the object is a secondary directory under the primary directory corresponding to the object;
Displaying the configuration data to the account according to the tree directory;
responding to an editing instruction of the account for a target object in the tree directory, acquiring a starting line number and an ending line number of the target object in the configuration data, taking the configuration data between the starting line number and the ending line number as local configuration data of the target object, and displaying the local configuration data;
updating the local configuration data of the target object in response to an updating instruction of the account aiming at the target object;
And responding to a storage instruction of the account aiming at the target object, and sending a configuration updating instruction to target equipment, wherein the configuration updating instruction carries updated local configuration data corresponding to the target object, so that the target equipment updates the stored configuration data according to the configuration updating instruction.
2. The method according to claim 1, wherein the method further comprises:
responding to an editing instruction of the account aiming at a target object, and displaying a visual editing form corresponding to the target object, wherein the visual editing form comprises visual editing table items corresponding to parameters contained in the target object;
Responding to an updating instruction of the account for the visual editing list item corresponding to the target parameter contained in the target object, and updating the visual editing list item corresponding to the target parameter;
Responding to a storage instruction of the account aiming at the visual editing list item corresponding to the target parameter, generating a configuration updating instruction according to the visual editing list item corresponding to the updated target parameter, and updating configuration data stored by target equipment according to the configuration updating instruction.
3. The method of claim 1, wherein the displaying the configuration data to the account according to the tree directory comprises:
Displaying a first-level directory in the tree directory;
and hiding a secondary directory under the primary directory in the tree directory.
4. A method according to claim 3, characterized in that the method further comprises:
Responding to a display instruction of the account aiming at a target object, and displaying a secondary catalog under a primary catalog corresponding to the target object;
And hiding the secondary catalog under the primary catalog corresponding to the target object in response to a hiding instruction of the account for the target object.
5. A display device for configuration data, the device comprising:
The acquisition module is configured to respond to the configuration management instruction of the account and acquire configuration data, wherein the data structure of the configuration data is in a JSON format;
the conversion module is configured to carry out depth traversal on the configuration data and convert the data structure of the configuration data into a tree-shaped data structure;
The generation module is configured to generate a tree directory according to the tree data structure, wherein the tree directory comprises an object contained in the configuration data and a parameter contained in the object, the object contained in the configuration data is a primary directory of the tree directory, and the parameter contained in the object is a secondary directory under the primary directory corresponding to the object;
a first display module configured to display the configuration data to the account according to the tree directory;
The third display module is used for responding to an editing instruction of the account for a target object in the tree directory, acquiring the initial line number and the end line number of the target object in the configuration data, taking the configuration data between the initial line number and the end line number as the local configuration data of the target object, and displaying the local configuration data;
the third updating module is used for responding to an updating instruction of the account aiming at the target object and updating the local configuration data of the target object;
And the sending module responds to a storage instruction of the account aiming at the target object and sends a configuration updating instruction to target equipment, wherein the configuration updating instruction carries updated local configuration data corresponding to the target object, so that the target equipment updates the stored configuration data according to the configuration updating instruction.
6. The apparatus of claim 5, wherein the apparatus further comprises:
the second display module is configured to respond to an editing instruction of the account for a target object, and display a visual editing form corresponding to the target object, wherein the visual editing form comprises visual editing table items corresponding to parameters contained in the target object;
The first updating module is configured to respond to an updating instruction of the account for the visual editing table item corresponding to the target parameter contained by the target object, and update the visual editing table item corresponding to the target parameter;
The second updating module is configured to respond to a storage instruction of the account for the visual editing list item corresponding to the target parameter, generate a configuration updating instruction according to the visual editing list item corresponding to the updated target parameter, and update the configuration data stored by the target equipment according to the configuration updating instruction.
7. The apparatus of claim 5, wherein the object included in the configuration data is a primary directory of the tree directory, and the parameter included in the object is a secondary directory of the primary directory corresponding to the object, and the first display module is specifically configured to:
Displaying a first-level directory in the tree directory;
and hiding a secondary directory under the primary directory in the tree directory.
8. The apparatus of claim 7, wherein the apparatus further comprises:
The fourth display module is configured to respond to a display instruction of the account for a target object and display a secondary catalog under a primary catalog corresponding to the target object;
And the hiding module is configured to respond to a hiding instruction of the account for the target object and hide the secondary catalog under the primary catalog corresponding to the target object.
9. An electronic device, comprising:
A processor;
A memory for storing the processor-executable instructions;
Wherein the processor is configured to execute the instructions to implement the method of displaying configuration data as claimed in any one of claims 1 to 4.
10. A storage medium, which when executed by a processor of an electronic device, enables the electronic device to perform the method of displaying configuration data according to any one of claims 1 to 4.
CN202010312767.3A 2020-04-20 2020-04-20 Method and device for displaying configuration data, electronic equipment and storage medium Active CN111538544B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010312767.3A CN111538544B (en) 2020-04-20 2020-04-20 Method and device for displaying configuration data, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010312767.3A CN111538544B (en) 2020-04-20 2020-04-20 Method and device for displaying configuration data, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111538544A CN111538544A (en) 2020-08-14
CN111538544B true CN111538544B (en) 2024-05-14

Family

ID=71975154

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010312767.3A Active CN111538544B (en) 2020-04-20 2020-04-20 Method and device for displaying configuration data, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111538544B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006092215A (en) * 2004-09-22 2006-04-06 Fuji Xerox Co Ltd Program for supporting editing directory with hierarchical structure set thereto, directory edit supporting method, and directory edit supporting device
CN110458412A (en) * 2019-07-16 2019-11-15 阿里巴巴集团控股有限公司 The generation method and device of risk monitoring and control data
CN110704450A (en) * 2019-10-14 2020-01-17 北京和利时系统工程有限公司 Method and device for realizing data processing, computer storage medium and terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170052988A1 (en) * 2015-08-20 2017-02-23 International Business Machines Corporation Normalizing values in data tables

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006092215A (en) * 2004-09-22 2006-04-06 Fuji Xerox Co Ltd Program for supporting editing directory with hierarchical structure set thereto, directory edit supporting method, and directory edit supporting device
CN110458412A (en) * 2019-07-16 2019-11-15 阿里巴巴集团控股有限公司 The generation method and device of risk monitoring and control data
CN110704450A (en) * 2019-10-14 2020-01-17 北京和利时系统工程有限公司 Method and device for realizing data processing, computer storage medium and terminal

Also Published As

Publication number Publication date
CN111538544A (en) 2020-08-14

Similar Documents

Publication Publication Date Title
EP3416045A1 (en) Method for controlling a display, device, and storage medium
CN107066172B (en) File transmission method and device of mobile terminal
EP3416054A1 (en) Method and device for page display, and storage medium
EP3147802B1 (en) Method and apparatus for processing information
US20220391446A1 (en) Method and device for data sharing
CN112463418A (en) Cross-device information sharing method, device, medium and electronic device
CN108803892B (en) Method and device for calling third party application program in input method
CN111427449A (en) Interface display method, device and storage medium
CN111368329B (en) Message display method and device, electronic equipment and storage medium
CN106447747B (en) Image processing method and device
CN111538544B (en) Method and device for displaying configuration data, electronic equipment and storage medium
CN112667852B (en) Video-based searching method and device, electronic equipment and storage medium
CN111131000B (en) Information transmission method, device, server and terminal
CN113919311A (en) Data display method and device, electronic equipment and storage medium
CN113778398A (en) Code generation method and device, electronic equipment and storage medium
CN110196747B (en) Information processing method and device
US10871832B2 (en) Method and device for obtaining operation entry, and storage medium
CN112581102A (en) Task management method and device, electronic equipment and storage medium
CN109120499B (en) Information processing method and device
CN107257384B (en) Service state monitoring method and device
CN111049732A (en) Push message display method and device, electronic equipment and medium
CN113191792B (en) Task processing method, device, electronic equipment, storage medium and program product
CN113934452B (en) Data processing method and device, electronic equipment and storage medium
CN110473138B (en) Graphic code conversion method, graphic code conversion device, electronic equipment and storage medium
CN118035363A (en) Nuclear power station document association method 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
GR01 Patent grant
GR01 Patent grant