CN114327425A - View generation method and device, electronic equipment and storage medium - Google Patents

View generation method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114327425A
CN114327425A CN202111588238.7A CN202111588238A CN114327425A CN 114327425 A CN114327425 A CN 114327425A CN 202111588238 A CN202111588238 A CN 202111588238A CN 114327425 A CN114327425 A CN 114327425A
Authority
CN
China
Prior art keywords
target
view
target view
data
code
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
CN202111588238.7A
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.)
Agricultural Bank of China
Original Assignee
Agricultural Bank of China
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 Agricultural Bank of China filed Critical Agricultural Bank of China
Priority to CN202111588238.7A priority Critical patent/CN114327425A/en
Publication of CN114327425A publication Critical patent/CN114327425A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a view generation method and device, electronic equipment and a storage medium. The view generation method comprises the following steps: acquiring a target view generation request from a controller; the target view generation request comprises target view configuration information and target data content of target view elements; according to the target view configuration information, acquiring codes of the target view structure from codes of candidate view structures of the resource storage, and acquiring codes of the target data structure from codes of candidate data structures of the data storage; and determining target view data according to the code of the target view structure, the code of the target data structure and the target data content of the target view element. The embodiment of the invention realizes the improvement of the view generation efficiency.

Description

View generation method and device, electronic equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a view generation method and device, electronic equipment and a storage medium.
Background
With the development of electronic information technology, the processing of daily affairs usually requires corresponding operations through application programs in electronic devices.
With the development of technology and the change of user requirements, the application program needs to be updated timely, and in the updating process of the application program, view updating is an important part in the updating of the application program and is usually performed through a controller.
When a view contains a large number of controls, the controller is bloated, an update request cannot be quickly responded, and the view generation efficiency is low.
Disclosure of Invention
The embodiment of the invention provides a view generation method and device, electronic equipment and a storage medium, and aims to improve view generation efficiency.
In a first aspect, an embodiment of the present invention provides a view generating method, where the method includes:
acquiring a target view generation request from a controller; the target view generation request comprises target view configuration information and target data content of target view elements;
according to the target view configuration information, acquiring codes of the target view structure from codes of candidate view structures of the resource storage, and acquiring codes of the target data structure from codes of candidate data structures of the data storage;
and determining target view data according to the code of the target view structure, the code of the target data structure and the target data content of the target view element.
In a second aspect, an embodiment of the present invention further provides a view generating apparatus, where the apparatus includes:
the target view generation request acquisition module is used for acquiring a target view generation request from the controller; the target view generation request comprises target view configuration information and target data content of target view elements;
the code acquisition module is used for acquiring codes of the target view structure from the codes of the candidate view structures of the resource memory according to the target view configuration information and acquiring codes of the target data structure from the codes of the candidate data structures of the data memory;
and the target view data determining module is used for determining the target view data according to the code of the target view structure, the code of the target data structure and the target data content of the target view element.
In a third aspect, an electronic device includes:
one or more processors;
storage means for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors implement the view generation method provided by the embodiment of the present invention.
In a fourth aspect, embodiments of the present invention also provide a storage medium containing computer-executable instructions, which when executed by a computer processor, are used to perform a view generation method as provided by embodiments of the present invention.
The invention acquires the target view generation request from the controller, respectively acquires the code of the target view structure and the code of the target data structure from the resource memory and the data memory according to the target view configuration information in the target view generation request, generates the target view data by combining the target data content in the target view generation request, the controller is only used for sending the target view generation request without specifically analyzing the incidence relation between the target view element and the target data content in the target view structure, and the resource storage and the data storage comprise a plurality of code modules, the flexibility of generating the target view data can be improved, and when a view contains a large number of controls, the method has the problems of being overstaffed by the controller, incapable of rapidly responding to the updating request and low view generation efficiency, and achieves the effect of improving the view generation efficiency.
Drawings
Fig. 1 is a flowchart of a view generating method according to an embodiment of the present invention;
fig. 2 is a flowchart of a view generation method according to a second embodiment of the present invention;
fig. 3 is a schematic block diagram of an MVC design pattern according to a second embodiment of the present invention;
fig. 4 is a schematic block diagram of a view generating method according to a second embodiment of the present invention;
fig. 5 is a schematic structural diagram of a view generating apparatus according to a third embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of a view generating method according to an embodiment of the present invention, where the embodiment is applicable to a case of generating a view, and the method may be executed by a view generating apparatus, and the apparatus may be implemented in a software and/or hardware manner. The device can be configured in electronic equipment and executed by the electronic equipment, and the method specifically comprises the following steps:
step 110, obtaining a target view generation request from a controller; the target view generation request includes target view configuration information and target data content of the target view element.
The target view generation request is used for requesting generation of a target view and is sent by the controller. The target view configuration information includes information such as an association relationship between a target view element in the target view and target data, and is used to add target data to the target view element. The target view element is a constituent element in the target view, e.g., a control. The target data content is data corresponding to the target view element, and is used for adding the target data to the corresponding target view element according to the target view configuration information to form the target view.
In an alternative embodiment, the target view configuration information includes an identification of the target view structure, an identification of the target data structure, and an association between the target view element and the target data structure in the target view structure.
The identifier of the target view structure is an identifier representing the target view structure in the target view configuration information, and is used to obtain the target view structure of the target view, specifically, the target view structure includes attributes of target view elements in the target view, such as color, shape, size, and the like, a positional relationship between the target view elements, such as an arrangement relationship, a relative angle, a relative distance, and the like between different target view elements, and a relative positional relationship between a text box and the target view elements in the target control, such as a distance between the text box and an upper boundary and a right boundary of the target view elements, or a relative positional relationship between a center of the text box and a center of the target view elements. The identifier of the target data structure is the target data structure representing the target view in the target view configuration information, i.e. different types of data, such as text, arrays, pictures, and the like, are used for obtaining the target view. And the incidence relation between the target view element and the target data structure in the target view structure is the corresponding relation between the target view element and the target data structure, and is used for adding the target data structure to the target view element and determining the target data structure of the target view element.
The target view structure and the target data structure can be accurately obtained through the identification of the target view structure and the identification of the target data structure in the target view configuration information, the target data structure can be accurately added to the target view element in the target view structure through the incidence relation between the target view element and the target data structure in the target view structure, and the accuracy of the data structure of the target view element of the obtained target view is improved.
Step 120, according to the target view configuration information, obtaining the code of the target view structure from the codes of the candidate view structures of the resource storage, and obtaining the code of the target data structure from the codes of the candidate data structures of the data storage.
The resource memory is a memory for storing view structure codes and comprises a plurality of candidate view structures and identifications thereof, and the codes of the candidate view structures are the view structure codes stored in the resource memory. Specifically, the code of the candidate view structure corresponding to the identifier of the target view structure is obtained from the codes of the candidate view structures in the resource storage according to the identifier of the target view structure, and is determined as the code of the target view structure. The data memory is used for storing data structure codes and comprises codes of various candidate data structures and identifications thereof, and the codes of the candidate data structures are the codes of the data structures stored in the data memory. Specifically, the code of the candidate data structure corresponding to the identifier of the target data structure is obtained from the codes of the candidate data structures in the data storage according to the identifier of the target data structure, and is determined as the code of the target data structure.
Step 130, determining the target view data according to the code of the target view structure, the code of the target data structure and the target data content of the target view element.
The target view data is a code of a target view and is used for generating the target view, specifically, the code of the target view structure, the code of the target data structure and the target data content of the target view element are combined according to a corresponding relationship to determine the target view data, illustratively, the code of the target data structure can be embedded into the code corresponding to the target view element according to an association relationship between the target view element and the target data structure to obtain an integration code, and then the target data content is added into the integration code according to the association relationship between the target view element and the target data content to obtain the target view data; or integrating the code of the target data structure associated with the same target view element and the target data content according to the association relationship between the target view element and the target data structure and the association relationship between the target view element and the target data content, and embedding the integrated code into the code corresponding to the target view element to obtain the target view data.
In the prior art, a View is updated in an MVC (Model-View-Controller) design mode, a Controller needs a large number of codes to manage a corresponding relationship between data and View elements, the codes are mainly used for reading data, analyzing a corresponding relationship between View elements and data, and the like, and in a large complex View page, the Controller is too large, and the operation efficiency and the code visibility are reduced.
In the technical solution of this embodiment, a target view generation request is obtained from a controller, a code of a target view structure and a code of a target data structure are respectively obtained from a resource storage and a data storage according to target view configuration information in the target view generation request, target view data is generated by combining target data content in the target view generation request, the controller is only used for sending the target view generation request without specifically analyzing an association relationship between target view elements and target data content in the target view structure, and the resource storage and the data storage comprise a plurality of code modules, the flexibility of generating the target view data can be improved, and when a view contains a large number of controls, the method has the problems of being overstaffed by the controller, incapable of rapidly responding to the updating request and low view generation efficiency, and achieves the effect of improving the view generation efficiency.
In an alternative embodiment, the retrieving the code for the target view structure from the resource store and the retrieving the code for the target data structure from the data store according to the target view configuration information includes: code for the target view structure is obtained from code for the at least one candidate view structure of the resource store and code for the target data structure is obtained from code for the at least one candidate data structure of the data store in accordance with the target view configuration information.
The resource memory comprises codes of various candidate view structures, and the data memory comprises codes of various candidate data structures, so that views can be flexibly configured. Acquiring a code of a candidate view structure which has the same identifier as the target view structure from a resource memory according to the identifier of the target view structure in the target view configuration information, and determining the code of the candidate view structure as the code of the target view structure; and according to the identification of the target data structure in the target view configuration information, acquiring the code of the candidate data structure with the same identification as the target data structure from the data storage, and determining the code of the candidate data structure as the code of the target data structure.
The codes of the target view structure and the codes of the target data structure are obtained from the codes of the candidate view structure and the codes of the candidate data structure stored in the resource memory and the data memory through the target view configuration information, so that different views can be configured according to requirements, and the flexibility of subsequently generating the target view is improved.
In an alternative embodiment, determining the target view data from the code of the target view structure, the code of the target data structure and the target data content of the target view element comprises: adding the code of the target data structure into the code of the target view structure according to the incidence relation between the target view element and the target data structure to obtain a code integration result; and adding the target data content of the target view element to the code integration result to obtain target view data.
The code of the target view structure is composed of code modules corresponding to the target view elements, that is, the code of the target view structure can be divided into code modules corresponding to the target view elements, and according to the incidence relation between the target view elements and the target data structure, the code of the target data structure is added into the code module corresponding to the target view element associated with the target data structure in the code of the target view structure, so as to obtain a code integration result, that is, the code after adding the data structure code with the incidence relation to the target view element in the code of the target data structure. And adding the target data content of the target view element into a code integration result, namely a code of a target data structure of the target view element, according to the incidence relation between the target data content and the target view element, namely adding the target data content of the target view element into the code integration result to obtain target view data.
The code of the target data structure is added into the code of the target view structure according to the incidence relation between the target view element and the target data structure, so that the data structure of the target view element is set, the target data content of the target view element is added into the code integration result, the data addition of the target view element is realized, target view data conforming to the target view generation request is formed, and the view generation accuracy is improved.
In an optional embodiment, after determining the target view data, the method further includes: and sending the target view data to the controller for instructing the controller to construct a target view page according to the target view data.
And sending the target view data to the controller, wherein the controller can load the target view data as required, and construct a target view page according to the target view data, namely display the target view page, and the target view page is a view page displayed according to the target view data and used for realizing interaction with a user.
By sending the target view data to the controller, the controller can construct a target view page in time according to the target view data, and the timeliness of constructing the target view page is improved.
Example two
Fig. 2 is a flowchart of a view generation method according to a second embodiment of the present invention, where a technical solution of this embodiment is a specific implementation flow of the above-described technical view generation method, and specifically, the view generation method includes:
step 210, add new view structure code and data structure code.
When a view needs to be updated, if a view structure which is not available before needs to be added, that is, the resource memory does not store a corresponding candidate view structure code therein, a new candidate view structure code needs to be added in the resource memory, and a corresponding identifier is generated. If it is necessary to add a data structure that has not been previously stored, i.e., if the data storage does not store a corresponding candidate data structure code therein, a new candidate data structure code needs to be added to the data storage and a corresponding identifier is generated.
Step 220, generating a target view generation request.
And generating a target view generation request according to the required target view structure and target data content of the target view, wherein the target view generation request comprises view configuration information and the target data content of the target view element. The view configuration information includes an identifier of the target view structure, an identifier of the target data structure, and an association relationship between the target view element and the target data structure in the target view structure.
Step 230, obtaining the code of the target view structure and the code of the target data structure.
And acquiring the code of the target view structure in the resource storage according to the identification of the target view structure, and acquiring the code of the target data structure in the data storage according to the identification of the target data structure.
And 240, analyzing the corresponding relation to generate target view data.
And adding the code of the target data structure into the code of the target view structure according to the incidence relation between the target view element and the target data structure to obtain a code integration result. And adding the target data content of the target view element to the code integration result according to the incidence relation between the target view element and the target data content, and generating target view data.
And step 250, loading target view data.
And sending the target view data to a controller, loading the target view data by the controller according to requirements, for example, clicking a corresponding page by a user, loading the target view data by the controller, and displaying the target view page.
In the prior art, the MVC design mode is a hybrid design mode, where a model (data) is mainly responsible for storing data structures and defining how to manipulate data, a View is mainly responsible for displaying user interfaces and interacting with users, and a Controller is an intermediate object and is responsible for data delivery, event monitoring, and managing the life cycle of other objects. Fig. 3 is a schematic diagram of a module of an MVC design pattern, which includes a View (View), a data memory (model), and a Controller (Controller) module, and it should be noted that, in the present invention, to avoid confusion of definition, the model in the MVC design pattern is defined as the data memory. The view sends request information to the controller, for example, a target view generation request, the controller sends a request to the data storage, acquires corresponding data, for example, codes of a target data structure, and the controller generates target view data and sends the target view data to the view after acquiring the data in the data storage. The binding relationship between the target view elements and the target data structure in the target view structure is controlled by the controller, and the binding relationship between a large number of target view elements and the target data structure is involved in a complex view page and a large project, so that the controller is overstaffed, and the running efficiency is low.
The invention separates a large amount of initialization and data binding codes from the controller by uniformly processing the view elements and the data initialization mode. FIG. 4 is a block diagram of a view generation method according to the present invention, including a controller, a parser, and a memory module. The parser module collects most of codes related to read-write views, data and association relations of the controller in the MVC design mode, and encapsulates the codes into a module which can be used for multiple times and is used for different controllers to multiplex, specific functions included in the parser are described in embodiment one, that is, the functions realized in embodiment one are realized by the parser.
The method has the advantages that related logics of interaction between a data memory and a view are separated and packaged into a reusable resolver module, redundant logics in a controller are simplified, maintainability of the resolver module is enhanced, coupling degree is reduced, reusability of the memory module is kept, particularly in complex pages and large-scale engineering, along with continuous increase of business logics, namely association relation between a target view element and a target data structure in a target view structure is not increased continuously, the controller does not need to repeatedly operate data and the view, and only needs to modify configuration information of the target view and update target data content of the target view element. Therefore, in the process of increasing the development of projects, the controller and the views do not need more redundant logic, and the configuration mode of the target view data is determined only by increasing the parsers according to the codes of the target view structure, the codes of the target data structure and the target data content of the target view element, or different types of parsers are added according to the service field, so that the high-cohesion low-coupling MVC mode easy to expand is realized.
In the embodiment, the operation of reading data, analyzing the view and the like of the controller in the original MVC mode is completed through the analyzer, the target view data is generated and returned to the controller, the controller is prevented from being too large, the operation efficiency and the code visibility are reduced, and the view generation efficiency is improved.
EXAMPLE III
Fig. 5 is a schematic structural diagram of a view generating apparatus according to a third embodiment of the present invention, where the third embodiment is a corresponding apparatus for implementing the view generating method according to the third embodiment of the present invention, and the apparatus may be implemented in a software and/or hardware manner, and may be generally integrated in an electronic device. The view generation apparatus includes:
a target view generation request obtaining module 310, configured to obtain a target view generation request from a controller; the target view generation request comprises target view configuration information and target data content of target view elements;
a code obtaining module 320, configured to obtain a code of a target view structure from codes of candidate view structures of the resource storage according to the target view configuration information, and obtain a code of a target data structure from codes of candidate data structures of the data storage;
and the target view data determining module 330 is configured to determine the target view data according to the code of the target view structure, the code of the target data structure, and the target data content of the target view element.
In the technical solution of this embodiment, a target view generation request is obtained from a controller, a code of a target view structure and a code of a target data structure are respectively obtained from a resource storage and a data storage according to target view configuration information in the target view generation request, target view data is generated by combining target data content in the target view generation request, the controller is only used for sending the target view generation request without specifically analyzing an association relationship between target view elements and target data content in the target view structure, and the resource storage and the data storage comprise a plurality of code modules, the flexibility of generating the target view data can be improved, and when a view contains a large number of controls, the method has the problems of being overstaffed by the controller, incapable of rapidly responding to the updating request and low view generation efficiency, and achieves the effect of improving the view generation efficiency.
Optionally, the target view configuration information includes an identifier of the target view structure, an identifier of the target data structure, and an association relationship between the target view element in the target view structure and the target data structure.
Optionally, the code obtaining module 320 includes:
and the target code acquiring unit is used for acquiring the code of the target view structure from the code of the at least one candidate view structure of the resource memory according to the target view configuration information, and acquiring the code of the target data structure from the code of the at least one candidate data structure of the data memory.
Optionally, the target view data determining module 330 includes:
the code integration result acquisition unit is used for adding the codes of the target data structure into the codes of the target view structure according to the incidence relation between the target view elements and the target data structure to obtain a code integration result;
and the target view data acquisition unit is used for adding the target data content of the target view element to the code integration result to obtain the target view data.
Optionally, the view generating apparatus further includes:
and the target view page construction module is used for sending the target view data to the controller and indicating the controller to construct a target view page according to the target view data.
The device can execute the view generation method provided by the embodiment of the invention, and has the corresponding functional modules and beneficial effects of executing the view generation method.
Example four
Fig. 6 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention, as shown in fig. 6, the electronic device includes a processor 410, a memory 420, an input device 430, and an output device 440; the number of the processors 410 in the electronic device may be one or more, and one processor 410 is taken as an example in fig. 6; the processor 410, the memory 420, the input device 430 and the output device 440 in the electronic apparatus may be connected by a bus or other means, and the bus connection is exemplified in fig. 6.
The memory 420 serves as a computer-readable storage medium, and may be used to store software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the view generation method in the embodiment of the present invention (e.g., the target view generation request acquisition module 310, the code acquisition module 320, and the target view data determination module 330). The processor 410 executes various functional applications and data processing of the electronic device by executing software programs, instructions and modules stored in the memory 420, that is, implements the view generation method described above.
The memory 420 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the memory 420 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, memory 420 may further include memory located remotely from processor 410, which may be connected to an electronic device over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input means 430 may be used to receive input character information and generate key signal inputs related to user settings and function control of the electronic device. The output device 440 may include a display device such as a display screen.
EXAMPLE five
An embodiment of the present invention further provides a storage medium containing computer-executable instructions, which when executed by a computer processor, perform a method for generating a view, the method including:
acquiring a target view generation request from a controller; the target view generation request comprises target view configuration information and target data content of target view elements;
according to the target view configuration information, acquiring codes of the target view structure from codes of candidate view structures of the resource storage, and acquiring codes of the target data structure from codes of candidate data structures of the data storage;
and determining target view data according to the code of the target view structure, the code of the target data structure and the target data content of the target view element.
Of course, the storage medium provided by the embodiment of the present invention contains computer-executable instructions, and the computer-executable instructions are not limited to the method operations described above, and may also perform related operations in the view generation method provided by any embodiment of the present invention.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes instructions for enabling an electronic device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
It should be noted that, in the embodiment of the above search apparatus, each included unit and module are merely divided according to functional logic, but are not limited to the above division as long as the corresponding functions can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A method for generating a view, comprising:
acquiring a target view generation request from a controller; the target view generation request comprises target view configuration information and target data content of a target view element;
according to the target view configuration information, acquiring codes of target view structures from codes of candidate view structures of the resource memory, and acquiring codes of target data structures from codes of candidate data structures of the data memory;
and determining target view data according to the code of the target view structure, the code of the target data structure and the target data content of the target view element.
2. The method of claim 1, wherein the target view configuration information comprises an identification of a target view structure, an identification of a target data structure, and an association relationship between a target view element in the target view structure and the target data structure;
according to the target view configuration information, acquiring the code of the target view structure from the resource storage, and acquiring the code of the target data structure from the data storage, wherein the method comprises the following steps:
and according to the target view configuration information, acquiring the code of the target view structure from the code of the at least one candidate view structure of the resource memory, and acquiring the code of the target data structure from the code of the at least one candidate data structure of the data memory.
3. The method of claim 2, wherein determining the target view data based on the code of the target view structure, the code of the target data structure, and the target data content of the target view element comprises:
adding the code of the target data structure into the code of the target view structure according to the incidence relation between the target view element and the target data structure to obtain a code integration result;
and adding the target data content of the target view element to the code integration result to obtain target view data.
4. The method of claim 1, after determining the target view data, further comprising:
and sending the target view data to the controller for instructing the controller to construct a target view page according to the target view data.
5. A view generation apparatus, comprising:
the target view generation request acquisition module is used for acquiring a target view generation request from the controller; the target view generation request comprises target view configuration information and target data content of a target view element;
the code acquisition module is used for acquiring codes of the target view structure from the codes of the candidate view structures of the resource memory according to the target view configuration information and acquiring codes of the target data structure from the codes of the candidate data structures of the data memory;
and the target view data determining module is used for determining the target view data according to the code of the target view structure, the code of the target data structure and the target data content of the target view element.
6. The apparatus according to claim 5, wherein the target view configuration information comprises an identification of a target view structure, an identification of a target data structure, and an association relationship between a target view element in the target view structure and the target data structure;
the code acquisition module comprises:
and the target code acquiring unit is used for acquiring the code of the target view structure from the code of the at least one candidate view structure of the resource memory according to the target view configuration information, and acquiring the code of the target data structure from the code of the at least one candidate data structure of the data memory.
7. The apparatus of claim 6, wherein the target view data determination module comprises:
the code integration result acquisition unit is used for adding the codes of the target data structure into the codes of the target view structure according to the incidence relation between the target view elements and the target data structure to obtain a code integration result;
and the target view data acquisition unit is used for adding the target data content of the target view element to the code integration result to obtain the target view data.
8. The apparatus of claim 5, wherein the view generating means further comprises:
and the target view page construction module is used for sending the target view data to the controller and indicating the controller to construct a target view page according to the target view data.
9. An electronic device, comprising:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the view generation method of any of claims 1-4.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the view generation method of any one of claims 1 to 4.
CN202111588238.7A 2021-12-23 2021-12-23 View generation method and device, electronic equipment and storage medium Pending CN114327425A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111588238.7A CN114327425A (en) 2021-12-23 2021-12-23 View generation method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111588238.7A CN114327425A (en) 2021-12-23 2021-12-23 View generation method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114327425A true CN114327425A (en) 2022-04-12

Family

ID=81055306

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111588238.7A Pending CN114327425A (en) 2021-12-23 2021-12-23 View generation method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114327425A (en)

Similar Documents

Publication Publication Date Title
CN111427561A (en) Service code generation method and device, computer equipment and storage medium
US9442822B2 (en) Providing a visual representation of a sub-set of a visual program
KR102016905B1 (en) Electric power software development platform
EP3279816A1 (en) Data analysis processing method, apparatus, computer device, and storage medium
US11176169B2 (en) Recommending visual and execution templates to enable automation of control and data exploration across systems
US11481450B2 (en) Interactive and non-interactive execution and rendering of templates to automate control and exploration across systems
CN111694565A (en) Data visualization application development method and system
CN115934855A (en) Full-link field level blood margin analysis method, system, equipment and storage medium
CN110727429A (en) Front-end page generation method, device and equipment
CN115392501A (en) Data acquisition method and device, electronic equipment and storage medium
CN111881209A (en) Data synchronization method and device for heterogeneous database, electronic equipment and medium
CN110851123A (en) WebGIS power grid visualization framework construction method, system and device based on SpringMVC
CN111427577A (en) Code processing method and device and server
CN113934832A (en) Interactive processing method, device, equipment, medium and program product based on session
CN113590593A (en) Method and device for generating data table information, storage medium and electronic device
CN113094125A (en) Business process processing method, device, server and storage medium
CN116432624A (en) Micro-service API document generation method, device, equipment and storage medium
CN110764864A (en) Terraform-based visual resource arrangement method
CN114327425A (en) View generation method and device, electronic equipment and storage medium
CN115509668A (en) Method, device and equipment for constructing front-end page analytic framework and storage medium
CN110765610B (en) PDM integration method, PDM integration device, computer equipment and storage medium
CN113656369A (en) Log distributed streaming acquisition and calculation method in big data scene
CN114371982A (en) Simulation test method, device, equipment and readable storage medium
KR100349677B1 (en) Component-based open gis apparatus
CN110908644A (en) Configuration method and device of state node, computer equipment and storage medium

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