CN115291875A - Data display method, system and device - Google Patents

Data display method, system and device Download PDF

Info

Publication number
CN115291875A
CN115291875A CN202211062978.1A CN202211062978A CN115291875A CN 115291875 A CN115291875 A CN 115291875A CN 202211062978 A CN202211062978 A CN 202211062978A CN 115291875 A CN115291875 A CN 115291875A
Authority
CN
China
Prior art keywords
model
data
value
interface
found
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
CN202211062978.1A
Other languages
Chinese (zh)
Inventor
杨更新
王�华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Ttsf Technology Co ltd
Original Assignee
Beijing Ttsf Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Ttsf Technology Co ltd filed Critical Beijing Ttsf Technology Co ltd
Priority to CN202211062978.1A priority Critical patent/CN115291875A/en
Publication of CN115291875A publication Critical patent/CN115291875A/en
Pending legal-status Critical Current

Links

Images

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

Abstract

The invention discloses a data display method, a system and a device, comprising S1, establishing a model to obtain self configuration data of the model; s2, preprocessing the configuration data of the model; s3, calling a data interface to obtain model external input data; s4, processing the external input data of the model to obtain processed data; and S5, displaying the processed data to an interface. The invention can realize universal data display.

Description

Data display method, system and device
Technical Field
The present invention relates to the field of data display, and in particular, to a data display method, system and device.
Background
The existing MES system implementation scheme is that interface return fields are all fixed, and when the requirements slightly change, front-end data and back-end data need to be re-modified, so that the existing MES system implementation scheme has no universality. When the display content needs to be adjusted, for example, when a certain field needs to be hidden, the front-end code needs to be modified to realize the corresponding effect, so that the flexibility is not provided.
Disclosure of Invention
The invention aims to provide a data display method, a system and a device, and aims to solve the problems of the data display method, the system and the device.
The invention provides a data display method, a system and a device, comprising the following steps:
s1, establishing a model to obtain configuration data of the model;
s2, preprocessing the configuration data of the model;
s3, calling a data interface to obtain model external input data;
s4, processing the external input data of the model to obtain processed data;
and S5, displaying the processed data to an interface.
The present invention also provides a data presentation system, comprising:
a creation module: the model is used for establishing a model to obtain configuration data of the model;
a preprocessing module: the system is used for preprocessing the configuration data of the model;
a calling module: the data interface is used for calling to obtain the external input data of the model;
a processing module: the data processing device is used for processing the external input data of the model to obtain processed data;
a display module: for presenting the processed data to an interface.
An embodiment of the present invention further provides a data display device, including: a memory, a processor and a computer program stored on the memory and executable on the processor, the computer program implementing the steps of the above method when executed by the processor.
An embodiment of the present invention further provides a computer-readable storage medium, where an implementation program for information transfer is stored, and when the implementation program is executed by a processor, the steps of the foregoing method are implemented.
By adopting the embodiment of the invention, a universal data display method can be realized.
The above description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood, and to make the above and other objects, features, and advantages of the present invention more apparent.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
FIG. 1 is a flow chart of a data presentation method of an embodiment of the present invention;
FIG. 2 is a schematic diagram of model classification of a data presentation method according to an embodiment of the present invention;
FIG. 3 is a diagram illustrating an attribute list of a data presentation method according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a data presentation system of an embodiment of the present invention;
FIG. 5 is a schematic view of a data presentation device according to an embodiment of the present invention.
Detailed Description
The technical solutions of the present invention will be described clearly and completely with reference to the following embodiments, and it should be understood that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Method embodiment
According to an embodiment of the present invention, a data display method is provided, and fig. 1 is a flowchart of the data display method according to the embodiment of the present invention, as shown in fig. 1, specifically including:
s1, creating a model to obtain configuration data of the model;
s2, preprocessing the configuration data of the model;
s3, calling a data interface to obtain model external input data;
s4, processing the external input data of the model to obtain processed data;
and S5, displaying the processed data to an interface.
FIG. 2 is a schematic diagram of model classification of a data presentation method according to an embodiment of the present invention;
the corresponding relation of model codes, model names and model types;
s1 specifically comprises the following steps: entering a model configuration interface at a web end to create a model, wherein options of creating the model comprise: the model comprises the code, name, value, showing, editable, model type and default value, wherein the value comprises a dictionary, a character string, a tree form and a data foreign key, and other types need to be acquired through a link besides the character string. And after the creation is finished, calling an interface and storing the interface into a background database to obtain the configuration data of the model.
S2 specifically comprises the following steps:
s21, judging whether the object has an API, if not, indicating that the object value set does not need to be obtained in a request mode;
s22, if the API exists, judging which access parameters needed by the request exist according to the association type; judging what the API is specifically, if the API is the specific uniform resource locator, directly acquiring a set bindingArr of the corresponding model value through a specific request; if the API is a general uniform resource locator, a general calling mode is used for obtaining a set bindingArr of the model value, and the processing of model external input data is facilitated.
S4 specifically comprises the following steps:
FIG. 3 is a schematic diagram of an attribute list of a data presentation method according to an embodiment of the present invention;
and the administrator can perform addition, deletion, modification and check on the attribute list of the model object.
After the preprocessing of the model is finished, an interface for obtaining a model value is called, a set recordsArr and an attribute information object propertyInfoDic of the model value object are obtained, the set of the model object and the set of the model value object are traversed in a double-layer mode, the value object and the model object are obtained, firstly, if the propertyInfoDic exists, a specific value code is obtained in the value object through the code of the model object, a dictionary where the value is located is found in the propertyInfoDic, a final dictionary is found through the dictionary where the value code and the value are located, finally, a value which can be shown by the last model object is found through the bindingField of the model object, if the propertyInfoDic does not exist, the value code is found through traversing the bindArr of the model, then, a key word is used as the value of the model, the value which can be shown by the last model object is found through the bindingField of the model object, the code and the found value are stored as a key to form a set and returned, and a dictionary set of the model value is obtained.
S5 specifically comprises the following steps:
pre-storing a plurality of UI standard template interfaces, circularly obtaining each model data according to the model object set, selecting a corresponding UI template according to the display type of the model data, arranging according to the data sequence,
binding the model data to a UI template, judging whether the model data can be edited, displayed or hidden, clicked or not and font color according to the model property, then obtaining the displayed data in the set of model values according to the code of the model object, and finally rendering the obtained displayed data.
The MES has a business process from configuration, planning management, job management, and quality and material management. An overall flow of MES management is formed.
The invention is developed and designed based on the following principles:
1. unified design principle: when designing a system structure, a function module, a database and a system safety scheme, the whole unification of the system is mastered from the top to the bottom in the long term.
2. Advanced design principle: in the process of designing the system, the latest research and development technical route is adopted as much as possible, the advanced level of the current market is fully researched, and the mainstream technical framework at home and abroad is used for reference. The MES system is ensured to have long life by advanced technology.
3. Modular design principle: the combination of splitting the whole system into a plurality of parts according to functions or business logic is the essence of the modular design idea, the combined parts are not affected with each other, and can be developed and tested independently, and finally the whole function design is realized through interface calling and other modes.
4. Expandable design principle: in the initial stage of design, the system should consider actual service requirements possibly encountered in the future, and reduce the coupling degree between modules and fully consider the compatibility possibly involved under the condition of ensuring the complete function of each functional module. Particularly in terms of database design, the system is required to support storage operation of various format data in the future use process.
5. Reliability design principle: the stability and reliability of the operation result in the operation process of the system are fully ensured, and when the system encounters an emergency situation, the emergency treatment can be flexibly performed, so that the influence on all functions of the system caused by the fault of a certain functional module is avoided.
The invention has the advantages of universality, flexibility and low cost.
System embodiment
According to an embodiment of the present invention, a data presentation system is provided, and fig. 4 is a schematic diagram of the data presentation system according to the embodiment of the present invention, as shown in fig. 4, specifically including:
a creation module: the method comprises the steps of establishing a model to obtain configuration data of the model;
a preprocessing module: the system is used for preprocessing the configuration data of the model;
a calling module: the data interface is used for calling to obtain the external input data of the model;
a processing module: the data processing device is used for processing the external input data of the model to obtain processed data;
a display module: for presenting the processed data to an interface.
The creation module is specifically configured to: entering a model configuration interface at a web end to create a model, wherein options of creating the model comprise: the method comprises the steps of model coding, name, value, showing or not, editing or not, model type and default values, wherein the values comprise a dictionary, a character string, a tree form and a data foreign key, and after creation is completed, an interface is called and stored in a background database to obtain model self configuration data.
The preprocessing module is specifically configured to:
judging whether the object has an API, if not, indicating that the object value set does not need to be obtained in a request mode;
if the API exists, judging which access parameters needed by the request exist according to the association type; judging what the API is specifically, if the API is a specific uniform resource locator, directly acquiring a set bindingArr of a corresponding model value through a specific request; if the API is a general uniform resource locator, acquiring a set bindingArr of the model value in a general calling mode, so that the processing of the external input data of the model is facilitated;
the processing module is specifically configured to:
after preprocessing of the model is completed, then an interface for obtaining model values is called to obtain a set recordsArr of the model value object and a property information object propertyindic, the set of the model object and the set of the model value object are traversed in a double-layer mode, the value object and the model object are obtained, firstly, if the propertyindic exists, a specific value code is obtained in the value object through the code of the model object, a dictionary where the value is located is found in the propertyindic, a final dictionary is found through the value code and the dictionary where the value is located, finally, a value which can be displayed by the final model object is found through the bindingField of the model object, if the propertyindic does not exist, the value code of the model is found through traversing the bindArr of the model, then, a keyword is used as the value of the model, the value which can be displayed by the last model object is found through the bindingField of the model object, finally, the code of the model and the found value are stored as a key and returned to form a set of the dictionary, and a set of the dictionary value is obtained;
the display module is specifically configured to:
pre-storing a plurality of UI standard template interfaces, circularly obtaining each model data according to the model object set, selecting a corresponding UI template according to the display type of the model data, arranging according to the data sequence,
binding the model data to a UI template, judging whether the model data can be edited, displayed or hidden, clicked or not and font color according to the model property, then obtaining the displayed data in the set of model values according to the code of the model object, and finally rendering the obtained displayed data.
Creating a model data table according to design, adding functions of adding, deleting, modifying and checking a background of a model, compiling a model interface, developing an interface at the front end, calling the model interface, processing model data, and displaying according to the processed data.
The embodiment of the present invention is a system embodiment corresponding to the above method embodiment, and specific operations of each module may be understood with reference to the description of the method embodiment, which is not described herein again.
Apparatus embodiment one
An embodiment of the present invention provides a data display apparatus, as shown in fig. 5, including: a memory 50, a processor 52 and a computer program stored on the memory 50 and executable on the processor 52, the computer program, when executed by the processor, implementing the steps of the above-described method embodiments.
Example II of the device
The embodiment of the present invention provides a computer-readable storage medium, on which an implementation program for information transmission is stored, and when the program is executed by the processor 52, the steps in the above method embodiments are implemented.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; however, these modifications or alternative technical solutions in the embodiments of the present invention do not depart from the scope of the present invention.

Claims (10)

1. A method for presenting data, comprising,
s1, creating a model to obtain configuration data of the model;
s2, preprocessing the configuration data of the model;
s3, calling a data interface to obtain model external input data;
s4, processing the external input data of the model to obtain processed data;
and S5, displaying the processed data to an interface.
2. The method according to claim 1, wherein S1 specifically comprises: entering a model configuration interface at a web end to create a model, wherein options of creating the model comprise: and after the creation is completed, calling an interface and storing the interface into a background database to obtain the configuration data of the model.
3. The method according to claim 2, wherein the S2 specifically comprises:
s21, judging whether the object has an API, if not, indicating that the object value set does not need to be acquired in a request mode;
s22, if the API exists, judging which access parameters needed by the request exist according to the association type; judging what the API is specifically, if the API is the specific uniform resource locator, directly acquiring a set bindingArr of the corresponding model value through a specific request; if the API is a general uniform resource locator, a general calling mode is used for obtaining a set bindingArr of the model value, and the processing of model external input data is facilitated.
4. The method according to claim 3, wherein the S4 specifically comprises:
after the preprocessing of the model is finished, an interface for obtaining a model value is called, a set recordsArr and an attribute information object propertyInfoDic of the model value object are obtained, the set of the model object and the set of the model value object are traversed in a double-layer mode, the value object and the model object are obtained, firstly, if the propertyInfoDic exists, a specific value code is obtained from the value object through the code of the model object, a dictionary where the value is located is found in the propertyInfoDic, a final dictionary is found through the value code and the dictionary where the value is located, finally, a value which can be displayed by the last model object is found through the bindingField of the model object, if the propertyInfoDic does not exist, the value code is found through traversing the bindingArr of the model, then, a keyword is used as the value of the model, the value which can be displayed by the last model object is found through the bindingField of the model object, the code and the found value are stored as a key to form a set to be returned, and the set of the dictionary value is obtained.
5. The method according to claim 4, wherein the S5 specifically comprises:
pre-storing a plurality of UI standard template interfaces, circularly obtaining each model data according to the model object set, selecting a corresponding UI template according to the display type of the model data, arranging according to the data sequence,
binding the model data to a UI template, judging whether the model data can be edited, displayed or hidden, clicked or not and font color according to the model property, then obtaining the displayed data in the set of model values according to the code of the model object, and finally rendering the obtained displayed data.
6. A data presentation system, comprising,
a creation module: the method comprises the steps of establishing a model to obtain configuration data of the model;
a preprocessing module: the system is used for preprocessing the configuration data of the model;
a calling module: the data interface is used for calling to obtain the external input data of the model;
a processing module: the data processing device is used for processing the external input data of the model to obtain processed data;
a display module: for presenting the processed data to an interface.
7. The system of claim 6, wherein the creation module is specifically configured to: entering a model configuration interface at a web end to create a model, wherein options of creating the model comprise: and after the creation is completed, calling an interface and storing the interface into a background database to obtain the configuration data of the model.
8. The system of claim 7, wherein the preprocessing module is specifically configured to:
judging whether the object has an API, if not, indicating that the object value set does not need to be acquired in a request mode;
if the API exists, judging which access parameters needed by the request are needed according to the association type; judging what the API is specifically, if the API is the specific uniform resource locator, directly acquiring a set bindingArr of the corresponding model value through a specific request; if the API is a general uniform resource locator, acquiring a set bindingArr of the model value in a general calling mode, so that the processing of the external input data of the model is facilitated;
the processing module is specifically configured to:
after preprocessing of the model is completed, then an interface for obtaining model values is called to obtain a set recordsArr of the model value object and a property information object propertyindic, the set of the model object and the set of the model value object are traversed in a double-layer mode, the value object and the model object are obtained, firstly, if the propertyindic exists, a specific value code is obtained in the value object through the code of the model object, a dictionary where the value is located is found in the propertyindic, a final dictionary is found through the value code and the dictionary where the value is located, finally, a value which can be displayed by the final model object is found through the bindingField of the model object, if the propertyindic does not exist, the value code of the model is found through traversing the bindArr of the model, then, a keyword is used as the value of the model, the value which can be displayed by the last model object is found through the bindingField of the model object, finally, the code of the model and the found value are stored as a key and returned to form a set of the dictionary, and a set of the dictionary value is obtained;
the display module is specifically configured to:
pre-storing a plurality of UI standard template interfaces, circularly obtaining each model data according to the model object set, selecting a corresponding UI template according to the display type of the model data, arranging according to the data sequence,
binding the model data to a UI template, judging whether the model data can be edited, displayed or hidden, clicked or not and font color according to the model property, then obtaining the displayed data in the set of model values according to the code of the model object, and finally rendering the obtained displayed data.
9. A data presentation device, comprising: memory, processor and computer program stored on the memory and executable on the processor, which computer program, when executed by the processor, carries out the steps of the data presentation method as claimed in any one of claims 1 to 5.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a program for implementing information transfer, which when executed by a processor implements the steps of the data presentation method according to any one of claims 1 to 5.
CN202211062978.1A 2022-08-31 2022-08-31 Data display method, system and device Pending CN115291875A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211062978.1A CN115291875A (en) 2022-08-31 2022-08-31 Data display method, system and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211062978.1A CN115291875A (en) 2022-08-31 2022-08-31 Data display method, system and device

Publications (1)

Publication Number Publication Date
CN115291875A true CN115291875A (en) 2022-11-04

Family

ID=83832285

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211062978.1A Pending CN115291875A (en) 2022-08-31 2022-08-31 Data display method, system and device

Country Status (1)

Country Link
CN (1) CN115291875A (en)

Similar Documents

Publication Publication Date Title
JP7316349B2 (en) Customizable enterprise automation test framework
CN110472068A (en) Big data processing method, equipment and medium based on heterogeneous distributed knowledge mapping
CN110333863B (en) Method and device for generating and displaying applet page
CN106354483B (en) Data processing method and device and electronic equipment
CN110705237B (en) Automatic document generation method, data processing device and storage medium
GB2423387A (en) Application-Generic Sequence Diagram Generator Driven by a Non-Proprietary Language
CN108255837B (en) SQL parser and method
CN112328489B (en) Test case generation method and device, terminal equipment and storage medium
US20130117656A1 (en) Conversion of web template designs
CN111309313A (en) Method for quickly generating HTML (hypertext markup language) and storing form data
CN108664546B (en) XML data structure conversion method and device
US9053450B2 (en) Automated business process modeling
CN110308907B (en) Data conversion method and device, storage medium and electronic equipment
CN114168119B (en) Code file editing method, device, electronic equipment and storage medium
CN115291875A (en) Data display method, system and device
CN114489639A (en) File generation method, device, equipment and storage medium
CN112417827A (en) Method and device for editing and displaying online document, electronic equipment and storage medium
CN112328246A (en) Page component generation method and device, computer equipment and storage medium
CN112860584A (en) Test method and device based on workflow model
CN111221610A (en) Page element acquisition method and device
CN116755684B (en) OAS Schema generation method, device, equipment and medium
CN112749186B (en) Data processing method, device, electronic equipment and computer readable storage medium
CN116185380A (en) Method, equipment and storage medium for realizing static report designer based on luckyleet
CN117896373A (en) File uploading method, device, equipment and medium
CN115905182A (en) Model knowledge relationship construction method and related equipment

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