Data processing method, interface display method, equipment and storage medium
By splitting the edge station project into multiple consoles and modules, the interface structure was optimized, the problem of overly complicated menu bars was solved, and user experience and development efficiency were improved.
Patent Information
- Application Number
- CN202511261689.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-09-04
- Publication Date
- 2025-10-17
AI Technical Summary
The interface menu bar of the edge site is too complicated because it contains the routing menu of all pages, making it difficult for users to find the target entrance.
Split the edge station project into multiple consoles, and further split the console with a large number of pages into modules. Only the access entrance of the module is displayed on the interface, and the interface structure is optimized through multi-level splitting.
It saves development time, unifies project configuration and page style, reduces the workload of project compilation, integration and deployment, and solves the problem of users being unable to locate the target menu entry.
Smart Images

Figure CN120812043A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of computers, and in particular to a data processing method, an interface display method, an electronic device, and a computer readable storage medium. BACKGROUND
[0002] Edge small station is a solution for deploying cloud infrastructure and cloud services to enterprise sites, which is suitable for scenarios with high requirements for application access latency, data localization retention, and local system interaction. It can conveniently deploy rich applications on the cloud to the local, providing the same use experience and service capability as public cloud services.
[0003] At present, the processing mode of the project corresponding to the edge small station is usually to include all the page code files of the function modules in the implementation mode of the project. The above-mentioned mode needs to deploy all the routing menus of the pages in the menu bar, which causes the menu bar part of the interface to be full, and the user has difficulty in finding the target entry. SUMMARY
[0004] The embodiments of the present application provide a data processing method, an interface display method, a data processing device, an interface display device, an electronic device, a computer readable storage medium, and a computer program product.
[0005] The technical solution of the present application is implemented as follows: In a first aspect, a data processing method is provided, and the method comprises: splitting a first project of an edge small station into N control consoles; wherein N is a positive integer; different control consoles correspond to different functions; if a first control console in the N control consoles includes a number of pages not less than a first threshold, splitting the first control console into M modules; wherein M is a positive integer; if an access operation for the first project is triggered, returning access entrances of the M modules.
[0006] In a second aspect, an interface display method is provided, and the method comprises: in response to an access operation for a first project of an edge small station, displaying access entrances of M modules in a first interface; wherein the first project includes the N control consoles; the N control consoles include a first control console split into M modules; the first control console includes a number of pages not less than a first threshold; M and N are positive integers.
[0007] In a third aspect, a data processing device is provided, and the data processing device comprises: The first processing unit is configured to split a first item corresponding to the edge small station into N control consoles; the N is a positive integer, and different control consoles correspond to different functions; The first processing unit is further configured to split a first control console in the N control consoles into M modules if a number of pages corresponding to the first control console is greater than or equal to a first threshold value; the M is a positive integer. The first sending unit is configured to return access entrances of the M modules if an access operation for the first item is triggered.
[0008] In a fourth aspect, an interface display apparatus is provided, and the interface display apparatus includes: The second processing unit is configured to respond to an access operation for a first item of an edge small station. The second display unit is configured to display access entrances of M modules on a first interface; the first item includes the N control consoles; the N control consoles include a first control console split into the M modules; the first control console includes a number of pages that is not less than a first threshold value; and the M and the N are positive integers.
[0009] In a fifth aspect, an electronic device is provided, and the electronic device includes a processor and a memory. The memory is configured to store executable instructions. The processor is configured to execute the executable instructions stored in the memory to implement steps of the method described above.
[0010] In a sixth aspect, a computer readable storage medium storing executable instructions is provided, and the computer readable storage medium stores one or more programs that can be executed by one or more processors to implement steps of the method described above.
[0011] In a seventh aspect, a computer program product is provided, and the computer program product includes a computer program that, when executed by a processor, implements steps of the method described above.
[0012] The embodiment of the present application provides a data processing method, a display method of an interface, a data processing device, a display device of an interface, an electronic device, a computer readable storage medium and a computer program product. The method comprises the following steps: splitting a first item of an edge small station into N control panels; wherein N is a positive integer; different control panels correspond to different functions; if the number of pages included in a first control panel in the N control panels is not less than a first threshold value, the first control panel is split into M modules; wherein M is a positive integer; if an access operation for the first item is triggered, an access entrance of the M modules is returned. That is to say, the present application does not perform item splitting on the items of the edge small station, but performs multi-level splitting from the code logic level, that is, the whole edge small station item is first split into multiple control panels, and then the modules of part or all control panels are split, so that the development time is saved, the project configuration and page style are unified, the burden of later project compiling, integrating, deploying and upgrading is reduced, and the problem that a user cannot locate a target menu entrance is solved by simplifying the display content of the interface. BRIEF DESCRIPTION OF DRAWINGS
[0013] Figure 1 A flowchart of a data processing method provided by the embodiment of the present application is shown. Figure 2 A project splitting diagram provided by the present application is shown. Figure 3 A flowchart of a storage interface data provided by the present application is shown. Figure 4 A flowchart of a display method of an interface provided by the embodiment of the present application is shown. Figure 5 A structural diagram of a data processing device provided by the embodiment of the present application is shown. Figure 6 A structural diagram of a display device of an interface provided by the embodiment of the present application is shown. Figure 7 A structural diagram of an electronic device provided by the embodiment of the present application is shown. DETAILED DESCRIPTION
[0014] In order to enable personnel in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor fall within the scope of protection of the present application.
[0015] The terms "first", "second", and the like in the description and in the claims of the present application and in the above figures refer to different objects, not to a particular order. Furthermore, the terms "comprises", "comprising", "has", "having", "includes", "including", and the like are to be construed open-ended, allowing for instances where there are equivalents. For example, an element introduced in a process, method, system, product or apparatus that includes several elements, or a combination of elements, can be specifically disclosed with the equivalents of any one of these elements, without the exclusion of others. The terms "comprises", "comprising", "has", "having", "includes", "including", and the like are to be construed open-ended, allowing for instances where there are equivalents. For example, an element introduced in a process, method, system, product or apparatus that includes several elements, or a combination of elements, can be specifically disclosed with the equivalents of any one of these elements, without the exclusion of others.
[0016] Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment is included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are they necessarily mutually exclusive of other embodiments. It is expressly understood that the embodiments described herein can be combined with each other in their various permutations and combinations.
[0017] Before explaining the present application, the implementation scheme of the project of the edge small station in the related art is described herein: One is to divide the small station into multiple sub-projects, each of which is independent of each other and only includes the code of all pages of the sub-project; after the project is split, different people develop different sub-projects, and the configuration, style, and development specification of each sub-project may differ, so the developed pages and the display style and style of different modules may differ to varying degrees, and the various sub-projects need to be integrated and compiled and deployed later.
[0018] Another is to create a project uniformly, and all page code files of functional modules are included in the project; this scheme must place all page menu bars in the left menu bar, so the menu bar part will be full and cannot be placed; the left menu bar of all pages is flat, and the menu bar level of the left menu bar is too deep, such as network-Virtual Local Area Network (VLAN) network-subnet-subnet Access Control List (ACL), generally, the next level, the menu in the menu bar is indented to the right a little, but the left menu bar width is not enough after multiple right indentations; in this case, either an X-axis scroll bar appears at the bottom of the menu bar, the user drags the bottom scroll bar to see the full menu text, or the menu is displayed in a folded row, or the part exceeding the width is hidden. All menu bars are displayed in the left menu bar, and the user will have difficulty finding a certain menu if the menu level is displayed.
[0019] Embodiments of the present application provide a data processing method, which is applied to an electronic device, and refers to Figure 1 As shown in the figure, the method comprises the following steps: Step 101, splitting a first project of an edge small station into N control consoles.
[0020] Wherein, N is a positive integer, and different control consoles correspond to different functions.
[0021] In embodiments of the present application, N is a positive integer greater than 1, for example, N is set to 3; the number of N is associated with the category to which the function corresponding to the edge small station belongs.
[0022] In embodiments of the present application, the number of the first project is 1, that is, the present application does not divide the project of the edge small station, but splits the entire edge small station into several control consoles at the code logic level, solving the problem that creating multiple similar repeated sub-projects in the early stage of the processing mode of dividing the small station into multiple projects leads to long development time and complicated process, saving development time, unifying project configuration and page style, reducing the burden of later project compilation, integration, deployment, upgrading and other work.
[0023] Exemplarily, the first project can be a vue project.
[0024] In embodiments of the present application, the first project comprises multiple programs, and the control console can be understood as a control console program, so that the present application splits the project into several control consoles at the logic level under the premise of the same project.
[0025] The electronic device can include mobile terminal devices such as mobile phones, tablet computers, notebook computers, personal digital assistants (Personal Digital Assistant, PDA), wearable devices, and vehicle-mounted devices, and fixed terminal devices such as desktop computers.
[0026] Step 102, if the number of pages included in a first control console of the N control consoles is not less than a first threshold value, splitting the first control console into M modules.
[0027] Wherein, M is a positive integer.
[0028] In embodiments of the present application, the first threshold value can be pre-configured by the electronic device, or can be determined based on the actual application scenario.
[0029] In embodiments of the present application, the entire edge small station is split into several control consoles at the code logic level, and part or all of the control consoles are further split into multiple modules, each module and the control console not split are independently displayed, so that the page functions and displays corresponding to each module and the control console not split do not affect each other.
[0030] The layout of the console or module of the edge small station in the present application is basically that the top of the page is added with a project header, and the area below is divided into a left menu bar and a right content area; the project header contains a drop-down menu, and the menu displays the entrances of all modules and pages; the left menu bar of the area below displays menu entrances, and the right content part displays pages. The user clicks the menu in the header menu or the menu in the left menu bar, and the content area on the right displays the content of the related page.
[0031] Figure 2 The present application provides a project splitting schematic diagram, as shown in Figure 2 The edge small station is first split into several consoles from the functional level, and each console corresponds to an identifier (for example, a key value); the present application splits the project of the edge small station into three consoles, the business-related is placed in the business console, the key value is BusinessConsole; the account-related is placed in the account console, the key value is AccountConsole; the account and business permission-related is placed in the permission console, the key value is PermissionConsole, and if there are other scenarios, they can be split according to the situation; it should be noted that the account console and the permission console have fewer pages and can be directly displayed in full; the business console has too many pages and needs to be split into multiple modules, and a corresponding key value is created for each module, for example, the cloud host module, the key value is ECS; the cloud disk module, the key value is HairDisk; the VLAN network module, the key value is VLAN; the container module, the key value is Pods; other modules; each module and the console that does not need to be split is independently displayed.
[0032] Step 103, if the access operation for the first project is triggered, the access entrances of the M modules are returned.
[0033] In the embodiment of the present application, the access entrance can be understood as an access button, and the button is only one of the presentation forms, of course, other forms that can trigger access can also be used, such as a text hyperlink.
[0034] In some embodiments, if the access operation for the first project is triggered, the access entrance of the second console is also returned; wherein the number of pages included in the second console is less than the first threshold.
[0035] In the embodiment of the present application, the number of the second console can be 0, that is, all the consoles need to be split into several modules; of course, the number of the first console can also be 0, that is, all the consoles do not need to be split.
[0036] The embodiment of the present application provides a data processing method, which comprises the following steps: splitting a first item of an edge small station into N control consoles; wherein N is a positive integer; different control consoles correspond to different functions; if the number of pages included in a first control console in the N control consoles is not less than a first threshold value, the first control console is split into M modules; wherein M is a positive integer; and if an access operation for the first item is triggered, an access entrance of the M modules is returned. That is to say, the present application does not perform item splitting on the items of the edge small station, but performs multi-level splitting from the code logic level, that is, the whole edge small station item is first split into multiple control consoles, and then the modules of part or all of the control consoles are split, so that the development time is saved, the project configuration and page style are unified, the burden of later project compiling, integrating, deploying and upgrading is reduced, and the problem that a user cannot locate a target menu entrance is solved by simplifying the display content of the interface.
[0037] In some embodiments, the step of returning the access entrances of the M modules in step 103 comprises the following steps: Step A1, a query routing interface is called to obtain all routing data of the M modules.
[0038] In the embodiment of the present application, the routing data can be routing configuration data, and comprises information such as name, address and position.
[0039] In the embodiment of the present application, the query routing interface can be a newly added interface, and of course, can also be an interface in related technologies, and indicates that the interface has the ability to query routing.
[0040] Step A2, based on all the routing data, the access entrances of the M modules are returned.
[0041] In some embodiments, the scheme provided by the present application further comprises the following content: if an access operation for any one access entrance is triggered, a menu corresponding to the accessed module is returned.
[0042] Here, if an access operation for any one access entrance is triggered, a menu corresponding to the accessed module is returned, comprising the following steps: A query routing interface is called to obtain routing data of the accessed module. Based on the routing data, a menu corresponding to the accessed module is returned.
[0043] Here, the routing data can be obtained from all routing data of the M modules. In this case, the process of obtaining the routing data based on the query interface is not triggered, and the routing data is directly obtained from the previously sent content. Only when all routing data of the M modules does not include the routing data of the accessed module, the re-obtaining is triggered.
[0044] Here, the problem that all routing data of the M modules does not include the routing data of the accessed module only occurs in the scenarios such as failure or missing sending, and thus the re-obtaining is needed.
[0045] In some embodiments, step 101 of splitting the first project of the edge small station into N consoles includes the following steps: creating routing files of the N consoles in the routing folder of the first project; adding the identifier of each console of the N consoles to the routing of the page included by each console; storing the related routing data of the page included by each console into an array, and storing the array into the routing file of each console.
[0046] In some embodiments, if the number of the pages included by the first console is not less than the first threshold, the value in the array corresponding to the first console is modified into an object; the key in the object is the identifier of each module of the M modules; and the value in the object is the related routing data of the page included by the module.
[0047] It should be noted that, for the split N consoles, the router files corresponding to the N consoles are created in the project routing folder. In the router file of the related technology, the routing data of all pages is stored in the form of an array. In this scheme, the routing of all pages needs to be prefixed with the console corresponding to the prefix. If the console can be directly displayed in its entirety, such as the account console above, the routing file maintains the state of the array. If the console needs to be split into modules, it needs to be encapsulated, i.e., a layer is nested outside the original array, so that the data of the entire file becomes an object, the key of the object is the key value of the module, and the value of the object is the array of the routing.
[0048] For example, the array corresponding to the routing (accountRouter) of the account console is presented in the program as follows: const accountRouter = [ { path: ' / account / user', name: 'user', component:()=>import('@ / views / page / account / user') } ] export default accountRouter Wherein, the const is used to declare that the variable of the route of the account console cannot be modified; the export default accountRouter is used to indicate that the array corresponding to the route of the account console is exported; the path: ' / account / user', name: 'user', component: () => import('@ / views / page / account / user') are all values in the array, for example, the value corresponding to the path (path) is ' / account / user', the value corresponding to the name (name) is 'user', and the value corresponding to the component (component) is () => import('@ / views / page / account / user').
[0049] For example, the array corresponding to the route of the business console (businessRouter) in the program is as follows: const businessRouter = { ECS: [ { path: ' / business / virtualManage', name: 'providerNetwork', component: () => import('@ / views / page / business / ECS / virtualManage') } ], VLAN: [ { path: ' / business / providerNetwork', name: 'providerNetwork', component: () => import('@ / views / page / business / VLAN / ProviderNetwork') } ] } export default businessRouter Wherein, const is used to declare that the route of the business console cannot be modified; export default accountRouter is used to indicate that the array corresponding to the export of the route of the business console is exported; the array includes two objects, wherein, the key of one object is the key value ECS of the ECS module, and the value of the object is path: ' / business / virtualManage', name: 'providerNetwork', component: () => import('@ / views / page / business / ECS / virtualManage'); the key of another object is the key value VLAN of the VLAN module, and the value of the object is path: ' / business / providerNetwork', name: 'providerNetwork', component: () => import('@ / views / page / business / VLAN / ProviderNetwork').
[0050] Wherein, the value corresponding to the path of the ECS module is ' / business / virtualManage', the value corresponding to the name is 'providerNetwork', and the value corresponding to the component is () => import (' / views / page / business / ECS / virtualManage'); the value corresponding to the path of the VLAN module is ' / business / virtualManage', the value corresponding to the name is 'providerNetwork', and the value corresponding to the component is () => import (' / views / page / business / VLAN / ProviderNetwork').
[0051] In the embodiments of the present application, each console or module has unique identification information. In some embodiments, the identification information includes color identification, graphical identification, textual identification, numerical identification, positional identification, etc. Different consoles or modules can use the same type of identification information; of course, the types of identification information of the consoles or modules can also not be completely the same, or the types of identification information of the consoles or modules can be completely different.
[0052] In some embodiments, before step A2, the method further includes the following content: Step B1, based on the newly created route import tool, import the route files of N consoles; Step B2, analyze the route files of N consoles to obtain an array; It needs to be explained that the data structure of the console routing file content to be split has changed (from array to object), which cannot be directly used when initializing the routing (new Router), so a new tool file ProcessRouter file needs to be created, which imports all the routing files of the console to be split, then gets all the arrays through Object.values, and then exports, which can be used when initializing.
[0053] Step B3, based on the array, establish a storage (store) file.
[0054] Among them, the storage file includes a first sub-file (menu) for storing routing data of pages included by the second console and routing data of pages included by the M modules, a second sub-file (consoleKey) for storing the identifier of the second console, and a third sub-file (moduleKey) for storing the identifiers of the M modules.
[0055] It needs to be explained that in the store file, the first sub-file (menu), the second sub-file (consoleKey) and the third sub-file (moduleKey) need to be established first; among them, menu is used to store the routing data of the current console (not split) or the split module, consoleKey is used to store the key value of the current console (not split), and moduleKey is used to store the key value of the current module (not used by the console not split); in this way, data calling for menu display is facilitated.
[0056] Based on this, step A2 can be implemented by the following steps: obtaining all routing data of the M modules from the storage file.
[0057] In some embodiments, the electronic device obtains the routing data corresponding to the accessed module from the storage file.
[0058] In some embodiments, in step B3, based on the array, the storage file is established, including the following steps: if it is determined based on the array that the console in which the first page, i.e. the page currently to be processed, is located is the first console, the module in which the first page is located is determined based on the array; the identifier of the module in which the first page is located is stored to the third sub-file; the object corresponding to the first page is obtained based on the array, and the object is stored to the first sub-file; among them, the key in the object is the identifier of the module in which the first page is located; the value in the object is the routing data of the first page. If it is determined based on the array that the console in which the first page is located is the second console, the identifier of the console in which the first page is located is stored to the second sub-file; the routing data of the first page is obtained based on the array, and the routing data of the first page is stored to the first sub-file.
[0059] Figure 3 is a flowchart of a page data storage process provided by the present application, as shown in Figure 3 In the router guard router.beforeEach, a console judgment function is added, the page route prefix is obtained from the page route, the console key value where the current page is located is obtained through the prefix, and the console key value is stored in the created consoleKey. Through the consoleKey, the corresponding console route data can be obtained. The console judgment function judges whether the console is split. If the current console does not need to be split into modules, the console route array is stored in the created menu. If the current console needs to be split into modules, the console route data needs to be traversed, the module where the current page is located is obtained according to the route matching of the current page, the current module key value and the current module route data are obtained, the module key value is stored in the created moduleKey, and the module route array is determined based on the current module route data, and the route array is stored in the menu. Further, in the code file of the page menu bar, the value of the menu stored in the store is obtained in real time through mapState, and the menu items of the current console or module are displayed.
[0060] In some embodiments, the backend of the present application adds a configuration file, which is configured according to the project-console-module-page hierarchy. The console that does not need to be split omits the module level. The options of each level contain the corresponding key value and the specified page route. If some modules or consoles in the first project fail, the configuration file of the first project is modified so that the query route interface cannot query the route data corresponding to the failed modules or consoles. That is, if a module is temporarily not provided, the configuration file can be modified so that the interface does not return the module data, and there is no module entry on the console overview page. The present application combines with the control module entry display to flexibly control the capabilities provided by the small station.
[0061] The embodiment of the present application provides a display method of an interface, which is applied to an electronic device, and refers to Figure 4 The method comprises the following steps: Step 401, in response to an access operation on a first project of an edge small station, displaying access entrances of M modules on a first interface.
[0062] The first project comprises N consoles; the N consoles comprise a first console split into M modules; the first console comprises a number of pages not less than a first threshold; and M and N are positive integers.
[0063] In the embodiment of the present application, the first interface does not have a menu bar area.
[0064] In some embodiments, in response to the access operation on the first item, the access entry of the second console is further displayed on the first interface; wherein the second console includes a number of pages less than the first threshold.
[0065] In the embodiments of the present application, the first interface can be an overview interface corresponding to each console, or can be an overview interface shared by multiple consoles, that is, the number of first interfaces can be one or multiple.
[0066] It should be noted that in the scenario of sharing one first interface, the area of the access entry of the M modules in the first interface is larger than the area of the access entry of the second console, for example, the access entry of the second console is in a small area in the upper right corner, and the access entry of the M modules is in a central area.
[0067] In some embodiments, the number of N and M can be the same, or the number of N and M can be different.
[0068] It should be noted that the first interface can also display the access entry of the M modules and the full data of the second console, and then the access operation on any access entry can only be the access operation on any access entry of the M modules.
[0069] The embodiments of the present application provide a display method of an interface, which comprises: in response to an access operation on a first item of an edge small station, displaying access entries of M modules on a first interface. Wherein the first item includes N consoles; the N consoles include a first console split into M modules; the first console includes a number of pages not less than a first threshold; M and N are positive integers. That is, the present application does not perform item splitting on the items of the edge small station, but performs multi-level splitting from the code logic level, that is, the entire edge small station item is first split into multiple consoles, and then some or all of the consoles are split into modules, thereby avoiding creating multiple similar repeated items in the early stage, saving development time, unifying project configuration and page style, reducing the burden of later project compilation, integration, deployment, upgrading and the like; and in response to the corresponding trigger operation, the present application only displays the access entry of the split module on the interface, that is, by simplifying the display content of the interface, the problem that the user cannot locate the target menu entry is solved, and the problem that the menu bar cannot be placed and the menu level is too deep to be fully displayed is also solved.
[0070] In some embodiments, the scheme to be protected by the present application includes: In response to the access operation on any access entry, the menu corresponding to the accessed module is displayed in the menu bar area of the second interface.
[0071] In the embodiment of the present application, the second interface can be an access interface, the left side of the interface includes a menu bar, and the right side includes a content area. The user clicks the menu in the left menu bar, and the content area on the right side will display the content of the relevant page.
[0072] The present application realizes multi-level display of the content corresponding to the edge small station through at least two interfaces, that is, the corresponding entry of the console or module is first presented in the first interface, and only after being selected, the corresponding menu is displayed in the menu bar of the second interface. In this way, the menu bar is prevented from being too high, the display menu corresponding to each edge small station is simplified, the page display style is optimized, and the project usability is improved.
[0073] The present application defaults to use the vue framework for the front-end project, and has installed the router, store and other plug-ins.
[0074] It should be noted that the description of the same steps and the same content in the present embodiment and other embodiments can refer to the description in other embodiments, and will not be repeated here.
[0075] The embodiment of the present application provides a data processing device, which can be applied to Figure 1 The corresponding embodiment provides a data processing method, which refers to Figure 5 As shown in the figure, the data processing device 5 includes: The first processing unit 501 is configured to split the first project of the edge small station into N control consoles; wherein N is a positive integer; different control consoles correspond to different functions; The first processing unit 501 is further configured to split the first control console into M modules if the number of pages included in the first control console is not less than the first threshold value; wherein M is a positive integer; The first sending unit 502 is further configured to return the access entry of the M modules if the access operation for the first project is triggered.
[0076] In other embodiments of the present application, the first acquisition unit 503 is configured to call a query routing interface to acquire all routing data of the M modules.
[0077] The first processing unit 501 is configured to return the access entry of the M modules based on all the routing data.
[0078] In other embodiments of the present application, the first sending unit 502 is further configured to return the access entry of the second control console if the access operation for the first project is triggered; wherein the number of pages included in the second control console is less than the first threshold value.
[0079] In other embodiments of the present application, the first processing unit 501 is configured to create N console routing files in the routing folder of the first project; add the identifier of each of the N consoles to the routing of the page included by each of the N consoles; store the relevant routing data of the page included by each of the N consoles in an array, and store the array in the routing file of each of the N consoles.
[0080] In other embodiments of the present application, the first processing unit 501 is configured to modify the value in the array corresponding to the first console to an object if the number of pages included by the first console is not less than a first threshold; wherein the key in the object is the identifier of each of the M modules, and the value in the object is the relevant routing data of the page included by the module.
[0081] In other embodiments of the present application, the first processing unit 501 is configured to import the routing files of the N consoles based on the newly created routing import tool; analyze the routing files of the N consoles to obtain the array; and establish a storage file based on the array; wherein the storage file includes a first sub-file for storing the routing data of the pages included by the second console and the pages included by the M modules, a second sub-file for storing the identifier of the second console, and a third sub-file for storing the identifiers of the M modules.
[0082] In other embodiments of the present application, the first obtaining unit 503 is configured to obtain all the routing data of the M modules from the storage file.
[0083] In other embodiments of the present application, the first processing unit 501 is configured to determine the module in which the first page is located based on the array if it is determined based on the array that the console in which the first page is located is the first console; store the identifier of the module in which the first page is located in the third sub-file; obtain the object corresponding to the first page based on the array, and store the object in the first sub-file; wherein the key in the object is the identifier of the module in which the first page is located, and the value in the object is the routing data of the first page.
[0084] In other embodiments of the present application, the first processing unit 501 is configured to store the identifier of the console in which the first page is located in the second sub-file if it is determined based on the array that the console in which the first page is located is the second console; obtain the routing data of the first page based on the array, and store the routing data of the first page in the first sub-file.
[0085] In other embodiments of the present application, the first processing unit 501 is configured to modify the configuration file corresponding to the first project if some of the modules or consoles in the first project are faulty, so that the query routing interface cannot query the routing data corresponding to the faulty modules or consoles.
[0086] The description of the above device embodiments is similar to that of the above method embodiments, and has similar beneficial effects to the method embodiments. For technical details not disclosed in the device embodiments of the present application, please refer to the description of the method embodiments of the present application for understanding.
[0087] It should be noted that, in the embodiments of the present application, if the above-mentioned data processing method is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a plurality of instructions for causing a terminal device to execute all or part of the method of the embodiments of the present application. The storage medium mentioned above includes: a U disk, a mobile hard disk, a read-only memory (ROM), a magnetic disk or an optical disk, and various media that can store program codes. Thus, the embodiments of the present application are not limited to any specific hardware and software combination.
[0088] The embodiments of the present application provide a display device of an interface, which can be applied to Figure 4 In the display method of the interface provided by the corresponding embodiments, referring to Figure 6 As shown in the figure, the display device 6 of the interface includes: The second processing unit 601 is configured to respond to an access operation on a first item of an edge small station; The second display unit 602 is configured to display access entrances of M modules on a first interface; wherein the first item includes N consoles; the N consoles include a first console split into M modules; the first console includes a number of pages not less than a first threshold; M and N are positive integers.
[0089] In other embodiments of the present application, the second display unit 602 is configured to, in response to an access operation on any one access entrance, display a menu corresponding to the accessed module in a menu bar area of a second interface.
[0090] In other embodiments of the present application, the second display unit 602 is configured to, in response to an access operation on the first item, further display an access entrance of a second console on the first interface; wherein the second console includes a number of pages less than the first threshold.
[0091] The description of the above device embodiments is similar to that of the above method embodiments, and has similar beneficial effects to the method embodiments. For technical details not disclosed in the device embodiments of the present application, please refer to the description of the method embodiments of the present application for understanding.
[0092] It should be noted that, in the embodiments of the present application, if the display method of the interface is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the embodiments of the present application can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a plurality of instructions for causing a terminal device to execute all or part of the method of each embodiment of the present application. The storage medium described above includes: a U disk, a mobile hard disk, a ROM, a magnetic disk or an optical disk, and various media that can store program codes. Thus, the embodiments of the present application are not limited to any specific hardware and software combination.
[0093] Figure 7 is a schematic structural diagram of an electronic device provided by an embodiment of the present application. The electronic device 700 can be a data processing apparatus, and can also be an interface display device. Figure 7 The electronic device 700 shown includes a processor 710, which can call and run a computer program from a memory to implement the method in the embodiments of the present application.
[0094] Optionally, as shown in Figure 7 The electronic device 700 can also include a memory 720. The processor 710 can call and run a computer program from the memory 720 to implement the method in the embodiments of the present application.
[0095] The memory 720 can be a separate device independent of the processor 710, or can be integrated in the processor 710.
[0096] Optionally, as shown in Figure 7 The electronic device 700 can also include a transceiver 730, and the processor 710 can control the transceiver 730 to communicate with other devices, specifically, to send information or data to other devices, or to receive information or data sent by other devices.
[0097] The transceiver 730 can include a transmitter and a receiver. The transceiver 730 can further include an antenna, and the number of antennas can be one or more.
[0098] Optionally, the electronic device 700 can be a data processing apparatus of the embodiments of the present application, and the electronic device 700 can implement the corresponding processes implemented by the data processing apparatus in each method of the embodiments of the present application. For the sake of brevity, it will not be repeated here.
[0099] Optionally, the electronic device 700 can be specifically a display device of an interface of the embodiments of the present application, and the electronic device 700 can implement the corresponding processes implemented by the display device of the interface in each method of the embodiments of the present application. For brevity, details are not repeated here.
[0100] In some embodiments, the embodiments of the present application also provide a computer program product, comprising a computer program executable by the processor 710 of the electronic device 700 to complete the steps of any of the preceding methods.
[0101] It should be understood that the processor of the embodiments of the present application can be an integrated circuit chip having a processing capability of signals. In the implementation process, each step of the method embodiments described above can be completed by integrated logic circuits or instructions in the form of software in the processor. The processor described above can be a general processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), a ready programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component. The disclosed methods, steps and logic block diagrams in the embodiments of the present application can be implemented or executed. The general processor can be a microprocessor or the processor can also be any conventional processor. The steps of the method disclosed in conjunction with the embodiments of the present application can be directly embodied as a hardware code processor for execution, or a combination of hardware and software modules in the code processor for execution. The software module can be located in a random access memory, a flash memory, a read-only memory, a programmable read-only memory, an electrically erasable programmable memory, a register, and other mature storage media in the art. The storage medium is located in the memory, and the processor reads the information in the memory, and combines the hardware to complete the steps of the above method.
[0102] As an embodiment, the processor can include one or more general central processing units (Central Processing Unit, CPU). Each of these processors can be a single-core (single-CPU) processor or a multi-core (multi-CPU) processor. The processor here can refer to one or more devices, circuits, and / or processing cores for processing data (e.g., computer executing instructions).
[0103] It is to be appreciated that the memory in the embodiments of the application can be a volatile or non-volatile memory, or can include both volatile and non-volatile memory. The non-volatile memory can be ROM, programmable ROM (PROM), erasable programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. The volatile memory can be random access memory (RAM), which is used as external cache. By way of example, and not limitation, many forms of RAM are available, for example, static RAM (SRAM), dynamic RAM (DRAM), synchronous dynamic RAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), Synchlink DRAM (SLDRAM), and direct Rambus RAM (DR RAM). It is to be appreciated that the memory described herein is intended to include, without being limited to, these and any other suitable types of memory.
[0104] The embodiments of the application further provide a computer readable storage medium for storing a computer program.
[0105] Optionally, the computer readable storage medium can be applied to the data processing apparatus in the embodiments of the application, and the computer program causes the computer to execute the corresponding procedures realized by the data processing apparatus in the various methods of the embodiments of the application. For brevity, details are not described herein.
[0106] Optionally, the computer readable storage medium can be applied to the display apparatus of the interface in the embodiments of the application, and the computer program causes the computer to execute the corresponding procedures realized by the display apparatus of the interface in the various methods of the embodiments of the application. For brevity, details are not described herein.
[0107] Optionally, the computer readable storage medium can be applied to the electronic device in the embodiments of the application, and the computer program causes the computer to execute the corresponding procedures realized by the electronic device in the various methods of the embodiments of the application. For brevity, details are not described herein.
[0108] In the above embodiments, all or part of the embodiments can be implemented by software, hardware, firmware or any combination thereof. When implemented by software, all or part of the embodiments can be implemented in the form of a computer program product.
[0109] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions according to the embodiments of the present application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center through wired (for example, coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (for example, infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that the computer can store or be integrated into a data storage device such as a server, data center, etc. containing one or more available media sets. The available media can be a magnetic medium (for example, a floppy disk, a hard disk, a magnetic tape), an optical medium (for example, a DVD), or a semiconductor medium (for example, a solid state disk (SSD)) and the like.
[0110] The data processing method, the display method of the interface, the data processing device, the display device of the interface, the electronic device, the computer readable storage medium and the computer program product provided by the embodiments of the present application are described in detail above, and the principles and implementation manners of the present application are described by applying specific examples. The above description of the embodiments is only used to help understand the method and its core idea of the present application; at the same time, for those skilled in the art, according to the idea of the present application, the specific implementation manner and application range will be changed, and the above description should not be understood as limiting the present application.
[0111] It should be understood that the “one embodiment” or “an embodiment” or “an embodiment of the present application” or “the aforementioned embodiment” or “some implementation methods” or “some embodiments” mentioned throughout the specification means that the specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, “in one embodiment” or “in an embodiment” or “an embodiment of the present application” or “the aforementioned embodiment” or “some implementation methods” or “some embodiments” appearing throughout the specification do not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in the various embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application. The serial numbers of the embodiments of the present application mentioned above are for description only and do not represent the advantages and disadvantages of the embodiments.
[0112] Unless otherwise specified, any step in the embodiments of the present application performed by the data processing device / interface display device / electronic device may be performed by the processor of the data processing device / interface display device / electronic device. Unless otherwise specified, the embodiments of the present application do not limit the order in which the data processing device / interface display device / electronic device executes the following steps. In addition, the methods used to process data in different embodiments may be the same method or different methods.
[0113] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is merely a logical function division. In actual implementation, there may be other division methods, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.
[0114] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units; they may be located in one place or distributed across multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the scheme of this embodiment.
[0115] In addition, each of the functional units in each embodiment of the present application can be integrated in one processing unit, or each unit can be separately implemented as a unit, or two or more units can be integrated in one unit; the integrated unit can be implemented in the form of hardware or in the form of hardware plus software function unit.
[0116] The methods disclosed in the several method embodiments provided by the present application can be combined arbitrarily without conflict to obtain new method embodiments.
[0117] The features disclosed in the several product embodiments provided by the present application can be combined arbitrarily without conflict to obtain new product embodiments.
[0118] The features disclosed in the several method or device embodiments provided by the present application can be combined arbitrarily without conflict to obtain new method embodiments or device embodiments.
[0119] Those of ordinary skill in the art can understand that all or part of the steps of the above method embodiments can be completed by a program instructing related hardware, the foregoing program can be stored in a computer storage medium, and the program executes the steps including the above method embodiments when executed; and the foregoing storage medium includes mobile storage devices, ROM, magnetic discs or optical discs and various storage media that can store program codes.
[0120] Alternatively, the integrated units of the present application, if implemented in the form of software function modules and sold or used as independent products, can also be stored in a computer storage medium. Based on this understanding, the technical solutions of the embodiments of the present application can be embodied in the form of software products, and the computer software products are stored in a storage medium, including a number of instructions to make a computer device (which can be a personal computer, a server, or a network device, etc.) execute all or part of the methods described in the embodiments of the present application. The foregoing storage medium includes mobile storage devices, ROM, magnetic discs or optical discs and various storage media that can store program codes.
[0121] The singular forms "a", "an" and "the" used in the embodiments of the present application and the appended claims are intended to include plural forms, unless the context clearly indicates otherwise.
[0122] It should be noted that in each of the embodiments of the present application, all steps can be performed or part of the steps can be performed, as long as a complete technical solution is formed.
[0123] The above merely provides the implementation of the present application, but the protection scope of the present application is not limited thereto, any person skilled in the art can easily think of the change or replacement within the technical range disclosed by the present application, which should be covered in the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.
Claims
1. A data processing method, characterized in that: The method comprises: Split the first project of the edge station into N consoles; wherein N is a positive integer; different consoles correspond to different functions; If the number of pages included in a first console among the N consoles is not less than a first threshold, split the first console into M modules; wherein M is a positive integer; If an access operation for the first project is triggered, the access entries of the M modules are returned.
2. The method according to claim 1, characterized in that The returning access entries of the M modules includes: Call the query routing interface to obtain all routing data of the M modules; Based on all the routing data, the access entries of the M modules are returned.
3. The method according to claim 1, characterized in that The method further comprises: If an access operation for the first project is triggered, an access entry for a second console is also returned; wherein the number of pages included in the second console is less than the first threshold.
4. The method according to claim 1, wherein The first project of the edge station is split into N consoles, including: Create N console routing files in the routing folder of the first project; Adding an identifier of each of the N consoles to the routing of the pages included in each console; The related routing data of the pages included in each console are stored in an array, and the array is stored in the routing file of each console.
5. The method according to claim 4, characterized in that If the number of pages included in a first console among the N consoles is not less than a first threshold, splitting the first console into M modules includes: If the number of pages included in the first console is not less than a first threshold, modify the value in the array corresponding to the first console to an object; The key in the object is the identifier of each module in the M modules; the value in the object is the relevant routing data of the pages included in the module.
6. The method according to claim 2, characterized in that Before obtaining all routing data of the M modules, the method further includes: Import the routing files of the N consoles based on the newly created routing import tool; Analyze the routing files of the N consoles to obtain an array; Based on the array, a storage file is established; wherein the storage file includes a first subfile for storing routing data of pages included in the second console and routing data of pages included in the M modules, a second subfile for storing an identifier of the second console, and a third subfile for storing identifiers of the M modules.
7. The method according to claim 6, characterized in that The obtaining of all routing data of the M modules includes: All routing data of the M modules are obtained from the storage file.
8. The method according to claim 6, characterized in that The step of establishing a storage file based on the array includes: If it is determined based on the array that the console where the first page is located is the first console, determine based on the array the module where the first page is located; storing the identifier of the module where the first page is located in a third sub-file; Based on the array, an object corresponding to the first page is obtained and stored in the first sub-file; wherein the key in the object is the identifier of the module where the first page is located; and the value in the object is the routing data of the first page.
9. The method according to claim 6, characterized in that The step of establishing a storage file based on the array includes: If it is determined based on the array that the console where the first page is located is the second console, storing the identifier of the console where the first page is located in the second sub-file; Based on the array, routing data of the first page is acquired, and the routing data of the first page is stored in a first sub-file.
10. The method according to claim 2, characterized in that The method further comprises: If some modules or consoles in the first project fail, the configuration file corresponding to the first project is modified so that the query routing interface cannot query routing data corresponding to the some modules or consoles.
11. A method for displaying an interface, characterized in that: The method comprises: In response to an access operation for a first project of an edge station, access entrances to M modules are displayed on a first interface; wherein, the first project includes the N consoles; the N consoles include a first console split into M modules; the number of pages included in the first console is not less than a first threshold; and M and N are positive integers.
12. The method according to claim 11, characterized in that The method further comprises: In response to an access operation on any access entry, a menu corresponding to the accessed module is displayed in the menu bar area of the second interface.
13. The method according to claim 11, characterized in that The method further comprises: In response to an access operation to the first item, an access entry to a second console is further displayed on the first interface; wherein the number of pages included in the second console is less than the first threshold.
14. An electronic device, characterized in that: The electronic device comprises: a memory for storing executable instructions; A processor, configured to implement the method of any one of claims 1 to 10, or implement the method of any one of claims 11 to 13, when executing the executable instructions stored in the memory.
15. A computer-readable storage medium, characterized in that The computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the method of any one of claims 1 to 10, or the method of any one of claims 11 to 13.
Citation Information
Patent Citations
Vue-based modular routing management method and authority control method
CN111835646A
Access request processing method and device, computer equipment and storage medium
CN116126330A
Page loading method, device and equipment and computer readable storage medium
CN116932950A
Method for loading application page, storage medium and related device thereof
WO2023005163A1