CN116431260A - Interface rendering method and device based on data model driving and computer equipment - Google Patents

Interface rendering method and device based on data model driving and computer equipment Download PDF

Info

Publication number
CN116431260A
CN116431260A CN202310336103.4A CN202310336103A CN116431260A CN 116431260 A CN116431260 A CN 116431260A CN 202310336103 A CN202310336103 A CN 202310336103A CN 116431260 A CN116431260 A CN 116431260A
Authority
CN
China
Prior art keywords
data
model
component
function module
service function
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
CN202310336103.4A
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.)
Industrial Bank Co Ltd
CIB Fintech Services Shanghai Co Ltd
Original Assignee
Industrial Bank Co Ltd
CIB Fintech Services Shanghai 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 Industrial Bank Co Ltd, CIB Fintech Services Shanghai Co Ltd filed Critical Industrial Bank Co Ltd
Priority to CN202310336103.4A priority Critical patent/CN116431260A/en
Publication of CN116431260A publication Critical patent/CN116431260A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • G06F9/44526Plug-ins; Add-ons
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Stored Programmes (AREA)

Abstract

The application relates to an interface rendering method and device based on data model driving and computer equipment. The method comprises the following steps: receiving data model data; when the back end monitors that the data model of the business function module of the target development application changes, reading and analyzing the data in the memory of the business function module to obtain the data model data of the business function module, and pushing the data model data to each development terminal; the data model includes a plurality of model components; analyzing according to the data model data to obtain a model data structure of each model component of the service function module; rendering is carried out according to the association relation among the model components of the service function module and the model data structure so as to generate a display interface of the service function module. By adopting the method, the development efficiency can be improved.

Description

Interface rendering method and device based on data model driving and computer equipment
Technical Field
The present invention relates to the field of interface rendering technologies, and in particular, to a data model driving-based interface rendering method and apparatus, and a computer device.
Background
Under the existing common application development mode, front-end and back-end developers generally perform independent development functions, and after the development of responsible functional modules is completed, the front-end and back-end joint debugging tests are performed. However, when the mode performs the function development function, if the page effect displayed by the front-end function and the back-end function needs to be checked, the configuration of the related function module needs to be completed to preview the actual page effect, so that the development efficiency is low.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a data model-driven interface rendering method and apparatus, and a computer device that can improve development efficiency.
In a first aspect, the present application provides a data model driven based interface rendering method. The method comprises the following steps:
receiving data model data; when the back end monitors that the data model of the business function module of the target development application changes, reading and analyzing the data in the memory of the business function module to obtain the data model data of the business function module, and pushing the data model data to each development terminal; the data model includes a plurality of model components;
Analyzing according to the data model data to obtain a model data structure of each model component of the service function module;
rendering is carried out according to the association relation among the model components of the service function module and the model data structure so as to generate a display interface of the service function module.
In one embodiment, the model component includes a data component and a technology component;
the method further comprises the steps of:
acquiring component configuration data, and creating a data component of the service function module according to the component configuration data;
acquiring a technical component of the service function module according to a preset function requirement;
the data model of the business function module is modified in response to a modification operation on the technology component and/or the data component.
In one embodiment, the data component includes a data source component and a service data component, the obtaining component configuration data and creating the data component according to the component configuration data includes:
receiving component configuration data;
creating and configuring a data source component according to the component configuration data;
and obtaining a business data component based on the data source component.
In one embodiment, the creating and configuring the data source component according to the component configuration data includes:
obtaining basic information and personalized configuration data of a data entity according to the component configuration data;
creating a data source component according to the basic information of the data entity;
analyzing the data source component to obtain parameter information of a physical table;
configuring the strategy of the physical table based on the parameter information to obtain a target physical table;
and adjusting the target physical table according to the personalized configuration data to obtain a configured data source component.
In one embodiment, the model component includes a technical component and a data component;
rendering according to the association relation between the model components of the service function module and the model data structure to generate a display interface of the service function module, wherein the display interface comprises:
rendering the technical component of the service function module and a model corresponding to the data component according to the model data structure;
and combining the rendered models according to the association relation between the technical component and the data component, and generating a display interface of the service function module on a display canvas.
In a second aspect, the present application further provides a data model driven based interface rendering method, where the method includes:
when the data model of a business function module of a monitoring target development application changes, reading and analyzing the data of the business function module in a memory to obtain the data model data of the business function module; the data model includes a plurality of model components;
pushing the data model data to each development terminal so that the development terminal receives the data model data, analyzing the data model data to obtain a model data structure of each model component of the service function module, and rendering the data according to the association relation among each model component of the service function module and the model data structure to generate a display interface of the service function module.
In one embodiment, the reading and analyzing the data of the service function module in the memory to obtain the data model data of the service function module includes:
reading data stored in the memory;
and combining and arranging the read data according to the association relation to obtain the data model data of the service function module.
In a third aspect, the present application further provides an interface rendering device based on data model driving. The device comprises:
the data receiving module is used for receiving the data model data; when the back end monitors that the data model of the business function module of the target development application changes, reading and analyzing the data in the memory of the business function module to obtain the data model data of the business function module, and pushing the data model data to each development terminal; the data model includes a plurality of model components;
the analysis module is used for analyzing and obtaining the model data structure of each model component of the service function module according to the data model data;
and the rendering module is used for rendering according to the association relation among the model components of the service function module and the model data structure so as to generate a display interface of the service function module.
In a fourth aspect, the present application further provides a data model driven interface rendering apparatus, where the apparatus includes:
the monitoring module is used for reading and analyzing the data in the memory of the business function module when the data model of the business function module of the target development application is changed, and obtaining the data model data of the business function module; the data model includes a plurality of model components;
And the pushing module is used for pushing the data model data to each development terminal so that the development terminal receives the data model data, analyzes the data model data to obtain a model data structure of each model component of the service function module according to the data model data, and renders the data according to the association relation among each model component of the service function module and the model data structure to generate a display interface of the service function module.
In a fifth aspect, the present application also provides a computer device. The computer device comprises a memory and a processor, wherein the memory stores a computer program, and the processor realizes the steps of the interface rendering method based on the data model driving when executing the computer program.
In a sixth aspect, the present application also provides a computer-readable storage medium. The computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the data model driven based interface rendering method described above.
In a seventh aspect, the present application also provides a computer program product. The computer program product comprises a computer program which, when executed by a processor, implements the steps of the data model driven based interface rendering method described above.
According to the data model driving-based interface rendering method and device and the computer equipment, the rear end monitors the data model of the service function module, when the data model is monitored to change, the data of the service function module in the memory can be read and analyzed, the data model data of the service function module is obtained, the development terminal can receive the data model data pushed by the rear end, the data model data structure is obtained through analysis according to the data model data, and the display interface of the service function module is generated according to the association relation rendering between the model data structure and the model component.
Drawings
FIG. 1 is an application environment diagram of a data model driven based interface rendering method in one embodiment;
FIG. 2 is a first flow diagram of a data model driven interface rendering method in one embodiment;
FIG. 3 is a second flow diagram of a data model driven based interface rendering method in one embodiment;
FIG. 4 is a flow chart illustrating the steps for creating a data component in one embodiment;
FIG. 5 is a flow diagram of a configuration data source component in one embodiment;
FIG. 6 is a third flow diagram of a data model driven based interface rendering method in one embodiment;
FIG. 7 is a first block diagram of an interface rendering apparatus driven based on a data model in one embodiment;
FIG. 8 is a second block diagram of an interface rendering apparatus driven based on a data model in one embodiment;
fig. 9 is an internal structural diagram of a computer device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
The interface rendering method based on the data model driving can be applied to an application environment shown in fig. 1. The development terminals 102 communicate with the backend 104 through a network, and the development terminals 102 may be multiple or only 1, and each development terminal includes multiple model components and an interface rendering engine. The backend 104 includes memory, model change listener, and model parsing engine. The data storage system may store data that the backend 104 needs to process, such as storing associations between model components, data model data, model data structures, and so forth. The data storage system may be integrated on the backend 104 or may be placed on the cloud or other network backend. The development terminal 102 receives data model data, wherein when the back end 104 monitors that the data model of the business function module of the target development application changes, the data of the business function module in the memory is read and analyzed, the data model data of the business function module is obtained, the data model data is pushed to each development terminal 102, and the data model comprises a plurality of model components; the development terminal analyzes the data model data to obtain a model data structure of each model component of the service function module, and renders the model data structure according to the association relation among each model component of the service function module to generate a display interface of the service function module. The development terminal 102 may be, but not limited to, various personal computers, notebook computers, and the like. The backend 104 may be implemented as a stand-alone server or as a cluster of servers.
In one embodiment, as shown in fig. 2, a data model-driven interface rendering method is provided, and the method is applied to the development terminal 102 in fig. 1 for illustration, and includes the following steps:
step 202, receiving data model data; when the back end monitors that the data model of the business function module of the target development application changes, reading and analyzing the data in the memory of the business function module, obtaining the data model data of the business function module, and pushing the data model data to each development terminal; the data model includes a plurality of model components.
Among other things, data model driven may refer to software development methods that model and model conversion into a primary approach.
The data model data may refer to data of a data model corresponding to each model component. A model component can include a plurality of data models that can be combined and referenced with one another. Different model components may also be combined and referenced with each other.
The model component may refer to a base model configured to implement business functions. For example, the model component may be a user-configured base model for implementing business functions. For example, a user can formulate a functional interface meeting the requirements by combining the forms of association using the developed technical components and the data components.
A business function module may refer to a module for implementing business functions. The business function module may include a plurality of data models. When the data model of the service function module changes, the development terminal stores the modified data into the memory in real time, so that the data in the memory is changed.
Illustratively, when the user performs a modification operation (such as modifying configuration information of model components, modifying association relationships between model components) at the development terminal 102, the development terminal 102 modifies the data model of the business function module according to the modification operation. If the model change monitor in the back end 104 monitors that the data model of the service function module of the development terminal changes, the module change monitor schedules the model analysis engine of the back end 102 to read and analyze the data of the service function module in the memory again, so as to obtain the data model of the service function module, and pushes the data model to each development terminal. The model change monitor can directly monitor whether the data model of the service function module changes or not, and can further determine whether the data model of the service function module changes or not by monitoring whether the data in the memory changes or not.
For example, in the case of an application development mode, after the front-end processes such as the requirement analysis and the workload evaluation in the early stage are completed, when the development stage is entered, the development terminal and the back-end developer generally perform independent development functions, and after the development of the responsible function modules is completed, the joint debugging test of the development terminal and the back-end developer is performed. When a developer of the development terminal modifies configuration information of a certain model component or modifies an association relation among the model components, a data model of the service function module is triggered to change, so that data in a memory of a rear end storing the data is changed. At this time, if the model change monitor monitors that the data in the memory changes, the scheduling model analysis engine re-reads and analyzes the data in the memory of the service function module to obtain the data model data of the service function module, and pushes the data model data to the interface rendering engine of the development terminal. If a plurality of development terminals for developing the target development application exist at the moment, the model analysis engine pushes the data model data to an interface rendering engine of each development terminal.
And 204, analyzing according to the data model data to obtain the model data structure of each model component of the service function module.
Wherein a model data structure may refer to a data structure that constitutes a model component. A model component may be made up of a plurality of model data structures.
Illustratively, after receiving the data model data pushed by the model parsing engine, the interface rendering engine of the development terminal 102 parses the data model data to obtain a model data structure that forms each model component.
For example, after receiving the data model data pushed by the model parsing engine, the interface rendering engine of the development terminal 102 parses the data model data to obtain a model data structure that forms the data component and the technical component.
And 206, rendering according to the association relation among the model components of the service function module and the model data structure to generate a display interface of the service function module.
The association relationship may refer to a relationship of mutual association such as a combined reference between model components. Model a as in model component a references model B in model component B, which reference belongs to the association between model component a and model component B.
The interface rendering engine independently renders each model in each model component according to the model data structure, and then combines the rendered models according to the association relation, so as to generate a display interface of the service function module of the development terminal.
According to the technical scheme, the rear end monitors the data model of the service function module, when the data model is monitored to change, the data of the service function module in the memory can be read and analyzed, the data model data of the service function module is obtained, the development terminal can receive the data model data pushed by the rear end, then the model data structure is obtained according to the analysis of the data model data, and then the display interface of the service function module is generated according to the association relation between the model data structure and the model component, so that when the data model is modified at any development terminal, all development terminals can receive the data model structure, and accordingly the display interface of the service function module is generated in real time, the user can observe the actual effect after adjustment conveniently, development is facilitated for the user, and development efficiency is improved.
Referring to fig. 3, in some embodiments, the model component includes a data component and a technology component, and the data model-driven interface rendering method further includes the steps of:
step 302, acquiring component configuration data, and creating a data component of the service function module according to the component configuration data;
the component configuration data may refer to data previously input for configuring the data component. The component configuration data may be entered by the user in real time or may be pre-stored. The component configuration data includes data source information and associated configuration information for the data entity.
The data components include a data source component and a business data component, the data source component being divided into a data entity and a query set. A data entity may refer to a model that encapsulates a particular physical table or tables, and a query collection may refer to a model that encapsulates a particular query SQL statement.
The business data component encapsulates the user-editable functional model based on the source of the data. Such as form canvas, data maintenance, charts, reports, etc.
Illustratively, the development terminal 102 may obtain component configuration data input by a user in real time, and determine a data source and create a data component of the business function module according to the component configuration data.
Step 304, obtaining technical components of the business function module according to preset function requirements;
the preset function requirement may refer to a preset actual service function requirement of the user.
The technical components include the usual underlying base components. Such as a data conversion component (a technical component that converts a certain value into a specified value according to a code table or specified mapping rules), a check rule component (a technical component for checking whether an entered value satisfies a specified rule), a business processing component (a technical component that supports writing Javascript), etc. The technical components may be developed by the user in real time or may be developed and stored in a server.
For example, a preset function requirement input by a user may be acquired, and then a corresponding technical component is acquired from the server according to the preset function requirement.
Step 306, in response to the modification operation on the technology component and/or the data component, modifies the data model of the business function module.
Wherein the modifying operation may refer to a user operation on the technical component and/or on the data component. The modification operation may be to modify configuration information of the technical component or the data component, or to modify an association relationship between the data component and the technical component, or the like.
When a user's modification operation on a technical component and/or a data component is detected, the data model of the business function module is modified in real time according to the modification operation. For example, when the modifying operation is to modify the configuration information of the data component, the configuration information of the data model in the data component of the business function module is modified in real time according to the modifying operation.
According to the technical scheme, the data model of the service function module can be modified in real time in response to the modification operation of the user on the technical component and/or the technical component, so that the change of the data model of the service function module can be monitored conveniently, the display interface of the service function module can be rendered conveniently in real time, and the development efficiency is improved.
Referring to FIG. 4, in some embodiments, the data components include a data source component and a business data component, and the step of "obtaining component configuration data and creating a data component from the component configuration data" includes the steps of:
step 402, receiving component configuration data;
the component configuration data sent by the server may be received in real time through a network, or the component configuration data input by the user may be directly received.
Step 404, creating and configuring a data source component according to the component configuration data;
after receiving the component configuration data, the basic information of the data entity is firstly configured according to the component configuration data to create a data source component, the component configuration data is parsed to obtain relevant configuration parameter information, and the created data source component is configured according to the configuration parameter information.
In step 406, a business data component is obtained based on the data source component.
Illustratively, a user-editable functional model is created that encapsulates the business data component based on the data source determined by the data source component. The business components include form canvas, data maintenance, charts and reports components.
According to the technical scheme, the data source component is determined through the component configuration data, and the service data component is determined based on the data source component, so that the data component is obtained, the driving of a data model is conveniently realized subsequently, and the development efficiency is improved.
Referring to FIG. 5, in some embodiments, the step of "creating and configuring a data source component from component configuration data" includes the steps of:
step 502, obtaining basic information and personalized configuration data of a data entity according to the component configuration data.
The basic information may be basic parameter information of the data entity, where the basic information may include parameters such as a data entity name, a data entity code, and a corresponding physical table.
The personalized configuration data may refer to information of relevant personalized settings of the data entity during the configuration process.
Illustratively, after receiving the component configuration data, the designated data source is first determined at the configuration interface according to the component configuration data, and then the basic information of the data entity and the personalized configuration data are determined from the component configuration data.
Step 504, creating a data source component from the base information of the data entity.
Illustratively, the data entity is created according to the name of the data entity, the coding of the data entity and the corresponding physical table in the basic information, and then the data source component is created.
In step 506, the data source component is parsed to obtain the parameter information of the physical table.
The parameter information of the physical table may refer to a basic parameter corresponding to the physical table.
For example, after the creation of the data source component is completed, the built-in physical table engine of the development terminal automatically analyzes and obtains the basic parameters such as the attribute name, the display name, the data type and the like of each field of the corresponding physical table, so as to obtain the parameter information of the physical table.
And step 508, configuring the strategy of the physical table based on the parameter information to obtain the target physical table.
Illustratively, after determining the parameter information of the physical table, the components of the physical table are configured to generate policies (e.g., database self-increment, UUID (universal unique identification code) and the like) to obtain the target physical table.
And step 510, adjusting the target physical table according to the personalized configuration data to obtain the configured data source component.
Illustratively, after the target physical table is obtained, relevant personalized configuration of the target physical table is adjusted according to the personalized configuration data, so that configuration of the data source component is realized, and the configured data source component is obtained.
According to the technical scheme, the data source component is configured and obtained through the basic information of the data entity in the component configuration data and the personalized configuration data, so that the follow-up realization of the driving of the data model is facilitated, and the development efficiency is improved.
In some embodiments, the created data entity may be selected to create a form canvas, then the front end control (including a single line text control, a drop-down box control, a multi-box control, etc.) is dragged onto the form canvas to perform interface layout design, and basic information such as a title, whether to fill, a field duty ratio, etc. of the front end control is configured through a configuration interface of the front end control, and finally the front end control is bound and associated with the field of the data entity.
In some embodiments, the step of rendering according to the association relationship between the model components of the business function module and the model data structure to generate the display interface of the business function module includes the steps of: rendering the technical component of the service function module and the model corresponding to the data component according to the model data structure; and combining the rendered models according to the association relation between the technical components and the data components, and generating a display interface of the service function module on the display canvas.
Specifically, after receiving the model data structure, the interface rendering engine of the development terminal may render the independent models of each technical component and the data component of the service function module again, then render each independent model in a combined manner according to the association relationship between the technical component and the data component, and render the modified display interface of the latest service function on the display canvas of the development terminal and/or the mobile terminal, so as to obtain the interface effect of the adjusted latest service function.
According to the technical scheme, the technical component and the independent model corresponding to the data component are rendered in real time according to the model data structure, and the rendered models are combined to generate the display interface of the service function module in real time, so that a user can observe the adjusted actual effect conveniently, development is facilitated for the user, and development efficiency is improved.
As shown in fig. 6, in some embodiments, the application further provides a data model driven interface rendering method, which is described by taking the application of the method to the backend 104 in fig. 1 as an example, and includes the following steps:
step 602, when the data model of the business function module of the monitoring target development application changes, reading and analyzing the data of the business function module in the memory to obtain the data model data of the business function module; the data model includes a plurality of model components.
The data model data may refer to data of a data model corresponding to each model component. A model component can include a plurality of data models that can be combined and referenced with one another. Different model components may also be combined and referenced with each other.
The model component may refer to a base model configured to implement business functions. For example, the model component may be a user-configured base model for implementing business functions. For example, a user can formulate a functional interface meeting the requirements by combining the forms of association using the developed technical components and the data components.
A business function module may refer to a module for implementing business functions. The business function module may include a plurality of data models. When the data model of the service function module changes, the service function module is triggered to store the latest data in the memory in real time, so that the data in the memory is caused to change.
The method includes the steps that data changes in a memory are monitored in real time through a model change monitor at the back end, when the data in the memory changes, the data model of a business function module of a target development application is described to change, at the moment, the model change monitor sends a scheduling instruction to schedule a model analysis engine at the back end to read and analyze the data in the memory, and therefore data model data of the business function module are obtained.
Step 604, pushing the data model data to each development terminal, so that the development terminal receives the data model data, analyzes the data model data to obtain a model data structure of each model component of the service function module, and renders the data model according to the association relationship between each model component of the service function module and the model data structure to generate a display interface of the service function module.
Wherein a model data structure may refer to a data structure that constitutes a model component. A model component may be made up of a plurality of model data structures.
The association relationship may refer to a relationship of mutual association such as a combined reference between model components. Model a as in model component a references model B in model component B, which reference belongs to the association between model component a and model component B.
The model analysis engine is used for pushing the data model data to the interface rendering engine of each development terminal after obtaining the data model data, and the interface rendering engine of the development terminal is used for analyzing the data model data to obtain the model data structure of each model component of the service function module according to the data model data, then independently rendering each model in each model component, and then combining the rendered models according to the association relation, so that a display interface of the service function module of the development terminal is generated.
According to the technical scheme, the rear end monitors the data model of the service function module, when the data model is monitored to change, the data of the service function module in the memory can be read and analyzed, the data model data of the service function module is obtained, the development terminal can receive the data model data pushed by the rear end, then the model data structure is obtained according to the analysis of the data model data, and then the display interface of the service function module is generated according to the association relation between the model data structure and the model component, so that when the data model is modified at any development terminal, all development terminals can receive the data model structure, and accordingly the display interface of the service function module is generated in real time, the user can observe the actual effect after adjustment conveniently, development is facilitated for the user, and development efficiency is improved.
In some embodiments, the step of "reading and parsing the data in the memory of the service function module to obtain the data model data of the service function module" includes the steps of: reading data stored in a memory; and combining and arranging the read data according to the association relation to obtain the data model data of the service function module.
Wherein, combining arrangement may refer to re-combining, encoding and ordering the read data according to the association between model components.
The service function module may trigger a save operation to store the modified data in the memory in real time, and the model analysis engine at the back end reads the data stored in the memory according to the scheduling instruction output by the model change monitor, and performs a combination arrangement according to the association relationship between the model components to obtain the data model data corresponding to the adjusted service function module.
According to the technical scheme, the data in the memory is read, and the read data is combined and arranged to obtain the data model data, so that the display interface corresponding to the service function module is rendered in real time by the development terminal, the user can observe the adjusted actual effect conveniently, the development by the user is facilitated, and the development efficiency is improved.
It should be understood that, although the steps in the flowcharts related to the above embodiments are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described in the above embodiments may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least some of the other steps or stages.
Based on the same inventive concept, the embodiment of the application also provides a data model-based interface rendering device for implementing the above-mentioned data model-based interface rendering method. The implementation of the solution provided by the apparatus is similar to that described in the method above, so specific limitations in one or more embodiments of the data model-based driven interface rendering apparatus provided below may be found in the limitations of the data model-based driven interface rendering method above.
In one embodiment, as shown in fig. 7, there is provided an interface rendering apparatus driven based on a data model, including: a data receiving module 702, a parsing module 704, and a rendering module 706, wherein:
a data receiving module 702, configured to receive data model data; when the back end monitors that the data model of the business function module of the target development application changes, reading and analyzing the data in the memory of the business function module, obtaining the data model data of the business function module, and pushing the data model data to each development terminal; the data model includes a plurality of model sets.
And the parsing module 704 is configured to parse the data model data to obtain a model data structure of each model component of the service function module.
And the rendering module 706 is configured to render according to the association relationship between the model components of the service function module and the model data structure, so as to generate a display interface of the service function module.
In some embodiments, the model component includes a data component and a technical component, and the data model-driven interface rendering device further includes:
the data acquisition module is used for acquiring the component configuration data and creating a data component of the service function module according to the component configuration data;
the component acquisition module is used for acquiring the technical components of the service function module according to the preset function requirement;
and the modification module is used for responding to the modification operation on the technical component and/or the data component and modifying the data model of the business function module.
In some embodiments, the data acquisition module is further to: receiving component configuration data; creating and configuring a data source component according to the component configuration data; a business data component is obtained based on the data source component.
In some embodiments, the data acquisition module is further to: obtaining basic information and personalized configuration data of a data entity according to the component configuration data; creating a data source component according to the basic information of the data entity; analyzing the data source component to obtain parameter information of the physical table; configuring a strategy of a physical table based on the parameter information to obtain a target physical table; and adjusting the target physical table according to the personalized configuration data to obtain the configured data source assembly.
In some embodiments, the model components include a technical component and a data component, and the rendering module 706 is further configured to: rendering the technical component of the service function module and the model corresponding to the data component according to the model data structure; and combining the rendered models according to the association relation between the technical components and the data components, and generating a display interface of the service function module on the display canvas.
As shown in fig. 8, the embodiment of the application further provides an interface rendering device based on data model driving, where the device includes a monitoring module 802 and a pushing module 804.
The monitoring module 802 is configured to read and parse data in the memory of the service function module when the data model of the service function module of the monitoring target development application changes, so as to obtain data model data of the service function module; the data model includes a plurality of model components;
the pushing module 804 is configured to push the data model data to each development terminal, so that the development terminal receives the data model data, analyzes the data model data to obtain a model data structure of each model component of the service function module, and renders the data model according to the association relationship between each model component of the service function module and the model data structure, so as to generate a display interface of the service function module.
In some embodiments, the monitoring module 802 is further to: reading data stored in a memory; and combining and arranging the read data according to the association relation to obtain the data model data of the service function module.
The respective modules in the above-described data model-based driven interface rendering apparatus may be implemented in whole or in part by software, hardware, and combinations thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a terminal, and the internal structure thereof may be as shown in fig. 9. The computer device includes a processor, a memory, an input/output interface, a communication interface, a display unit, and an input means. The processor, the memory and the input/output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input/output interface. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The input/output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless mode can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. The computer program, when executed by a processor, implements the data model driven interface rendering method described above. The display unit of the computer device is used for forming a visual picture, and can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, can also be a key, a track ball or a touch pad arranged on the shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by those skilled in the art that the structure shown in fig. 9 is merely a block diagram of a portion of the structure associated with the present application and is not limiting of the computer device to which the present application applies, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
In one embodiment, a computer device is provided comprising a memory and a processor, the memory having stored therein a computer program, the processor when executing the computer program performing the steps of: receiving data model data; when the back end monitors that the data model of the business function module of the target development application changes, reading and analyzing the data in the memory of the business function module, obtaining the data model data of the business function module, and pushing the data model data to each development terminal; the data model includes a plurality of model components; analyzing according to the data model data to obtain a model data structure of each model component of the service function module; rendering is carried out according to the association relation among the model components of the service function module and the model data structure so as to generate a display interface of the service function module.
In one embodiment, the processor when executing the computer program further performs the steps of: acquiring component configuration data, and creating a data component of the service function module according to the component configuration data; acquiring a technical component of a service function module according to a preset function requirement; the data model of the business function module is modified in response to a modification operation on the technology component and/or the data component.
In one embodiment, the processor when executing the computer program further performs the steps of: receiving component configuration data; creating and configuring a data source component according to the component configuration data; a business data component is obtained based on the data source component.
In one embodiment, the processor when executing the computer program further performs the steps of: obtaining basic information and personalized configuration data of a data entity according to the component configuration data; creating a data source component according to the basic information of the data entity; analyzing the data source component to obtain parameter information of the physical table; configuring a strategy of a physical table based on the parameter information to obtain a target physical table; and adjusting the target physical table according to the personalized configuration data to obtain the configured data source assembly.
In one embodiment, the processor when executing the computer program further performs the steps of: rendering the technical component of the service function module and the model corresponding to the data component according to the model data structure; and combining the rendered models according to the association relation between the technical components and the data components, and generating a display interface of the service function module on the display canvas.
In one embodiment, the processor when executing the computer program further performs the steps of: when the data model of the business function module of the monitoring target development application changes, reading and analyzing the data of the business function module in the memory to obtain the data model data of the business function module; the data model includes a plurality of model components; pushing the data model data to each development terminal so that the development terminal receives the data model data, analyzes the data model data to obtain a model data structure of each model component of the service function module, and renders the data according to the association relation among each model component of the service function module and the model data structure to generate a display interface of the service function module.
In one embodiment, the processor when executing the computer program further performs the steps of: reading data stored in a memory; and combining and arranging the read data according to the association relation to obtain the data model data of the service function module.
In one embodiment, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, performs the steps of: receiving data model data; when the back end monitors that the data model of the business function module of the target development application changes, reading and analyzing the data in the memory of the business function module, obtaining the data model data of the business function module, and pushing the data model data to each development terminal; the data model includes a plurality of model components; analyzing according to the data model data to obtain a model data structure of each model component of the service function module; rendering is carried out according to the association relation among the model components of the service function module and the model data structure so as to generate a display interface of the service function module.
In one embodiment, the computer program when executed by the processor further performs the steps of: acquiring component configuration data, and creating a data component of the service function module according to the component configuration data; acquiring a technical component of a service function module according to a preset function requirement; the data model of the business function module is modified in response to a modification operation on the technology component and/or the data component.
In one embodiment, the computer program when executed by the processor further performs the steps of: receiving component configuration data; creating and configuring a data source component according to the component configuration data; a business data component is obtained based on the data source component.
In one embodiment, the computer program when executed by the processor further performs the steps of: obtaining basic information and personalized configuration data of a data entity according to the component configuration data; creating a data source component according to the basic information of the data entity; analyzing the data source component to obtain parameter information of the physical table; configuring a strategy of a physical table based on the parameter information to obtain a target physical table; and adjusting the target physical table according to the personalized configuration data to obtain the configured data source assembly.
In one embodiment, the computer program when executed by the processor further performs the steps of: rendering the technical component of the service function module and the model corresponding to the data component according to the model data structure; and combining the rendered models according to the association relation between the technical components and the data components, and generating a display interface of the service function module on the display canvas.
In one embodiment, the computer program when executed by the processor further performs the steps of: when the data model of the business function module of the monitoring target development application changes, reading and analyzing the data of the business function module in the memory to obtain the data model data of the business function module; the data model includes a plurality of model components; pushing the data model data to each development terminal so that the development terminal receives the data model data, analyzes the data model data to obtain a model data structure of each model component of the service function module, and renders the data according to the association relation among each model component of the service function module and the model data structure to generate a display interface of the service function module.
In one embodiment, the computer program when executed by the processor further performs the steps of: reading data stored in a memory; and combining and arranging the read data according to the association relation to obtain the data model data of the service function module.
In one embodiment, a computer program product is provided comprising a computer program which, when executed by a processor, performs the steps of: receiving data model data; when the back end monitors that the data model of the business function module of the target development application changes, reading and analyzing the data in the memory of the business function module, obtaining the data model data of the business function module, and pushing the data model data to each development terminal; the data model includes a plurality of model components; analyzing according to the data model data to obtain a model data structure of each model component of the service function module; rendering is carried out according to the association relation among the model components of the service function module and the model data structure so as to generate a display interface of the service function module.
In one embodiment, the computer program when executed by the processor further performs the steps of: acquiring component configuration data, and creating a data component of the service function module according to the component configuration data; acquiring a technical component of a service function module according to a preset function requirement; the data model of the business function module is modified in response to a modification operation on the technology component and/or the data component.
In one embodiment, the computer program when executed by the processor further performs the steps of: receiving component configuration data; creating and configuring a data source component according to the component configuration data; a business data component is obtained based on the data source component.
In one embodiment, the computer program when executed by the processor further performs the steps of: obtaining basic information and personalized configuration data of a data entity according to the component configuration data; creating a data source component according to the basic information of the data entity; analyzing the data source component to obtain parameter information of the physical table; configuring a strategy of a physical table based on the parameter information to obtain a target physical table; and adjusting the target physical table according to the personalized configuration data to obtain the configured data source assembly.
In one embodiment, the computer program when executed by the processor further performs the steps of: rendering the technical component of the service function module and the model corresponding to the data component according to the model data structure; and combining the rendered models according to the association relation between the technical components and the data components, and generating a display interface of the service function module on the display canvas.
In one embodiment, the computer program when executed by the processor further performs the steps of: when the data model of the business function module of the monitoring target development application changes, reading and analyzing the data of the business function module in the memory to obtain the data model data of the business function module; the data model includes a plurality of model components; pushing the data model data to each development terminal so that the development terminal receives the data model data, analyzes the data model data to obtain a model data structure of each model component of the service function module, and renders the data according to the association relation among each model component of the service function module and the model data structure to generate a display interface of the service function module.
In one embodiment, the computer program when executed by the processor further performs the steps of: reading data stored in a memory; and combining and arranging the read data according to the association relation to obtain the data model data of the service function module.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, database, or other medium used in embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high density embedded nonvolatile Memory, resistive random access Memory (ReRAM), magnetic random access Memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric Memory (Ferroelectric Random Access Memory, FRAM), phase change Memory (Phase Change Memory, PCM), graphene Memory, and the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, and the like. By way of illustration, and not limitation, RAM can be in the form of a variety of forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), and the like. The databases referred to in the various embodiments provided herein may include at least one of relational databases and non-relational databases. The non-relational database may include, but is not limited to, a blockchain-based distributed database, and the like. The processors referred to in the embodiments provided herein may be general purpose processors, central processing units, graphics processors, digital signal processors, programmable logic units, quantum computing-based data processing logic units, etc., without being limited thereto.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples only represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the present application. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application shall be subject to the appended claims.

Claims (10)

1. A data model driven interface rendering method, the method comprising:
receiving data model data; when the back end monitors that the data model of the business function module of the target development application changes, reading and analyzing the data in the memory of the business function module to obtain the data model data of the business function module, and pushing the data model data to each development terminal; the data model includes a plurality of model components;
Analyzing according to the data model data to obtain a model data structure of each model component of the service function module;
rendering is carried out according to the association relation among the model components of the service function module and the model data structure so as to generate a display interface of the service function module.
2. The method of claim 1, wherein the model components include a data component and a technology component;
the method further comprises the steps of:
acquiring component configuration data, and creating a data component of the service function module according to the component configuration data;
acquiring a technical component of the service function module according to a preset function requirement;
the data model of the business function module is modified in response to a modification operation on the technology component and/or the data component.
3. The method of claim 2, wherein the data components include a data source component and a business data component, the retrieving component configuration data and creating a data component from the component configuration data comprises:
receiving component configuration data;
creating and configuring a data source component according to the component configuration data;
And obtaining a business data component based on the data source component.
4. A method according to claim 3, wherein said creating and configuring a resulting data source component from said component configuration data comprises:
obtaining basic information and personalized configuration data of a data entity according to the component configuration data;
creating a data source component according to the basic information of the data entity;
analyzing the data source component to obtain parameter information of a physical table;
configuring the strategy of the physical table based on the parameter information to obtain a target physical table;
and adjusting the target physical table according to the personalized configuration data to obtain a configured data source component.
5. The method of claim 1, wherein the model component comprises a technical component and a data component;
rendering according to the association relation between the model components of the service function module and the model data structure to generate a display interface of the service function module, wherein the display interface comprises:
rendering the technical component of the service function module and a model corresponding to the data component according to the model data structure;
And combining the rendered models according to the association relation between the technical component and the data component, and generating a display interface of the service function module on a display canvas.
6. A data model driven interface rendering method, the method comprising:
when the data model of a business function module of a monitoring target development application changes, reading and analyzing the data of the business function module in a memory to obtain the data model data of the business function module; the data model includes a plurality of model components;
pushing the data model data to each development terminal so that the development terminal receives the data model data, analyzing the data model data to obtain a model data structure of each model component of the service function module, and rendering the data according to the association relation among each model component of the service function module and the model data structure to generate a display interface of the service function module.
7. The method of claim 6, wherein the reading and analyzing the data of the service function module in the memory to obtain the data model data of the service function module comprises:
Reading data stored in the memory;
and combining and arranging the read data according to the association relation to obtain the data model data of the service function module.
8. An interface rendering apparatus based on data model driving, the apparatus comprising:
the data receiving module is used for receiving the data model data; when the back end monitors that the data model of the business function module of the target development application changes, reading and analyzing the data in the memory of the business function module to obtain the data model data of the business function module, and pushing the data model data to each development terminal; the data model includes a plurality of model components;
the analysis module is used for analyzing and obtaining the model data structure of each model component of the service function module according to the data model data;
and the rendering module is used for rendering according to the association relation among the model components of the service function module and the model data structure so as to generate a display interface of the service function module.
9. An interface rendering apparatus based on data model driving, the apparatus comprising:
The monitoring module is used for reading and analyzing the data in the memory of the business function module when the data model of the business function module of the target development application is changed, and obtaining the data model data of the business function module; the data model includes a plurality of model components;
and the pushing module is used for pushing the data model data to each development terminal so that the development terminal receives the data model data, analyzes the data model data to obtain a model data structure of each model component of the service function module according to the data model data, and renders the data according to the association relation among each model component of the service function module and the model data structure to generate a display interface of the service function module.
10. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any one of claims 1 to 5 when the computer program is executed; alternatively, the steps of implementing the method of any one of claims 6 to 7.
CN202310336103.4A 2023-03-31 2023-03-31 Interface rendering method and device based on data model driving and computer equipment Pending CN116431260A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310336103.4A CN116431260A (en) 2023-03-31 2023-03-31 Interface rendering method and device based on data model driving and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310336103.4A CN116431260A (en) 2023-03-31 2023-03-31 Interface rendering method and device based on data model driving and computer equipment

Publications (1)

Publication Number Publication Date
CN116431260A true CN116431260A (en) 2023-07-14

Family

ID=87082665

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310336103.4A Pending CN116431260A (en) 2023-03-31 2023-03-31 Interface rendering method and device based on data model driving and computer equipment

Country Status (1)

Country Link
CN (1) CN116431260A (en)

Similar Documents

Publication Publication Date Title
CN115617327A (en) Low code page building system, method and computer readable storage medium
US20150205847A1 (en) Database generation from a spreadsheet
CN114115844A (en) Page generation method and device, computer equipment and storage medium
CN112800370A (en) Business document processing method and device, computer equipment and storage medium
CN114371845A (en) Form generation method and device
CN114265657A (en) Method and device for displaying page of applet
CN116431260A (en) Interface rendering method and device based on data model driving and computer equipment
CN108845857A (en) A kind of icon management method and device based on cloud platform
CN117331590B (en) Process design toolkit updating method, device, computer equipment and storage medium
CN113504912B (en) Real-time task processing method and device, storage medium and electronic device
CN116860576A (en) Method, device, computer equipment and storage medium for recording operation log
CN117522296A (en) Auditing flow generation method, auditing flow generation device, computer equipment and storage medium
CN114064021A (en) Hospital management platform customization method and device based on user requirements and storage medium
CN117591110A (en) Page generation method, device, equipment, storage medium and program product
CN116719892A (en) Data display method, device, computer equipment and storage medium
CN117194511A (en) Data paging processing method, device, computer equipment and storage medium
CN117130909A (en) Test analysis method, apparatus, device, storage medium, and program product
CN116737140A (en) Business component construction method, device, computer equipment and storage medium
CN114462362A (en) Report file generation method and device, computer equipment and storage medium
CN117453548A (en) Code module information determining method, apparatus, computer device and storage medium
CN117370281A (en) Data maintenance method, device, computer equipment and storage medium
CN117130606A (en) Front-end page configuration method, front-end page configuration device, computer equipment and storage medium
CN117612192A (en) Electronic drawing information identification method, system, electronic equipment and storage medium
CN116166667A (en) Document field information carrying method, device, equipment and storage medium
CN115630248A (en) Page determination method and device, 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