CN118170375A - Method and device for generating management page and storage medium - Google Patents
Method and device for generating management page and storage medium Download PDFInfo
- Publication number
- CN118170375A CN118170375A CN202410270537.3A CN202410270537A CN118170375A CN 118170375 A CN118170375 A CN 118170375A CN 202410270537 A CN202410270537 A CN 202410270537A CN 118170375 A CN118170375 A CN 118170375A
- Authority
- CN
- China
- Prior art keywords
- data
- target
- data field
- management
- service
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/38—Creation or generation of source code for implementing user interfaces
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/36—Software reuse
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The embodiment of the application provides a method and a device for generating a management page and a storage medium. The method is applied to developing components and comprises the following steps: acquiring target business data; generating an interface frame of the management page based on the included interface frame code; based on the interface frame, determining a data display format corresponding to each data field according to the data type and the first corresponding relation of each data field included in the target service data; according to the data types of the data fields and the first mapping relation, determining the display positions in the tables corresponding to the data types of the data fields; and displaying each data field in the form according to the data display format and the display position corresponding to the data type of each data field to obtain a management page corresponding to the target service data. Therefore, the code quantity required to be written in the development process of the management page can be reduced, and the generation efficiency of the management page is improved.
Description
Technical Field
The present application relates to the field of page generation technologies, and in particular, to a method and apparatus for generating a management page, and a storage medium.
Background
With the rapid development of internet technology, the application program level in each business scene is infinite. To facilitate management of business data in the database of each application, a management page for each business data may be generated. Thus, the management page realizes the management operations such as new addition (create), modification (update), search (list) and deletion (delete) of the business data, and improves the data management efficiency.
In the prior art, developers have used various types of interface development framework Components to generate management pages for business data, for example, ANT DESIGN Pro Components. However, in the related art, a developer needs to write a large amount of code for implementing import of service data and data management logic of the service data. Therefore, the code quantity required to be written in the development process of the management page is large, and the generation efficiency of the management page is low.
Disclosure of Invention
The embodiment of the application aims to provide a method, a device and a storage medium for generating a management page, so as to reduce the code amount required to be written in the development process of the management page and improve the generation efficiency of the management page. The specific technical scheme is as follows:
In a first aspect, an embodiment of the present application provides a method for generating a management page, which is applied to a development component; the method comprises the following steps:
Acquiring the target service data, wherein the target service data is determined based on an operation instruction sent by a user;
Running a development component for generating the management page, so that the development component executes the following steps:
Generating an interface frame of the management page based on the included interface frame code, wherein the development component further comprises a data type of a predefined data field, a first corresponding relation between each data type and a data display format, and a first mapping relation between service data and a table, and the first mapping relation comprises a corresponding relation between the data type of the data field in the service data and a display position in the table;
Based on the interface frame, determining a data display format corresponding to each data field according to the data type of each data field included in the target service data and the first corresponding relation;
Determining a display position in the table corresponding to the data type of each data field according to the data type of each data field and the first mapping relation;
and displaying the data fields in the table according to the data display format and the display position corresponding to the data types of the data fields to obtain the management page corresponding to the target service data.
Optionally, in a specific implementation manner, the development component further includes a predefined management operation supported by the management page, and a second correspondence between each management operation and a predefined mapping relationship, where the predefined mapping relationship includes the first mapping relationship, the second mapping relationship, and a third mapping relationship, and the second mapping relationship includes a correspondence between a data type of a data field in the service data and a data type in the form, and the third mapping relationship includes a correspondence between a data type in the form and a data type of a data field in the service data;
The method further comprises the steps of:
When an operation instruction aiming at a target data field in the management page is detected, determining a target mapping relation corresponding to the management operation from the first mapping relation, the second mapping relation and the third mapping relation based on the management operation indicated by the operation instruction and the second corresponding relation;
And updating the management page and/or the target service data based on the management operation and the target mapping relation.
Optionally, in a specific implementation manner, the predefined management operation is stored in a logic layer of the development component; the mapping relation is a mapping function predetermined based on a preset protocol;
the updating the management page and/or the target service data based on the management operation and the target mapping relationship includes:
and calling an objective function corresponding to the objective mapping relation based on the management operation and the preset protocol which are predefined in the logic layer, and updating the management page and/or the objective service data.
Optionally, in a specific implementation manner, the target service data is stored in a service server, and the management operation is a search operation;
The step of calling the objective function corresponding to the objective mapping relation based on the management operation and the preset protocol predefined in the logic layer to update the management page and/or the objective service data includes:
generating an index request carrying the target data field based on a processing flow corresponding to a predefined search operation in the logic layer, and sending the index request to the service server;
Receiving service data corresponding to the target data field returned by the service server based on the index request;
And according to the data type of each data field in the service data and the preset protocol, calling an objective function corresponding to the first mapping relation, determining the display position in the table corresponding to each data field, and displaying each data field in the table according to the data display format and the display position corresponding to the data type of each data field to obtain a management page corresponding to the service data.
Optionally, in a specific implementation manner, the target service data is stored in a service server, and the management operation is a new operation, a modification operation or a deletion operation;
The method further comprises the steps of:
when an operation instruction aiming at a target data field in the table is detected, generating a form for displaying the target data field according to a display mode corresponding to the data type of the target data field;
When detecting an operation instruction for a target data field in the management page, determining, based on a management operation indicated by the operation instruction and the second correspondence, a target mapping relationship corresponding to the management operation from the first mapping relationship, the second mapping relationship and the third mapping relationship, including:
And when an operation instruction aiming at the target data field in the form is detected, determining a target mapping relation corresponding to the management operation from the first mapping relation, the second mapping relation and the third mapping relation based on the management operation indicated by the operation instruction and the second corresponding relation.
Optionally, in a specific implementation manner, the management operation is a new operation;
The step of calling the objective function corresponding to the objective mapping relation based on the management operation and the preset protocol predefined in the logic layer to update the management page and/or the objective service data includes:
acquiring the newly added target data field in the form based on a predefined processing flow corresponding to the newly added operation in the logic layer;
According to the data type of the target data field and the preset protocol, calling a target function corresponding to the third mapping relation, generating a new adding request carrying the target data field, and sending the new adding request to the service server;
and receiving a new receipt message returned by the service server based on the new request.
Optionally, in a specific implementation manner, the management operation is a modification operation or a deletion operation;
When detecting an operation instruction for a target data field in the table, generating a form for displaying the target data field according to a display mode corresponding to the data type of the target data field, including:
when an operation instruction aiming at a target data field in the table is detected, generating a first data acquisition request carrying a field identification of the target data field, and sending the first data acquisition request to the service server;
And receiving the target data field returned by the service server based on the field identification, calling a target function corresponding to the second mapping relation according to the data type of the target data field and the preset protocol, and generating a form for displaying the target data field according to a display mode corresponding to the data type of the target data field.
Optionally, in a specific implementation manner, the management operation is a modification operation;
The step of calling the objective function corresponding to the objective mapping relation based on the management operation and the preset protocol predefined in the logic layer to update the management page and/or the objective service data includes:
acquiring modified target data fields in the form based on a processing flow corresponding to a predefined modification operation in the logic layer;
According to the data type of the target data field and the preset protocol, calling an objective function corresponding to the third mapping relation, generating a data identifier carrying service data corresponding to the modified target data field and a data modification request of the service data, and sending the data modification request to the service server;
And receiving a modified receipt message returned by the service server based on the service data.
Optionally, in a specific implementation manner, the management operation is a delete operation;
The step of calling the objective function corresponding to the objective mapping relation based on the management operation and the preset protocol predefined in the logic layer to update the management page and/or the objective service data includes:
Based on a processing flow corresponding to a predefined deleting operation in the logic layer, calling a target function corresponding to the third mapping relation according to the data type of the target data field and the preset protocol, generating a data deleting request carrying service data corresponding to the target data field and field identification of the target data field, and sending the data deleting request to the service server;
And receiving a deletion receipt message returned by the service server based on the service data.
Optionally, in a specific implementation manner, the target service data is stored in a service server;
The obtaining the target service data includes:
generating a second data acquisition request carrying a storage address of the target service data in the service server;
And sending the second data acquisition request to the service server, and receiving the target service data returned by the server based on the storage address.
In a second aspect, an embodiment of the present application provides a device for generating a management page, where the device includes:
the data acquisition module is used for acquiring the target service data, wherein the target service data is determined based on an operation instruction sent by a user;
The interface frame generation module is used for generating an interface frame of the management page based on the included interface frame codes, wherein the development component further comprises a data type of a predefined data field, a first corresponding relation between each data type and a data display format and a first mapping relation between service data and a table, and the first mapping relation comprises a corresponding relation between the data type of the data field in the service data and a display position in the table;
the display format determining module is used for determining a data display format corresponding to each data field according to the data type of each data field included in the target service data and the first corresponding relation based on the interface frame;
The display position determining module is used for determining the display position in the table corresponding to the data type of each data field according to the data type of each data field and the first mapping relation;
And the page generation module is used for displaying the data fields in the table according to the data display format and the display position corresponding to the data types of the data fields to obtain the management page corresponding to the target service data.
Optionally, in a specific implementation manner, the development component further includes a predefined management operation supported by the management page, and a second correspondence between each management operation and a predefined mapping relationship, where the predefined mapping relationship includes the first mapping relationship, the second mapping relationship, and a third mapping relationship, and the second mapping relationship includes a correspondence between a data type of a data field in the service data and a data type in the form, and the third mapping relationship includes a correspondence between a data type in the form and a data type of a data field in the service data; the apparatus further comprises:
The relation determining module is used for determining a target mapping relation corresponding to the management operation from the first mapping relation, the second mapping relation and the third mapping relation based on the management operation indicated by the operation instruction and the second corresponding relation when the operation instruction aiming at the target data field in the management page is detected;
and the data updating module is used for updating the management page and/or the target service data based on the management operation and the target mapping relation.
Optionally, in a specific implementation manner, the predefined management operation is stored in a logic layer of the development component; the mapping relation is a mapping function predetermined based on a preset protocol;
the data updating module comprises:
and the data updating sub-module is used for calling an objective function corresponding to the objective mapping relation based on the management operation and the preset protocol which are predefined in the logic layer, and updating the management page and/or the objective service data.
Optionally, in a specific implementation manner, the target service data is stored in a service server, and the management operation is a search operation;
the data updating sub-module is specifically configured to:
generating an index request carrying the target data field based on a processing flow corresponding to a predefined search operation in the logic layer, and sending the index request to the service server;
Receiving service data corresponding to the target data field returned by the service server based on the index request;
And according to the data type of each data field in the service data and the preset protocol, calling an objective function corresponding to the first mapping relation, determining the display position in the table corresponding to each data field, and displaying each data field in the table according to the data display format and the display position corresponding to the data type of each data field to obtain a management page corresponding to the service data.
Optionally, in a specific implementation manner, the target service data is stored in a service server, and the management operation is a new operation, a modification operation or a deletion operation;
the apparatus further comprises:
The form generation module is used for generating a form for displaying the target data field according to a display mode corresponding to the data type of the target data field when an operation instruction aiming at the target data field in the table is detected;
The relation determining module is specifically configured to:
And when an operation instruction aiming at the target data field in the form is detected, determining a target mapping relation corresponding to the management operation from the first mapping relation, the second mapping relation and the third mapping relation based on the management operation indicated by the operation instruction and the second corresponding relation.
Optionally, in a specific implementation manner, the management operation is a new operation;
the data updating sub-module is specifically configured to:
acquiring the newly added target data field in the form based on a predefined processing flow corresponding to the newly added operation in the logic layer;
According to the data type of the target data field and the preset protocol, calling a target function corresponding to the third mapping relation, generating a new adding request carrying the target data field, and sending the new adding request to the service server;
and receiving a new receipt message returned by the service server based on the new request.
Optionally, in a specific implementation manner, the management operation is a modification operation or a deletion operation;
the form generation module is specifically configured to:
when an operation instruction aiming at a target data field in the table is detected, generating a first data acquisition request carrying a field identification of the target data field, and sending the first data acquisition request to the service server;
And receiving the target data field returned by the service server based on the field identification, calling a target function corresponding to the second mapping relation according to the data type of the target data field and the preset protocol, and generating a form for displaying the target data field according to a display mode corresponding to the data type of the target data field.
Optionally, in a specific implementation manner, the management operation is a modification operation;
the data updating sub-module is specifically configured to:
acquiring modified target data fields in the form based on a processing flow corresponding to a predefined modification operation in the logic layer;
According to the data type of the target data field and the preset protocol, calling an objective function corresponding to the third mapping relation, generating a data identifier carrying service data corresponding to the modified target data field and a data modification request of the service data, and sending the data modification request to the service server;
And receiving a modified receipt message returned by the service server based on the service data.
Optionally, in a specific implementation manner, the management operation is a delete operation;
the data updating sub-module is specifically configured to:
Based on a processing flow corresponding to a predefined deleting operation in the logic layer, calling a target function corresponding to the third mapping relation according to the data type of the target data field and the preset protocol, generating a data deleting request carrying service data corresponding to the target data field and field identification of the target data field, and sending the data deleting request to the service server;
And receiving a deletion receipt message returned by the service server based on the service data.
Optionally, in a specific implementation manner, the target service data is stored in a service server;
the data acquisition module is specifically configured to:
generating a second data acquisition request carrying a storage address of the target service data in the service server;
And sending the second data acquisition request to the service server, and receiving the target service data returned by the server based on the storage address.
In a third aspect, an embodiment of the present application provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus;
A memory for storing a computer program;
And a processor for implementing any of the above-described method steps when executing a program stored on the memory.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium having a computer program stored therein, which when executed by a processor, implements any of the above-described method steps.
In a fifth aspect, embodiments of the present application also provide a computer program product comprising instructions which, when run on a computer, cause the computer to perform any of the method steps described above.
The embodiment of the application has the beneficial effects that:
In the foregoing, it may be seen that, in the solution provided by the embodiment of the present application, a development component for generating a management page may be developed in advance, where the development component includes an interface frame code, a data type of a predefined data field, a first correspondence between each predefined data type and a data display format, and a first mapping relationship between service data and a table, where the first mapping relationship includes a correspondence between a data type of a data field in service data and a display position in the table.
Thus, when the management page is generated, the user can send an operation instruction to the development component, and the development component can acquire target business data based on the operation instruction sent by the user; then, generating an interface frame for managing the page based on the included interface frame code; based on the interface frame, determining a data display format corresponding to each data field according to the data type and the first corresponding relation of each data field included in the target service data; according to the data types of the data fields and the first mapping relation, determining the display positions in the tables corresponding to the data types of the data fields; and displaying each data field in the table according to the data display format and the display position corresponding to the data type of each data field, thereby obtaining a management page corresponding to the target service data.
Based on the scheme provided by the embodiment of the application, the development component developed in advance comprises the interface frame code of the management page and the data types of the predefined data fields, the first corresponding relation between each data type and the data display format and the first mapping relation between the business data and the table, so that when the development component is utilized to generate the management page of the business data, the development component is only required to be operated, other codes are not required to be additionally written, and the management page of the business data can be generated, thereby reducing the code amount required to be written in the development process of the management page and improving the generation efficiency of the management page.
Drawings
In order to more clearly illustrate the embodiments of the application or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the application, and other embodiments may be obtained according to these drawings to those skilled in the art.
FIG. 1 is a flow chart of a method for generating a management page according to an embodiment of the present application;
FIG. 2 is a flowchart illustrating another method for generating a management page according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a mapping function of each mapping relationship according to an embodiment of the present application;
FIG. 4 is a schematic diagram of a processing flow of each management operation according to an embodiment of the present application;
fig. 5 is a flowchart illustrating an example of a method for generating a management page according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a device for generating a management page according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. Based on the embodiments of the present application, all other embodiments obtained by the person skilled in the art based on the present application are included in the scope of protection of the present application.
In order to reduce the code amount required to be written in the development process of the management page and improve the generation efficiency of the management page, the embodiment of the application provides a generation method of the management page.
The method can be suitable for various application scenes of a management page needing to generate business data, for example, in factories, and the management page of the work piece data is generated in order to facilitate management of the work piece data; in school, in order to improve student data management efficiency, a management page of student data is generated, and the like.
The method is applied to a development component, and the development component can be installed on various electronic devices; in addition, the electronic device for installing the development component and the electronic device for developing the development component can be the same electronic device or different electronic devices; the electronic device on which the development component is installed may be the same electronic device as the electronic device for storing the service data, or may be a different electronic device.
Based on this, the embodiment of the present application does not specifically limit the application scenario and execution subject of the method.
The generation method of the management page provided by the embodiment of the application is applied to the development assembly; the method can comprise the following steps:
Acquiring the target service data, wherein the target service data is determined based on an operation instruction sent by a user;
Generating an interface frame of the management page based on the included interface frame code, wherein the development component further comprises a data type of a predefined data field, a first corresponding relation between each data type and a data display format, and a first mapping relation between service data and a table, and the first mapping relation comprises a corresponding relation between the data type of the data field in the service data and a display position in the table;
Based on the interface frame, determining a data display format corresponding to each data field according to the data type of each data field included in the target service data and the first corresponding relation;
Determining a display position in the table corresponding to the data type of each data field according to the data type of each data field and the first mapping relation;
and displaying the data fields in the table according to the data display format and the display position corresponding to the data types of the data fields to obtain the management page corresponding to the target service data.
In the foregoing, it may be seen that, in the solution provided by the embodiment of the present application, a development component for generating a management page may be developed in advance, where the development component includes an interface frame code, a data type of a predefined data field, a first correspondence between each predefined data type and a data display format, and a first mapping relationship between service data and a table, where the first mapping relationship includes a correspondence between a data type of a data field in service data and a display position in the table.
Thus, when the management page is generated, the user can send an operation instruction to the development component, and the development component can acquire target business data based on the operation instruction sent by the user; then, generating an interface frame for managing the page based on the included interface frame code; based on the interface frame, determining a data display format corresponding to each data field according to the data type and the first corresponding relation of each data field included in the target service data; according to the data types of the data fields and the first mapping relation, determining the display positions in the tables corresponding to the data types of the data fields; and displaying each data field in the table according to the data display format and the display position corresponding to the data type of each data field, thereby obtaining a management page corresponding to the target service data.
Based on the scheme provided by the embodiment of the application, the development component developed in advance comprises the interface frame code of the management page and the data types of the predefined data fields, the first corresponding relation between each data type and the data display format and the first mapping relation between the business data and the table, so that when the development component is utilized to generate the management page of the business data, the development component is only required to be operated, other codes are not required to be additionally written, and the management page of the business data can be generated, thereby reducing the code quantity required to be written in the development process of the management page and improving the generation efficiency of the management page.
The following describes a method for generating a management page according to an embodiment of the present application with reference to the accompanying drawings.
The generation method of the management page provided by the embodiment of the application is applied to the development component.
In various service scenarios, the data volume of service data in the service scenario is huge, and the service data may change in the process of executing the service, based on which the management of the service data is complex and inefficient. With the rapid development of internet technology, in order to improve the management efficiency of service data, for various service scenarios, a management page related to service data in the service scenario may be generated, and the service data is managed through the management page, so that the management efficiency of service data may be improved.
In order to improve the generation efficiency of the management page, for various types of business data, a development component for generating the management page of the type of business data, that is, an SDK (Software Development Kit ) for generating the management page, may be developed in advance. For example, for student data, a development component for generating a management page of student data may be developed in advance; for the logistics cargo data, a development component or the like for generating a management page of the logistics cargo data may be developed in advance.
The traffic data may comprise a plurality of data entities, each data entity comprising at least one data field. Taking student entrance information as an example, the data relationships of the business data, data entities, and data fields are shown in table 1 below.
TABLE 1
As shown in table 1, the business data is student entrance information, and the business data includes a plurality of data entities, and each data entity includes a plurality of data fields, namely, name, age, entrance score and contact way. Specifically, the data fields of the data entity 1 include name 1, age 1, entrance score 1 and contact 1; the data fields of data entity 2 include name 2, age 2, entrance score 2, and contact 2.
And, the management page of the service data may include an interface frame and respective display positions in the interface for displaying respective data fields of respective service entities in the service data. Wherein each display location is located in a table in the interface frame. Each row in the table corresponds to one data entity in the business data, and each column in the table corresponds to a data field of the same data type in the respective data entity. And each data field in the data fields of the same data type is displayed in the display position corresponding to the data field in the table according to the data display format corresponding to the data type of the data field.
Based on this, in developing a development component for generating a management page, in order to improve the generation efficiency of the management page, an interface frame code for generating an interface frame of the management page may be written in advance in the development component, and the data types of the data fields and the first correspondence relationship of the respective data types and the data presentation format are defined in advance.
In developing a development component for generating a management page, the data types of the respective data fields may be set according to the data fields possibly included in the service data of the management page to be generated, for example: string type, enumeration type, boolean type, time type, picture type, etc.
In general, the format of each data type in the storage space storing the service data is preset, and further, for the set data type, the data display format corresponding to each data type may be set correspondingly, where for each data type, the data display format of the data field of the data type in the table may be set.
Optionally, if the management page includes a form, for each data type, a data presentation format of a data field of the data type in the form and a data presentation format of a data field of the data type in the form may be set.
For example, for data fields of the picture type, the URL ((Uniform Resource Locator, uniform resource locator) of each data field, i.e. the data presentation format of each data field in the storage area is a character string) may be stored in the storage area, then the data presentation format of the picture type data field in the table may be set to png (portable network graphics, portable network picture).
For another example, for enumerated data fields, the data presentation format for each data field within the storage area is an enumerated value, and each enumerated value is stored in an incremented digital form; then, the data presentation format of the enumerated data fields in the table may be set to a string representing the meaning of the enumerated value, and the data presentation format of the enumerated data fields in the table may be set to an array comprising the enumerated value and the meaning of the enumerated value.
In addition, since the display positions of the data fields of each data type in the table are fixed correspondingly, when the management page of the service data is generated, each data field of each data entity in the service data is filled in the display position corresponding to the data type of each data field in the table. Based on this, in order to further improve the generation efficiency of the management page, a correspondence between the data type of the data field in the service data and the display position in the table may be predefined, and the correspondence may be used as the first mapping relationship between the service data and the table.
Optionally, the first mapping relationship may further include: for a certain data field, a format conversion relation between a display format corresponding to a data type of the data field in the service data and a display format corresponding to a display position in a table is predefined, for example, for student entrance time, the display format corresponding to the data type of the data field in the service data is a timestamp, and the display format corresponding to the display position in the table is a XXXX-XX-XX type character string, then the first mapping relation comprises the format conversion relation between the timestamp and the XXXXXX-XX-XX type character string.
That is, the development component for generating the management page may include an interface frame code for generating an interface frame of the management page, and may further include a data type of a predefined data field, a first correspondence between each data type and a data presentation format, and a first mapping relationship that characterizes a correspondence between a data type of a data field in the service data and a presentation position in the table.
Alternatively, the interface frame code of the interface frame for generating the management page may be code of a commonly used interface frame development component. For example, the interface framework development component is ANT DESIGN components, and when the development component for generating the management page is developed, the secondary packaging of the ANT DESIGN components is realized through the predefined data types of the data fields, the first corresponding relation between each data type and the data display format, and the first mapping relation representing the corresponding relation between the data types of the data fields in the service data and the display positions in the table. Thus, in the embodiment of the present application, the development component for generating the management page that is developed in advance is a component obtained by secondarily packaging ANT DESIGN components.
Fig. 1 is a flow chart of a method for generating a management page according to an embodiment of the present application, as shown in fig. 1, the method may include the following steps S101 to S105:
S101: acquiring target business data;
Wherein the target service data is determined based on an operation instruction sent by the user.
The development component may be installed in advance in an electronic device when it is desired to generate a management page of business data with the electronic device. For the target service data, when desiring to generate a management page regarding the target service data, the user may transmit an operation instruction for instructing the development component to generate the management page of the target service data to the electronic device on which the development component for generating the management page developed in advance is installed.
The operation instruction may carry a data identifier of the target service data, and the data identifier is used for uniquely identifying the target service data, for example, a data name, a data number, a data storage address, etc., which are all reasonable, and are not limited in the embodiment of the present application.
Alternatively, the electronic device installed with the development component for generating the management page developed in advance may display, in the display interface, a management page operation control labeled with the data identifier of the target service data, and when it is desired to generate the management page for the target service data, the user may send, to the development component, an operation instruction for instructing to generate the management page for the target service data by clicking the management page operation control.
Alternatively, the client device may communicate with an electronic device installed with a development component for generating a management page developed in advance, and when desiring to generate a management page related to target service data, the user may perform a click operation on a data identifier of the target service data displayed by the client device, so that when detecting the click operation, the client device may generate an operation instruction carrying the data identifier of the target service data and indicating the management page for generating the target service data, and send the operation instruction to the development component.
In this way, the development component can receive the operation instruction, and further, in response to the operation instruction, obtain the target business data of the management page to be generated.
Optionally, when the electronic device for storing the target service data of the management page to be generated and the electronic device provided with the development component for generating the management page developed in advance are the same electronic device, after receiving the operation instruction, the development component may read the target service data with the data identifier from the data stored in the electronic device where the development component is located based on the data identifier carried by the operation instruction.
Optionally, when the electronic device for storing the target service data of the management page to be generated and the electronic device provided with the development component for generating the management page developed in advance are different electronic devices, after receiving the operation instruction, the development component may generate a data request carrying the data identifier based on the data identifier carried by the operation instruction, and send the data request to the electronic device for storing the target service data, and further, receive the target service data returned by the electronic device for storing the target service data based on the data request.
Further, when the target service data is obtained, the development component may generate a management page of the target service data based on the target service data in response to the operation instruction.
S102: based on the included interface frame code, an interface frame is generated that manages the page.
The development component further comprises a data type of the predefined data field, a first corresponding relation between each data type and a data display format, and a first mapping relation between the service data and the table, wherein the first mapping relation comprises a corresponding relation between the data type of the data field in the service data and a display position in the table.
S103: based on the interface frame, determining a data display format corresponding to each data field according to the data type and the first corresponding relation of each data field included in the target service data.
S104: and determining the display position in the table corresponding to the data type of each data field according to the data type of each data field and the first mapping relation.
S105: and displaying each data field in the form according to the data display format and the display position corresponding to the data type of each data field to obtain a management page corresponding to the target service data.
As described above, the development component includes both the interface frame code and the predefined data types of the data fields, the first correspondence between each data type and the data display format, and the first mapping relationship between the service data and the table, where the first mapping relationship includes the correspondence between the data types of the data fields in the service data and the display positions in the table.
After the target service data is acquired, the development component may generate an interface frame of a management page of the target service data based on a pre-developed interface frame code, where the generated interface frame includes a table for displaying each data field in the target service data.
Optionally, the frame format requirement of the interface frame carrying the management page to be generated in the operation instruction may be required, for example, the frame number of the target candidate interface frame in the candidate interface frames included in the development component may be carried in the operation instruction.
Alternatively, in the process of running the development component, candidate subframes of each interface partition in the interface frame can be output based on pre-developed interface frame codes, so that a user can determine a target subframe in each candidate subframe, and a selection instruction about the target subframe is sent to the development component by clicking the target subframe.
Then, based on the interface framework, the development component can determine the data type of each data field included in the target service data by predefining the data type of the data field. Further, according to the data type of each data field included in the target service data and the first corresponding relation between each data type and the data display format, the data display format corresponding to each data field in the target service data can be determined, that is, the data display format of each data field in the target service data in the table of the management page is determined.
Then, the development component can determine the display position of each data field in the table according to the data type of each data field and a first mapping relation for representing the corresponding relation between the data type of the data field in the business data and the display position in the table. Therefore, the development component can display each data field of the target service data in the table of the management page according to the data display format corresponding to the data type of each data field and the determined display position of each data field, thereby obtaining the management page corresponding to the target service data.
Therefore, when the development component is utilized to generate the management page of the service data, the development component is only required to be operated, other codes are not required to be additionally written, and the management page of the service data can be generated, so that the code quantity required to be written in the development process of the management page is reduced, and the generation efficiency of the management page is improved.
In one case, the business data of the management page to be generated may be stored in a business server, and the business server is not the same electronic device as the electronic device in which the development component is installed. In this case, the development component may first acquire the target business data stored in the business server when generating the management page of the target business data.
Optionally, in a specific implementation manner, the service data is stored in a service server; the step S101 may include the following steps 11-12:
step 11: generating a second data acquisition request carrying a storage address of target service data in a service server;
Step 12: and sending a second data acquisition request to the service server, and receiving target service data returned by the server based on the storage address.
In this embodiment, in some service scenarios, the target service data is stored in the service server, and in order to facilitate management of the service data in the service server, the electronic device pre-installed with the development component for generating the management page may be used to generate the management page of the target service data, so that the user may manage the target service data on the electronic device through the management page.
Since the target service data is stored in the service server, the development component may first acquire the target service data before generating the management page for the target service data.
That is, the development component may generate a second data acquisition request carrying the storage address of the targeted business data in the business server and send the second data acquisition request to the business server.
Alternatively, the storage address of the target service data in the service server may be a URL, and correspondingly, the second data acquisition request may be an http (hypertext transfer protocol ) request carrying the URL.
Alternatively, the development component may include a data transmission interface, and when it is desired to generate a management page of the target service data by using the development component, an operation instruction carrying a storage address of the target service data in the service server and used for instructing the development component to generate the management page of the target service data may be generated and sent to the development component. After receiving the operation instruction, the development component can send the storage address of the target service data in the service server to the development component through the data transmission interface of the development component, so that the development component can generate a second data acquisition request containing the storage address and send the second data acquisition request to the service server.
Alternatively, when developing a development component for generating a management page of the target service data, a storage address of the target service data in the service server may be written in the development component. Upon receiving an operation instruction sent by the user, the development component may generate a second data acquisition request including the storage address based on the storage address, and send the second data acquisition request to the service server.
When the service server receives the second data acquisition request, the service server may read the target service data based on the storage address included in the second data acquisition request, and return the target service data to the development component. Thus, the development component can receive the target service data and further generate a management page of the target service data based on the target service data.
It can be seen that, in the embodiment of the present application, when the electronic device where the development component is located does not store the target service data of the management page to be generated, the development component may acquire the target service data through the storage address of the target service data. Therefore, the whole process of acquiring the target service data and generating the management page of the target service data can be realized by operating the development component, and the generation efficiency of the management page of the target service data is further improved.
The generated management page of the service data can manage the service data, namely, a user can perform management operations such as adding operation, modifying operation, searching operation or deleting operation on the service data through the management page. Then, in order to generate the management page of the service data, code for implementing the above management operation is also written. In order to reduce the amount of code that needs to be written when generating a management page, management operations supported by the management page may be predefined in a developed development component.
Optionally, in a specific implementation manner, the development component further includes management operations supported by a predefined management page, and a second corresponding relationship between each management operation and a predefined mapping relationship, where the predefined mapping relationship includes a first mapping relationship, a second mapping relationship, and a third mapping relationship, the second mapping relationship includes a corresponding relationship between a data type of a data field in the service data and a data type in the form, and the third mapping relationship includes a corresponding relationship between a data type in the form and a data type of a data field in the service data;
as shown in fig. 2, the method for generating a management page provided in the embodiment of the present application may further include the following steps S201 to S202:
S201: when an operation instruction aiming at a target data field in a management page is detected, determining a target mapping relation corresponding to the management operation from the first mapping relation, the second mapping relation and the third mapping relation based on the management operation indicated by the operation instruction and the second corresponding relation;
S202: and updating the management page and/or the target business data based on the management operation and the target mapping relation.
In this particular implementation, in developing a development component for generating a management page, management operations that are supported by the management page that is desired to be generated may be first determined. When developing a development component for generating the management page, management operations supported by the management page may be predefined in the development component.
Because the business data in the management page and the business data in the storage area should be kept consistent in the process of managing the business data by using the management page, namely, when the user updates the business data in the management page, the business data should be updated along with the updating; after updating the service data in the storage area, when the user searches the service data, the service data after updating is searched. Based on this, in the process of managing service data, transmission of data between different display areas is involved.
And, the update operation of the data in the form is usually performed in the form, so that in the process of managing the service data, the data transmission includes at least: transmission between the business data in the storage area and the business data in each display position in the form, transmission between the business data in the storage area and the business data in the form, and transmission between the business data in the form and the business data in the storage area.
Based on this, the data transmission process involved in the data management process can be abstracted as: the first mapping relation, the second mapping relation and the third mapping relation.
The first mapping relationship is as described above, and is not described herein again; the second mapping relationship may include a correspondence between a data type of a data field in the service data and a data type in the form; the third mapping relationship may include a correspondence relationship between a data type in the form and a data type of the data field in the service data.
Further, in the data management process, the data transmission process involved may be different when different management operations are performed. For example, when performing a lookup operation on service data in a management page, the involved data transmission process includes a correspondence between a data type of a data field in the service data and a presentation position in a table, i.e. the lookup operation involves a first mapping relationship; when executing the new operation to the business data in the management page, the related data transmission process comprises the corresponding relation between the data type in the form and the data type of the data field in the business data, namely the searching operation relates to a third mapping relation and the like; accordingly, the modifying operation and the deleting operation both relate to the second mapping relationship and the third mapping relationship.
Based on this, when developing the development component for generating the management page, it is also possible to determine the predefined mapping relationship involved in the operation of each management operation, and define in advance in the development component the second correspondence relationship between each management operation and the predefined mapping relationship.
The predefined mapping relationship comprises a first mapping relationship, a second mapping relationship and a third mapping relationship.
In this way, the development component for generating the management page may further include management operations supported by the predefined management page, and a second correspondence between each management operation and the predefined mapping relationship.
The generated management page of the target business data comprises a control used for executing management operation on the target business data. Thus, when the user wants to operate on the target business data through the generated management page, the user can send an operation instruction aiming at the target data field in the management page to the development component by clicking a corresponding control in the management page. The management operation includes a new operation, a modification operation, a search operation or a deletion operation.
When detecting an operation instruction aiming at a target data field in a management page, the development component can determine a target mapping relation corresponding to the management operation from the first mapping relation, the second mapping relation and the third mapping relation based on the management operation indicated by the operation instruction and a predefined second corresponding relation.
Then, based on the management operation and the target mapping relation corresponding to the management operation, the electronic device can respond to the management operation to update the management page and/or the target business data.
Therefore, in the embodiment of the application, the management operation supported by the management page is predetermined, the data transmission process involved in the implementation process of the management operation is abstracted into the triple mapping of the data structure, the corresponding relation among the management operation, the triple mapping and the target mapping relation in each management operation and the triple mapping is defined in the development component, the management process of the service data can be realized by utilizing the development component, and the code for managing the service data is not required to be independently written when the management page is generated each time, so that the page generation efficiency is improved. In addition, as the data transmission process involved in the implementation process of the management operation is abstracted into triple mapping, the data code writing logic in the process of developing the component is simplified, the development efficiency of the developing component is improved, and the generation efficiency of the management page is further improved.
Optionally, in a specific implementation manner, the predefined management operation is stored in a logic layer of the development component; the mapping relation is a mapping function predetermined based on a preset protocol;
Step S202 above, based on the management operation and the target mapping relationship, updating the management page and/or the target service data may include the following step 21:
step 21: and calling a target function corresponding to the target mapping relation based on a predefined management operation and a preset protocol in the logic layer, and updating a management page and/or target service data.
In this particular implementation, a logical layer may be set in the development component, and predefined management operations may be stored in the logical layer. In order to realize the triple mapping, a mapping function of each mapping relationship may be determined based on a preset protocol, that is, each mapping relationship is a mapping function predetermined based on the preset protocol.
The preset protocol may be a schema protocol, or may be other protocols, which are all reasonable, and the embodiment of the present application is not limited specifically.
The schema protocol is a language for describing and normalizing the logical structure of a document, and functions to define the logical structure of the document and to verify the correctness of the logical structure of the document. The schema protocol supports namespaces and embeds a variety of complex data types and data functions.
For example, as shown in fig. 3, a schema protocol may be utilized to determine a mapping function formatter function of a first mapping relationship, a mapping function forValueGetter function of a second mapping relationship, and a mapping function PARAMGETTER function of a third mapping relationship.
For UML (Unified Modeling Language ) of each Data Type (Data Type), when the Data fields of the Data Type are managed by using the above three mapping functions, an application process can be summarized as a process of inputting a reference into the mapping function to obtain a return value for any one of the mapping functions. When the target service data is stored in the service server, the target service data in the service server is referred to by a formatter function (SERVERVAL), and the return value is the target service data in the table (tableVal); for forValueGetter functions, the entry is the target service data in the service Server (SERVERVAL), and the return value is the target service data in the form (formVal); for PARAMGETTER functions, the entry is the target traffic data in the form (formVal) and the return value is the target traffic data in the traffic Server (SERVERVAL).
In this way, when the development component detects the operation instruction for the target data field in the management page, the development component can determine the target mapping relationship corresponding to the management operation from the first mapping relationship, the second mapping relationship and the third mapping relationship based on the management operation indicated by the operation instruction and the predefined second corresponding relationship.
And then, the development component can call the objective function corresponding to the objective mapping relation based on the predefined management operation in the logic layer and the preset protocol, and further update the management page and/or the objective business data.
Therefore, in the embodiment of the application, the service data can be managed by utilizing the logic layer of the development component and the mapping function when the service data in the management page is operated by storing the predefined management operation in the logic layer and predefining the mapping function corresponding to each mapping relation based on the preset protocol, so that codes in the development component are greatly simplified and the code development efficiency is improved.
When the service data is stored in the service server, the development component also comprises a predefined processing flow of management operation supported by the management page.
As shown in fig. 4, when the management operation is a lookup (list), the processing flow (Service) of the management operation supported by the predefined management page in the development component corresponds to the processing flow of the management operation, which generates an index instruction (pagelndex) based on the data field (params) that is desired to be looked up, and sends the index instruction to the Service server, so that the Service server returns the Service data corresponding to the data field that is desired to be looked up, and it is visible that the lookup operation corresponds to the first mapping relationship. For Student data, for example, when receiving a search instruction (list) for searching for the Student F entrance time F, the development component may generate an index instruction (pagelndex) based on the Student F entrance time F (params), and send the request to the service server, so as to obtain all service data of the Student F (Student) returned by the service server. It can be seen that the processing flow corresponding to the lookup operation involves the first mapping relationship.
When the management operation is new (create), the processing flow corresponding to the management operation is that a new request is generated based on a data field (params) which is expected to be newly added, and the new request is sent to the service server, so that the service server returns a new receipt message (Promise) after newly adding the data field in the service data stored by itself based on the new request. It can be seen that the process flow corresponding to the lookup operation involves the third mapping relationship.
When the management operation is modification (update), the processing flow corresponding to the management operation is that a modification request is generated based on the modified data field (params), the data identifier (id) of the service data corresponding to the data field and the service data (record) corresponding to the data field, and the modification request is sent to the service server, so that the service server returns a modification receipt message (Promise) after modifying the data field in the service data stored by the service server based on the modification request. It can be seen that the processing flow corresponding to the modifying operation involves the second mapping relationship and the third mapping relationship.
When the management operation is delete, the processing flow corresponding to the management operation is that a delete request is generated based on a field identifier (id) corresponding to a data field (params) to be deleted and service data (record) corresponding to the data field, and the delete request is sent to the service server, so that the service server returns a delete response piece message (Promise) after deleting the data field in the service data stored by itself based on the delete request. It can be seen that the process flow corresponding to the delete operation designs the second mapping relationship and the third mapping relationship.
When a certain data field in the service data is expected to be searched in the management page, the data transmission process to be realized is to search the data field in the service data and display the service data corresponding to the data field in the management page. Based on the above, the second corresponding relation includes that the searching operation and the first mapping relation have corresponding relation.
Optionally, in a specific implementation manner, the service data is stored in a service server, and the management operation is a search operation;
Step 21, based on the predefined management operation and the preset protocol in the logic layer, calls the objective function corresponding to the objective mapping relationship, and updates the management page and/or the objective service data, which may include the following steps 31-33:
Step 31: generating an index request carrying a target data field based on a processing flow corresponding to a predefined search operation in a logic layer, and sending the index request to a service server;
Step 32: receiving service data corresponding to a target data field returned by a service server based on an index request;
Step 33: according to the data type of each data field in the service data and a preset protocol, calling an objective function corresponding to the first mapping relation, determining the display position in a table corresponding to each data field, and displaying each data field in the table according to the data display format and the display position corresponding to the data type of each data field to obtain a management page corresponding to the service data.
In this embodiment, when the management operation is a search operation, the development component may generate an index request carrying a target data field based on a processing procedure corresponding to a predefined search operation in the logic layer when detecting a search instruction for the target data field in the management page, and send the index request to the service server.
Thus, the service server can receive the index request, determine the service data corresponding to the target data field carried in the index request, and return the service data to the electronic device.
The service data corresponding to the target data field can be set according to actual needs, and can be all service data of a data entity comprising the target data field or the target data field; it is also possible that the entity identification of the data entity comprising the target data field, etc. are all reasonable and are not limited herein.
Because the searching operation corresponds to the first mapping relation, when service data returned by the service server is received, the development component can call an objective function corresponding to the first mapping relation according to the data type and a preset protocol of each data field in the service data, determine the display position in a table corresponding to each data field in the service data, and then display each data field in the table according to the data display format and the display position corresponding to the data type of each data field and the corresponding data display format, thereby obtaining a management page corresponding to the service data.
For example, when detecting a search instruction for the student entrance date of the student Z in the management page of the student data, the development component may send an http request carrying the URL of the student entrance date of the student Z to the service server, and receive service data (JSON) returned by the service server based on the URL to obtain the student Z. The development component can call formatter functions corresponding to the first mapping relation according to the data types of the data fields in the service data and a preset protocol, and the student entrance date of the student Z is displayed in the management page. Since the data type of the pre-defined student entrance date is time, the data display format of the student entrance date in the service server is a time stamp of the number type, the data display format of the student entrance date in the table is a character string of XXXX-XX-XX, namely, the entry of formatter functions is the time stamp of the student entrance date of the student Z, and the return value is the character string of the student entrance date of the formatted student Z.
Therefore, in the embodiment of the application, the purpose of searching the target data field in the management page can be realized by utilizing the processing flow of the management operation and the mapping function defined in the development component, and the operation flow corresponding to the searching operation is modularly predefined, so that the execution code of the searching operation is simplified, the component development efficiency is improved, and the data management efficiency is improved.
The development component can also comprise interface frame codes of the form, so that management operations such as an operation of adding business data in the management page, an operation of modifying business data or an operation of deleting business data in the management page can be realized in the form.
Optionally, in a specific implementation manner, the service data is stored in a service server, and the management operation is an adding operation, a modifying operation or a deleting operation;
The method for generating the management page provided by the embodiment of the application can further comprise the following step 41:
Step 41: when an operation instruction aiming at a target data field in a table is detected, generating a table for displaying the target data field according to a display mode corresponding to the data type of the target data field;
in the step S201, when an operation instruction for the target data field in the management page is detected, based on the management operation indicated by the operation instruction and the second correspondence, the determining the target mapping relationship corresponding to the management operation from the first mapping relationship, the second mapping relationship and the third mapping relationship may include the following step 42:
step 42: when an operation instruction aiming at a target data field in a form is detected, determining a target mapping relation corresponding to the management operation from the first mapping relation, the second mapping relation and the third mapping relation based on the management operation indicated by the operation instruction and the second mapping relation.
In this specific implementation manner, the development component may further include an interface frame code of the form, and correspondingly, the first corresponding relationship between each predefined data type and the data display format may include a corresponding relationship between each data type and the data display format in the form.
Upon detecting an operation instruction for a target data field in the table, the development component may generate a form for exposing the target data field in an exposure manner corresponding to a data type of the target data field.
Further, the user may send an operation instruction for the target data field in the form to the development component by performing an operation on the control component for the target data field in the form. When detecting an operation instruction aiming at a target data field in a form, the development component can determine a target mapping relation corresponding to the management operation from the first mapping relation, the second mapping relation and the third mapping relation based on the management operation indicated by the operation instruction and the second mapping relation.
Therefore, in the embodiment of the application, the development component comprises the interface frame code of the form, so that when the development component detects the operation instruction aiming at the target data field in the form, the development component can generate the form of the target data field, and a user can conveniently manage the target data field through the form.
Optionally, in a specific implementation manner, the management operation is a modification operation or a deletion operation;
step 41, when detecting an operation instruction for a target data field in a table, generates a form for displaying the target data field according to a display mode corresponding to a data type of the target data field, and may include the following steps 51-52:
step 51: when an operation instruction aiming at a target data field in a table is detected, generating a first data acquisition request carrying a field identification of the target data field, and sending the first data acquisition request to a service server;
step 52: and the receiving service server calls a target function corresponding to the second mapping relation according to the data type of the target data field and a preset protocol based on the target data field returned by the field identification, and generates a form for displaying the target data field according to a display mode corresponding to the data type of the target data field.
In this specific implementation manner, when the management operation is a modification operation or a deletion operation, and when an operation instruction for a target data field in the table is detected, the development component may generate a first data acquisition request carrying a field identifier of the target data field, and send the first data acquisition request to the service server.
The service server may determine a target data field having the field identification based on the first data acquisition request, and then send the target data field to the development component. In this way, the development component can receive the target data field returned by the service server, and call the target function corresponding to the second mapping relation according to the data type of the target data field and the preset protocol, so as to generate a form for displaying the target data field according to the display mode corresponding to the data type of the target data field.
It can be seen that, in the embodiment of the present application, when the management operation is a modification operation or a deletion operation, a form may be generated based on the target data field acquired from the service server, so that inconsistency between the target data field stored in the service server and the target data field shown in the form may be prevented, and the data management efficiency may be improved.
Optionally, in a specific implementation manner, the management operation is a new operation; step 21, based on the predefined management operation and the preset protocol in the logic layer, calls the objective function corresponding to the objective mapping relationship, updates the management page and/or the objective service data, and may include the following steps 61-63:
Step 61: acquiring a newly added target data field in a form based on a processing flow corresponding to a newly added operation predefined in a logic layer;
Step 62: according to the data type of the target data field and a preset protocol, calling a target function corresponding to the third mapping relation, generating a new adding request carrying target data, and sending the new adding request to a service server;
Step 63: and receiving a new receipt message returned by the service server based on the new request.
In this specific implementation manner, when detecting a new instruction for a target data field in the table, the development component may generate a form for displaying the target data field according to a display manner corresponding to a data type of the target data field. The user may add the target data field through a control in the form for adding the data field. The development component can acquire the newly added target data field in the form based on the processing flow corresponding to the newly added operation predefined in the logic layer. And then, according to the data type of the target data field and a preset protocol, calling a target function corresponding to the third mapping relation, generating a new adding request carrying the target data field, and sending the new adding request to the service server.
When the service server receives the new request, the target data field can be newly added in the target service data stored by the service server based on the new request, and a new receipt message is returned after the target data field is newly added. The development component may receive the newly added response piece message. The new receipt message may include a new success message or a new failure message, and when the new receipt message is the new failure message, the development component may output the new failure message, so that the user may perform error checking on the management page based on the new failure message.
Optionally, after the new target service data is added in the service server, an objective function corresponding to the first mapping relationship may be called, and the new target service data is corresponding to the table.
It can be seen that, in the embodiment of the present application, when the management operation is a new operation, the development component may execute the new operation for the target data field according to the preset processing logic of the new operation and the predefined mapping function, thereby simplifying the execution flow of the new operation and improving the data management efficiency.
Optionally, in a specific implementation manner, the management operation is a modification operation;
Step 21, based on the predefined management operation and the preset protocol in the logic layer, calls the objective function corresponding to the objective mapping relationship, and updates the management page and/or the objective service data, which may include the following steps 71-73:
step 71: acquiring modified target data fields in the form based on a processing flow corresponding to a predefined modification operation in the logic layer;
Step 72: according to the data type of the target data field and a preset protocol, calling a target function corresponding to the third mapping relation, generating a data identifier carrying service data corresponding to the modified target data field and a data modification request of the service data, and sending the data modification request to a service server;
Step 73: and receiving a modified receipt message returned by the service server based on the service data.
In this specific implementation manner, when a modification instruction for a target data field in a table is detected, a development component may generate a first data acquisition request that generates a field identifier carrying the target data field, send the first data acquisition request to a service server, then receive the target data field returned by the service server based on the field identifier, and call a target function corresponding to the second mapping relationship according to a data type and a preset protocol of the target data field, so as to generate a table for displaying the target data field according to a display mode corresponding to the data type of the target data field.
The user may modify the target data field through a control in the form for modifying the data field. The development component can acquire the modified target data field in the form based on a processing flow corresponding to the modification operation predefined in the logic layer. And then, according to the data type of the target data field and a preset protocol, calling a target function corresponding to the third mapping relation, generating a data identifier carrying service data corresponding to the modified target data field and a data modification request of the service data, and sending the data modification request to a service server.
When the service server receives the data modification request, the target data field can be modified in target service data stored by the service server based on the data modification request, and a modification receipt message is returned after the target data field is modified. The development component may receive the modified response piece message. The modification receipt message may include a modification success message or a modification failure message, and when the modification receipt message is a modification failure message, the electronic device may output the modification failure message, so that a user may perform error checking on the management page based on the modification failure message.
Optionally, after modifying the target service data in the service server, an objective function corresponding to the first mapping relationship may be called, so as to update the target service data in the table correspondingly.
For example, when modifying the student entrance time of the student Z shown in the management page, the user may click on the student entrance time of the student Z and send an operation instruction for the student entrance time of the student Z to the development component by clicking on the modification option. Upon detecting an operation instruction for the student entrance time of student Z in the table, the development component may generate a first data acquisition request carrying a field identification of the student entrance time of student Z and send the first data acquisition request to the service server, and then receive a timestamp of the number type of the student entrance time of student Z returned by the service server based on the field identification. And the development component calls formValueGetter functions corresponding to the second mapping relation according to the data type of the student entrance time of the student Z and a preset protocol, generates a form for displaying the target data field according to a movement object format corresponding to the data type of the target data field, and displays the form.
The user selects the student entrance time of the student Z which is expected to be modified through a time selector component corresponding to the student entrance time in the form, and sends the student entrance time of the student Z which is expected to be modified to a development component. The development component receives the modified student entrance time of the student Z, calls PARAMGETTER functions corresponding to the third mapping relation according to the data type and the preset protocol of the student entrance time, generates a data modification request carrying the data identification of the student Z corresponding to the modified student entrance time in a time stamp format and all business data of the student Z, and sends the data modification request to the business server, so that when the business server receives the data modification request, the business server can return a modification response piece message after modifying the student entrance time based on the student entrance time of the data modification request in the business data of the student Z stored by the business server.
It can be seen that, in the embodiment of the present application, when the management operation is a modification operation, the development component may execute the modification operation for the target data field according to the processing logic of the preset modification operation and the predefined mapping function, thereby simplifying the execution flow of the modification operation for the data field and improving the data management efficiency.
Optionally, in a specific implementation manner, the management operation is a delete operation;
Step 21, based on the predefined management operation and the preset protocol in the logic layer, calls the objective function corresponding to the objective mapping relationship, and updates the management page and/or the objective service data, which may include the following steps 81-82:
Step 81: based on a processing flow corresponding to a predefined deleting operation in the logic layer, calling a target function corresponding to the third mapping relation according to the data type of the target data field and a preset protocol, generating a data deleting request carrying service data corresponding to the target data field and a field identification of the target data field, and sending the data deleting request to a service server;
step 82: and receiving a deletion receipt message returned by the service server based on the service data.
In this embodiment, when a deletion instruction for a target data field in a table is detected, the development component may generate a first data acquisition request that generates a field identifier carrying the target data field, and send the first data acquisition request to the service server, and then receive the target data field returned by the service server based on the field identifier, and call, according to the data type and a preset protocol of the target data field, a target function corresponding to the second mapping relationship, so as to generate a form for displaying the target data field according to a display mode corresponding to the data type of the target data field.
The user may delete the target data field through a control in the form for deleting the data field. The development component can acquire the deleted target data field in the form based on a processing flow corresponding to a predefined deletion operation in the logic layer. And then, according to the data type of the target data field and a preset protocol, calling a target function corresponding to the third mapping relation, generating a data identifier carrying the service data corresponding to the deleted target data field and a data deleting request of the service data, and sending the data deleting request to the service server.
When the service server receives the data deleting request, the target data field can be deleted from the target service data stored by the service server based on the data deleting request, and when the target data field is deleted, a deletion receipt message is returned. The development component may receive the delete response piece message. The deletion receipt message may include a deletion success message or a deletion failure message, and when the deletion receipt message is a deletion failure message, the development component may output the deletion failure message, so that a user may perform error checking on the management page based on the deletion failure message.
Optionally, after deleting the target service data in the service server, an objective function corresponding to the first mapping relationship may be called, so as to correspondingly delete the target service data in the table.
For example, in order to delete the student entrance time of the student Z shown in the management page, the user may click on the student entrance time of the student Z and send an operation instruction for the student entrance time of the student Z to the development component by clicking the delete option. When detecting an operation instruction of the student entrance time of the student Z in the table, the development component can generate a first data acquisition request carrying a field identification of the student entrance time of the student Z, send the first data acquisition request to the service server, and then receive a timestamp of the number type of the student entrance time of the student Z returned by the service server based on the field identification. And the development component calls formValueGetter functions corresponding to the second mapping relation according to the data type of the student entrance time of the student Z and a preset protocol, generates a form for displaying the target data field according to a movement object format corresponding to the data type of the target data field, and displays the form.
And the user sends the deleted student entrance time of the student Z to the development component through the deletion selection space corresponding to the student entrance time in the form. The development component can receive a deletion instruction of the student entrance time of the student Z, call PARAMGETTER functions corresponding to the third mapping relation according to the data type and the preset protocol of the student entrance time, generate a data deletion request carrying the data identifier of the student Z corresponding to the student entrance time in a timestamp format and all service data of the student Z, and send the data deletion request to the service server, so that when the service server receives the data deletion request, the service server can return a deletion response piece message after deleting the student entrance time based on the data deletion request in the stored service data of the student Z.
It can be seen that, in the embodiment of the present application, when the management operation is a deletion operation, the development component may execute the deletion operation for the target data field according to the processing logic of the preset deletion operation and the predefined mapping function, thereby simplifying the execution flow of the deletion operation for the data field and improving the data management efficiency.
In order to facilitate understanding of the method for generating the management page provided by the embodiment of the present application, a description is given below of a flow for generating the management page with reference to fig. 5.
As shown in fig. 5, the generation flow of the management page may include the following steps S501 to S504:
S501: defining a service to realize a new operation, a modification operation, a deletion operation and a query operation;
S502: defining a triple mapping relation of the data type of each data field through a schema protocol;
s503: generating an SDK;
s504: and running the SDK and generating a management page.
In order to improve the generation efficiency of the management page of the service data, a development component for generating the management page may be developed in advance based on the ANT DESIGN component.
When developing a development component for generating a management page, an interface frame code may be written, a service layer is defined in advance, operation types of a new operation, a modification operation, a deletion operation and a query operation are defined in the service layer, a first corresponding relation between each data type and a data display format is defined in advance, a triple mapping relation of the data type of each data field is defined through a schema protocol, namely, a first mapping relation between the data type of the data field in service data and a display position in a table is defined in advance, a second mapping relation between the data type of the data field in service data and the data type in a table is defined, and a third mapping relation between the data type in the table and the data type of the data field in service data is defined, and further, a second corresponding relation between each management operation and the predefined mapping relation is defined.
Thereafter, a development component SDK is generated and installed on the electronic device.
When desiring to generate a management page of the target service data, the user may send an operation instruction for instructing the generation of the management page of the target service data to the development component, so that the development component may acquire the target service data in response to the received operation instruction, and then generate an interface frame of the management page based on an interface frame code included in the development component. Then, based on an interface frame, determining a data display format corresponding to each data field according to the data type and the first corresponding relation of each data field included in the target service data; according to the data types of the data fields and the first mapping relation, determining the display positions in the tables corresponding to the data types of the data fields; and displaying each data field in the form according to the data display format and the display position corresponding to the data type of each data field to obtain a management page corresponding to the target service data.
Based on the same inventive concept, the embodiment of the application further provides a device for generating the management page, which corresponds to the method for generating the management page shown in fig. 1 and provided by the embodiment of the application.
Fig. 6 is a schematic structural diagram of a device for generating a management page according to an embodiment of the present application, where, as shown in fig. 6, the device may include the following modules:
a data acquisition module 610, configured to acquire the target service data, where the target service data is determined based on an operation instruction sent by a user;
An interface frame generating module 620, configured to generate an interface frame of the management page based on the included interface frame code, where the development component further includes a data type of a predefined data field, a first correspondence between each data type and a data display format, and a first mapping relationship between service data and a table, where the first mapping relationship includes a correspondence between a data type of a data field in the service data and a display position in the table;
the display format determining module 630 is configured to determine, based on the interface frame, a data display format corresponding to each data field according to the data type of each data field included in the target service data and the first correspondence;
A display position determining module 640, configured to determine a display position in the table corresponding to each data field according to the data type of each data field and the first mapping relationship;
And the page generating module 650 is configured to display each data field in a table according to a data display format and a display position corresponding to the data display format corresponding to each data field, so as to obtain a management page corresponding to the target service data.
In the foregoing, it may be seen that, in the solution provided by the embodiment of the present application, a development component for generating a management page may be developed in advance, where the development component includes an interface frame code, a data type of a predefined data field, a first correspondence between each predefined data type and a data display format, and a first mapping relationship between service data and a table, where the first mapping relationship includes a correspondence between a data type of a data field in service data and a display position in the table.
Thus, when the user wants to generate the management page, the user can send an operation instruction to the development component, and the development component can acquire target business data based on the operation instruction sent by the user; then, generating an interface frame for managing the page based on the included interface frame code; based on the interface frame, determining a data display format corresponding to each data field according to the data type and the first corresponding relation of each data field included in the target service data; according to the data types of the data fields and the first mapping relation, determining the display positions in the tables corresponding to the data types of the data fields; and displaying each data field in the table according to the data display format and the display position corresponding to the data type of each data field, thereby obtaining a management page corresponding to the target service data.
Based on the scheme provided by the embodiment of the application, the development component developed in advance comprises the interface frame code of the management page and the data types of the predefined data fields, the first corresponding relation between each data type and the data display format and the first mapping relation between the business data and the table, so that when the development component is utilized to generate the management page of the business data, the development component is only required to be operated, other codes are not required to be additionally written, and the management page of the business data can be generated, thereby reducing the code quantity required to be written in the development process of the management page and improving the generation efficiency of the management page.
Optionally, in a specific implementation manner, the development component further includes a predefined management operation supported by the management page, and a second correspondence between each management operation and a predefined mapping relationship, where the predefined mapping relationship includes the first mapping relationship, the second mapping relationship, and a third mapping relationship, and the second mapping relationship includes a correspondence between a data type of a data field in the service data and a data type in the form, and the third mapping relationship includes a correspondence between a data type in the form and a data type of a data field in the service data; the apparatus further comprises:
The relation determining module is used for determining a target mapping relation corresponding to the management operation from the first mapping relation, the second mapping relation and the third mapping relation based on the management operation indicated by the operation instruction and the second corresponding relation when the operation instruction aiming at the target data field in the management page is detected;
and the data updating module is used for updating the management page and/or the target service data based on the management operation and the target mapping relation.
Optionally, in a specific implementation manner, the predefined management operation is stored in a logic layer of the development component; the mapping relation is a mapping function predetermined based on a preset protocol;
the data updating module comprises:
and the data updating sub-module is used for calling an objective function corresponding to the objective mapping relation based on the management operation and the preset protocol which are predefined in the logic layer, and updating the management page and/or the objective service data.
Optionally, in a specific implementation manner, the target service data is stored in a service server, and the management operation is a search operation;
the data updating sub-module is specifically configured to:
generating an index request carrying the target data field based on a processing flow corresponding to a predefined search operation in the logic layer, and sending the index request to the service server;
Receiving service data corresponding to the target data field returned by the service server based on the index request;
And according to the data type of each data field in the service data and the preset protocol, calling an objective function corresponding to the first mapping relation, determining the display position in the table corresponding to each data field, and displaying each data field in the table according to the data display format and the display position corresponding to the data type of each data field to obtain a management page corresponding to the service data.
Optionally, in a specific implementation manner, the target service data is stored in a service server, and the management operation is a new operation, a modification operation or a deletion operation;
the apparatus further comprises:
The form generation module is used for generating a form for displaying the target data field according to a display mode corresponding to the data type of the target data field when an operation instruction aiming at the target data field in the table is detected;
The relation determining module is specifically configured to:
And when an operation instruction aiming at the target data field in the form is detected, determining a target mapping relation corresponding to the management operation from the first mapping relation, the second mapping relation and the third mapping relation based on the management operation indicated by the operation instruction and the second corresponding relation.
Optionally, in a specific implementation manner, the management operation is a new operation;
the data updating sub-module is specifically configured to:
acquiring the newly added target data field in the form based on a predefined processing flow corresponding to the newly added operation in the logic layer;
According to the data type of the target data field and the preset protocol, calling a target function corresponding to the third mapping relation, generating a new adding request carrying the target data field, and sending the new adding request to the service server;
and receiving a new receipt message returned by the service server based on the new request.
Optionally, in a specific implementation manner, the management operation is a modification operation or a deletion operation;
the form generation module is specifically configured to:
when an operation instruction aiming at a target data field in the table is detected, generating a first data acquisition request carrying a field identification of the target data field, and sending the first data acquisition request to the service server;
And receiving the target data field returned by the service server based on the field identification, calling a target function corresponding to the second mapping relation according to the data type of the target data field and the preset protocol, and generating a form for displaying the target data field according to a display mode corresponding to the data type of the target data field.
Optionally, in a specific implementation manner, the management operation is a modification operation;
the data updating sub-module is specifically configured to:
acquiring modified target data fields in the form based on a processing flow corresponding to a predefined modification operation in the logic layer;
According to the data type of the target data field and the preset protocol, calling an objective function corresponding to the third mapping relation, generating a data identifier carrying service data corresponding to the modified target data field and a data modification request of the service data, and sending the data modification request to the service server;
And receiving a modified receipt message returned by the service server based on the service data.
Optionally, in a specific implementation manner, the management operation is a delete operation;
the data updating sub-module is specifically configured to:
Based on a processing flow corresponding to a predefined deleting operation in the logic layer, calling a target function corresponding to the third mapping relation according to the data type of the target data field and the preset protocol, generating a data deleting request carrying service data corresponding to the target data field and field identification of the target data field, and sending the data deleting request to the service server;
And receiving a deletion receipt message returned by the service server based on the service data.
Optionally, in a specific implementation manner, the target service data is stored in a service server;
The data acquisition module 610 is specifically configured to:
generating a second data acquisition request carrying a storage address of the target service data in the service server;
And sending the second data acquisition request to the service server, and receiving the target service data returned by the server based on the storage address.
The embodiment of the present application further provides an electronic device, as shown in fig. 7, including a processor 701, a communication interface 702, a memory 703 and a communication bus 704, where the processor 701, the communication interface 702, and the memory 703 perform communication with each other through the communication bus 704,
A memory 703 for storing a computer program;
The processor 701 is configured to implement any of the above-described methods for generating a management page when executing a program stored in the memory 703.
The communication bus mentioned above for the electronic device may be a peripheral component interconnect standard (PERIPHERAL COMPONENT INTERCONNECT, PCI) bus or an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, etc. The communication bus may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus.
The communication interface is used for communication between the electronic device and other devices.
The Memory may include random access Memory (Random Access Memory, RAM) or may include Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the aforementioned processor.
The processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; but may also be a digital signal Processor (DIGITAL SIGNAL Processor, DSP), application SPECIFIC INTEGRATED Circuit (ASIC), field-Programmable gate array (Field-Programmable GATE ARRAY, FPGA) or other Programmable logic device, discrete gate or transistor logic device, discrete hardware components.
In yet another embodiment of the present application, there is also provided a computer readable storage medium having stored therein a computer program which, when executed by a processor, implements the steps of the method for generating any of the management pages described above.
In yet another embodiment of the present application, there is also provided a computer program product containing instructions that, when run on a computer, cause the computer to perform the method of generating a management page of any of the above embodiments.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, produces a flow or function in accordance with embodiments of the present application, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another, for example, by wired (e.g., coaxial cable, optical fiber, digital Subscriber Line (DSL)), or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid state disk Solid STATE DISK (SSD)), etc.
It is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In this specification, each embodiment is described in a related manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for the apparatus embodiments, the electronic device embodiments, the computer-readable storage medium embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference is made to the section of the method embodiments for relevance.
The foregoing description is only of the preferred embodiments of the present application and is not intended to limit the scope of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application are included in the protection scope of the present application.
Claims (10)
1. A method for generating a management page, applied to a development component, the method comprising:
Acquiring the target service data, wherein the target service data is determined based on an operation instruction sent by a user;
Generating an interface frame of the management page based on the included interface frame code, wherein the development component further comprises a data type of a predefined data field, a first corresponding relation between each data type and a data display format, and a first mapping relation between service data and a table, and the first mapping relation comprises a corresponding relation between the data type of the data field in the service data and a display position in the table;
Based on the interface frame, determining a data display format corresponding to each data field according to the data type of each data field included in the target service data and the first corresponding relation;
Determining a display position in the table corresponding to the data type of each data field according to the data type of each data field and the first mapping relation;
and displaying the data fields in the table according to the data display format and the display position corresponding to the data types of the data fields to obtain the management page corresponding to the target service data.
2. The method of claim 1, wherein the development component further comprises predefined management operations supported by the management page, and a second correspondence between each management operation and a predefined mapping relationship, the predefined mapping relationship comprising the first mapping relationship, a second mapping relationship, and a third mapping relationship, the second mapping relationship comprising a correspondence between data types of data fields in the business data and data types in the form, the third mapping relationship comprising a correspondence between data types in the form and data types of data fields in the business data;
The method further comprises the steps of:
When an operation instruction aiming at a target data field in the management page is detected, determining a target mapping relation corresponding to the management operation from the first mapping relation, the second mapping relation and the third mapping relation based on the management operation indicated by the operation instruction and the second corresponding relation;
And updating the management page and/or the target service data based on the management operation and the target mapping relation.
3. The method of claim 2, wherein the predefined management operations are stored in a logical layer of the development component; the mapping relation is a mapping function predetermined based on a preset protocol;
the updating the management page and/or the target service data based on the management operation and the target mapping relationship includes:
and calling an objective function corresponding to the objective mapping relation based on the management operation and the preset protocol which are predefined in the logic layer, and updating the management page and/or the objective service data.
4. A method according to claim 3, wherein the target service data is stored in a service server and the management operation is a lookup operation;
The step of calling the objective function corresponding to the objective mapping relation based on the management operation and the preset protocol predefined in the logic layer to update the management page and/or the objective service data includes:
generating an index request carrying the target data field based on a processing flow corresponding to a predefined search operation in the logic layer, and sending the index request to the service server;
Receiving service data corresponding to the target data field returned by the service server based on the index request;
And according to the data type of each data field in the service data and the preset protocol, calling an objective function corresponding to the first mapping relation, determining the display position in the table corresponding to each data field, and displaying each data field in the table according to the data display format and the display position corresponding to the data type of each data field to obtain a management page corresponding to the service data.
5. The method of claim 3, wherein the target service data is stored in a service server, and the management operation is a new operation, a modification operation, or a deletion operation;
The method further comprises the steps of:
when an operation instruction aiming at a target data field in the table is detected, generating a form for displaying the target data field according to a display mode corresponding to the data type of the target data field;
When detecting an operation instruction for a target data field in the management page, determining, based on a management operation indicated by the operation instruction and the second correspondence, a target mapping relationship corresponding to the management operation from the first mapping relationship, the second mapping relationship and the third mapping relationship, including:
And when an operation instruction aiming at the target data field in the form is detected, determining a target mapping relation corresponding to the management operation from the first mapping relation, the second mapping relation and the third mapping relation based on the management operation indicated by the operation instruction and the second corresponding relation.
6. The method of claim 5, wherein the management operation is a new addition operation;
The step of calling the objective function corresponding to the objective mapping relation based on the management operation and the preset protocol predefined in the logic layer to update the management page and/or the objective service data includes:
acquiring the newly added target data field in the form based on a predefined processing flow corresponding to the newly added operation in the logic layer;
According to the data type of the target data field and the preset protocol, calling a target function corresponding to the third mapping relation, generating a new adding request carrying the target data field, and sending the new adding request to the service server;
and receiving a new receipt message returned by the service server based on the new request.
7. The method of claim 5, wherein the management operation is a modification operation or a deletion operation;
When detecting an operation instruction for a target data field in the table, generating a form for displaying the target data field according to a display mode corresponding to the data type of the target data field, including:
when an operation instruction aiming at a target data field in the table is detected, generating a first data acquisition request carrying a field identification of the target data field, and sending the first data acquisition request to the service server;
And receiving the target data field returned by the service server based on the field identification, calling a target function corresponding to the second mapping relation according to the data type of the target data field and the preset protocol, and generating a form for displaying the target data field according to a display mode corresponding to the data type of the target data field.
8. The method of claim 7, wherein the management operation is a modification operation;
The step of calling the objective function corresponding to the objective mapping relation based on the management operation and the preset protocol predefined in the logic layer to update the management page and/or the objective service data includes:
acquiring modified target data fields in the form based on a processing flow corresponding to a predefined modification operation in the logic layer;
According to the data type of the target data field and the preset protocol, calling an objective function corresponding to the third mapping relation, generating a data identifier carrying service data corresponding to the modified target data field and a data modification request of the service data, and sending the data modification request to the service server;
Receiving a modification receipt message returned by the service server based on the service data;
Or alternatively
The management operation is a deletion operation;
The step of calling the objective function corresponding to the objective mapping relation based on the management operation and the preset protocol predefined in the logic layer to update the management page and/or the objective service data includes:
Based on a processing flow corresponding to a predefined deleting operation in the logic layer, calling a target function corresponding to the third mapping relation according to the data type of the target data field and the preset protocol, generating a data deleting request carrying service data corresponding to the target data field and field identification of the target data field, and sending the data deleting request to the service server;
And receiving a deletion receipt message returned by the service server based on the service data.
9. A generation apparatus for managing pages, the apparatus comprising:
the data acquisition module is used for acquiring the target service data, wherein the target service data is determined based on an operation instruction sent by a user;
The interface frame generation module is used for generating an interface frame of the management page based on the included interface frame codes, wherein the development component further comprises a data type of a predefined data field, a first corresponding relation between each data type and a data display format and a first mapping relation between service data and a table, and the first mapping relation comprises a corresponding relation between the data type of the data field in the service data and a display position in the table;
the display format determining module is used for determining a data display format corresponding to each data field according to the data type of each data field included in the target service data and the first corresponding relation based on the interface frame;
The display position determining module is used for determining the display position in the table corresponding to the data type of each data field according to the data type of each data field and the first mapping relation;
And the page generation module is used for displaying the data fields in the table according to the data display format and the display position corresponding to the data types of the data fields to obtain the management page corresponding to the target service data.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored therein a computer program which, when executed by a processor, implements the method steps of any of claims 1-8.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202410270537.3A CN118170375A (en) | 2024-03-08 | 2024-03-08 | Method and device for generating management page and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202410270537.3A CN118170375A (en) | 2024-03-08 | 2024-03-08 | Method and device for generating management page and storage medium |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN118170375A true CN118170375A (en) | 2024-06-11 |
Family
ID=91351856
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202410270537.3A Pending CN118170375A (en) | 2024-03-08 | 2024-03-08 | Method and device for generating management page and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN118170375A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN119166114A (en) * | 2024-11-22 | 2024-12-20 | 四川互慧软件有限公司 | Method, device, equipment and storage medium for manufacturing cerebral apoplexy data robot |
-
2024
- 2024-03-08 CN CN202410270537.3A patent/CN118170375A/en active Pending
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN119166114A (en) * | 2024-11-22 | 2024-12-20 | 四川互慧软件有限公司 | Method, device, equipment and storage medium for manufacturing cerebral apoplexy data robot |
| CN119166114B (en) * | 2024-11-22 | 2025-05-16 | 四川互慧软件有限公司 | Method, device, equipment and storage medium for manufacturing cerebral apoplexy data robot |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN114036425B (en) | Page access method, client, server and system | |
| CN111797073B (en) | Database management method, electronic device and computer readable storage medium | |
| CN101425922B (en) | Method and device for tracking and positioning change in web service updating process | |
| US10678519B2 (en) | Code generation for isomorphic data fetching | |
| CN104679500B (en) | Method and device for realizing automatic generation of entity class | |
| CN115599386A (en) | Code generation method, device, equipment and storage medium | |
| US9292613B2 (en) | Generation of generic universal resource indicators | |
| US20250181826A1 (en) | Displaying data dimension of a descendant worksheet and data from one or more non-direct ancestor worksheets of a client-side spreadsheet | |
| CN118170375A (en) | Method and device for generating management page and storage medium | |
| CN114997111B (en) | Service processing method, device, computer equipment and storage medium | |
| CN116560683A (en) | Software updating method, device, equipment and storage medium | |
| CN115629763A (en) | Target code generation method and NPU instruction display method and device | |
| CN115291887A (en) | Code generation method, device, equipment and storage medium | |
| CN115981650A (en) | Website building method and device, electronic equipment and storage medium | |
| CN115934098A (en) | Object model configuration method, device and computer readable storage medium | |
| CN112286545B (en) | Data updating method, device, equipment and storage medium | |
| CN117170640A (en) | A component management method, device and readable storage medium for a low-code platform | |
| US11216294B2 (en) | User interface by way of unknown data structure | |
| US20260023536A1 (en) | Threat model assistant for software development | |
| CN119336781B (en) | SQL generation method, device, and computer-readable storage medium | |
| CN115390912B (en) | Resource discovery method, device, computer equipment and storage medium | |
| CN121349863A (en) | Software unit automated testing methods, equipment, storage media and program products | |
| CN119473305A (en) | A method, device and equipment for adaptively converting user needs into results | |
| CN113806669A (en) | Website management background generation method and device and server | |
| CN116301878A (en) | Method, device, equipment and medium for inquiring inverse dependency relationship of software module |
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 |