Data model configuration method, computer equipment and computer storage medium
By providing a data model configuration method in the Odoo framework, users are allowed to select and configure multiple data models on the configuration page, solving the problem of single configuration and low efficiency in the existing technology, and achieving efficient data model configuration.
Patent Information
- Application Number
- CN202510123173.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-24
- Publication Date
- 2025-05-23
AI Technical Summary
When configuring data models, the Odoo framework has a single operation and cannot configure multiple data models at the same time, resulting in inefficient configuration.
Provides a data model configuration method. By displaying a configuration page, users can select multiple data models and configure them, including adding custom fields and modifying views.
This greatly improves the configuration efficiency of the data model, and users can handle the configuration of multiple data models at the same time, reducing technical requirements and configuration difficulty.
Smart Images

Figure CN120029689A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of data processing, and specifically to a data model configuration method, a computer device, and a computer storage medium. Background Art
[0002] Odoo is an open source enterprise resource planning (ERP) software that provides a comprehensive business management solution covering financial management, human resource management, inventory management and other aspects. The Odoo framework can be used to record the fields and model views of each data model, where the data model is the data structure of each basic data or document, which consists of one or more fields. Basic data refers to simple documents used to record basic configurations, including but not limited to simple documents for basic configurations such as employees, products (collectively referred to as material numbers), processes, resources, and labor price templates.
[0003] The Odoo framework records the fields and model views of each data model, and provides a viewing page for model fields and views. On the model field page, you can directly add custom fields to the data model, and on the model view page, you can modify the view. However, each configuration operation is relatively simple, and only one data model field or view can be set at a time, so the data model configuration efficiency is not high. Summary of the invention
[0004] The embodiments of the present application provide a data model configuration method, a computer device, and a computer storage medium. A user can configure multiple data models. The configuration of the data model is no longer single, which can greatly improve the configuration efficiency of the data model.
[0005] A first aspect of an embodiment of the present application provides a data model configuration method, the method comprising:
[0006] Displaying a configuration page, wherein the configuration page displays a data model selection control, wherein the data model selection control is associated with a plurality of data models;
[0007] receiving, through the configuration page, a data model to be operated selected by a user triggering the data model selection control, and receiving a configuration operation on the data model to be operated input by the user on the configuration page;
[0008] The data model to be operated is configured based on the configuration operation to obtain a target data model.
[0009] A second aspect of an embodiment of the present application provides a computer device, including:
[0010] A display unit, used to display a configuration page, wherein the configuration page displays a data model selection control, and the data model selection control is associated with multiple data models;
[0011] a receiving unit, configured to receive, through the configuration page, a data model to be operated selected by a user when the user triggers the data model selection control, and receive a configuration operation on the data model to be operated input by the user on the configuration page;
[0012] A configuration unit is used to configure the data model to be operated based on the configuration operation to obtain a target data model.
[0013] A third aspect of an embodiment of the present application provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the method of the first aspect when executing the computer program.
[0014] A fourth aspect of an embodiment of the present application provides a computer storage medium, in which instructions are stored. When the instructions are executed on a computer, the computer executes the method of the first aspect.
[0015] A fifth aspect of the embodiments of the present application provides a computer program product. When the computer program product is run on a computer device, the computer device executes the method of the first aspect.
[0016] It can be seen from the above technical solutions that the embodiments of the present application have the following advantages:
[0017] The computer device displays a configuration page, which displays a data model selection control. The data model selection control is associated with multiple data models. The configuration page receives one or more data models to be operated selected by the user triggering the data model selection control, and receives the configuration operation of the data model to be operated input by the user on the configuration page. The data model to be operated is configured based on the configuration operation to obtain the target data model. Therefore, the user can configure multiple data models, and the configuration of the data model is no longer single, which can greatly improve the configuration efficiency of the data model. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 This is a schematic diagram of the network framework in the embodiment of the present application;
[0019] Figure 2 A flowchart of a data model configuration method in an embodiment of the present application;
[0020] Figure 3 This is another flowchart of the data model configuration method in the embodiment of the present application;
[0021] Figure 4 This is a schematic diagram of the structure of a computer device in an embodiment of the present application;
[0022] Figure 5This is another structural diagram of a computer device in an embodiment of the present application. DETAILED DESCRIPTION
[0023] The embodiments of the present application provide a data model configuration method, a computer device, and a computer storage medium. A user can configure multiple data models. The configuration of the data model is no longer single, which can greatly improve the configuration efficiency of the data model.
[0024] See also Figure 1 In the embodiment of the present application, the network framework includes:
[0025] The service server 100 and the terminal cluster; the terminal cluster may include: terminal device 200a, terminal device 200b, terminal device 200c, ..., terminal device 200n and other terminal devices.
[0026] The business server 100 may be an independent physical server, a server cluster or a distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud database, cloud service, cloud computing, cloud function, cloud storage, network service, cloud communication, middleware service, domain name service, security service, CDN, and big data and artificial intelligence platform. The terminal device (including terminal device 200a, terminal device 200b, terminal device 200c, ..., terminal device 200n) may be a smart phone, tablet computer, laptop computer, desktop computer, PDA, mobile internet device (MID), wearable device (such as smart watch, smart bracelet, etc.), smart computer, smart car and other smart terminals.
[0027] Among them, the business server 100 can establish a communication connection with each terminal device in the terminal cluster, and a communication connection can also be established between each terminal device in the terminal cluster. In other words, the business server 100 can establish a communication connection with each terminal device in the terminal device 200a, terminal device 200b, terminal device 200c, ..., terminal device 200n. For example, a communication connection can be established between the terminal device 200a and the business server 100. A communication connection can be established between the terminal device 200a and the terminal device 200b, and a communication connection can also be established between the terminal device 200a and the terminal device 200c. Among them, the above-mentioned communication connection does not limit the connection method, and can be directly or indirectly connected through a wired communication method, or can be directly or indirectly connected through a wireless communication method, etc., which can be determined according to the actual application scenario, and this application is not limited here.
[0028] It should be understood that Figure 1Each terminal device in the terminal cluster shown can be installed with an application client. When the application client runs in each terminal device, it can interact with the business server 100 respectively, so that the business server 100 can receive business data from each terminal device (such as financial management data uploaded by the user through the terminal device). Among them, the application client can be an application client with the function of displaying text, images, audio and video, such as a financial management application, an enterprise affairs management application, a browser application, a social application, an instant messaging application, a live broadcast application, a game application, a short video application, a video application, a music application, a shopping application, a novel application, a payment application, etc., which can be determined according to the actual application scenario requirements and is not limited here. Among them, the application client can be an independent client or an embedded sub-client integrated in a client (such as a financial management client, an enterprise affairs management client, etc.), which can be determined according to the actual application scenario and is not limited here.
[0029] The Odoo framework records the fields and model views of each data model, and provides a viewing page for model fields and views. On the model field page, you can directly add custom fields to the data model, and on the model view page, you can modify the view. However, each configuration operation is relatively simple, and only one data model field or view can be set at a time, so the data model configuration efficiency is not high.
[0030] For example, when adding a custom field, if the user needs to add a field to a data model, they need to find the field page of the data model, add the desired field, and specify the field type and name. In addition, if the user needs to modify a data model view, they need to find the view page of the data model, add the custom field to the specified location (through xpath), or add an inherited view to the current view, and then redo the above operations.
[0031] However, the configuration operation of the above method is single, and a single configuration operation can only set a field or view of a data model. In addition, the above method has a high error rate, high operation cost, and high technicality. It can only be operated by developers who understand Odoo and know how to use xpath.
[0032] This function of the Odoo native framework cannot realize the data flow of custom views and custom fields between multiple models. It is necessary to add an automation rule plug-in and write Odoo code on the page provided by the plug-in to realize the data flow between models, which has high technical requirements.
[0033] In order to solve the above technical problems, a data model configuration method of the embodiment of the present application is proposed. Figure 1The data model configuration method in the embodiment of the present application is described as follows:
[0034] See also Figure 2 In the embodiment of the present application, one embodiment of the data model configuration method includes:
[0035] 201. Display a configuration page, wherein the configuration page displays a data model selection control, and the data model selection control is associated with multiple data models;
[0036] The method of this embodiment can be applied to a computer device, which can be Figure 1 The business server 100 or each terminal device in the network framework shown. The computer device can display a configuration page of the data model, which displays a data model selection control, and the data model selection control is associated with multiple data models, so that the user can select the data model to be configured through the data model selection control.
[0037] The data model refers to the data structure of each basic data or document, which consists of one or more fields. Basic data is used to record simple documents of basic configuration, including but not limited to simple documents of basic configuration such as employees, products (collectively referred to as material numbers), processes, resources, and price templates. Documents refer to core business data sheets, which may include but not limited to sales orders, production orders, production work orders, task orders, dispatch orders, and work report orders.
[0038] The configuration of a data model may be to configure the fields, views, and other information about the data model.
[0039] 202. Receive, through the configuration page, a data model to be operated selected by a user triggering the data model selection control, and receive a configuration operation on the data model to be operated input by the user on the configuration page;
[0040] The user can trigger the data model selection control on the configuration page to select the data model to be configured, and enter the configuration operation of the data model to be operated in the configuration page, so that the computer device can receive the user's configuration operation on the data model and perform corresponding configuration on the data model selected by the user.
[0041] The number of the data models to be operated selected by the user by triggering the data model selection control may be one or more.
[0042] 203. Configure the data model to be operated based on the configuration operation to obtain a target data model;
[0043] When receiving the configuration operation of the user on the data model to be operated, the computer device can configure the data model to be operated accordingly based on the configuration operation, and the corresponding target data model can be obtained after the configuration of the data model to be operated is completed.
[0044] In this embodiment, the computer device displays a configuration page, the configuration page displays a data model selection control, the data model selection control is associated with multiple data models, and the configuration page receives one or more data models to be operated selected by the user triggering the data model selection control, and receives the configuration operation of the data model to be operated input by the user on the configuration page, and configures the data model to be operated based on the configuration operation to obtain the target data model. Therefore, the user can configure multiple data models, the configuration of the data model is no longer single, and the configuration efficiency of the data model can be greatly improved.
[0045] Moreover, users can directly select and configure data models by triggering page controls on the page without rewriting the program code of the original framework, which greatly lowers the threshold for data model configuration, reduces technical requirements and configuration difficulty, and makes it more convenient for users who do not have programming knowledge and ability to get started. It is conducive to the promotion and use of data model configuration functions and broadens the scope of application.
[0046] In the following, Figure 2 Based on the embodiment shown, the embodiment of the present application is further described in detail. Figure 3 Another embodiment of the data model configuration method in the embodiment of the present application includes:
[0047] 301. Display a configuration page, wherein the configuration page displays a data model selection control, and the data model selection control is associated with multiple data models;
[0048] In this embodiment, the data model selection control can be displayed in any form, such as displaying multiple candidate data models in the form of a drop-down box, displaying multiple fields included in each data model in the form of a drop-down box, and displaying multiple model views included in each data model in the form of a drop-down box. Therefore, the user can click the drop-down box and select the data model to be operated that needs to be configured from the multiple data models displayed in the drop-down box.
[0049] The displayed data model may be a data model provided by the native framework or a data model developed by the user himself, or may include a data model provided by the native framework and a data model developed by the user himself, for example, a data model provided by the Odoo native framework and a data model developed by the user himself.
[0050] 302. Receive, through the configuration page, a data model to be operated selected by a user triggering the data model selection control, and receive a configuration operation on the data model to be operated input by the user on the configuration page;
[0051] 303. Configure the data model to be operated based on the configuration operation to obtain a target data model;
[0052] In an optional implementation of this embodiment, each data model includes multiple fields. The computer device can receive a configuration operation input by a user on a configuration page to add field information of a target field to the data model to be operated, and obtain a target data model based on the configuration operation on the field information of the target field to be added to the data model to be operated.
[0053] In another optional implementation, each data model includes multiple fields. The computer device can receive the data model to be operated selected by the user triggering the data model selection control and the target field of the data model to be operated selected by the user triggering the data model selection control through the configuration page, and receive the configuration operation on the target field input by the user on the configuration page, and then, based on the configuration operation, the target field of the data model to be operated can be configured to obtain the target data model.
[0054] The configuration of the target field may include modifying the field information of the target field, deleting the target field, changing the display position of the target field, and so on.
[0055] In another optional implementation, each data model includes multiple model views. The computer device can receive the data model to be operated selected by the user triggering the data model selection control and the target model view of the data model to be operated selected by the user triggering the data model selection control through the configuration page, and receive the configuration operation on the target model view input by the user on the configuration page, and then, based on the configuration operation, the target model view of the data model to be operated can be configured to obtain the target data model.
[0056] The model view may be XML data (Extensible Markup Language) used to record the page layout of the data model. For example, in the Odoo framework, the view is a part of the user interface for displaying and operating data.
[0057] The model view may include at least one field. In an optional implementation, the user's configuration operation on the target model view may be the user configuring the display position of the field in the target model view. Therefore, the computer device may configure the display position of the target field in the target model view to the display position indicated by the configuration operation according to the above configuration operation of the user.
[0058] For example, this embodiment develops a configuration page, which provides four core modules, as follows:
[0059] 1. Custom field module. This module provides users with the function of entering the globally unique identifier, name, type, field function description and other field information of the newly added field;
[0060] 2. Existing Fields Module. This module provides users with a drop-down list of all models in the current system (including those provided by Odoo and those developed by users themselves) and all fields under the models, allowing non-technical personnel to select the models and model fields to be operated;
[0061] 3. Existing model view module. This module provides users with a drop-down option of all model views of the current system (including those provided by Odoo natively and those developed by users themselves), allowing non-technical personnel to select the model view to be operated. It also provides all the fields already included in the selected view. After the user selects the view and selects the existing fields of the view, it provides the configuration of the view placement. For example, "before the field" means that the view field is displayed before a certain field, and "after the field" means that the view field is displayed after a certain field, allowing non-technical personnel to independently choose to configure the new or existing fields in the ideal position of the existing view;
[0062] 4. Data flow module. This module provides source model fields and target model fields, and provides standard rules for data flow (such as equality, custom formulas, and other flow rules) for configuring data synchronization between multiple data models.
[0063] Therefore, through the above-mentioned multiple functional modules provided by the page, users can independently configure multiple models and the fields and views of the selected model, which greatly facilitates the user's configuration of the data model. Users can directly manipulate the controls in the page to configure the data model without writing any program code, which greatly reduces the technical requirements and configuration difficulty of the model configuration, and is conducive to the promotion and use of the model configuration function.
[0064] 304. Determine a data flow rule corresponding to the data model to be operated, where the data flow rule is used to indicate that data synchronization is performed between multiple associated data models;
[0065] 305. Synchronize the configuration operation performed on the data model to be operated with respect to the associated data model associated with the data model to be operated according to the data flow rule corresponding to the data model to be operated;
[0066] In this embodiment, after the target data model is obtained by configuring the data model to be operated based on the configuration operation of the user, the computer device can also determine the data flow rules corresponding to the data model to be operated, and the data flow rules are used to indicate that the data between the associated multiple data models are synchronized with each other. The principle of data flow is that the flow rules belong to the data recorded separately, and when the data model to be operated is written, all current rules are matched, and then the source data of the data model to be operated is updated to the target data of the associated data model according to the rules.
[0067] Furthermore, the configuration operation performed on the data model to be operated may be synchronized with the associated data model associated with the data model to be operated according to the data flow rule corresponding to the data model to be operated.
[0068] An optional implementation is that if the configuration operation performed on the data model to be operated is to configure the target field of the data model to be operated, the associated data model associated with the data model to be operated can be determined according to the data flow rules corresponding to the data model to be operated, and the same configuration operation can be performed on the associated fields in the associated data model that are associated with the target field of the data model to be operated.
[0069] For example, if the target field is configured in the data model to be operated, and the field value of the target field is updated, then according to the data flow rules, the field value of the associated field associated with the target field in the associated data model associated with the data model to be operated can also be updated, thereby realizing data flow and data synchronization between multiple data models.
[0070] Among them, when setting data flow rules, the computer device can receive the user's setting operation on the data flow rules, determine at least one data flow rule based on the setting operation, and apply the data flow rule to all data models based on the setting operation, that is, the data flow rule can be effective for all data models. When a configuration operation is performed on a certain data model, the same configuration operation can be performed on all other data models based on the data flow rule.
[0071] For example, for the configuration operation of a user adding a new field, this operation will automatically add field data to the model selected by the user in the background Odoo framework.
[0072] For the configuration operation of view settings, this operation will create a new view in the background by inheriting the view selected by the user in the Odoo framework, and set the view position selected by the user to the inherited view through the xpath method. Among them, inherited view is an important concept in Odoo module development. By inheriting the view, you can extend and customize it without modifying the original view. There are two ways to inherit views: inherit and modify existing views, and create a new view and inherit existing views.
[0073] Inheriting and modifying existing views means modifying and extending existing views. You can add, delete, or modify fields, buttons, layouts, and other elements in the view. This method allows you to quickly customize existing views to meet specific business needs while retaining the functions and features of the original view. When you need to make some minor changes or extensions to an existing view, you can choose to inherit and modify the existing view.
[0074] Creating a new view and inheriting an existing view means creating a new view based on an existing view and adding, deleting, or modifying fields, buttons, layouts, and other elements in the new view. When major changes or extensions are required, the new view can be fully customized without being restricted by the original view.
[0075] For the data flow module, the module can be configured to be divided into two small modules, the upper module is further divided into left, middle and right small modules. The left module provides a drop-down option of all models in the current system (including those provided by Odoo natively and those developed by users themselves) and all fields under the model as the source field of data flow; similarly, the middle module provides a drop-down option of all models in the current system (including those provided by Odoo natively and those developed by users themselves) and all fields under the model as the target field of data flow; the right module provides standard data flow rules, such as equality, custom formulas and other flow rules to facilitate data flow and data synchronization between multiple data models.
[0076] In addition, it also supports user-defined data flow rules. Users can set multiple rows of data flow rules, so that the computer device matches the rows of the data model according to each row of data flow rules set by the user. For example, the data in the left field of the first row will flow to the right field of the first row according to the first row rule.
[0077] The lower module sets the triggering time of data flow or unifies the data flow rules. The lower module can provide triggering time and triggering field. Triggering time, such as when the document is saved or when the document is modified, means that when a document is saved or modified, the data flow rule is triggered to run. Triggering fields, such as createtime and modifytime, mean that the corresponding triggering time can be set through the triggering field to start the data flow rule running.
[0078] When setting the flow rules, you can set the data flow rules by row by row by traversing the rows of the upper module. The priority of this rule is higher than the rule set in the upper list row. You can also set only one flow rule and apply it to all the rows above, so that the data flow rule can take effect on all data models, and all data models perform data flow and data synchronization based on this data flow rule.
[0079] Therefore, in this embodiment, data synchronization can be performed between multiple data models according to data flow rules to ensure that each data model can match the user's real-time business progress. At the same time, there is no need for the user to manually update the data of each data model one by one, which greatly facilitates the management of data models, improves the intelligence level of data model configuration, and is conducive to the promotion and application of model configuration functions.
[0080] The above describes the data model configuration method in the embodiment of the present application. The following describes the computer device in the embodiment of the present application. Figure 4 In the embodiment of the present application, one embodiment of the computer device includes:
[0081] A display unit, used to display a configuration page, wherein the configuration page displays a data model selection control, and the data model selection control is associated with multiple data models;
[0082] a receiving unit, configured to receive, through the configuration page, a data model to be operated selected by a user when the user triggers the data model selection control, and receive a configuration operation on the data model to be operated input by the user on the configuration page;
[0083] A configuration unit is used to configure the data model to be operated based on the configuration operation to obtain a target data model.
[0084] In a preferred implementation of this embodiment, each of the data models includes a plurality of fields;
[0085] The receiving unit is specifically used for:
[0086] Receive a configuration operation input by a user on the configuration page for adding field information of a target field to the data model to be operated;
[0087] Configuration units are specifically used for:
[0088] Based on the configuration operation, field information of the target field is added to the data model to be operated to obtain the target data model.
[0089] In a preferred implementation of this embodiment, each of the data models includes a plurality of fields;
[0090] The receiving unit is specifically used for:
[0091] Receiving, through the configuration page, a data model to be operated selected by a user triggering the data model selection control and a target field of the data model to be operated selected by the user triggering the data model selection control, and receiving a configuration operation on the target field input by the user on the configuration page;
[0092] Configuration units are specifically used for:
[0093] The target field of the data model to be operated is configured based on the configuration operation to obtain the target data model.
[0094] In a preferred implementation of this embodiment, each of the data models includes multiple model views;
[0095] The receiving unit is specifically used for:
[0096] Receiving, through the configuration page, a data model to be operated selected by a user when triggering the data model selection control and a target model view of the data model to be operated selected by the user when triggering the data model selection control, and receiving a configuration operation on the target model view input by the user on the configuration page;
[0097] Configuration units are specifically used for:
[0098] The target model view of the data model to be operated is configured based on the configuration operation to obtain the target data model.
[0099] In a preferred implementation of this embodiment, the model view includes at least one field;
[0100] Configuration units are specifically used for:
[0101] The display position of the target field in the target model view is configured at the display position indicated by the configuration operation.
[0102] In a preferred implementation of this embodiment, the computer device further includes:
[0103] Data transfer unit, used for:
[0104] Determine a data flow rule corresponding to the data model to be operated, wherein the data flow rule is used to indicate that data synchronization is performed between multiple associated data models;
[0105] According to the data flow rule corresponding to the data model to be operated, the configuration operation performed on the data model to be operated is synchronized with the associated data model associated with the data model to be operated.
[0106] In a preferred implementation of this embodiment, the data transfer unit is specifically used for:
[0107] If the configuration operation performed on the data model to be operated is to configure the target field of the data model to be operated, the same configuration operation is performed on the associated fields in the associated data model that are associated with the target field of the data model to be operated.
[0108] In a preferred implementation of this embodiment, the computer device further includes:
[0109] Setup unit for:
[0110] receiving a setting operation of the data flow rule by a user, and determining at least one of the data flow rules according to the setting operation;
[0111] The data flow rule is applied to all data models according to the setting operation.
[0112] In this embodiment, the operations performed by each unit in the computer device are the same as those described above. Figures 2 to 3 The description in the illustrated embodiment is similar and will not be repeated here.
[0113] The computer device in the embodiment of the present application is described below. Figure 5 In the embodiment of the present application, one embodiment of the computer device includes:
[0114] The computer device 500 may include one or more central processing units (CPU) 501 and a memory 505 , wherein the memory 505 stores one or more application programs or data.
[0115] The memory 505 may be a volatile storage or a persistent storage. The program stored in the memory 505 may include one or more modules, each of which may include a series of instruction operations in the computer device. Furthermore, the central processing unit 501 may be configured to communicate with the memory 505 and execute a series of instruction operations in the memory 505 on the computer device 500.
[0116] The computer device 500 may also include one or more power supplies 502, one or more wired or wireless network interfaces 503, one or more input and output interfaces 504, and / or one or more operating systems, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™, etc.
[0117] The CPU 501 can execute the aforementioned Figures 2 to 3 The operations performed by the computer device in the illustrated embodiment will not be described in detail here.
[0118] The present application also provides a computer storage medium, wherein one embodiment includes: the computer storage medium stores instructions, and when the instructions are executed on a computer, the computer executes the aforementioned Figures 2 to 3 The operations performed by the computer device in the illustrated embodiment.
[0119] The present application also provides a computer program product, wherein one embodiment includes: when the computer program product is run on a computer device, the computer device executes the aforementioned Figures 2 to 3 The operations performed by the computer device in the illustrated embodiment.
[0120] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0121] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0122] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0123] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0124] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, read-only memory), random access memory (RAM, random access memory), disk or optical disk and other media that can store program code.
Claims
1. A data model configuration method, characterized in that: The method comprises: Displaying a configuration page, wherein the configuration page displays a data model selection control, wherein the data model selection control is associated with a plurality of data models; receiving, through the configuration page, a data model to be operated selected by a user triggering the data model selection control, and receiving a configuration operation on the data model to be operated input by the user on the configuration page; The data model to be operated is configured based on the configuration operation to obtain a target data model.
2. The method according to claim 1, characterized in that Each of the data models includes a plurality of fields; The receiving a configuration operation on the data model to be operated input by the user on the configuration page includes: Receive a configuration operation input by a user on the configuration page for adding field information of a target field to the data model to be operated; The configuring the data model to be operated based on the configuration operation to obtain a target data model includes: Based on the configuration operation, field information of the target field is added to the data model to be operated to obtain the target data model.
3. The method according to claim 1, characterized in that Each of the data models includes a plurality of fields; The step of receiving, through the configuration page, a data model to be operated selected by a user when the user triggers the data model selection control, and receiving a configuration operation on the data model to be operated input by the user on the configuration page, includes: Receiving, through the configuration page, a data model to be operated selected by a user triggering the data model selection control and a target field of the data model to be operated selected by the user triggering the data model selection control, and receiving a configuration operation on the target field input by the user on the configuration page; The configuring the data model to be operated based on the configuration operation to obtain a target data model includes: The target field of the data model to be operated is configured based on the configuration operation to obtain the target data model.
4. The method according to claim 1, characterized in that Each of the data models includes a plurality of model views; The step of receiving, through the configuration page, a data model to be operated selected by a user when the user triggers the data model selection control, and receiving a configuration operation on the data model to be operated input by the user on the configuration page, includes: Receiving, through the configuration page, a data model to be operated selected by a user when triggering the data model selection control and a target model view of the data model to be operated selected by the user when triggering the data model selection control, and receiving a configuration operation on the target model view input by the user on the configuration page; The configuring the data model to be operated based on the configuration operation to obtain a target data model includes: The target model view of the data model to be operated is configured based on the configuration operation to obtain the target data model.
5. The method according to claim 4, characterized in that The model view includes at least one field; The configuring the target model view of the data model to be operated based on the configuration operation to obtain the target data model includes: The display position of the target field in the target model view is configured at the display position indicated by the configuration operation.
6. The method according to claim 1, characterized in that The method further comprises: Determine a data flow rule corresponding to the data model to be operated, wherein the data flow rule is used to indicate that data synchronization is performed between multiple associated data models; According to the data flow rule corresponding to the data model to be operated, the configuration operation performed on the data model to be operated is synchronized with the associated data model associated with the data model to be operated.
7. The method according to claim 6, characterized in that The configuration operation performed on the associated data model associated with the data model to be operated to synchronize the data model to be operated includes: If the configuration operation performed on the data model to be operated is to configure the target field of the data model to be operated, the same configuration operation is performed on the associated fields in the associated data model that are associated with the target field of the data model to be operated.
8. The method according to claim 6 or 7, characterized in that: The method further comprises: receiving a setting operation of the data flow rule by a user, and determining at least one of the data flow rules according to the setting operation; The data flow rule is applied to all data models according to the setting operation.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the method according to any one of claims 1 to 8 is implemented.
10. A computer storage medium, characterized in that: The computer storage medium stores instructions, and when the instructions are executed on a computer, the computer is caused to perform the method according to any one of claims 1 to 8.