MVSC-based background management interface configuration method and related product
By introducing decision configuration files into the background management system, the controller selects data model to update the interface view according to the configuration file, solving the operational complexity and high cost problems when interface requirements change in MVC mode, and achieving more efficient interface configuration and maintenance .
Patent Information
- Application Number
- CN202411226878.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-03
- Publication Date
- 2024-12-31
AI Technical Summary
When the background management interface requirements change, the existing MVC mode needs to modify the code of the controller and view, resulting in complex operations and high time costs.
Using the MVSC-based backend management interface configuration method, by building preset data models and decision configuration files, the controller selects the data model based on the parameter information of the decision configuration file, directly modify the decision configuration file to update the interface view, avoiding modifying the controller and view Code.
It reduces the workload and difficulty of interface view modification, improves work efficiency, and reduces time and labor costs.
Smart Images

Figure CN119225882A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of background management systems, and in particular to a background management interface configuration method based on MVSC and related products. Background Art
[0002] At present, the development of backend management systems basically adopts the MVC (Model-View-Controller) model to handle the relationship between data models, views and controllers. Users interact with the front-end view to trigger the controller, which processes the corresponding business logic to obtain the data model corresponding to the view, thereby realizing the construction of backend management functions and meeting the user's backend management needs. The MVC model can make the responsibilities between the data model, view and controller clear, and can improve the work efficiency of development and later maintenance.
[0003] For a backend management system based on the MVC model, when the backend management requirements change, the view of the backend management interface needs to be modified, and the modification usually involves the following two aspects:
[0004] Controller: The table required by the background management interface directly affects the selection of model data. The code in the controller needs to be modified to determine the acquisition of the new required model data;
[0005] View: Changes in the requirements of the backend management interface affect changes in the style of the backend management page. The style of the front-end view needs to be modified to meet the view display effect after the requirements of the backend management interface are changed.
[0006] According to the above content, when the requirements of the background management interface change, since both the controller and the view need to be coded accordingly, there are problems of complex operation and high time cost. Summary of the invention
[0007] The purpose of the present invention is to provide a background management interface configuration method and related products based on MVSC, which are used to solve the problems of complex operation and high time cost when the background management interface requirements are changed in the prior art.
[0008] Specifically, in a first aspect, the present invention provides a background management interface configuration method based on MVSC, which is used to configure the background management interface of a background management system; the background management system is provided with a decision configuration file, and the background management interface configuration method includes:
[0009] Constructing a preset data model of multiple preset items, wherein the preset data model is used to configure the view of the background management interface;
[0010] Detecting whether the decision configuration file has been modified;
[0011] If yes, then reading the parameter information of the decision configuration file, and acquiring the target data model from the plurality of preset data models according to the parameter configuration information;
[0012] The view of the background management interface is configured according to the target data model to interact with the user.
[0013] Furthermore, the backend management interface configuration method further includes:
[0014] Determining whether a preset change condition of the decision configuration file is triggered;
[0015] If so, the decision configuration file is configured according to the preset change condition.
[0016] Further, the preset change condition includes that the setting project proceeds to the setting stage, and the configuring of the decision configuration file according to the preset change condition includes:
[0017] The target item of the setting stage is obtained, and the decision configuration file is modified according to the target item of the setting stage.
[0018] Furthermore, before modifying the decision configuration file according to the target items in the setting stage, the method further includes:
[0019] Determining whether there is a preset data model corresponding to the target item in the setting stage;
[0020] If yes, then executing the step of modifying the decision configuration file according to the target items of the setting stage;
[0021] Furthermore, the background management system is also provided with a database, in which a data table of each of the preset items is provided, and the preset data model for constructing a plurality of preset items is provided, including:
[0022] Obtain each of the data tables, and create a corresponding preset data model according to the data tables.
[0023] Furthermore, after the preset data models of the plurality of preset items are constructed, the method further includes:
[0024] Detecting whether the fields in each of the data tables have changed;
[0025] If so, the corresponding preset data model is modified according to the modified data table.
[0026] Furthermore, the reading of the parameter information of the decision configuration file and acquiring the target data model from the plurality of preset data models according to the parameter configuration information includes:
[0027] Convert the decision configuration file into an array of a set format, and obtain the field name of the target item from the array;
[0028] A preset data model corresponding to the target item is acquired according to the field name to obtain the target data model.
[0029] In a second aspect, the present invention further provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of any of the above-mentioned backend management interface configuration methods.
[0030] In a third aspect, the present invention further provides a computer program product, including a computer program, characterized in that when the computer program is executed by a processor, the steps of the background management interface configuration method described in any one of the above items are implemented.
[0031] In a fourth aspect, the present invention further provides a computer device, comprising a memory, a processor and a computer program stored in the memory, wherein the processor executes the computer program to implement the steps of the background management interface configuration method described in any one of the above items.
[0032] The technical solution of the present invention is to make a decision configuration file in the background management system. Since the controller can select a data model according to the parameter information of the decision configuration file, and control the view displayed by the background management interface according to the selected data model, when the view of the background management interface needs to be modified, it is only necessary to modify the decision configuration file, and there is no need to modify the code of the controller and the background management interface. Due to the technical solution of the present invention, it is possible to modify the view of the background management interface without modifying the code of the controller and the background management interface, so that the workload and difficulty of modifying the view can be reduced, thereby achieving the purpose of improving work efficiency and reducing time cost and labor cost.
[0033] Based on the following detailed description of specific embodiments of the present invention in conjunction with the accompanying drawings, those skilled in the art will become more aware of the above and other objects, advantages and features of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Hereinafter, some specific embodiments of the present invention will be described in detail in an exemplary and non-limiting manner with reference to the accompanying drawings. The same reference numerals in the accompanying drawings indicate the same or similar components or parts. It should be understood by those skilled in the art that these drawings are not necessarily drawn to scale. In the accompanying drawings:
[0035] Figure 1 is a schematic diagram of the structure of a background management system according to an embodiment of the present invention;
[0036] Figure 2 is a schematic flow chart of a method for configuring a background management interface based on MVSC according to an embodiment of the present invention;
[0037] Figure 3 is a schematic flow chart of modifying a decision configuration file in a background management interface configuration method according to an embodiment of the present invention;
[0038] Figure 4 is a schematic diagram of a view according to an embodiment of the present invention;
[0039] Figure 5 is a schematic diagram of another view according to an embodiment of the present invention;
[0040] Figure 6 is a schematic flow chart of judging each preset data model in a background management interface configuration method according to an embodiment of the present invention;
[0041] Figure 7 is a schematic diagram of the structure of a background management system according to another embodiment of the present invention;
[0042] Figure 8 is a schematic flow chart of a method for configuring a background management interface based on MVSC according to another embodiment of the present invention;
[0043] Fig. 9 is a schematic diagram of a computer program product according to an embodiment of the present invention;
[0044] Fig.10 is a schematic diagram of a computer-readable storage medium according to an embodiment of the present invention; and
[0045] Fig.11 is a schematic diagram of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0046] Refer to the following Figures 1 to 11To describe a background management interface configuration method and related products based on MVSC according to an embodiment of the present invention. In the description of this embodiment, it should be understood that the terms "first" and "second" are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features, that is, include one or more of the features. In the description of the present invention, the meaning of "multiple" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined. When a feature "includes or contains" one or some of the features it covers, unless otherwise specifically described, this indicates that other features are not excluded and may further include other features.
[0047] Figure 1 is a schematic flow chart of a backend management interface configuration method based on MVSC (Model-View-Set-Controller) according to an embodiment of the present invention, wherein the backend management interface configuration method is applied to a backend management system, such as Figure 2 As shown, it includes a controller 011, a background management interface 012, a model set 013 and a decision configuration file 014, wherein the model set 013 includes multiple preset data models 031. The background management interface configuration method of this embodiment is executed by the controller 011, and the background management interface 012 of the background management system can be configured according to the decision configuration file 014 to control the view of the background management interface 012 to meet the user's needs. Figure 1 The process shown is a detailed introduction to the background management program configuration method of this embodiment.
[0048] like Figure 2 As shown, the MVSC-based background management interface configuration method of this embodiment may generally include the following steps:
[0049] Step S101: constructing preset data models 031 of multiple preset items, and storing each preset data model 031 in the model set 013;
[0050] Step S102: Detect whether the decision configuration file 014 has been modified;
[0051] If yes, execute step S103;
[0052] Step S103: reading parameter information of the decision configuration file 014, and acquiring a target data model from the model set 13 according to the parameter information;
[0053] Step S104: configuring the view of the background management interface 012 according to the acquired target data model, so as to interact with the user through the view.
[0054] In the above step S101, the preset items can be set according to the application scenario of the backend management system. Taking the application scenario as a trading platform as an example, each preset item can include the price of each commodity in the trading platform, transaction records and other transaction information. The preset data model 031 of each preset item can be the data structure of the application program of each preset item and the business logic for processing data, and can manage the data status of the application program of each preset project and the data change status.
[0055] The preset data model 031 in this embodiment is used to obtain data from the database of the background management system using a logic algorithm corresponding to the preset item, and calculate the characteristic information of the preset item based on the obtained data. For example, if the preset item is the total sales volume of a certain commodity, the corresponding preset model data model 031 can read the sales volume of the commodity in each time period from the database, and then sum up the sales volumes to obtain the total sales volume of the commodity.
[0056] After the preset data models 031 of the preset items are constructed, the preset data models 031 are stored in the model set 013 so as to be called by the controller 011 .
[0057] In the above step S102, the decision configuration file 014 is a file that the user can modify according to needs. The controller 011 can periodically detect the parameter information in the decision configuration file 014, and after each detection, determine whether the detected parameter information is consistent with the parameter information detected last time; if inconsistent, it is determined that the decision configuration file 014 is modified.
[0058] Alternatively, each time the decision configuration file 014 is modified, an update timestamp of the decision configuration file 014 is generated, and the controller 011 can determine whether the decision configuration file 014 is modified by detecting whether the update timestamp of the decision configuration file 014 is changed.
[0059] Alternatively, each time the decision configuration file 014 is modified, file update information is sent to the controller 011 , and after receiving the file update information, the controller 011 determines that the decision configuration file 014 is modified.
[0060] In the above step S103, the parameter information in the decision configuration file 014 can be read through the preset data reading instruction, and the preset project involved in the parameter information can be used as the target project; then the preset data model 031 matching the target project can be searched from the model set 013, and the found preset data model 031 can be used as the target data model.
[0061] In the above step S104, after obtaining the target data model, each target data model can be used to obtain the data of the target project from the database, and the characteristic value of each target project can be calculated, and then the parameter information can be displayed in the view of the background management interface 12 to control the view of the background management interface 12 and interact with the user through the view.
[0062] According to the above content, the technical solution of this embodiment is to make a decision on the configuration file 014 in the background management system. Since the controller 011 can select a data model according to the parameter information of the decision configuration file 014 and control the view displayed by the background management interface 012 according to the selected data model, when the view of the background management interface 012 needs to be modified, it is only necessary to modify the decision configuration file 014. Due to the technical solution of this embodiment, the view of the background management interface 012 can be modified without modifying the code of the controller 011 and the background management interface 012, so the workload and difficulty of modifying the view can be reduced, thereby achieving the purpose of improving work efficiency and reducing time cost and labor cost.
[0063] In some embodiments of the present invention, the MVSC-based background management interface configuration method of the present application also includes a step of modifying the decision configuration file 014.
[0064] In this embodiment, the method for modifying the decision configuration file 014 is as follows: Figure 3 As shown, the following steps are included:
[0065] Step S201: Detect whether a preset change condition of the decision configuration file 014 is triggered;
[0066] If yes, execute step S202;
[0067] Step S202: modify the decision configuration file 014 according to the triggered preset change condition.
[0068] In this embodiment, a plurality of preset change conditions of the decision configuration file 014 may be preset, and a preset change strategy corresponding to each preset change condition may be configured.
[0069] In the above step S201, when it is detected that any preset change condition of the decision configuration file 014 is triggered, it is determined that the decision configuration file needs to be modified.
[0070] In the above step S202, the triggered preset change condition is first identified, then the preset change strategy corresponding to the preset change condition is obtained, and the decision configuration file 014 is modified according to the preset change strategy.
[0071] Through the technical solution of this embodiment, when the preset change condition of the decision configuration file 014 is triggered, the decision configuration file 014 can be modified according to the preset change condition, thereby achieving reliability of the modification of the decision configuration file 014.
[0072] In some embodiments of the present invention, the preset change condition in the above step S201 includes setting the project to proceed to the setting stage.
[0073] Accordingly, the method for modifying the decision configuration file according to the preset change condition includes:
[0074] Obtain the target project of the setting phase and modify the decision profile according to the target project.
[0075] In this embodiment, when the setting project reaches different stages, the view of the background management interface 012 may need to display different target projects. The above setting stage refers to the stage where the view of the background management interface 012 needs to be changed. After the decision configuration file 014 is modified according to the target project in the setting stage, the controller 011 obtains the target data model according to the decision configuration file 014, and can control the view of the background management interface 012 to display the target project according to the target data model.
[0076] Taking the setting project as product display as an example, in the early stage of product display, since less product information is obtained, the target items displayed in the view of the backend management interface 012 include the title, picture and price of the product; as the sales volume of the product increases, in the later stage of product display, for example, after the product sales period is set, the target items displayed in the view of the backend management interface 012 need to also include the sales volume, inventory, whether it is on the shelf, sales ranking, etc. of the product.
[0077] In the above application scenario, when the sales time of the product is less than the set time, in order to make the target items displayed in the view of the backend management interface 012 include the title, picture and price of the product, the decision configuration file 014 can be:
[0078]
[0079] Among them, goodsIndex represents the method that needs to be executed by the controller 011 to control the view of the background management interface 012, model represents the name of the preset data model that needs to be selected, "model": "Goods" indicates that the type of the target data model is Goods (commodity); view represents the view displayed by the execution method, view[] represents the field name contained in the displayed view; db represents the field name of the target project, for example, "db": "title" indicates that the field name of the corresponding target project is title; name represents the Chinese name of the corresponding target project, for example, "name": "price" indicates that the Chinese name of the corresponding target project is price; type represents the data type of the corresponding target project, for example, "type": "image" indicates that the data type of the corresponding target project is image (picture), and "type": "money" indicates that the data type of the corresponding target project is money (money).
[0080] The target items obtained by the controller 011 according to the decision configuration file 014 include the ID, specification, picture and price of the product. Accordingly, the target data model obtained includes the ID data model, specification data model, picture data model and price data model of the product, wherein the ID data model can obtain the ID of each product from the database, the specification data model can obtain the specification of each product from the database, the picture data model can obtain the picture of each product from the database, and the price data model can obtain the price of each product. The view generated in the background management interface 012 according to the target data model is as follows: Figure 4 As shown, it includes the ID (number), title, picture and price of each product.
[0081] After the set time of commodity sales, it can be determined that the commodity display has entered the set stage, and the target items of the set stage obtained according to the preset change conditions include the commodity title, picture, price, sales volume, inventory, whether it is a merchant and sales ranking, so it is necessary to modify the decision configuration file 014, and change the commodity information to be displayed from title, picture and price to title, picture, price, sales volume, inventory, whether it is on the shelf and sales ranking, so the decision configuration file 014 is:
[0082]
[0083]
[0084] Among them, sales indicates the sales volume of the product, is_sale indicates whether the product has been put on the shelf, and sort indicates the sales ranking of the product.
[0085] The target items obtained by the controller 011 according to the modified decision configuration file 014 include the product ID, title, picture, price, sales, inventory, shelf and sales ranking, and the target data model obtained includes the product ID data model, title data model, picture data model, price data model, sales data model, inventory data model, shelf data model and sales ranking data model. The view generated in the background management interface 012 according to the target data model is as follows: Figure 5 As shown, it includes the ID, title, picture, price, sales volume, inventory, listing and sorting of each product.
[0086] exist Figure 5 In the view shown, inventory refers to the current remaining inventory; on-shelf refers to whether the product is on the shelf. If the value of the product in the on-shelf option is 1, it means that the product is on the shelf. If the value of the product in the on-shelf option is 0, it means that the product is not on the shelf; sales ranking refers to the sales ranking of each product among similar products.
[0087] According to the above content, it can be seen that the technical solution of this embodiment can modify the decision configuration file according to the stage of the setting project, thereby realizing adaptive update of the decision configuration file without human intervention, and further realizing adaptive update of the view of the background management interface 012 according to the stage of the setting project.
[0088] In some embodiments of the present invention, before modifying the decision configuration file according to the target items in the setting phase, a step of judging each preset data model 031 is also included.
[0089] In this embodiment, the method for judging each preset data model 031 is as follows: Figure 6 As shown, the following steps are included:
[0090] Step S301: determine whether there is a preset data model 031 corresponding to the target item in the setting stage in the model set 013;
[0091] If it exists, execute step S302; if it does not exist, do not modify the decision configuration file 014;
[0092] Step S302: modify the decision configuration file 014 according to the target items of the setting stage.
[0093] For example, assuming that the target items of the above setting stage include the title, picture, price, sales volume, inventory, whether to be put on the shelf and sales ranking of the product, the parameters to be changed in the decision configuration file 014 include the title, picture, price, sales volume, inventory, whether to be put on the shelf and sales ranking of the product. If there is a preset data model 034 corresponding to any one of the title, picture, price, sales volume, inventory, whether to be put on the shelf and sales ranking of the product in the model set 13, the decision configuration file 014 is not modified.
[0094] In the technical solution of this embodiment, before modifying the decision configuration file 014, it is first determined whether there is a preset data model 034 corresponding to the target project in the setting stage in the model set 013, so as to ensure that after modifying the decision configuration file 014, the controller 011 can obtain the corresponding preset data model 031 from the model set 013 to control the view of the background management interface 012. Since the view of the background management interface 012 is generated according to the preset data model 034, if there is no preset data model 034 corresponding to the parameter to be changed of the decision configuration file 014, the background management interface 012 cannot be adjusted by changing the data model, so the decision configuration file 014 is not modified to reduce the data processing amount of the controller 011.
[0095] In some embodiments of the present invention, Figure 7 As shown, the background management system of the present invention further includes a database 015, in which a plurality of data tables 051 are arranged, and each data table 051 corresponds to a preset item.
[0096] In this embodiment, the method of constructing the preset data model 031 of multiple preset items in the above step S101 includes:
[0097] The data tables 051 for each preset item in the database 015 of the background management system are obtained, and corresponding preset data models are created according to each data table 051 .
[0098] In the process of creating the preset data model 031 in this embodiment, relevant data of the preset item can be obtained from the data table corresponding to each preset item, and the corresponding preset data model 031 can be created based on the relevant data, so that the preset data model 031 can obtain the relevant data of the corresponding preset item from the corresponding database 051, and calculate the characteristic information of the preset item based on the relevant data of the corresponding preset item.
[0099] Through the technical solution of this embodiment, the data table in the database can be associated with the preset data model 031, so that in the process of creating the preset data model 031, the corresponding data can be obtained from the corresponding data table in the database to improve the work efficiency of creating each preset data model 031.
[0100] In some embodiments of the present invention, Figure 8 As shown, the background management interface configuration method of the present invention, after constructing the preset data models of multiple preset items in the above step S101, further includes:
[0101] Step S111: Detect whether the fields of each data table 051 in the database 015 are changed;
[0102] If yes, execute step S112;
[0103] Step S112: Reconstruct the preset data model 031 corresponding to the data table with changed fields.
[0104] In this embodiment, the change of the fields of each data table 51 in the database 015 means that the fields in each data table 051 in the database 015 are deleted or modified, or new fields are added. After detecting that the fields of a data table 051 in the database 015 have changed, the corresponding preset data model 031 is regenerated according to the data table 051 with the changed fields, so that each preset data model 031 in the model set 013 is consistent with the corresponding data table 051, and then after generating a view according to the preset data model 031, the content displayed by the view is consistent with the content in the corresponding data table 051.
[0105] The technical solution of this embodiment can ensure that the data displayed in the view of the background management interface 12 is consistent with the data in each data table in the database, thereby improving the accuracy of the data displayed in the view of the background management interface 12.
[0106] In some embodiments of the present invention, the method of reading the parameter information of the decision configuration file 14 and acquiring the target data model from the model set 013 according to the parameter information includes:
[0107] Convert the decision profile 014 into an array of a specified format and obtain the field name of the target item from the data;
[0108] The preset data model 031 corresponding to the target item is acquired according to the field name of the target item, and the preset data model 031 is used as the target data model.
[0109] In this embodiment, the characters in the decision configuration file 014 can be read by the following instructions:
[0110] $str=file_get_contents('C: / Project / website / config.txt');
[0111] Among them, C: / Project / website / config.txt is the storage location of the decision configuration file 014, that is, it is stored in the subfolder website in the folder Project in the C drive of the computer, and the file name of the decision configuration file 014 is config.txt. file_get_contents() is a file reading function used to read characters in a file; $str is a string read from the decision configuration file 014.
[0112] Then, use the following command to convert the content in the decision configuration file 014 into a Json array:
[0113] $arr=json_decode($str,true);
[0114] Among them, $arr represents the Json array obtained after the decision configuration file 014 is converted, json_decode() is a function used to decode the string in JSON format; true is a blue value, which is used to indicate that the string is converted into an array.
[0115] Next, select the field name of the target item from the Json array. In this embodiment, the field name of each target item is obtained in sequence through the following instructions:
[0116] $goodsIndex=$arr['goodsIndex'];
[0117] Among them, goodsIndex represents the method in the decision configuration file 014, and the above instruction represents reading the field names of each target item in the method goodsIndex from the array $arr, and assigning each field name to the variable $goodsIndex.
[0118] Finally, the corresponding target data model is obtained according to the field name of each target item, and the corresponding view is obtained according to each target data model.
[0119] For example, you can use the following command to get the type of the target data model:
[0120] $model=$goodsIndex['model'];
[0121] Among them, $goodsIndex['model'] means getting the name of the target data model from the variable $goodsIndex and assigning it to the variable $model, for example, assigning Goods to the variable $model. Therefore, the type of the target data model can be obtained according to the variable $model.
[0122] Then, each target data model is obtained according to the type of the target data model and the field name of each target item. For example, if the target item includes the ID, specification, picture and price of the product, the target data model obtained is the ID data model, specification data model, picture data model and price data model of the product.
[0123] In this embodiment, the items displayed in the view of the background management interface 012 can be obtained by the following command:
[0124] $view=$goodsIndex['view'];
[0125] Among them, $goodsIndex['view'] means obtaining the field names of the target item from the variable $goodsIndex and assigning each field name to the variable $view. For example, if the field names of the target item include the ID, specification, picture and price of the product, the ID, specification, picture and price of the product are assigned to the variable $view, and the view generated in the background management interface 012 according to the variable $view includes the product ID, specification, picture and price.
[0126] In this embodiment, the variable $view can be used to generate a view that displays the field name of each target item, and the characteristic information of each commodity on each target item can be obtained through the target data model, and then the characteristic information is generated as the display content of the view of the backend management interface 012.
[0127] Through the technical solution of this embodiment, the decision configuration file can be read multiple times by setting data reading instructions, so as to quickly generate a view according to the decision configuration file 014, thereby improving the work efficiency of generating the view.
[0128] The flow chart provided by the present embodiment is not intended to indicate that the operation of the method will be performed in any particular order, or that all operations of the method are included in all every case. In addition, the method may include additional operations. Within the scope of the technical ideas provided by the present embodiment method, additional changes can be made to the above method.
[0129] It should be understood that in some embodiments, each part can be implemented by hardware, software, firmware or a combination thereof. In the above embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system.
[0130] This embodiment also provides a computer program product 10 , a computer readable storage medium 20 , and a computer device 30 . Fig. 9 is a schematic diagram of a computer program product 10 according to an embodiment of the present invention, Fig.10is a schematic diagram of a computer-readable storage medium 20 according to an embodiment of the present invention, Fig.11 is a schematic diagram of a computer device 30 according to an embodiment of the present invention. The computer program product 10 includes a computer program 11, which implements the steps of any of the above-mentioned methods for configuring a background management interface based on MVSC when executed by a processor 32. The computer-readable storage medium 20 stores the above-mentioned computer program 11, which implements the steps of any of the above-mentioned methods for configuring a background management interface based on MVSC when executed by a processor 32. The computer device 30 may include a memory 31, a processor 32, and a computer program 11 stored in the memory 31 and running on the processor 32.
[0131] The computer program 11 for performing the operation of the present invention may be an assembly instruction, an instruction set architecture (ISA) instruction, a machine instruction, a machine-related instruction, a microcode, a firmware instruction, a state setting data, a configuration data of an integrated circuit, or a source code or an object code written in any combination of one or more programming languages and process programming languages. The computer program 11 may be executed entirely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the latter case, the remote computer may be connected to the user's computer via any type of network (including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider via the Internet). In some embodiments, in order to perform various aspects of the present invention, an electronic circuit including, for example, a programmable logic circuit, a field programmable gate array (FPGA) or a programmable logic array (PLA) may execute computer-readable program instructions by utilizing the state information of the computer-readable program instructions to personalize the electronic circuit.
[0132] In the description of this embodiment, the computer program product 10 is a related product including the computer program 11 .
[0133] For the purposes of the description of this embodiment, the computer-readable storage medium 20 is a tangible device capable of retaining and storing the computer program 11, which may be any device that can contain, store, communicate, propagate or transmit the program 11 for use with or in conjunction with an instruction execution system, device or apparatus. More specific examples (a non-exhaustive list) of the computer-readable storage medium 20 include the following: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, and any suitable combination of the foregoing.
[0134] The computer device 30 may be, for example, a server, a desktop computer, a notebook computer, a tablet computer, or a smart phone. In some examples, the computer device 30 may be a cloud computing node. The computer device 30 may be described in the general context of computer system executable instructions (such as program modules) executed by a computer system. Typically, a program module may include routines, programs, target programs, components, logic, data structures, etc. that perform specific tasks or implement specific abstract data types. The computer device 30 may be implemented in a distributed cloud computing environment where remote processing devices linked via a communication network perform tasks. In a distributed cloud computing environment, program modules may be located on a local or remote computing system storage medium including a storage device.
[0135] The computer device 30 may include a processor 32 adapted to execute stored instructions, and a memory 31 providing temporary storage space for the operation of the instructions during operation. The processor 32 may be a single-core processor, a multi-core processor, a computing cluster, or any number of other configurations. The memory 31 may include a random access memory (RAM), a read-only memory, a flash memory, or any other suitable storage system.
[0136] The computer device 30 may also include a network adapter / interface and an input / output (I / O) interface. The I / O interface allows data to be input and output with external devices that may be connected to the computer device. The network adapter / interface may provide communication between the computer device and a network, which is typically shown as a communication network.
[0137] At this point, those skilled in the art should recognize that, although multiple exemplary embodiments of the present invention have been shown and described in detail herein, many other variations or modifications that conform to the principles of the present invention can still be directly determined or derived based on the content disclosed in the present invention without departing from the spirit and scope of the present invention. Therefore, the scope of the present invention should be understood and recognized as covering all these other variations or modifications.
Claims
1. A background management interface configuration method based on MVSC, which is used to configure the background management interface of the background management system; characterized in that: The backend management system is provided with a decision configuration file, and the backend management interface configuration method includes: Constructing a preset data model of multiple preset items, wherein the preset data model is used to configure the view of the background management interface; Detecting whether the decision configuration file has been modified; If yes, then reading the parameter information of the decision configuration file, and acquiring the target data model from the plurality of preset data models according to the parameter configuration information; The view of the background management interface is configured according to the target data model to interact with the user.
2. The backend management interface configuration method according to claim 1, characterized in that: The backend management interface configuration method also includes: Determining whether a preset change condition of the decision configuration file is triggered; If so, the decision configuration file is configured according to the preset change condition.
3. The backend management interface configuration method according to claim 2, characterized in that: The preset change condition includes that the setting project proceeds to the setting stage, and the configuration of the decision configuration file according to the preset change condition includes: The target item of the setting stage is obtained, and the decision configuration file is modified according to the target item of the setting stage.
4. The backend management interface configuration method according to claim 3, characterized in that: Before modifying the decision configuration file according to the target items in the setting stage, the method further includes: Determining whether there is a preset data model corresponding to the target item in the setting stage; If yes, the step of modifying the decision configuration file according to the target items of the setting stage is performed.
5. The backend management interface configuration method according to claim 1, characterized in that: The backend management system is also provided with a database, wherein the database is provided with data tables corresponding to the preset items, and the preset data model for constructing a plurality of preset items includes: Obtain each of the data tables, and create a corresponding preset data model according to the data tables.
6. The backend management interface configuration method according to claim 5, characterized in that: After the preset data models of the plurality of preset items are constructed, the following step further includes: Detecting whether the fields in each of the data tables have changed; If so, the corresponding preset data model is modified according to the modified data table.
7. The backend management interface configuration method according to claim 1, characterized in that: The step of reading the parameter information of the decision configuration file and acquiring the target data model from the plurality of preset data models according to the parameter configuration information includes: Convert the decision configuration file into an array of a set format, and obtain the field name of the target item from the array; A preset data model corresponding to the target item is acquired according to the field name to obtain the target data model.
8. A computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the background management interface configuration method according to any one of claims 1 to 7.
9. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the background management interface configuration method described in any one of claims 1 to 7 are implemented.
10. A computer device comprising a memory, a processor and a computer program stored in the memory, wherein the processor executes the computer program to implement the steps of the background management interface configuration method according to any one of claims 1 to 7.
