CN110286907B - Display method and device of public button assembly - Google Patents

Display method and device of public button assembly Download PDF

Info

Publication number
CN110286907B
CN110286907B CN201910556338.8A CN201910556338A CN110286907B CN 110286907 B CN110286907 B CN 110286907B CN 201910556338 A CN201910556338 A CN 201910556338A CN 110286907 B CN110286907 B CN 110286907B
Authority
CN
China
Prior art keywords
module
public
displayed
identifier
button assembly
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910556338.8A
Other languages
Chinese (zh)
Other versions
CN110286907A (en
Inventor
李玲
安超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Mininglamp Software System Co ltd
Original Assignee
Beijing Mininglamp Software System Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Mininglamp Software System Co ltd filed Critical Beijing Mininglamp Software System Co ltd
Priority to CN201910556338.8A priority Critical patent/CN110286907B/en
Publication of CN110286907A publication Critical patent/CN110286907A/en
Application granted granted Critical
Publication of CN110286907B publication Critical patent/CN110286907B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces

Abstract

The invention provides a display method and a display device of a public button assembly, wherein the method comprises the following steps: acquiring a first configuration file of an installed module in a system; determining the configuration information of the installed module from a second configuration file of the module configured by the system according to the name of the installed module; acquiring authority information of a current user, wherein the authority information comprises authority identification corresponding to a module with authority in the installed modules; determining a set of common button components to be displayed of the current user according to the second configuration file and the permission information; the public button assembly to be displayed is displayed, so that the problems that in the related technology, the permission is verified through the public part, the module is required to dynamically create the button according to the verified result, the operation of creating the button is not visual, and the understanding and the positioning of a developer to the code are not facilitated can be solved, the use cost is reduced, and the development efficiency and the maintainability are improved.

Description

Display method and device of public button assembly
Technical Field
The invention relates to the field of computers, in particular to a display method and device of a public button assembly.
Background
In our knowledge-graph product, some modules need to show some buttons for sending data to other modules, such as buttons for [ send to figure ] and [ send to retrieve ] in a list of archive modules. Meanwhile, the buttons also need to be controlled to be displayed or not displayed according to whether the target module exists or not and whether the current user has the authority to view the target module or not, that is, if the target module is not installed or the user does not have the authority to view the target module, the corresponding button is not displayed on the page. For example, if the retrieval module does not exist, the [ send to retrieve ] button will not be displayed in the archive module; if the retrieval module exists and the user does not have the authority to check the retrieval module, the button of sending to the retrieval is not displayed in the archive module; the [ send to search ] button is only displayed in the dossier module when the search module is present and the user can view the search module. These buttons will be used in this rule in the various modules, either in the profile module or in the collaboration module, etc.
In the related art, each module to be displayed with buttons comprises logic for creating the buttons and verifying and permission for a target module, and the method has the disadvantages that developers of each module need to pay attention to the display logic of the buttons, so that the development cost is increased, a plurality of modules comprise the verified logic, the maintenance cost is high, and if some logic needs to be modified, all modules need to be modified;
in addition, the method is used for verifying the target module and verifying the authority, compared with the scheme, the method is greatly improved, and the logic of verification is extracted to a public part. But the module is required to dynamically create the button according to the verified result, and the operation of creating the button is realized in js. The operation of the part is not intuitive, and is not beneficial to the understanding and positioning problem of the developer on the part of the code.
Aiming at the problems that in the related art, the authority is verified through the public part, the module is required to dynamically create the button according to the verified result, the operation of creating the button is not intuitive, and the understanding and the positioning of a developer to the code are not facilitated, a solution is not provided.
Disclosure of Invention
The embodiment of the invention provides a display method and a display device of a public button assembly, and aims to at least solve the problems that in the related art, the authority is verified through a public part, a module is required to dynamically create a button according to the verified result, the operation of creating the button is not intuitive, and the understanding and the positioning of a developer to a code are not facilitated.
According to an embodiment of the present invention, there is provided a display method of a common button assembly, including:
acquiring a first configuration file of an installed module in a system, wherein the first configuration file comprises the name of the installed module;
determining configuration information of the installed module from a second configuration file of the module configured by the system according to the name of the installed module, wherein the second configuration file comprises the configuration information of the module and the configuration information of a common button assembly corresponding to the module;
acquiring authority information of a current user, wherein the authority information comprises authority identification corresponding to a module with authority in the installed modules;
determining a set of common button components to be displayed of the current user according to the second configuration file and the authority information;
and displaying the public button assembly to be displayed.
Optionally, the configuration information of the module includes a module name, a module identifier, and an authority identifier corresponding to the module;
the configuration information of the public button assembly corresponding to the module comprises a public button assembly name, a public button assembly identifier, a public button assembly icon and a module identifier to which the public button assembly belongs.
Optionally, determining the set of common button components to be displayed of the current user according to the second configuration file and the permission information includes:
selecting a module identifier array consistent with the authority identifier corresponding to the module with authority according to the configuration information of the installed module;
and determining the set of the public button assemblies to be displayed corresponding to the module identification array according to the second configuration file.
Optionally, determining, according to the second configuration file, the set of common button components to be displayed corresponding to the module identifier array includes:
and combining the module identifier to which the public button component in the second configuration file belongs with the public button component identifier matched with the module identifier in the module identifier array to form a set of the public button components to be displayed.
Optionally, combining the module identifier to which the common button component belongs in the second configuration file with the common button component identifier matched with the module identifier in the module identifier array to form a set of common button components to be displayed includes:
traversing the second configuration file;
judging whether the module identification of each public button assembly in the configuration information of the public button assembly corresponding to the module is consistent with the module identification in the module identification array;
and combining the public button component identifications which are judged to be yes to form a set of the public button components to be displayed.
Optionally, displaying the common button assembly to be displayed includes:
and displaying the common button assembly to be displayed by using a React frame packaging assembly mode.
According to another embodiment of the present invention, there is also provided a display device of a common button assembly, including:
the system comprises a first acquisition module, a first configuration module and a second acquisition module, wherein the first acquisition module is used for acquiring a first configuration file of an installed module in the system, and the first configuration file comprises the name of the installed module;
the system comprises a first determining module, a second determining module and a control module, wherein the first determining module is used for determining the configuration information of the installed module from a second configuration file of a module of system configuration according to the name of the installed module, and the second configuration file comprises the configuration information of the module and the configuration information of a common button assembly corresponding to the module;
the second acquisition module is used for acquiring the authority information of the current user, wherein the authority information comprises authority identification corresponding to the module with authority in the installed module;
the second determining module is used for determining a set of common button components to be displayed of the current user according to the second configuration file and the permission information;
and the display module is used for displaying the public button assembly to be displayed.
Optionally, the configuration information of the module includes a module name, a module identifier, and an authority identifier corresponding to the module;
the configuration information of the public button assembly corresponding to the module comprises a public button assembly name, a public button assembly identifier, a public button assembly icon and a module identifier to which the public button assembly belongs.
Optionally, the second determining module includes:
the selection submodule is used for selecting a module identifier array consistent with the authority identifier corresponding to the authorized module according to the configuration information of the installed module;
and the determining submodule is used for determining the set of the public button assemblies to be displayed corresponding to the module identification array according to the second configuration file.
Optionally, the determination submodule is further used for
And combining the module identifier to which the public button assembly belongs in the second configuration file with the public button assembly identifier matched with the module identifier in the module identifier array to form a set of the public button assemblies to be displayed.
Optionally, the determining sub-module includes:
the traversing unit is used for traversing the second configuration file;
the judging unit is used for judging whether the module identifier of each public button assembly in the configuration information of the public button assembly corresponding to the module is consistent with the module identifier in the module identifier array;
and the combination unit is used for combining the public button component identifications which are judged to be yes to form a set of the public button components to be displayed.
Optionally, the display module is further used for
And displaying the common button assembly to be displayed by using a React frame packaging assembly mode.
According to a further embodiment of the present invention, there is also provided a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
According to yet another embodiment of the present invention, there is also provided an electronic device, comprising a memory in which a computer program is stored and a processor configured to run the computer program to perform the steps of any of the method embodiments described above.
According to the method and the device, the configuration information of the installed module is determined from the second configuration file of the module configured by the system according to the name of the installed module, the authority information of the current user is obtained, the set of the public button assemblies to be displayed of the current user is determined according to the second configuration file and the authority information, and the public button assemblies to be displayed are displayed, namely the public button assemblies to be displayed are the public button assemblies corresponding to the module identifiers with the authority currently.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a hardware configuration block diagram of a mobile terminal of a display method of a common button assembly according to an embodiment of the present invention;
fig. 2 is a flowchart of a display method of a common button assembly according to an embodiment of the present invention;
fig. 3 is a block diagram of a display device of a common button assembly according to an embodiment of the present invention;
fig. 4 is a block diagram of a display device of a common button assembly according to a preferred embodiment of the present invention.
Detailed Description
The invention will be described in detail hereinafter with reference to the accompanying drawings in conjunction with embodiments. It should be noted that, in the present application, the embodiments and features of the embodiments may be combined with each other without conflict.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
Example 1
The method provided by the first embodiment of the present application may be executed in a mobile terminal, a computer terminal, or a similar computing device. Taking a mobile terminal as an example, fig. 1 is a block diagram of a hardware structure of the mobile terminal of a display method of a common button assembly according to an embodiment of the present invention, as shown in fig. 1, a mobile terminal 10 may include one or more processors 102 (only one is shown in fig. 1) (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA, etc.) and a memory 104 for storing data, and optionally, the mobile terminal may further include a transmission device 106 for communication function and an input/output device 108. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration, and does not limit the structure of the mobile terminal. For example, the mobile terminal 10 may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.
The memory 104 may be used to store a computer program, for example, a software program of application software and a module, such as a computer program corresponding to the message receiving method in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, so as to implement the method described above. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the mobile terminal 10 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used to receive or transmit data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal 10. In one example, the transmission device 106 includes a Network adapter (NIC), which can be connected to other Network devices through a base station so as to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
Based on the above-described mobile terminal, the present embodiment provides a display method of a common button assembly,
fig. 2 is a flowchart of a display method of a common button assembly according to an embodiment of the present invention, as shown in fig. 2, the flowchart including the steps of:
step S202, acquiring a first configuration file of an installed module in a system, wherein the first configuration file comprises the name of the installed module;
step S204, determining the configuration information of the installed module from a second configuration file of the module configured by the system according to the name of the installed module, wherein the second configuration file comprises the configuration information of the module and the configuration information of a common button component corresponding to the module;
step S206, acquiring authority information of the current user, wherein the authority information comprises authority identification corresponding to a module with authority in the installed module;
step S208, determining a set of common button components to be displayed of the current user according to the second configuration file and the authority information;
and step S210, displaying the common button assembly to be displayed.
Through the above steps S202 to S210, the configuration information of the installed module is determined from the second configuration file of the module configured by the system according to the name of the installed module, the authority information of the current user is obtained, the set of the common button component to be displayed of the current user is determined according to the second configuration file and the authority information, and the common button component to be displayed is displayed, that is, the common button component to be displayed is the common button component corresponding to the module identifier having the authority currently.
In the embodiment of the present invention, the configuration information of the module includes a module name, a module identifier, and an authority identifier corresponding to the module; the configuration information of the public button assembly corresponding to the module comprises a public button assembly name, a public button assembly identifier, a public button assembly icon and a module identifier to which the public button assembly belongs.
In an embodiment of the present invention, the step S208 may specifically include:
step S2081, selecting a module identifier array consistent with the authority identifier corresponding to the authorized module according to the configuration information of the installed module;
step S2082, determining the set of the public button assemblies to be displayed corresponding to the module identification array according to the second configuration file.
Further, step S2082 may specifically include:
and combining the module identifier to which the public button assembly belongs in the second configuration file with the public button assembly identifier matched with the module identifier in the module identifier array to form a set of the public button assemblies to be displayed.
Specifically, traversing the second configuration file;
judging whether the module identification of each public button assembly in the configuration information of the public button assembly corresponding to the module is consistent with the module identification in the module identification array;
and combining the public button component identifications which are judged to be yes to form a set of the public button components to be displayed.
In an embodiment of the present invention, the step S210 may specifically include:
and displaying the common button assembly to be displayed by using a read frame packaging assembly mode.
In order to further reduce the use cost and improve the development efficiency and maintainability of the knowledge graph product, the embodiment of the invention provides a method for packaging a public button assembly by adopting a React frame. Related logic processing is completed in the common button assembly, and the buttons can be displayed according to the requirements by directly using the common button assembly in the module needing to display the buttons, so that the verification of a target module and the verification of authority are not required to be concerned.
A profile defining a system comprising the following: definition of authority item and common button corresponding to each module
The configuration file for defining the installed module of the product (the configuration file can be defined by the implementer after the product is installed; the configuration file can also be automatically generated in the process of generating the product installation package, and the process of generating the configuration file is not included in the patent item)
Common button realizing component
Use of common button assembly in modules where common buttons are to be displayed
Suppose that the product has 4 modules in total, namely, an image analysis, an archive, a retrieval and a cooperation, and the common buttons include a button of sending to the image analysis, a button of sending to the archive and a button of sending to the retrieval. When a product is customized for a certain project, the archive module is not needed, and then, when the installation package of the product is generated, only 3 modules are included for image analysis, retrieval and cooperation.
Js defines the configuration file config of the system as follows:
Figure BDA0002106995140000091
Figure BDA0002106995140000101
wherein, modules: module configuration in the system, including all module configuration items in the system;
key: a module unique identifier;
text: a module name;
roleName: unique identification of the authority item corresponding to the module;
sendButtons: the configuration of the public buttons comprises all the public buttons supported in the system;
key: a unique identification of the button;
text: the name of the button can be displayed on the button;
and icon: icons of the buttons, which can be displayed on the buttons;
modeleKey: the unique identity of the module to which it belongs, here consistent with the key in the module configuration item;
defining the installmodules of the product;
const installModules=[‘graph’,‘search’,‘cooperation’]
export default installModules
the unique identifier of the installed module in the array is consistent with the key in the module configuration item in the system configuration file config.
A common button component is implemented, defining a component name as sendtobuton, inherited from fact. The internal logic is as follows:
loading a configuration file installmodules of a product;
js is loaded with a configuration file of the system;
screening configuration information of an installed module from modules of config.js according to installModules in installModules;
and calling an interface to inquire the authority item information of the current user, wherein the interface returns an authority item unique identifier corresponding to the module with the authority as a result, and the authority item unique identifier is consistent with the roleName in the modules configuration item in the system configuration file config. Assuming that the current user only has the authority of the retrieval and cooperation module and does not have the authority of the image analysis module, the returned data is as follows:
example (c): [ 'search', 'linkage' ];
according to the unique identifier of the authority item obtained in the last step, further screening out a unique identifier array of the module with authority from the installed modules screened out in the third step, and assigning the value to a variable moduleList, wherein the finally obtained value is [ 'search', 'cooperation' ]; (ii) a
Js, querying whether a moduleKey of each item exists in an array moduleList obtained in the last step, if so, rendering the button in the page, otherwise, not rendering the button in the page;
example codes are as follows:
Figure BDA0002106995140000121
the common button assembly is used in a module in which a common button is to be displayed, as follows:
<div>
<SendToButton/>
</div>
a button for sending to retrieval is displayed on the final page; if the above interfaces return to [ graph ', ' search ', ' linkage ', ] two buttons are displayed on the final page [ send to retrieve ], [ send to atlas ].
According to the embodiment of the invention, the fact that the common button is packaged by adopting the React frame realizes that the corresponding button is displayed in the calling module according to the authority and the installed module dynamic state.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
Example 2
The embodiment of the present invention further provides a display device of a common button assembly, which is used for implementing the foregoing embodiment and the preferred embodiments, and the description of the display device is omitted. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware or a combination of software and hardware is also possible and contemplated.
Fig. 3 is a block diagram of a display apparatus of a common button assembly according to an embodiment of the present invention, as shown in fig. 3, including:
a first obtaining module 32, configured to obtain a first configuration file of an installed module in the system, where the first configuration file includes a name of the installed module;
the first determining module 34 is configured to determine configuration information of the installed module from a second configuration file of modules configured by the system according to names of the installed modules, where the second configuration file includes configuration information of modules and configuration information of common button assemblies corresponding to the modules;
a second obtaining module 36, configured to obtain authority information of a current user, where the authority information includes an authority identifier corresponding to a module having authority in the installed modules;
a second determining module 38, configured to determine, according to the second configuration file and the permission information, a set of common button components to be displayed of the current user;
and a display module 310, configured to display the common button assembly to be displayed.
Optionally, the configuration information of the module includes a module name, a module identifier, and an authority identifier corresponding to the module;
the configuration information of the public button assembly corresponding to the module comprises a public button assembly name, a public button assembly identifier, a public button assembly icon and a module identifier to which the public button assembly belongs.
Fig. 4 is a block diagram of a display device of a common button assembly according to a preferred embodiment of the present invention, and as shown in fig. 4, the second determination module 38 includes:
a selecting submodule 42, configured to select, according to the configuration information of the installed module, a module identifier array that is consistent with the authority identifier corresponding to the authorized module;
and the determining submodule 44 is configured to determine, according to the second configuration file, the set of the common button components to be displayed, which corresponds to the module identifier array.
Optionally, the determination submodule 44 is further used for
And combining the module identifier to which the public button component in the second configuration file belongs with the public button component identifier matched with the module identifier in the module identifier array to form a set of the public button components to be displayed.
Optionally, the determining submodule 44 includes:
the traversing unit is used for traversing the second configuration file;
the judging unit is used for judging whether the module identifier of each public button component in the configuration information of the public button component corresponding to the module is consistent with the module identifier in the module identifier array or not;
and the combination unit is used for combining the public button component identifications which are judged to be yes to form a set of the public button components to be displayed.
Optionally, the display module 310 is further used for
And displaying the common button assembly to be displayed by using a React frame packaging assembly mode.
It should be noted that the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
Example 3
Embodiments of the present invention also provide a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
Alternatively, in the present embodiment, the storage medium may be configured to store a computer program for executing the steps of:
s11, acquiring a first configuration file of an installed module in a system, wherein the first configuration file comprises the name of the installed module;
s12, determining configuration information of the installed module from a second configuration file of a module configured by a system according to the name of the installed module, wherein the second configuration file comprises the configuration information of the module and the configuration information of a common button assembly corresponding to the module;
s13, acquiring authority information of the current user, wherein the authority information comprises authority identification corresponding to a module with authority in the installed module;
s14, determining a set of common button assemblies to be displayed of the current user according to the second configuration file and the authority information;
and S15, displaying the public button assembly to be displayed.
Optionally, in this embodiment, the storage medium may include but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Example 4
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s11, acquiring a first configuration file of an installed module in a system, wherein the first configuration file comprises the name of the installed module;
s12, determining configuration information of the installed module from a second configuration file of a module configured by a system according to the name of the installed module, wherein the second configuration file comprises the configuration information of the module and the configuration information of a common button assembly corresponding to the module;
s13, acquiring authority information of the current user, wherein the authority information comprises authority identification corresponding to a module with authority in the installed module;
s14, determining a set of common button components to be displayed of the current user according to the second configuration file and the authority information;
and S15, displaying the public button assembly to be displayed.
Optionally, for a specific example in this embodiment, reference may be made to the examples described in the above embodiment and optional implementation, and this embodiment is not described herein again.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized in a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a memory device and executed by a computing device, and in some cases, the steps shown or described may be executed out of order, or separately as individual integrated circuit modules, or multiple modules or steps thereof may be implemented as a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (8)

1. A display method of a common button assembly, comprising:
acquiring a first configuration file of an installed module in a system, wherein the first configuration file comprises the name of the installed module;
determining configuration information of the installed module from a second configuration file of the module configured by the system according to the name of the installed module, wherein the second configuration file comprises the configuration information of the module and the configuration information of a common button assembly corresponding to the module;
acquiring authority information of a current user, wherein the authority information comprises authority identification corresponding to a module with authority in the installed modules;
determining a set of common button assemblies to be displayed of the current user according to the second configuration file and the permission information, wherein the set of common button assemblies to be displayed of the current user comprises: combining the module identifier to which the public button assembly belongs in the second configuration file with the public button assembly identifier matched with the module identifier in the module identifier array to form a set of public button assemblies to be displayed, wherein the set of public button assemblies to be displayed comprises: traversing the second configuration file; judging whether the module identification of each public button assembly in the configuration information of the public button assembly corresponding to the module is consistent with the module identification in the module identification array; combining the public button component identifications with the positive judgment result to form a set of the public button components to be displayed;
and displaying the public button assembly to be displayed.
2. The method of claim 1,
the configuration information of the module comprises a module name, a module identifier and an authority identifier corresponding to the module;
the configuration information of the public button component corresponding to the module comprises a public button component name, a public button component identifier, a public button component icon and a module identifier to which the public button component belongs.
3. The method of claim 2, wherein determining the set of common button components to display for the current user based on the second profile and the permission information comprises:
selecting a module identifier array consistent with the authority identifier corresponding to the module with authority according to the configuration information of the installed module;
and determining the set of the public button assemblies to be displayed corresponding to the module identification array according to the second configuration file.
4. The method of any of claims 1-3, wherein displaying the common button assembly to be displayed comprises:
and displaying the common button assembly to be displayed by using a read frame packaging assembly mode.
5. A display device of a common button assembly, comprising:
the system comprises a first acquisition module, a first configuration module and a second acquisition module, wherein the first acquisition module is used for acquiring a first configuration file of an installed module in the system, and the first configuration file comprises the name of the installed module;
the system comprises a first determining module, a second determining module and a control module, wherein the first determining module is used for determining the configuration information of the installed module from a second configuration file of a module of system configuration according to the name of the installed module, and the second configuration file comprises the configuration information of the module and the configuration information of a common button assembly corresponding to the module;
the second acquisition module is used for acquiring the authority information of the current user, wherein the authority information comprises authority identification corresponding to the module with authority in the installed module;
a second determining module, configured to determine, according to the second configuration file and the permission information, a set of common button components to be displayed of the current user, where the set includes: combining the module identifier to which the public button assembly belongs in the second configuration file with the public button assembly identifier matched with the module identifier in the module identifier array to form a set of public button assemblies to be displayed, wherein the set of public button assemblies to be displayed comprises: traversing the second configuration file; judging whether the module identification of each public button assembly in the configuration information of the public button assembly corresponding to the module is consistent with the module identification in the module identification array; combining the public button component identifications which are judged to be yes to form a set of the public button components to be displayed;
and the display module is used for displaying the public button assembly to be displayed.
6. The apparatus of claim 5,
the configuration information of the module comprises a module name, a module identifier and a permission identifier corresponding to the module;
the configuration information of the public button assembly corresponding to the module comprises a public button assembly name, a public button assembly identifier, a public button assembly icon and a module identifier to which the public button assembly belongs.
7. A storage medium, in which a computer program is stored, wherein the computer program is arranged to perform the method of any of claims 1 to 4 when executed.
8. An electronic device comprising a memory and a processor, wherein the memory has a computer program stored therein, and the processor is configured to execute the computer program to perform the method of any of claims 1 to 4.
CN201910556338.8A 2019-06-25 2019-06-25 Display method and device of public button assembly Active CN110286907B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910556338.8A CN110286907B (en) 2019-06-25 2019-06-25 Display method and device of public button assembly

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910556338.8A CN110286907B (en) 2019-06-25 2019-06-25 Display method and device of public button assembly

Publications (2)

Publication Number Publication Date
CN110286907A CN110286907A (en) 2019-09-27
CN110286907B true CN110286907B (en) 2022-11-15

Family

ID=68005674

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910556338.8A Active CN110286907B (en) 2019-06-25 2019-06-25 Display method and device of public button assembly

Country Status (1)

Country Link
CN (1) CN110286907B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112631699A (en) * 2020-12-21 2021-04-09 平安普惠企业管理有限公司 Application program display method, device, equipment and computer storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106227785A (en) * 2016-07-15 2016-12-14 杭州数梦工场科技有限公司 The display packing of a kind of page object and device
CN107196915A (en) * 2017-04-25 2017-09-22 北京潘达互娱科技有限公司 Authority setting method, apparatus and system
CN107818143A (en) * 2017-10-16 2018-03-20 中国银联股份有限公司 A kind of page configuration, generation method and device
CN109492172A (en) * 2018-10-15 2019-03-19 珠海格力电器股份有限公司 Product introduction method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104010053A (en) * 2014-05-04 2014-08-27 赵跃 Method for allowing protective film or protective glass to be in communication with mobile phone

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106227785A (en) * 2016-07-15 2016-12-14 杭州数梦工场科技有限公司 The display packing of a kind of page object and device
CN107196915A (en) * 2017-04-25 2017-09-22 北京潘达互娱科技有限公司 Authority setting method, apparatus and system
CN107818143A (en) * 2017-10-16 2018-03-20 中国银联股份有限公司 A kind of page configuration, generation method and device
CN109492172A (en) * 2018-10-15 2019-03-19 珠海格力电器股份有限公司 Product introduction method and device

Also Published As

Publication number Publication date
CN110286907A (en) 2019-09-27

Similar Documents

Publication Publication Date Title
CN110310034B (en) Service arrangement and business flow processing method and device applied to SaaS
CN109327490B (en) Method and server for deploying cloud service component
CN108804399B (en) Form verification method and device
CN111651746A (en) Login data processing method, device, equipment and system
CN114338793B (en) Message pushing method and device, electronic equipment and readable storage medium
CN111930382A (en) Application page access method, device and equipment
CN107861765B (en) Product configuration method, apparatus, and computer-readable storage medium
CN110286907B (en) Display method and device of public button assembly
AU2014412020B2 (en) Techniques to transform network resource requests to zero rated network requests
US10520929B2 (en) Techniques for implementing universal commands in a welding or cutting system
CN109446648A (en) Service of simulation method for building up and device
CN109213782B (en) Search interface configuration and display method and device and communication equipment
WO2015003570A1 (en) Data downloading method,device and system thereof
CN113064627B (en) Service access data processing method, platform, terminal, equipment and system
CN108052521B (en) Coordinated data display method, application server and storage medium
CN113791766B (en) Method for combining data interfaces, electronic device and readable storage medium
CN109697072A (en) Information processing method, device and equipment
US9870217B2 (en) Toolkit event configuration of applets on a card computing device with installation parameters
CN113626701A (en) Page-based data management method, system, electronic device and storage medium
CN113468446A (en) Method, system and equipment for supporting identification of third-party two-dimensional code data
CN104980329A (en) Address book management method address book management device and mobile agent server
CN117112654B (en) City data display method, device, computer equipment and storage medium
CN109683926B (en) Network component updating method, device, equipment and computer readable storage medium
CN112650509B (en) Application installation package generation method and device, computer equipment and storage medium
CN113448652A (en) Request processing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant