CN112882707B - Rendering method and device, storage medium and electronic equipment - Google Patents

Rendering method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN112882707B
CN112882707B CN202110256679.0A CN202110256679A CN112882707B CN 112882707 B CN112882707 B CN 112882707B CN 202110256679 A CN202110256679 A CN 202110256679A CN 112882707 B CN112882707 B CN 112882707B
Authority
CN
China
Prior art keywords
data
rule
target
rendered
rendering
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
CN202110256679.0A
Other languages
Chinese (zh)
Other versions
CN112882707A (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.)
Chengdu New Hope Finance Information Co Ltd
Original Assignee
Chengdu New Hope Finance Information 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 Chengdu New Hope Finance Information Co Ltd filed Critical Chengdu New Hope Finance Information Co Ltd
Priority to CN202110256679.0A priority Critical patent/CN112882707B/en
Publication of CN112882707A publication Critical patent/CN112882707A/en
Application granted granted Critical
Publication of CN112882707B publication Critical patent/CN112882707B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The application provides a rendering method, a rendering device, a storage medium and electronic equipment. Firstly, corresponding service data and preset arrangement rules are acquired from a server according to a specified instruction input by a user, target data to be rendered and a target rendering component are automatically acquired from the service data according to the preset arrangement rules, and then the target data to be rendered is used as input of the target rendering component so as to acquire a target rendering result. Through the steps, the target data to be rendered is automatically obtained, and the target rendering component automatically renders the target data to be rendered. The step of manually rendering is reduced, so that manpower and material resources are saved.

Description

Rendering method and device, storage medium and electronic equipment
Technical Field
The present invention relates to the field of rendering, and in particular, to a rendering method, apparatus, storage medium, and electronic device.
Background
In software engineering, a required life cycle at least comprises analysis, design, implementation, test and wire-loop installation, and the life cycle time is long and the labor input is needed to be high. In web application development, display class requirements are large in proportion and display class requirements are highly intelligible.
How to arrange and form a general rendering method through a certain efficient rule becomes a difficult problem for the person skilled in the art.
Disclosure of Invention
An object of the present application is to provide a rendering method, apparatus, storage medium and electronic device, so as to at least partially improve the above-mentioned problems.
In order to achieve the above purpose, the technical solution adopted in the embodiment of the present application is as follows:
in a first aspect, an embodiment of the present application provides a rendering method, including:
corresponding business data and preset arrangement rules are collected from a server according to a specified instruction input by a user;
acquiring target data to be rendered and a target rendering component from the service data according to the preset arrangement rule;
and taking the target data to be rendered as input of the target rendering component to acquire a target rendering result.
In a second aspect, embodiments of the present application provide a rendering apparatus, the apparatus including:
the processing unit is used for acquiring corresponding service data and preset arrangement rules from the server according to a specified instruction input by a user;
the processing unit is further used for acquiring target data to be rendered and a target rendering component from the service data according to the preset arrangement rule;
and the rendering unit is used for taking the target data to be rendered as the input of the target rendering component so as to acquire a target rendering result.
In a third aspect, embodiments of the present application provide a storage medium having stored thereon a computer program which, when executed by a processor, implements the method described above.
In a fourth aspect, an embodiment of the present application provides an electronic device, including: a processor and a memory for storing one or more programs; the above-described method is implemented when the one or more programs are executed by the processor.
Compared with the prior art, the rendering method, the rendering device, the storage medium and the electronic equipment provided by the embodiment of the application have the beneficial effects that: firstly, corresponding service data and preset arrangement rules are acquired from a server according to a specified instruction input by a user, target data to be rendered and a target rendering component are automatically acquired from the service data according to the preset arrangement rules, and then the target data to be rendered is used as input of the target rendering component so as to acquire a target rendering result. Through the steps, the target data to be rendered is automatically obtained, and the target rendering component automatically renders the target data to be rendered. The step of manually rendering is reduced, so that manpower and material resources are saved.
In order to make the above objects, features and advantages of the present application more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered limiting in scope, and that other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 2 is a flow chart of a rendering method according to an embodiment of the present application;
FIG. 3 is a schematic diagram of the substeps of S102 according to the embodiment of the present application;
fig. 4 is a schematic diagram of a rendering result according to an embodiment of the present application;
FIG. 5 is a schematic diagram of another rendering result provided in an embodiment of the present application;
FIG. 6 is a schematic diagram of another rendering result provided in an embodiment of the present application;
FIG. 7 is a schematic diagram of another rendering result provided in an embodiment of the present application;
fig. 8 is a schematic unit diagram of a rendering device according to an embodiment of the present application.
In the figure: 10-a processor; 11-memory; 12-bus; 13-a communication interface; 201-a processing unit; 202-rendering unit.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the embodiments of the present application more clear, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. The components of the embodiments of the present application, which are generally described and illustrated in the figures herein, may be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present application, as provided in the accompanying drawings, is not intended to limit the scope of the application, as claimed, but is merely representative of selected embodiments of the application. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
It should be noted that: like reference numerals and letters denote like items in the following figures, and thus once an item is defined in one figure, no further definition or explanation thereof is necessary in the following figures. Meanwhile, in the description of the present application, the terms "first", "second", and the like are used only to distinguish the description, and are not to be construed as indicating or implying relative importance.
It is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In the description of the present application, it should be noted that, the terms "upper," "lower," "inner," "outer," and the like indicate an orientation or a positional relationship based on the orientation or the positional relationship shown in the drawings, or an orientation or a positional relationship conventionally put in use of the product of the application, merely for convenience of description and simplification of the description, and do not indicate or imply that the apparatus or element to be referred to must have a specific orientation, be configured and operated in a specific orientation, and therefore should not be construed as limiting the present application.
In the description of the present application, it should also be noted that, unless explicitly specified and limited otherwise, the terms "disposed," "connected," and "connected" are to be construed broadly, and may be, for example, fixedly connected, detachably connected, or integrally connected; can be mechanically or electrically connected; can be directly connected or indirectly connected through an intermediate medium, and can be communication between two elements. The specific meaning of the terms in this application will be understood by those of ordinary skill in the art in a specific context.
Some embodiments of the present application are described in detail below with reference to the accompanying drawings. The following embodiments and features of the embodiments may be combined with each other without conflict.
In software engineering, a required life cycle at least comprises analysis, design, implementation, test and wire-loop installation, and the life cycle time is long and the labor input is needed to be high. In web application development, display class requirements are large in proportion and display class requirements are highly intelligible. The inventor discovers through a large number of observations and summaries that the types of display type requirements can be exhausted, a general rendering method can be formed by arranging a certain efficient rule, and a display rendering method which meets various services, improves development efficiency and shortens development period is formed by combining right control and data driving on the basis.
The embodiment of the application provides electronic equipment which can be computer equipment, a client or other terminal equipment. Referring to fig. 1, a schematic structure of an electronic device is shown. The electronic device comprises a processor 10, a memory 11, a bus 12. The processor 10 and the memory 11 are connected by a bus 12, the processor 10 being adapted to execute executable modules, such as computer programs, stored in the memory 11.
The processor 10 may be an integrated circuit chip with signal processing capabilities. In implementation, the steps of the rendering method may be performed by integrated logic circuitry of hardware in the processor 10 or instructions in the form of software. The processor 10 may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU for short), a network processor (Network Processor, NP for short), etc.; but also digital signal processors (Digital Signal Processor, DSP for short), application specific integrated circuits (Application Specific Integrated Circuit, ASIC for short), field-programmable gate arrays (Field-Programmable Gate Array, FPGA for short) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
The memory 11 may comprise a high-speed random access memory (RAM: random Access Memory) and may also comprise a non-volatile memory (non-volatile memory), such as at least one disk memory.
Bus 12 may be a ISA (Industry Standard Architecture) bus, PCI (Peripheral Component Interconnect) bus, EISA (Extended Industry Standard Architecture) bus, or the like. Only one double-headed arrow is shown in fig. 1, but not only one bus 12 or one type of bus 12.
The memory 11 is used for storing programs, such as programs corresponding to the rendering apparatus. The rendering means comprise at least one software functional module which may be stored in the memory 11 in the form of software or firmware (firmware) or cured in an Operating System (OS) of the electronic device. The processor 10, upon receiving the execution instruction, executes the program to implement the rendering method.
Possibly, the electronic device provided in the embodiment of the present application further includes a communication interface 13. The communication interface 13 is connected to the processor 10 via a bus. The electronic device may interact with the server through a communication interface 13.
It should be understood that the structure shown in fig. 1 is a schematic structural diagram of only a portion of an electronic device, which may also include more or fewer components than shown in fig. 1, or have a different configuration than shown in fig. 1. The components shown in fig. 1 may be implemented in hardware, software, or a combination thereof.
The rendering method provided in the embodiment of the present application may be applied to, but not limited to, the electronic device shown in fig. 1, and refer to fig. 2:
s101, corresponding business data and preset arrangement rules are collected from a server according to a specified instruction input by a user.
S102, obtaining target data to be rendered and a target rendering component from the service data according to a preset arrangement rule.
The preset arrangement rules are a set of descriptive language to define how to acquire data, how to check authority, how to render and how to process data. I.e. the rendering process is defined by a limited convention specific description language. One or more rendering processes form an arrangement rule by defining a descriptive language, namely, the arrangement rule is a set of a plurality of groups of contracted descriptive languages to describe how to check data, control authority, acquire data, process and render.
S103, taking the target data to be rendered as the input of a target rendering component to acquire a target rendering result.
In summary, the embodiment of the application provides a rendering method. Firstly, corresponding service data and preset arrangement rules are acquired from a server according to a specified instruction input by a user, target data to be rendered and a target rendering component are automatically acquired from the service data according to the preset arrangement rules, and then the target data to be rendered is used as input of the target rendering component so as to acquire a target rendering result. Through the steps, the target data to be rendered is automatically obtained, and the target rendering component automatically renders the target data to be rendered. The step of manually rendering is reduced, so that manpower and material resources are saved.
On the basis of fig. 2, for the content in S102, a possible implementation manner is further provided in the embodiment of the present application, please refer to fig. 3, S102 includes:
s102-1, analyzing the preset arrangement rule to obtain a data check rule, a right rule, a rendering rule and a data rule.
The data rule comprises a data processing rule, identity information of an associated key, filtering conditions and a data descriptive rule, and the authority rule comprises at least one group authority level.
S102-2, injecting the business data, the data verification rule, the authority rule, the rendering rule and the data rule into the container component.
S102-3, the container component extracts the check data item in the service data according to the data check rule.
S102-4, carrying out validity verification on the check data item, and judging whether the validity verification is passed. If yes, executing S102-5; if not, S102-13 is performed.
The data verification rule further comprises a specific verification mode for verifying the validity. The specific verification method comprises the following steps: judging whether the code corresponding to the check data item is a true value or a false value, and determining whether the code passes the validity verification according to the corresponding relation between the true value or the false value and the validity in the data check rule; or directly comparing the content in the verification data item with a preset value, if the comparison is successful, passing the validity verification, otherwise, failing the validity verification; or judging whether each content in the check data item reaches a value range in a preset condition, if so, passing the validity verification, otherwise, failing the validity verification; or, the business data and the check data item are used as the input of a check script, the check script outputs a check result, and the check result is that the validity verification is passed or the validity verification is not passed.
If the validity verification is passed, rendering can be continued, and at this time, S102-5 is executed; otherwise, S102-13 is performed.
S102-5, acquiring the authority range of the current user.
Wherein the current user is an account currently logged in to the client of the electronic device.
S102-6, combining the service data through the association key.
When two or more data sets have a certain association relationship, one or more data items with the same key and the same value exist, and the keys of the same data item are the association keys. Its role may be to associate multiple sets of data by an association key.
S102-7, filtering the combined service data according to the filtering condition.
Specifically, useless data in the service data is filtered out through the filtering condition.
S102-8, acquiring a data set of the differential data through a data descriptive rule.
Optionally, the data descriptive rule includes an address, method, parameter or local data acquisition path of data set acquisition of the differential data. And determining a data source through a data descriptive rule, and performing remote data acquisition or local data acquisition according to the data elements to acquire a data set of the differential data.
S102-9, judging whether all authority levels are beyond the authority range. If yes, executing S102-13; if not, S102-10 is performed.
Optionally, when all the authority levels exceed the authority range, indicating that the current user does not have the authority to render, executing S102-13; otherwise, if further judgment is needed, S102-10 is executed.
S102-10, judging whether the preset arrangement rule contains an executable script. If yes, executing S102-11; if not, S102-13 is performed.
The executable script is a code segment which can be executed on the terminal equipment.
If so, continuing to verify and executing S102-11; otherwise, S102-13 is performed.
S102-11, executing an executable script to acquire a corresponding return value.
S102-12, judging whether the operation authority is available according to the return value. If yes, executing S102-14; if not, S102-13 is performed.
S102-13, taking the first data to be rendered as target data to be rendered, and taking a default rendering component as a target rendering component.
The first data to be rendered is a non-authority output prompt.
S102-14, analyzing the rendering rule to obtain the target rendering component.
Optionally, regarding the content in S102-14, the embodiments of the present application also provide a possible implementation, please refer to the following.
And analyzing the rendering rule to obtain a first analysis result.
And judging whether the first analysis result contains the subset of the arrangement rules.
If so, parsing the subset of orchestration rules to obtain a target rendering component.
Specifically, the above-described S102-1 to 102-14 are repeatedly executed with the subset of the arrangement rules as new preset arrangement rules to obtain the target rendering component.
If not, judging whether the first analysis result contains a rendering type.
If so, the corresponding rendering component is matched according to the rendering type, and the rendering component is determined to be the target rendering component.
If not, the default rendering component is determined to be the target rendering component.
S102-15, a first sub-data rule is acquired.
The first sub-data rule is a rule corresponding to a right level matched with the right range.
Optionally, the authority levels are read one by one and matched with the authority ranges respectively. When the authority level is a one-dimensional value, the matching rule is that one of the one-dimensional values of the authority level is hit as the authority; when the authority level is a two-dimensional value, the matching rule is that the two-dimensional value full hit of the authority level is the authority hit.
S102-16, updating the data rule according to the first sub-data rule to obtain the updated data rule.
S102-17, extracting second data to be rendered from service data according to the updated data rule.
S102-18, supplementing the second data to be rendered according to the data set of the differential data so as to obtain the supplemented second data to be rendered.
S102-19, processing the second data to be rendered according to the data processing rule, and taking the processed second data to be rendered as target data to be rendered.
The data processing rules comprise data correction, a preset processing tool method (common types such as timestamp conversion, desensitization, thousand differentiation and the like), enumeration value mapping, script processing execution, template filling and the like.
Optionally, before S101, regarding how to initialize, the embodiments of the present application also provide a possible implementation, please refer to the following.
And initializing, and optionally injecting a custom rendering component, authority data, an authority verification method, dictionary data, an auxiliary method and the like.
Regarding the rendering results corresponding to the rendering method provided in the embodiments of the present application, please refer to fig. 4, fig. 5, fig. 6, and fig. 7. Fig. 4 and fig. 5 show differences in rendering results corresponding to different data rights, fig. 5 and fig. 6 show differences in rendering results corresponding to rights, and fig. 7 shows a more complex rendering effect.
Referring to fig. 8, fig. 8 is a schematic diagram illustrating an embodiment of a rendering device, which is optionally applied to the electronic apparatus described above.
The rendering device comprises: a processing unit 201 and a rendering unit 202.
The processing unit 201 is configured to collect corresponding service data and preset arrangement rules from the server according to a specified instruction input by a user. Alternatively, the processing unit 201 may execute S101 described above.
The processing unit 201 is further configured to obtain target data to be rendered and a target rendering component from the service data according to a preset arrangement rule. Alternatively, the processing unit 201 may execute S102 described above.
And a rendering unit 202, configured to take the target data to be rendered as an input of a target rendering component, so as to obtain a target rendering result. Alternatively, the rendering unit 202 may perform S103 described above.
It should be noted that, the rendering device provided in this embodiment may execute the method flow shown in the method flow embodiment to achieve the corresponding technical effect. For a brief description, reference is made to the corresponding parts of the above embodiments, where this embodiment is not mentioned.
The present application also provides a storage medium storing computer instructions, a program which when read and executed perform the rendering method of the above embodiments. The storage medium may include memory, flash memory, registers, combinations thereof, or the like.
The electronic device, which may be a computer device, is provided below, where the electronic device is shown in fig. 1, and the rendering method may be implemented; specifically, the electronic device includes: a processor 10, a memory 11, a bus 12. The processor 10 may be a CPU. The memory 11 is used to store one or more programs that, when executed by the processor 10, perform the rendering methods of the above-described embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners as well. The apparatus embodiments described above are merely illustrative, for example, flow diagrams and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, the functional modules in the embodiments of the present application may be integrated together to form a single part, or each module may exist alone, or two or more modules may be integrated to form a single part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing description is only of the preferred embodiments of the present application and is not intended to limit the same, but rather, various modifications and variations may be made by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.
It will be evident to those skilled in the art that the present application is not limited to the details of the foregoing illustrative embodiments, and that the present application may be embodied in other specific forms without departing from the spirit or essential characteristics thereof. The present embodiments are, therefore, to be considered in all respects as illustrative and not restrictive, the scope of the application being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned.

Claims (7)

1. A method of rendering, the method comprising:
corresponding business data and preset arrangement rules are collected from a server according to a specified instruction input by a user;
acquiring target data to be rendered and a target rendering component from the service data according to the preset arrangement rule;
taking the target data to be rendered as input of the target rendering component to obtain a target rendering result;
the step of obtaining the target data to be rendered and the target rendering component from the service data according to the preset arrangement rule includes:
analyzing the preset arrangement rule to obtain a data check rule, a right rule, a rendering rule and a data rule; wherein the permission rules comprise at least one group permission level;
verifying the validity of a check data item, wherein the check data item is data matched with the data check rule in the service data;
when the verification data item passes the validity verification, acquiring the authority range of the current user;
when all authority levels exceed the authority range, taking first data to be rendered as target data to be rendered, and taking a default rendering component as the target rendering component, wherein the first data to be rendered is a no-authority output prompt;
the step of obtaining the target data to be rendered and the target rendering component from the service data according to the preset arrangement rule further comprises:
when the authority level does not exceed the authority range, judging whether the preset arrangement rule contains an executable script or not;
if yes, executing the executable script to acquire a corresponding return value, and judging whether the executable script has operation permission or not according to the return value;
if not, the first data to be rendered is used as the target data to be rendered, and the default rendering component is used as the target rendering component;
the data rule comprises a data processing rule, and the step of acquiring target data to be rendered and a target rendering component from the service data according to the preset arrangement rule further comprises the following steps:
if the operation authority is available, analyzing the rendering rule to acquire the target rendering component;
acquiring a first sub-data rule, wherein the first sub-data rule is a rule corresponding to a right level matched with the right range;
updating the data rule according to the first sub-data rule to obtain an updated data rule;
extracting second data to be rendered from the service data according to the updated data rule;
and processing the second data to be rendered according to a data processing rule, and taking the processed second data to be rendered as the target data to be rendered.
2. The rendering method according to claim 1, wherein the data rule further includes identity information of an associated key, filtering conditions, and a data descriptive rule, and the step of acquiring target data to be rendered and a target rendering component from the service data according to the preset arrangement rule further includes:
if the verification data item passes the validity verification, the service data is combined through the association key;
filtering the combined service data according to the filtering condition;
acquiring a data set of differential data through the data descriptive rule;
before extracting the second data to be rendered from the service data according to the updated data rule, the step of obtaining the target data to be rendered and the target rendering component from the service data according to the preset arrangement rule further includes:
and supplementing the second data to be rendered according to the data set of the differential data so as to obtain the supplemented second data to be rendered.
3. The rendering method of claim 1, wherein the parsing the rendering rule to obtain the target rendering component comprises:
analyzing the rendering rule to obtain a first analysis result;
judging whether the first analysis result contains an arrangement rule subset or not;
if so, analyzing the arrangement rule subset to acquire the target rendering component;
if not, judging whether the first analysis result contains a rendering type;
if the target rendering component is included, matching the corresponding rendering component according to the rendering type, and determining the target rendering component;
if not, determining the default rendering component as the target rendering component.
4. The rendering method according to claim 1, wherein after parsing the preset orchestration rule to obtain a data check rule, a right rule, a rendering rule, and a data rule, the step of obtaining target data to be rendered and a target rendering component from the service data according to the preset orchestration rule includes:
injecting the business data, the data verification rule, the authority rule, the rendering rule and the data rule into a container component;
and the container component extracts the check data item in the service data according to the data check rule.
5. A rendering apparatus, the apparatus comprising:
the processing unit is used for acquiring corresponding service data and preset arrangement rules from the server according to a specified instruction input by a user;
the processing unit is further used for acquiring target data to be rendered and a target rendering component from the service data according to the preset arrangement rule;
the rendering unit is used for taking the target data to be rendered as the input of the target rendering component so as to obtain a target rendering result;
the obtaining the target data to be rendered and the target rendering component from the service data according to the preset arrangement rule includes:
analyzing the preset arrangement rule to obtain a data check rule, a right rule, a rendering rule and a data rule; wherein the permission rules comprise at least one group permission level;
verifying the validity of a check data item, wherein the check data item is data matched with the data check rule in the service data;
when the verification data item passes the validity verification, acquiring the authority range of the current user;
when all authority levels exceed the authority range, taking first data to be rendered as target data to be rendered, and taking a default rendering component as the target rendering component, wherein the first data to be rendered is a no-authority output prompt;
the obtaining the target data to be rendered and the target rendering component from the service data according to the preset arrangement rule further includes:
when the authority level does not exceed the authority range, judging whether the preset arrangement rule contains an executable script or not;
if yes, executing the executable script to acquire a corresponding return value, and judging whether the executable script has operation permission or not according to the return value;
if not, the first data to be rendered is used as the target data to be rendered, and the default rendering component is used as the target rendering component;
the data rule includes a data processing rule, and the method for acquiring the target data to be rendered and the target rendering component from the service data according to the preset arrangement rule further includes:
if the operation authority is available, analyzing the rendering rule to acquire the target rendering component;
acquiring a first sub-data rule, wherein the first sub-data rule is a rule corresponding to a right level matched with the right range;
updating the data rule according to the first sub-data rule to obtain an updated data rule;
extracting second data to be rendered from the service data according to the updated data rule;
and processing the second data to be rendered according to a data processing rule, and taking the processed second data to be rendered as the target data to be rendered.
6. A computer readable storage medium, on which a computer program is stored, which computer program, when being executed by a processor, implements the method according to any of claims 1-4.
7. An electronic device, comprising: a processor and a memory for storing one or more programs; the method of any of claims 1-4 is implemented when the one or more programs are executed by the processor.
CN202110256679.0A 2021-03-09 2021-03-09 Rendering method and device, storage medium and electronic equipment Active CN112882707B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110256679.0A CN112882707B (en) 2021-03-09 2021-03-09 Rendering method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110256679.0A CN112882707B (en) 2021-03-09 2021-03-09 Rendering method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN112882707A CN112882707A (en) 2021-06-01
CN112882707B true CN112882707B (en) 2024-02-09

Family

ID=76053926

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110256679.0A Active CN112882707B (en) 2021-03-09 2021-03-09 Rendering method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN112882707B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115239535B (en) * 2022-08-12 2024-04-05 北京思明启创科技有限公司 Course break-through teaching method and device, electronic equipment and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104239514A (en) * 2014-09-16 2014-12-24 可牛网络技术(北京)有限公司 Webpage rendering method, device and mobile terminal
CN109358936A (en) * 2018-09-29 2019-02-19 Oppo广东移动通信有限公司 Information processing method, device, storage medium, electronic equipment and system
CN110851134A (en) * 2019-11-08 2020-02-28 广东道一信息技术股份有限公司 Low-code page design device and page design method
CN110889270A (en) * 2018-08-16 2020-03-17 阿里巴巴集团控股有限公司 Form page document generation method and form page rendering method and device
CN111046309A (en) * 2019-12-11 2020-04-21 政采云有限公司 Page view rendering method, device and equipment and readable storage medium
CN111814441A (en) * 2020-06-30 2020-10-23 平安科技(深圳)有限公司 Report generation method and device, electronic equipment and storage medium
CN111859236A (en) * 2020-06-19 2020-10-30 苏州浪潮智能科技有限公司 Server rendering page generation method and system based on dynamic form verification
CN111880918A (en) * 2020-07-28 2020-11-03 南京市城市与交通规划设计研究院股份有限公司 Road network front end rendering method and device and electronic equipment
CN112380415A (en) * 2020-11-25 2021-02-19 中科三清科技有限公司 Automatic generation and transmission method, device, equipment and medium of air quality information

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190384616A1 (en) * 2018-06-18 2019-12-19 Muthukrishnan Govindaraj Method for displaying and changing mobile commerce elements within native application instantly without code build

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104239514A (en) * 2014-09-16 2014-12-24 可牛网络技术(北京)有限公司 Webpage rendering method, device and mobile terminal
CN110889270A (en) * 2018-08-16 2020-03-17 阿里巴巴集团控股有限公司 Form page document generation method and form page rendering method and device
CN109358936A (en) * 2018-09-29 2019-02-19 Oppo广东移动通信有限公司 Information processing method, device, storage medium, electronic equipment and system
CN110851134A (en) * 2019-11-08 2020-02-28 广东道一信息技术股份有限公司 Low-code page design device and page design method
CN111046309A (en) * 2019-12-11 2020-04-21 政采云有限公司 Page view rendering method, device and equipment and readable storage medium
CN111859236A (en) * 2020-06-19 2020-10-30 苏州浪潮智能科技有限公司 Server rendering page generation method and system based on dynamic form verification
CN111814441A (en) * 2020-06-30 2020-10-23 平安科技(深圳)有限公司 Report generation method and device, electronic equipment and storage medium
CN111880918A (en) * 2020-07-28 2020-11-03 南京市城市与交通规划设计研究院股份有限公司 Road network front end rendering method and device and electronic equipment
CN112380415A (en) * 2020-11-25 2021-02-19 中科三清科技有限公司 Automatic generation and transmission method, device, equipment and medium of air quality information

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
Web Document Analysis Based on Visual Segmentation and Page Rendering;Cong Kinh Nguyen 等;《2012 10th IAPR International Workshop on Document Analysis Systems》;354-358 *
基于XML的JS页面生成系统的设计与实现;黄思远;《中国优秀硕士学位论文全文数据库 信息科技辑》(第4期);I138-557 *
嵌入式浏览器渲染体系结构的研究与设计;于海涛;《中国优秀硕士学位论文全文数据库 信息科技辑》(第12期);I139-246 *
渲染任务管理系统的设计与实现;王娜;《中国优秀硕士学位论文全文数据库 信息科技辑》(第9期);I138-248 *

Also Published As

Publication number Publication date
CN112882707A (en) 2021-06-01

Similar Documents

Publication Publication Date Title
CN109857992B (en) Medical data structured analysis method and device, readable medium and electronic equipment
CN108427731B (en) Page code processing method and device, terminal equipment and medium
CN110221948B (en) Test script generation method, test script generation device, computer device and storage medium
CN110474900B (en) Game protocol testing method and device
CN107316156B (en) Data processing method, device, server and storage medium
CN111562965B (en) Page data verification method and device based on decision tree
CN111338692A (en) Vulnerability classification method and device based on vulnerability codes and electronic equipment
CN110990276A (en) Automatic testing method and device for interface field and storage medium
CN111273891A (en) Business decision method and device based on rule engine and terminal equipment
CN112882707B (en) Rendering method and device, storage medium and electronic equipment
CN110046086B (en) Expected data generation method and device for test and electronic equipment
CN115729817A (en) Method and device for generating and optimizing test case library, electronic equipment and storage medium
US9390073B2 (en) Electronic file comparator
CN110990295A (en) Test case verification method and device and electronic equipment
CN110766160A (en) Data verification method and device, storage medium and electronic equipment
CN113076094A (en) Front end component construction method and device and electronic equipment
CN111143858B (en) Data checking method and device
CN110516258B (en) Data verification method and device, storage medium and electronic device
CN112346775A (en) General index data processing method, electronic device and storage medium
CN115357286B (en) Program file comparison method and device, electronic equipment and storage medium
CN111159028A (en) Webpage testing method and device
CN110795308A (en) Server inspection method, device, equipment and storage medium
CN111258905A (en) Defect positioning method and device, electronic equipment and computer readable storage medium
CN110598115A (en) Sensitive webpage identification method and system based on artificial intelligence multi-engine
CN112256517B (en) Log analysis method and device of virtualization platform based on LSTM-DSSM

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