Data management method, device and equipment and computer readable storage medium
By splitting the data management platform into main application and sub-application, and connecting to shared containers and general component libraries, the problems of poor login switching and data interoperability in the multi-service system platform are solved, and the efficiency and convenience of data management are achieved.
Patent Information
- Application Number
- CN202411512307.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-28
- Publication Date
- 2025-02-25
AI Technical Summary
In the multi-service system platform, frequent login and authorization switching and poor data interoperability increase the complexity and low efficiency of data management.
By splitting the data management platform into main application and multiple sub-applications, accessing shared containers and general component libraries, loading target sub-applications in response to management requests, and processing data management instructions through shared containers, general component libraries and target sub-applications.
It realizes data sharing and synchronization between different business systems, improves convenience, improves data management efficiency, and reduces the cost of repeated development.
Smart Images

Figure CN119512641A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a data management method, apparatus, device and computer-readable storage medium. Background Art
[0002] With the development of modern information technology, more and more enterprises and organizations are using platforms that include multiple business systems to meet different functional requirements. Each business system usually contains multiple business modules, each of which can support different functions, so that different business systems can handle different businesses.
[0003] However, when using different systems, it is necessary to frequently switch logins and authorizations, and data cannot be interoperable, which increases the complexity of use and may lead to inconsistent operations, affecting the overall user experience, thereby increasing the difficulty of data management and reducing the efficiency of data management.
[0004] Therefore, how to improve the efficiency of data management is an urgent problem to be solved. Summary of the invention
[0005] To solve the above technical problems, embodiments of the present application provide a data management method, apparatus, device, and computer-readable storage medium.
[0006] Among them, the technical solution adopted in this application is:
[0007] A data management method, applied to a data management platform, comprising:
[0008] Receive a management request from a target object for a target business through a main application;
[0009] In response to the management request, the target sub-application corresponding to the target business is loaded; wherein the main application and the sub-application are obtained by splitting the front-end application of the data management platform;
[0010] Connecting the target sub-application to a shared container and a universal component library; wherein the shared container is used to forward data for different sub-applications, and the universal component library is used to store universal components to be used by the sub-applications;
[0011] If a data management instruction for the target business input by the target object is detected, the data management instruction is processed through the shared container, the common component library and the target sub-application.
[0012] A data management device, applied to a data management platform, comprising:
[0013] The transceiver unit is used to receive a management request of a target object for a target service through a main application;
[0014] A processing unit, configured to load a target sub-application corresponding to the target business in response to the management request; wherein the sub-application is obtained by splitting the front-end application of the data management platform;
[0015] An access unit, used to access the target sub-application to a shared container and a general component library; wherein the shared container is used to forward data for different sub-applications, and the general component library is used to store general components to be used by the sub-applications;
[0016] The processing unit is further configured to process the data management instruction for the target business through the shared container, the general component library and the target sub-application if a data management instruction input by the target object is detected.
[0017] In one embodiment of the present application, based on the aforementioned scheme, the processing unit is further used to detect the target general component to be used by the target sub-application based on the target sub-application and the data management instruction; the device also includes an acquisition unit, which is used to acquire the target general component from multiple general components stored in the general component library and pass the target general component to the target sub-application; the data management instruction is processed by the target sub-application, the target general component and the shared container.
[0018] In one embodiment of the present application, based on the aforementioned scheme, the number of the target sub-applications is multiple; the processing unit is also used to instruct the first sub-application to send the target data to the shared container if the first sub-application is to send the target data to the second sub-application; wherein the first sub-application and the second sub-application are any two sub-applications in the target sub-application; instruct the second sub-application to obtain the target data sent by the first sub-application from the shared container; and process the data management instruction through the first sub-application, the second sub-application, the target common component and the target data.
[0019] In one embodiment of the present application, based on the aforementioned scheme, the acquisition unit is further used to acquire identification information of the target object; the processing unit is further used to determine, from multiple businesses, candidate businesses for which the target object has operation permissions based on the identification information; if it is detected that the target object performs a selection operation on the target business from the candidate businesses in the main application, it is determined that a management request for the target business by the target object has been received.
[0020] In one embodiment of the present application, based on the aforementioned scheme, before obtaining the identification information of the target object, the processing unit is also used to output a login interface to the target object if the identification information of the target object is not obtained, so that the target object fills in the identification information of the target object on the login interface.
[0021] In one embodiment of the present application, based on the above-mentioned solution, in response to the management request, the target sub-application corresponding to the target business is queried; and the target sub-application is mounted to the sub-application pool corresponding to the target business.
[0022] In one embodiment of the present application, based on the aforementioned scheme, if a request to run a specified sub-application is received, the specified main application corresponding to the specified sub-application is detected; if the specified main application is detected, the specified sub-application is mounted into the sub-application pool of the specified main application, and the specified main application is run through the sub-application pool of the specified main application; if the specified main application is not detected, the specified sub-application is run.
[0023] A data management device includes a processor and a memory, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the above data management method is implemented.
[0024] A computer-readable storage medium stores computer-readable instructions, which, when executed by a processor of a computer, enable the computer to execute the above data management method.
[0025] A computer program product includes computer-readable instructions, and when the computer-readable instructions are executed by a processor, the above data management method is implemented.
[0026] In the above technical solution:
[0027] The data management platform can be split into a main application and multiple sub-applications. When a management request for a target business is received from a target object through the main application, the target sub-application corresponding to the target business can be loaded. Next, the target sub-application can be connected to a shared container and a general component library; wherein the shared container is used to forward data for different sub-applications, and the general component library is used to store general components to be used by sub-applications. Then, if a data management instruction for the target business input by the target object is detected, the data management instruction is processed through the shared container, the general component library, and the target sub-application.
[0028] On the one hand, the data management platform is divided into a main application and multiple sub-applications. Different businesses can use different sub-applications, and different sub-applications can also interact with each other through shared containers, so that data can be synchronized and shared among different sub-applications. In this way, the independence of each sub-application is guaranteed, the convenience of data sharing and synchronization is improved, and the efficiency of data management is improved.
[0029] On the other hand, the general component library can store general components to be used by sub-applications. In this way, different sub-applications can obtain different components from the general component library according to their needs, which can reduce the repeated development of sub-applications with overlapping functions, improve the efficiency of data management, and reduce the cost of data management.
[0030] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] The drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present application, and together with the specification, are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work. In the drawings:
[0032] Figure 1 It is a schematic diagram of an implementation environment involved in this application;
[0033] Figure 2 It is a schematic diagram of the architecture of a data sharing and synchronization function involved in this application;
[0034] Figure 3 is a flowchart of a data management method according to an exemplary embodiment
[0035] Figure 4 is a flow chart of a data management method according to another exemplary embodiment;
[0036] Figure 5 is a flow chart of a data management method according to another exemplary embodiment;
[0037] Figure 6 This is a schematic diagram of a process of loading a sub-application involved in this application;
[0038] Figure 7 is a block diagram of a data management device according to an exemplary embodiment;
[0039] Figure 8The diagram is a structural diagram of a computer system of a data management device according to an exemplary embodiment. DETAILED DESCRIPTION
[0040] Here, exemplary embodiments will be described in detail, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments that are the same as the present application. Instead, they are only examples of devices and methods that are the same as some aspects of the present application as detailed in the attached claims.
[0041] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.
[0042] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, while some operations / steps can be integrated or partially integrated, so the actual execution order may change according to actual conditions.
[0043] It should be noted that the "multiple" mentioned in this application refers to two or more than two. "And / or" describes the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship.
[0044] It should be noted that in the specific implementation of the present application, when the user-related data is involved, when the embodiment of the present application is applied to a specific product or technology, the user's permission or consent is required, and the collection, use and processing of the relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions. At the same time, the formulas involved in the embodiments of the present application can be flexibly adjusted, such as increasing or decreasing the corresponding parameters.
[0045] See also Figure 1 , Figure 1 It is a schematic diagram of an implementation environment involved in this application.
[0046] Figure 1 The implementation environment shown is applied in the data management platform 100. Figure 1The main application interface of the data management platform 100 is shown, which includes at least a main application 110, a business column 120, a sub-application display interface 130, multiple global configurations (Global), theme configurations (theme config) and a breadcrumb function.
[0047] The data management platform 100 in this application can be a variety of data management systems, such as an intelligent water, electricity and gas management system, an Advanced Metering Infrastructure (AMI) platform or other comprehensive platforms for managing various types of business data. The front-end application corresponding to the data management platform 100 can be divided into a main application and multiple sub-applications.
[0048] The main application 110 may contain multiple sub-applications to achieve modular management of functions. Each sub-application can provide different functions. The main application is the carrier of global methods such as communication and data sharing. In addition, different sub-applications can also cooperate with each other to handle different services. Figure 1 In the example, the main application 110 may support different services, such as service 121, service 122, service 123, etc. displayed in the service column 120. Different services may correspond to different sub-applications. Figure 1 The sub-application display interface 130 may display multiple sub-applications corresponding to the business 121, and the sub-applications of the business 121 may include sub-application 131, sub-application 132, sub-application 133, etc. The sub-application display interface 130 may display each sub-application in the sub-application pool corresponding to each business in the form of an icon.
[0049] It should be noted that each business can correspond to different sub-applications, and the number of sub-applications for each business can be 1 or more, which can be flexibly selected according to different needs, and the embodiment of the present application does not limit it. When a business is selected, the data management platform 100 will load multiple sub-applications corresponding to the business through the sub-application pool, so that each sub-application corresponding to the business can be displayed in the sub-application display interface 130.
[0050] In addition, different services can also communicate data with each other. For example, service 121 can display the icon corresponding to service 122 in the sub-application display interface, so that service 122 can be called when needed to achieve functions such as data sharing and data synchronization.
[0051] The target object can use a terminal device to access the data management platform 100. After the target object successfully logs in to the main application in the data management platform 100, the target object can be shown the following information: Figure 1The target object may refer to the management personnel corresponding to the enterprise or organization.
[0052] Optionally, the target object can be globally configured in the main application interface of the data management platform 100, and different global configurations can be performed by clicking different global configuration options, such as global configuration 1, global configuration 2, global configuration 3, etc.
[0053] The data management platform in this application can support data sharing and synchronization functions. Figure 2 The following is a schematic diagram of the architecture of a data sharing and synchronization function involved in this application. Figure 2 In the framework, the architecture includes shared containers, modules, event buses, and general component libraries.
[0054] Among them, the shared container is used to realize data sharing and synchronization between different sub-applications, ensuring that each sub-application can communicate and synchronize data in real time. The implementation of the shared container can be based on the state container management tool provided by the front-end framework. Optionally, the shared container can use the Vuex framework, or other state management tools such as React's Redux or Pinia. By creating a shared Vuex instance in the main application and defining the modules of the sub-application in it, independent state management of the sub-application can be achieved. This ensures the convenience of data sharing and synchronization while maintaining the independence and flexibility of each sub-application.
[0055] For example, when sub-application 1 needs to send data to sub-application 2, sub-application 1 can send the data to the shared container. Then, the main application will also inform sub-application 2 to obtain the data from the shared container.
[0056] The event bus is used to further enhance the communication between sub-applications. It implements event notification and information transmission between sub-applications through the publish-subscribe model, thereby improving the collaboration efficiency between modules within the system. When communicating between sub-applications, data can be transmitted through the event bus. For example, if a sub-application needs to send a piece of data to sub-application 2, it can be passed to sub-application 2 through the event bus, and sub-application 2 needs to store the data in a timely manner within a certain period of time.
[0057] It is understandable that the shared container can store the data sent by the sub-application for a long time, and other sub-applications can obtain the data multiple times. The event bus has a certain timeliness when transmitting data, and the sub-application as the recipient needs to receive and store it in time. The communication method between these two applications makes data sharing and synchronization between different sub-applications more flexible and reliable.
[0058] The Component Library is used to store common components required by multiple sub-applications. Common components can include UI components and function libraries commonly used in management systems. Each sub-application can call related components from the Common Component Library as needed to reduce duplication of development work and improve development efficiency.
[0059] The terminal device in the present application can be a mobile phone, a desktop computer, a laptop computer, etc., optionally, it can also be a mobile Internet device (mobile internet device, MID), a vehicle-mounted device, an aircraft, a wearable device (smart devices such as smart watches, smart bracelets, pedometers, etc.), a virtual reality device (such as a virtual reality (VirtualReality, VR) device, an augmented reality (Augmented Reality, AR) device), etc.
[0060] Optionally, the data management platform in the embodiments of the present application may be a server, which may refer to an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDN), as well as big data and artificial intelligence platforms.
[0061] See also Figure 3 , Figure 3 is a flow chart of a data management method according to an exemplary embodiment. The method can be applied to Figure 1 The implementation environment shown is specifically implemented by the data management platform. Of course, the method can also be applied to other implementation environments, and the execution subject of the method is not limited here.
[0062] The following will use the data management platform as an exemplary execution subject to describe the data management method in detail. Figure 3 As shown, in an exemplary embodiment, the method comprises at least the following steps:
[0063] S310: Receive a management request for a target business from a target object through a main application.
[0064] The main application contains the common parts of the system. Figure 1 In the main application, there are top, menu, bottom, left global configuration and sub-application business presentation area. The main application can be used as a unified entrance to the data management platform. Every management request to the data management platform needs to go through the main application.
[0065] In one embodiment of the present application, when the target object uses a terminal device to access the data management platform, the data management platform will output a login interface to the target object, allowing the target object to enter his / her identification information (which may be an account number) and password in the login interface to log in to the data management platform. After logging in to the data management platform, the data management platform can run the main application.
[0066] When the data management platform obtains the identification information of the target object, it can determine the candidate business that the target object has the operation authority from the multiple businesses of the data management platform based on the identification information. Among them, the number of candidate businesses corresponding to the target object can be multiple. If the data management platform detects that the target object is in the main application and selects the target business from the candidate businesses, it can be determined that the management request for the target business by the target object has been received.
[0067] In one embodiment of the present application, the target object can directly access a sub-application by using a link (such as a URL), so that the data management platform will directly open the sub-application based on the link, which may cause the target object to open the sub-application without logging in. In this case, the data management platform cannot obtain the identification information of the target object. If the identification information of the target object is not obtained, the data management platform outputs a login interface to the target object so that the target object fills in the identification information of the target object on the login interface. In this way, it can be ensured that the target object can log in to the data management platform, so that the data management platform can identify the identification information of the target object, and thus can provide subsequent services for it.
[0068] S320. In response to the management request, load the target sub-application corresponding to the target business; wherein the main application and the sub-application are obtained by splitting the front-end application of the data management platform.
[0069] Among them, the front-end corresponding to the data management platform is used to be split into a main application and sub-applications. Among them, the number of main applications can be one, which is used as a unified entrance to the data management platform, and the interaction with other devices is carried out through the main application. The number of sub-applications can be multiple, and each sub-application can correspond to different functions. Technical personnel in this field can flexibly design multiple sub-applications to meet the needs of different application scenarios. Moreover, each sub-application is independent of each other, and technical personnel can independently design each sub-application, and each sub-application can also share and synchronize data through a shared container and event bus.
[0070] The main application can perform routing management based on management requests and dynamically load the target sub-application corresponding to the target business based on routing dynamics.
[0071] Sub-applications are divided into archive management, work order management, network management, statistics management, log management and other business applications based on functions and businesses.
[0072] Since the target object requests to manage the target business, the data management platform needs to load the target sub-application corresponding to the target business. The number of target sub-applications corresponding to the target business can be one or more, and the specific number can be flexibly set by those skilled in the art according to different business types, and the embodiments of this application do not limit it.
[0073] In response to the management request for the target business, the data management platform can query the target sub-application corresponding to the target business and mount the target sub-application to the sub-application pool corresponding to the target business. In other words, the target sub-application corresponding to each target business can be loaded through the sub-application pool, and the target sub-application loaded into the sub-application pool can be displayed in the sub-application display interface in the main application interface.
[0074] S330, connecting the target sub-application to a shared container and a general component library; wherein the shared container is used to forward data for different sub-applications, and the general component library is used to store general components to be used by the sub-applications.
[0075] In one embodiment of the present application, the data management platform can connect the target sub-application to a shared container. In this way, when there are multiple target sub-applications, different target sub-applications can share and synchronize data by using the shared container, thereby forwarding data for different sub-applications.
[0076] In addition, the data management platform can encapsulate the common components to be used by the sub-application and store them in the common component library. Common components can include UI components and functions. The data management platform can use the node package manager (NodePackage Manager, NPM) to instruct the main application to enable the target sub-application to use the common component library, so that the target sub-application can be connected to the common component library.
[0077] S340: If a data management instruction for a target business input by the target object is detected, the data management instruction is processed through a shared container, a common component library, and a target sub-application.
[0078] The target object can input data management instructions to the target sub-application, so that the target sub-application can start running and process the data management instructions.
[0079] When the target sub-application is running, it needs to use different common components, so it is necessary to use a common component library. If data interaction between different target sub-applications is required when processing data management instructions, a shared container is required.
[0080] Optionally, since the sub-application pool corresponding to the target business may also include encapsulated applications of other businesses, other businesses can also be called through the application in the target business, so that different businesses can cooperate with each other and process different data management instructions, thereby enhancing the efficiency and flexibility of data management.
[0081] Through this method, the data management platform can be split into a main application and multiple sub-applications. When a management request for a target business is received from a target object through the main application, the target sub-application corresponding to the target business can be loaded. Next, the target sub-application can be connected to a shared container and a general component library; wherein the shared container is used to forward data for different sub-applications, and the general component library is used to store general components to be used by the sub-applications. Then, if a data management instruction for the target business input by the target object is detected, the data management instruction is processed through the shared container, the general component library and the target sub-application.
[0082] On the one hand, the data management platform is divided into a main application and multiple sub-applications. Different businesses can use different sub-applications, and different sub-applications can also interact with each other through shared containers, so that data can be synchronized and shared among different sub-applications. In this way, the independence of each sub-application is guaranteed, the convenience of data sharing and synchronization is improved, and the efficiency of data management is improved.
[0083] On the other hand, the general component library can store general components to be used by sub-applications. In this way, different sub-applications can obtain different components from the general component library according to their needs, which can reduce the repeated development of sub-applications with overlapping functions, improve the efficiency of data management, and reduce the cost of data management.
[0084] In one embodiment of the present application, another data management method is provided, which can be executed by a data management platform. Figure 4 As shown, the data management method may include S310 to S330 and S410 to S430. That is, S410 to S430 are Figure 3 The specific implementation method corresponding to S340 shown.
[0085] S410 to S430 are described below:
[0086] S410: If a data management instruction for a target business input by a target object is detected, a target general component to be used by the target sub-application is detected based on the target sub-application and the data management instruction.
[0087] The data management platform will detect which general components or components the target sub-application needs to use based on the target sub-application and the data management instructions, and use the determined general components that the target sub-application needs to use as the target general components.
[0088] When there are multiple target sub-applications, different target sub-applications may require different target general components, and the number of target general components corresponding to each target sub-application may also be multiple.
[0089] S420: Obtain a target general component from a plurality of general components stored in the general component library, and pass the target general component to a target sub-application.
[0090] In one embodiment of the present application, the data management platform obtains the corresponding target general component for the target sub-application in the general component library, and then passes the obtained target general component to the target sub-application. Since there can be multiple target sub-applications, when passing the corresponding target general components to different target sub-applications, they can be transmitted without interfering with each other.
[0091] S430: Process the data management instruction through the target sub-application, the target common component and the shared container.
[0092] Specifically, S430 may include S431 to S433.
[0093] S431 to S433 are described below:
[0094] S431. If the first sub-application is to send target data to the second sub-application, instruct the first sub-application to send the target data to a shared container; wherein the first sub-application and the second sub-application are any two sub-applications in the target sub-application.
[0095] It should be noted that there may be multiple target sub-applications. During the operation of multiple target sub-applications, data sharing or synchronization may be required.
[0096] Assuming that the first sub-application needs to send certain data to the second sub-application, the data management platform will instruct the first sub-application to send the target data to be shared to the shared container.
[0097] The shared container is a public data storage and transmission mechanism. All sub-applications can transmit and synchronize data through the shared container. In this way, data intercommunication between sub-applications can be achieved, making each sub-application independent of each other while being able to interact with data, thus improving the flexibility of data management.
[0098] S432: Instruct the second sub-application to obtain the target data sent by the first sub-application from the shared container.
[0099] After the first sub-application sends the target data to the shared container, the data management platform will further instruct the second sub-application to obtain the target data from the shared container. Since each target sub-application has the ability to interact with the shared container, the second sub-application can obtain the target data sent by the first sub-application from the shared container.
[0100] S433. Process the data management instruction through the first sub-application, the second sub-application, the target general component and the target data.
[0101] After data sharing and synchronization are completed, the data management platform will then process the data management instructions input by the target object. The data management instructions will involve the first sub-application, the second sub-application, the target data, and the target general component obtained from the general component library. Since the first sub-application previously needed to send the target data to the second sub-application, the second sub-application has received the target data at this time, and the data management platform will obtain the corresponding target general components for the first sub-application and the second sub-application respectively. Next, the data management instructions can be processed by the first sub-application, the second sub-application, the target general component and the target data.
[0102] Optionally, the first sub-application may also send target data to the second sub-application through the event bus.
[0103] For example, suppose the target business is the water fee payment management business, which includes two sub-applications, namely, sub-application A for managing payment and sub-application B for managing water consumption records. In order to complete the calculation and payment of water fees, the two sub-applications need to achieve data interaction and synchronization through a shared container. When the target object selects the "water fee payment management" business, the data management platform will load the two sub-applications and obtain the corresponding common components for the two sub-applications. Sub-application B is responsible for recording the user's water consumption data. For example, by obtaining the records of the smart water meter, sub-application B will save the user's water consumption data. Since sub-application A needs water consumption data to calculate the water fee, sub-application B will send this water consumption data to the shared container. After receiving the instruction from the data management platform, sub-application A will extract the water consumption data from the shared container, and then according to the water fee calculation rules, sub-application A will calculate the payable water fee.
[0104] Through this method, the shared container realizes data intercommunication between different sub-applications, improves the convenience of data sharing and synchronization, and improves the efficiency of data management. The general component library can provide the required general components for different sub-applications, reduce the repeated development of functional components of different sub-applications, and reduce the cost of data management.
[0105] In one embodiment of the present application, another data management method is provided, which can be executed by a data management platform. Figure 5 As shown, the data management method may include S510 to S530. That is, S510 to S530 are Figure 3 Steps that need to be performed in addition to those shown.
[0106] S510 to S530 are described below:
[0107] S510: If a request to run a designated sub-application is received, a designated main application corresponding to the designated sub-application is detected.
[0108] The target object can directly access the specified sub-application through a connection (such as a URL). In the data management platform, not every sub-application is managed by the main application. Therefore, the data management platform also needs to detect whether the specified application exists in the specified main application.
[0109] S520: If a designated main application is detected, the designated sub-application is mounted into the sub-application pool of the designated main application, and the designated main application is run through the sub-application pool of the designated main application.
[0110] If the designated main application is detected, it means that the designated sub-application is managed by the designated main application. In this case, the designated sub-application needs to be mounted to the sub-application pool corresponding to the designated main application, so as to run the designated main application through the sub-application pool of the designated main application.
[0111] S530: If the designated main application is not detected, run the designated sub-application.
[0112] If the designated main application is not detected, it means that the designated sub-application is not managed by any main application, so the designated sub-application can be run independently, and thus the designated sub-application can be run directly.
[0113] Through this method, sub-applications can be managed by the main application or run independently. In this way, for some sub-applications that can run independently, there is no need to run the main application, which reduces the opening time of the sub-applications and greatly improves the efficiency of data management.
[0114] like Figure 6This is a flowchart of a loading sub-application involved in this application. Figure 6 In the data management platform, when the target object directly accesses the main application, the target object will be detected whether it is logged in. If not, the login interface will be displayed to let the target object log in. After the target object logs in, the target business that the target object has operation permissions can be detected based on the target object's identification information. After determining the target business, it can be mapped to the sub-application based on the routing rules, and the sub-application can be recorded in the sub-application pool. Finally, the target object can run the sub-application in the sub-application pool as needed.
[0115] If the target object directly accesses a sub-application, the data management platform will detect whether the sub-application has a corresponding main application. If so, the sub-application needs to be mounted in the sub-application pool, and then the target object will run the sub-application. At this time, if the target object is not logged in before being mounted in the sub-application pool, it is necessary to return to the login page to log in before the sub-application can be loaded into the sub-application pool.
[0116] If the sub-application does not have a main application, it means that the sub-application can run independently. When the sub-application can run independently, the target object does not need to log in. Therefore, the sub-application that can run independently can be used to process some publicly available data.
[0117] Figure 7 FIG. 1 is a block diagram of a data management device according to an embodiment of the present application. Figure 7 As shown, the data management device can be applied to a data management platform, and the device includes:
[0118] A data management device, applied to a data management platform, comprising:
[0119] The transceiver unit 710 is used to receive a management request of a target object for a target service through a main application;
[0120] The processing unit 720 is used to load the target sub-application corresponding to the target business in response to the management request; wherein the sub-application is obtained by splitting the front-end application of the data management platform;
[0121] An access unit 730 is used to access the target sub-application to a shared container and a general component library; wherein the shared container is used to forward data for different sub-applications, and the general component library is used to store general components to be used by the sub-applications;
[0122] The processing unit 720 is further configured to process the data management instruction through the shared container, the general component library and the target sub-application if a data management instruction for the target business input by the target object is detected.
[0123] In one embodiment of the present application, based on the aforementioned scheme, the processing unit 720 is also used to detect the target general component to be used by the target sub-application based on the target sub-application and the data management instruction; the device also includes an acquisition unit 740, which is used to acquire the target general component from multiple general components stored in the general component library and pass the target general component to the target sub-application; the data management instruction is processed through the target sub-application, the target general component and the shared container.
[0124] In one embodiment of the present application, based on the aforementioned scheme, the number of target sub-applications is multiple; the processing unit 720 is also used to instruct the first sub-application to send the target data to the shared container if the first sub-application is to send the target data to the second sub-application; wherein the first sub-application and the second sub-application are any two sub-applications in the target sub-application; instruct the second sub-application to obtain the target data sent by the first sub-application from the shared container; and process the data management instruction through the first sub-application, the second sub-application, the target common component and the target data.
[0125] In one embodiment of the present application, based on the aforementioned scheme, the acquisition unit 740 is further used to obtain identification information of the target object; the processing unit 720 is further used to determine, from multiple businesses, candidate businesses for which the target object has operation permissions based on the identification information; if it is detected that the target object selects a target business from the candidate businesses in the main application, it is determined that a management request for the target business by the target object has been received.
[0126] In one embodiment of the present application, based on the aforementioned scheme, before obtaining the identification information of the target object, the processing unit 720 is also used to output a login interface to the target object if the identification information of the target object is not obtained, so that the target object fills in the identification information of the target object on the login interface.
[0127] It should be noted that the apparatus provided in the aforementioned embodiment and the method provided in the aforementioned embodiment belong to the same concept, wherein the specific manner in which each module and unit performs the operation has been described in detail in the method embodiment.
[0128] An embodiment of the present application also provides a data management device, including: one or more processors; a memory for storing one or more programs, when the one or more programs are executed by the one or more processors, the electronic device implements the above data management method.
[0129] Figure 8 It is a structural diagram of a computer system suitable for implementing the data management device of the embodiment of the present application.
[0130] It should be noted that Figure 8The computer system 800 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0131] like Figure 8 As shown, the computer system 800 includes a central processing unit (CPU) 801, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 802 or the program loaded from the storage part 808 to the random access memory (RAM) 803, such as executing the method in the above embodiment. In the RAM 803, various programs and data required for system operation are also stored. The CPU 801, ROM 802 and RAM 803 are connected to each other through a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.
[0132] The following components are connected to the I / O interface 805: an input section 806 including a keyboard, a mouse, etc.; an output section 807 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 808 including a hard disk, etc.; and a communication section 809 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 809 performs communication processing via a network such as the Internet. A drive 810 is also connected to the I / O interface 805 as needed. A removable medium 811, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 810 as needed so that a computer program read therefrom is installed into the storage section 808 as needed.
[0133] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication section 809, and / or installed from a removable medium 811. When the computer program is executed by a central processing unit (CPU) 801, various functions defined in the system of the present application are executed.
[0134] It should be noted that the computer-readable medium shown in the embodiment of the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. Computer-readable media may be, for example, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples of computer-readable media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable medium may be any tangible medium containing or storing a program, which may be used by an instruction execution system, device or device or used in combination with it. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a computer-readable computer program is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. A computer program contained on a computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0135] The flowchart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program product according to various embodiments of the present application. Wherein, each box in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0136] The units involved in the embodiments described in this application may be implemented by software or hardware, and the units described may also be set in a processor. The names of these units do not, in some cases, constitute limitations on the units themselves.
[0137] Another aspect of the present application also provides a computer readable medium on which a computer program is stored, and when the computer program is executed by a processor, the data management method as described above is implemented. The computer readable medium may be included in the electronic device described in the above embodiment, or may exist independently without being assembled into the electronic device.
[0138] Another aspect of the present application also provides a computer program product or a computer program, which includes a computer instruction stored in a computer-readable medium. A processor of a computer device reads the computer instruction from the computer-readable medium, and the processor executes the computer instruction, so that the computer device executes the data management method provided in each of the above embodiments.
[0139] The above content is only a preferred exemplary embodiment of the present application and is not intended to limit the implementation scheme of the present application. A person skilled in the art can easily make corresponding changes or modifications based on the main concept and spirit of the present application. Therefore, the scope of protection of the present application shall be based on the scope of protection required by the claims.
Claims
1. A data management method, characterized in that: Applied to a data management platform, the method comprises: Receive a management request from a target object for a target business through a main application; In response to the management request, the target sub-application corresponding to the target business is loaded; wherein the main application and the sub-application are obtained by splitting the front-end application of the data management platform; Connecting the target sub-application to a shared container and a universal component library; wherein the shared container is used to forward data for different sub-applications, and the universal component library is used to store universal components to be used by the sub-applications; If a data management instruction for the target business input by the target object is detected, the data management instruction is processed through the shared container, the common component library and the target sub-application.
2. The method according to claim 1, characterized in that The processing of the data management instruction by the shared container, the general component library and the target sub-application includes: Based on the target sub-application and the data management instruction, detecting a target general component to be used by the target sub-application; Acquire the target general component from a plurality of general components stored in the general component library, and transfer the target general component to the target sub-application; The data management instruction is processed by the target sub-application, the target common component and the shared container.
3. The method according to claim 2, characterized in that The number of the target sub-applications is multiple; the processing of the data management instruction by the target sub-application, the target general component and the shared container includes: If the first sub-application is to send the target data to the second sub-application, instructing the first sub-application to send the target data to the shared container; wherein the first sub-application and the second sub-application are any two sub-applications in the target sub-application; instructing the second sub-application to obtain the target data sent by the first sub-application from the shared container; The data management instruction is processed by the first sub-application, the second sub-application, the target common component and the target data.
4. The method according to claim 1, characterized in that The receiving, through the main application, a management request of the target object for the target service includes: Obtaining identification information of the target object; Determining, based on the identification information, a candidate business for which the target object has operation authority from a plurality of businesses; If it is detected that the target object performs a selection operation on the target service from the candidate services in the main application, it is determined that a management request for the target service by the target object is received.
5. The method according to claim 4, characterized in that Before obtaining the identification information of the target object, the method further includes: If the identification information of the target object is not obtained, a login interface is output to the target object, so that the target object fills in the identification information of the target object on the login interface.
6. The method according to claim 1, characterized in that The step of loading the target sub-application corresponding to the target service in response to the management request includes: In response to the management request, querying a target sub-application corresponding to the target service; The target sub-application is mounted to the sub-application pool corresponding to the target business.
7. The method according to claim 1, characterized in that The method further comprises: If a request to run a specified sub-application is received, detecting a specified main application corresponding to the specified sub-application; If the designated main application is detected, the designated sub-application is mounted into the sub-application pool of the designated main application, and the designated main application is run through the sub-application pool of the designated main application; If the designated main application is not detected, the designated sub-application is run.
8. A data management device, characterized in that: Applied to a data management platform, the device comprises: The transceiver unit is used to receive a management request of a target object for a target service through a main application; A processing unit, configured to load a target sub-application corresponding to the target business in response to the management request; wherein the sub-application is obtained by splitting the front-end application of the data management platform; An access unit, used to access the target sub-application to a shared container and a general component library; wherein the shared container is used to forward data for different sub-applications, and the general component library is used to store general components to be used by the sub-applications; The processing unit is further configured to process the data management instruction for the target business through the shared container, the general component library and the target sub-application if a data management instruction input by the target object is detected.
9. A data management device, characterized in that: include: a memory storing computer-readable instructions; A processor reads the computer readable instructions stored in the memory to execute the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: Computer-readable instructions are stored thereon, and when the computer-readable instructions are executed by a processor of a computer, the computer is caused to execute the method according to any one of claims 1 to 7.