CN110286907A - A kind of display methods and device of common button component - Google Patents

A kind of display methods and device of common button component Download PDF

Info

Publication number
CN110286907A
CN110286907A CN201910556338.8A CN201910556338A CN110286907A CN 110286907 A CN110286907 A CN 110286907A CN 201910556338 A CN201910556338 A CN 201910556338A CN 110286907 A CN110286907 A CN 110286907A
Authority
CN
China
Prior art keywords
module
button component
common button
configuration file
common
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.)
Granted
Application number
CN201910556338.8A
Other languages
Chinese (zh)
Other versions
CN110286907B (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

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)
  • Storage Device Security (AREA)

Abstract

The present invention provides the display methods and device of a kind of common button component, wherein this method comprises: having installed the first configuration file of module in acquisition system;Determine that this has installed the configuration information of module from the second configuration file of the module of system configuration according to the title for having installed module;Obtain the authority information of active user, wherein the authority information includes the corresponding capability identification of module for having installed module right of possession limit;The set of the common button component to be shown of the active user is determined according to second configuration file and the authority information;Show the common button component to be shown, therefore, it can solve and permission is verified by common portion in the related technology, module is needed according to the result after verification dynamically to create button, the operation for creating button is not intuitive, the problem of being unfavorable for understanding and positioning of the developer to code, reduces use cost, improves development efficiency and maintainability.

Description

A kind of display methods and device of common button component
Technical field
The present invention relates to computer fields, in particular to the display methods and device of a kind of common button component.
Background technique
In our knowledge mapping product, need to show in some modules it is some send data to other modules by Button, for example display [being sent to figure analysis] and [being sent to retrieval] button are needed in the list of profile module.Meanwhile these buttons It also needs to whether there is according to object module, whether active user has the permission for checking object module to show or do not show Control, that is to say, that if object module do not install or user do not have object module check permission in the case where, it is corresponding Button is not to be shown on the page.Example, if retrieval module is not present, will not show in profile module and [be sent to inspection Rope] button;If retrieval module exists, and user does not have permission to check retrieval module, then not showing [hair in profile module yet It is sent to retrieval] button;Only when retrieval module exists and user can check retrieval module, just shown in profile module [being sent to retrieval] button.These buttons will be used in modules with this rule, and can be used for profile module can also For collaboration module etc..
Include creation button and progress object module verification, power in each module for wanting the Show Button in the related technology The drawbacks of logic of limit verification, this method is that the developer of each module requires the display logic of concern button, is increased The cost of exploitation, and multiple modules all include the logic of verification, and maintenance cost can be very high, modifies some logics if necessary Words, all modules require to change;
Another is verification object module, verification permission, and this method is significantly improved compared to a kind of upper scheme, The extracted of verification has arrived common portion.But module is needed according to the result after verification dynamically to create button, it creates The operation of button is realized in js.The operation of this part is not intuitive, is unfavorable for developer to the understanding of this partial code and determines Position problem.
For permission is verified by common portion in the related technology, module is needed according to the result after verification dynamically to create Button is built, the operation for creating button is not intuitive, the problem of being unfavorable for understanding and positioning of the developer to code, not yet proposes solution Certainly scheme.
Summary of the invention
The embodiment of the invention provides the display methods and device of a kind of common button component, at least to solve the relevant technologies In by common portion verify permission, need module according to the result after verification dynamically to create button, create the behaviour of button The problem of work is not intuitive, is unfavorable for understanding and positioning of the developer to code.
According to one embodiment of present invention, a kind of display methods of common button component is provided, comprising:
First configuration file of module is installed, wherein first configuration file includes having installed mould in acquisition system The title of block;
Described pacified is determined from the second configuration file of the module of system configuration according to the title for having installed module Die-filling piece of configuration information, wherein second configuration file includes the configuration information and the corresponding common button of module of module The configuration information of component;
Obtain the authority information of active user, wherein the authority information includes described having installed what module right of possession limited The corresponding capability identification of module;
The common button group to be shown of the active user is determined according to second configuration file and the authority information The set of part;
Show the common button component to be shown.
Optionally, the configuration information of the module includes module title, module id, the corresponding capability identification of module;
The configuration information of the corresponding common button component of the module includes common button component Name, common button component Module id belonging to mark, common button component icon, common button component.
Optionally, determine that the active user's is to be shown public according to second configuration file and the authority information The set of button assembly includes:
Capability identification one corresponding with the module having permission is selected according to the configuration information for having installed module The module id array of cause;
The common button group to be shown corresponding with the module id array is determined according to second configuration file The set of part.
Optionally, corresponding with the module id array described to be shown public according to second configuration file determination The set of button assembly includes:
It will be in module id belonging to common button component in second configuration file and the module id array The matched common button component identifier combination of module id forms the set of the common button component to be shown.
Optionally, by module id belonging to common button component in second configuration file and the module id number The set that the matched common button component identifier combination of module id in group forms common button component to be shown includes:
Traverse second configuration file;
Judge that the module corresponds to module belonging to each single item common button component in the configuration information of common button component It identifies whether consistent with the module id in the module id array;
The common button component identifier combination that judging result is yes is formed to the set of the common button component to be shown.
Optionally, show that the common button component to be shown includes:
The common button component to be shown is shown using the mode of React framework encapsulation component.
According to another embodiment of the invention, a kind of display device of common button component is additionally provided, comprising:
First obtains module, for having installed the first configuration file of module in acquisition system, wherein first configuration File includes the title for having installed module;
First determining module, it is literary for the second configuration according to the title for having installed module from the module of system configuration The configuration information for having installed module is determined in part, wherein second configuration file includes the configuration information and mould of module The configuration information of the corresponding common button component of block;
Second obtains module, for obtaining the authority information of active user, wherein the authority information includes described pacified The corresponding capability identification of module of die-filling piece of right of possession limit;
Second determining module, for determining the active user's according to second configuration file and the authority information The set of common button component to be shown;
Display module, for showing the common button component to be shown.
Optionally, the configuration information of the module includes module title, module id, the corresponding capability identification of module;
The configuration information of the corresponding common button component of the module includes common button component Name, common button component Module id belonging to mark, common button component icon, common button component.
Optionally, second determining module includes:
Submodule is chosen, for selecting and the module pair having permission according to the configuration information for having installed module The consistent module id array of the capability identification answered;
Determine submodule, for according to second configuration file determine it is corresponding with the module id array described in Show the set of common button component.
Optionally, the determining submodule, is also used to
It will be in module id belonging to common button component in second configuration file and the module id array The matched common button component identifier combination of module id forms the set of the common button component to be shown.
Optionally, the determining submodule includes:
Traversal Unit, for traversing second configuration file;
Judging unit, for judging that the module corresponds to each single item common button group in the configuration information of common button component Whether module id belonging to part is consistent with the module id in the module id array;
Assembled unit, the common button component identifier combination for being yes for judging result formed it is described it is to be shown it is public by The set of button component.
Optionally, the display module, is also used to
The common button component to be shown is shown using the mode of React framework encapsulation component.
According to still another embodiment of the invention, a kind of storage medium is additionally provided, meter is stored in the storage medium Calculation machine program, wherein the computer program is arranged to execute the step in any of the above-described embodiment of the method when operation.
According to still another embodiment of the invention, a kind of electronic device, including memory and processor are additionally provided, it is described Computer program is stored in memory, the processor is arranged to run the computer program to execute any of the above-described Step in embodiment of the method.
Through the invention, it is determined from the second configuration file of the module of system configuration according to the title for having installed module The configuration information for installing module, obtains the authority information of active user, according to second configuration file and the authority information It determines the set of the common button component to be shown of the active user, shows the common button component to be shown, i.e., to aobvious Show therefore the corresponding common button component of module id that common button component as currently has permission can solve related skill Permission is verified by common portion in art, module is needed according to the result after verification dynamically to create button, creates button The problem of operation is not intuitive, is unfavorable for understanding and positioning of the developer to code, reduces use cost, improves exploitation effect Rate and maintainability.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes part of this application, this hair Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is a kind of hardware configuration frame of the mobile terminal of the display methods of common button component of the embodiment of the present invention Figure;
Fig. 2 is the flow chart of the display methods of common button component according to an embodiment of the present invention;
Fig. 3 is the block diagram of the display device of common button component according to an embodiment of the present invention;
Fig. 4 is the block diagram of the display device of common button component according to the preferred embodiment of the invention.
Specific embodiment
Hereinafter, the present invention will be described in detail with reference to the accompanying drawings and in combination with Examples.It should be noted that not conflicting In the case of, the features in the embodiments and the embodiments of the present application can be combined with each other.
It should be noted that description and claims of this specification and term " first " in above-mentioned attached drawing, " Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.
Embodiment 1
Embodiment of the method provided by the embodiment of the present application one can be in mobile terminal, terminal or similar fortune It calculates and is executed in device.For running on mobile terminals, Fig. 1 is a kind of display of common button component of the embodiment of the present invention The hardware block diagram of the mobile terminal of method, as shown in Figure 1, mobile terminal 10 may include one or more (only shows in Fig. 1 One out) (processor 102 can include but is not limited to Micro-processor MCV or programmable logic device FPGA etc. to processor 102 Processing unit) and memory 104 for storing data, optionally, above-mentioned mobile terminal can also include being used for communication function Transmission device 106 and input-output equipment 108.It will appreciated by the skilled person that structure shown in FIG. 1 is only Signal, does not cause to limit to the structure of above-mentioned mobile terminal.For example, mobile terminal 10 may also include than shown in Fig. 1 more More perhaps less component or with the configuration different from shown in Fig. 1.
Memory 104 can be used for storing computer program, for example, the software program and module of application software, such as this hair The corresponding computer program of message method of reseptance in bright embodiment, processor 102 are stored in memory 104 by operation Computer program realizes above-mentioned method thereby executing various function application and data processing.Memory 104 may include High speed random access memory, may also include nonvolatile memory, as one or more magnetic storage device, flash memory or its His non-volatile solid state memory.In some instances, memory 104 can further comprise remotely setting relative to processor 102 The memory set, these remote memories can pass through network connection to mobile terminal 10.The example of above-mentioned network includes but not It is limited to internet, intranet, local area network, mobile radio communication and combinations thereof.
Transmitting device 106 is used to that data to be received or sent via a network.Above-mentioned network specific example may include The wireless network that the communication providers of mobile terminal 10 provide.In an example, transmitting device 106 includes a Network adaptation Device (Network Interface Controller, referred to as NIC), can be connected by base station with other network equipments to It can be communicated with internet.In an example, transmitting device 106 can for radio frequency (Radio Frequency, referred to as RF) module is used to wirelessly be communicated with internet.
Based on above-mentioned mobile terminal, a kind of display methods of common button component is present embodiments provided,
Fig. 2 is the flow chart of the display methods of common button component according to an embodiment of the present invention, as shown in Fig. 2, the stream Journey includes the following steps:
Step S202 has installed the first configuration file of module in acquisition system, wherein first configuration file includes The title of module has been installed;
Step S204 is determined from the second configuration file of the module of system configuration according to the title for having installed module The configuration information for having installed module, wherein second configuration file include module configuration information and module it is corresponding The configuration information of common button component;
Step S206 obtains the authority information of active user, wherein the authority information includes described installed in module The corresponding capability identification of the module having permission;
Step S208 determines the public affairs to be shown of the active user according to second configuration file and the authority information The set of button assembly altogether;
Step S210 shows the common button component to be shown.
S202 to S210 through the above steps, according to having installed the second configuration of the title of module from the module of system configuration Determined in file and the configuration information of module be installed, obtain the authority information of active user, according to second configuration file and The authority information determines the set of the common button component to be shown of the active user, shows the common button to be shown Component, i.e., the corresponding common button component of module id that common button component to be shown as currently has permission therefore can be with It solves to need module according to the result after verification by common portion verification permission in the related technology dynamically to create button, The problem of operation for creating button is not intuitive, is unfavorable for understanding and positioning of the developer to code, reduces use cost, mentions High development efficiency and maintainability.
In the embodiment of the present invention, the configuration information of above-mentioned module includes module title, module id, the corresponding power of module Limit mark;The configuration information of the corresponding common button component of the module includes common button component Name, common button component Module id belonging to mark, common button component icon, common button component.
The embodiment of the present invention, above-mentioned steps S208 can specifically include:
Step S2081 is selected corresponding with the module having permission according to the configuration information for having installed module The consistent module id array of capability identification;
Step S2082, it is corresponding with the module id array described to be shown according to second configuration file determination The set of common button component.
Further, step S2082 specifically can also include:
It will be in module id belonging to common button component in second configuration file and the module id array The matched common button component identifier combination of module id forms the set of the common button component to be shown.
Specifically, traversal second configuration file;
Judge that the module corresponds to module belonging to each single item common button component in the configuration information of common button component It identifies whether consistent with the module id in the module id array;
The common button component identifier combination that judging result is yes is formed to the set of the common button component to be shown.
In the embodiment of the present invention, above-mentioned steps S210 be can specifically include:
The common button component to be shown is shown using the mode of React framework encapsulation component.
The embodiment of the present invention improves the development efficiency and Ke Wei of knowledge mapping product to further decrease use cost Shield property proposes a kind of method for using React frame, encapsulating common button component.It is completed in common button component related Logical process, and can directly be shown according to above-mentioned requirements using this common button component in the module for needing the Show Button Button does not need the verification of concern object module, authorization check.
The configuration file of definition system includes the following contents: the definition of each module corresponding authority items, common button
Define product installed module configuration file (this configuration file can product installation after, by implementation, personnel determine Justice.It can also be automatically generated during generating product installation kit, the process for generating this configuration file does not include in this patent In)
Realize common button component
Common button component is used in the module of common button to be shown
Assuming that a total of 4 modules of product, are figure analysis, archives, retrieval, cooperation respectively, public button, which has, [is sent to figure Analysis], [being sent to archives], [being sent to retrieval].When for some Project settings product, profile module is not needed, then generating When the installation kit of product, 3 modules, figure analysis, retrieval and cooperation are contained only.
The configuration file config.js of definition system is as follows:
Wherein, modules: the module configuration in system includes all module configuration items in system;
Key: module unique identification;
Text: module title;
RoleName: the corresponding authority items unique identification of module;
SendButtons: the configuration of common button includes all common buttons supported in system;
Key: the unique identification of button;
Text: the title of button can be shown on button;
Icon: the icon of button can be shown on button;
ModuleKey: the unique identification of said module, it is consistent with the key in modules configuration item here;
Define the configuration file installModules.js that product has installed module;
Const installModules=[' graph ', ' search ', ' cooperation ']
export default installModules
It is the unique identification for having installed module in array, in modules configuration item in system configuration file config.js Key it is consistent.
Realize that common button component, the entitled SendToButton of definitions component are inherited from React.Component.It is internal Logic is as follows:
Load product has installed the configuration file installModules.js of module;
The configuration file config.js of loading system;
It is filtered out from the modules of config.js according to the installModules in installModules.js The configuration information of the module of installation;
Calling interface inquires the authority items information of active user, and interface returns the result the corresponding permission of module to have permission Item unique identification, it is consistent with the roleName in modules configuration item in system configuration file config.js.Assuming that current use Family only has the permission retrieved with collaboration module, does not scheme the permission for analysing module, then the data returned are as follows:
Example: [' search ', ' cooperation '];
According to authority items unique identification obtained in the previous step, further screened from the module of installation that third step filters out The unique identification array for the module having permission out, finally obtained value are [' search ', ' cooperation '], this value is assigned Give variable moduleList;;
SendButtons array in Ergodic Theory configuration file config.js, the moduleKey for inquiring each single item are It is no to exist in array moduleList obtained in the previous step, if it is present, just rendering this button in the page, otherwise This button is not rendered in the page;
Code sample is as follows:
Common button component is used in the module of common button to be shown, as follows:
<div>
<SendToButton/>
</div>
Button can be shown and [be sent to retrieval] on the final page;If above-mentioned interface be returned as [' graph ', ' search ', ' cooperation '], then can be shown on the final page and [be sent to retrieval], [being sent to figure analysis] two buttons.
The embodiment of the present invention is realized according to permission and has been installed module and dynamically exist using React framework encapsulation common button Corresponding button is shown in calling module.
Through the above description of the embodiments, those skilled in the art can be understood that according to above-mentioned implementation The method of example can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but it is very much In the case of the former be more preferably embodiment.Based on this understanding, technical solution of the present invention is substantially in other words to existing The part that technology contributes can be embodied in the form of software products, which is stored in a storage In medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, calculate Machine, server or network equipment etc.) execute method described in each embodiment of the present invention.
Embodiment 2
The embodiment of the present invention additionally provides a kind of display device of common button component, and the device is for realizing above-mentioned reality Example and preferred embodiment are applied, the descriptions that have already been made will not be repeated.As used below, term " module " may be implemented The combination of the software and/or hardware of predetermined function.Although device described in following embodiment is preferably realized with software, The realization for being the combination of hardware or software and hardware is also that may and be contemplated.
Fig. 3 is the block diagram of the display device of common button component according to an embodiment of the present invention, as shown in Figure 3, comprising:
First obtains module 32, for having installed the first configuration file of module in acquisition system, wherein described first matches Setting file includes the title for having installed module;
First determining module 34, for the second configuration according to the title for having installed module from the module of system configuration The configuration information for having installed module is determined in file, wherein second configuration file include module configuration information and The configuration information of the corresponding common button component of module;
Second obtains module 36, for obtaining the authority information of active user, wherein the authority information include it is described The corresponding capability identification of module of module right of possession limit is installed;
Second determining module 38, for determining the active user according to second configuration file and the authority information Common button component to be shown set;
Display module 310, for showing the common button component to be shown.
Optionally, the configuration information of the module includes module title, module id, the corresponding capability identification of module;
The configuration information of the corresponding common button component of the module includes common button component Name, common button component Module id belonging to mark, common button component icon, common button component.
Fig. 4 is the block diagram of the display device of common button component according to the preferred embodiment of the invention, as shown in figure 4, institute Stating the second determining module 38 includes:
Submodule 42 is chosen, for selecting and the module having permission according to the configuration information for having installed module The corresponding consistent module id array of capability identification;
Determine submodule 44, it is corresponding with the module id array described for being determined according to second configuration file The set of common button component to be shown.
Optionally, the determining submodule 44, is also used to
It will be in module id belonging to common button component in second configuration file and the module id array The matched common button component identifier combination of module id forms the set of the common button component to be shown.
Optionally, the determining submodule 44 includes:
Traversal Unit, for traversing second configuration file;
Judging unit, for judging that the module corresponds to each single item common button group in the configuration information of common button component Whether module id belonging to part is consistent with the module id in the module id array;
Assembled unit, the common button component identifier combination for being yes for judging result formed it is described it is to be shown it is public by The set of button component.
Optionally, the display module 310, is also used to
The common button component to be shown is shown using the mode of React framework encapsulation component.
It should be noted that above-mentioned modules can be realized by software or hardware, for the latter, Ke Yitong Following manner realization is crossed, but not limited to this: above-mentioned module is respectively positioned in same processor;Alternatively, above-mentioned modules are with any Combined form is located in different processors.
Embodiment 3
The embodiments of the present invention also provide a kind of storage medium, computer program is stored in the storage medium, wherein The computer program is arranged to execute the step in any of the above-described embodiment of the method when operation.
Optionally, in the present embodiment, above-mentioned storage medium can be set to store by executing based on following steps Calculation machine program:
S11 has installed the first configuration file of module in acquisition system, wherein first configuration file includes having pacified Die-filling piece of title;
S12, according to the title for having installed module determination from the second configuration file of the module of system configuration The configuration information of module has been installed, wherein second configuration file include module configuration information and module it is corresponding public The configuration information of button assembly;
S13 obtains the authority information of active user, wherein the authority information has installed module right of possession including described The corresponding capability identification of the module of limit;
S14, according to second configuration file and the authority information determine the active user it is to be shown it is public by The set of button component;
S15 shows the common button component to be shown.
Optionally, in the present embodiment, above-mentioned storage medium can include but is not limited to: USB flash disk, read-only memory (Read- Only Memory, referred to as ROM), it is random access memory (Random Access Memory, referred to as RAM), mobile hard The various media that can store computer program such as disk, magnetic or disk.
Embodiment 4
The embodiments of the present invention also provide a kind of electronic device, including memory and processor, stored in the memory There is computer program, which is arranged to run computer program to execute the step in any of the above-described embodiment of the method Suddenly.
Optionally, above-mentioned electronic device can also include transmission device and input-output equipment, wherein the transmission device It is connected with above-mentioned processor, which connects with above-mentioned processor.
Optionally, in the present embodiment, above-mentioned processor can be set to execute following steps by computer program:
S11 has installed the first configuration file of module in acquisition system, wherein first configuration file includes having pacified Die-filling piece of title;
S12, according to the title for having installed module determination from the second configuration file of the module of system configuration The configuration information of module has been installed, wherein second configuration file include module configuration information and module it is corresponding public The configuration information of button assembly;
S13 obtains the authority information of active user, wherein the authority information has installed module right of possession including described The corresponding capability identification of the module of limit;
S14, according to second configuration file and the authority information determine the active user it is to be shown it is public by The set of button component;
S15 shows the common button component to be shown.
Optionally, the specific example in the present embodiment can be with reference to described in above-described embodiment and optional embodiment Example, details are not described herein for the present embodiment.
Obviously, those skilled in the art should be understood that each module of the above invention or each step can be with general Computing device realize that they can be concentrated on a single computing device, or be distributed in multiple computing devices and formed Network on, optionally, they can be realized with the program code that computing device can perform, it is thus possible to which they are stored It is performed by computing device in the storage device, and in some cases, it can be to be different from shown in sequence execution herein Out or description the step of, perhaps they are fabricated to each integrated circuit modules or by them multiple modules or Step is fabricated to single integrated circuit module to realize.In this way, the present invention is not limited to any specific hardware and softwares to combine.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field For art personnel, the invention may be variously modified and varied.It is all within principle of the invention, it is made it is any modification, etc. With replacement, improvement etc., should all be included in the protection scope of the present invention.

Claims (10)

1. a kind of display methods of common button component characterized by comprising
First configuration file of module is installed, wherein first configuration file includes having installed module in acquisition system Title;
Mould has been installed described in determining from the second configuration file of the module of system configuration according to the title for having installed module The configuration information of block, wherein second configuration file includes the configuration information and the corresponding common button component of module of module Configuration information;
Obtain the authority information of active user, wherein the authority information includes the module for having installed module right of possession limit Corresponding capability identification;
The common button component to be shown of the active user is determined according to second configuration file and the authority information Set;
Show the common button component to be shown.
2. the method according to claim 1, wherein
The configuration information of the module includes module title, module id, the corresponding capability identification of module;
The configuration information of the corresponding common button component of the module includes common button component Name, common button component mark Module id belonging to knowledge, common button component icon, common button component.
3. according to the method described in claim 2, it is characterized in that, true according to second configuration file and the authority information The set of the common button component to be shown of the active user includes: calmly
It is consistent that capability identification corresponding with the module having permission is selected according to the configuration information for having installed module Module id array;
The common button component to be shown corresponding with the module id array is determined according to second configuration file Set.
4. according to the method described in claim 3, it is characterized in that, according to second configuration file determination and the module mark The set for knowing the corresponding common button component to be shown of array includes:
By the module in module id belonging to common button component in second configuration file and the module id array Identify the set that matched common button component identifier combination forms the common button component to be shown.
5. according to the method described in claim 4, it is characterized in that, by belonging to common button component in second configuration file Module id formed with the matched common button component identifier combination of module id in the module id array it is to be shown The set of common button component includes:
Traverse second configuration file;
Judge that the module corresponds to module id belonging to each single item common button component in the configuration information of common button component It is whether consistent with the module id in the module id array;
The common button component identifier combination that judging result is yes is formed to the set of the common button component to be shown.
6. the method according to any one of claims 1 to 5, which is characterized in that the display common button group to be shown Part includes:
The common button component to be shown is shown using the mode of React framework encapsulation component.
7. a kind of display device of common button component characterized by comprising
First obtains module, for having installed the first configuration file of module in acquisition system, wherein first configuration file Title including having installed module;
First determining module, for having installed the title of module from the second configuration file of the module of system configuration according to described Determine the configuration information for having installed module, wherein second configuration file includes the configuration information and module pair of module The configuration information for the common button component answered;
Second obtains module, for obtaining the authority information of active user, wherein the authority information has installed mould including described The corresponding capability identification of module of block right of possession limit;
Second determining module, for according to second configuration file and the authority information determine the active user to aobvious Show the set of common button component;
Display module, for showing the common button component to be shown.
8. device according to claim 7, which is characterized in that
The configuration information of the module includes module title, module id, the corresponding capability identification of module;
The configuration information of the corresponding common button component of the module includes common button component Name, common button component mark Module id belonging to knowledge, common button component icon, common button component.
9. a kind of storage medium, which is characterized in that be stored with computer program in the storage medium, wherein the computer Program is arranged to execute the method described in any one of claims 1 to 6 when operation.
10. a kind of electronic device, including memory and processor, which is characterized in that be stored with computer journey in the memory Sequence, the processor are arranged to run the computer program to execute the side described in any one of claims 1 to 6 Method.
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 true CN110286907A (en) 2019-09-27
CN110286907B 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)

Cited By (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 (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150370406A1 (en) * 2014-05-04 2015-12-24 Yue Zhao Protective film, protective glass and communication method of mobile phone
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 display method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150370406A1 (en) * 2014-05-04 2015-12-24 Yue Zhao Protective film, protective glass and communication method of mobile phone
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 display method and device

Cited By (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

Also Published As

Publication number Publication date
CN110286907B (en) 2022-11-15

Similar Documents

Publication Publication Date Title
US11799732B2 (en) Internet of things device discovery and configuration
CN105389191B (en) A kind of method for upgrading software based on LAN, device and system
CN110597531B (en) Distributed module upgrading method and device and storage medium
CN103761178B (en) A kind of method realized using unloading investigation
US7752156B2 (en) System and method for automatically creating, installing and configuring extensions of functionalities in the system nodes of a distributed network
CN105988836B (en) Application recommendation method and device
CN108399331B (en) Application process trial method and system
CN109558202A (en) Original list development approach, device, equipment and storage medium based on small routine
CN110297671A (en) Client plug-in implementation method, device, computer equipment and storage medium
CN113361838A (en) Business wind control method and device, electronic equipment and storage medium
CN110377568A (en) A kind of metadata acquisition method and device
CN110286907A (en) A kind of display methods and device of common button component
CN109597823B (en) Data source configuration method, device, computer equipment and storage medium
CN112346758B (en) Digital infrastructure service updating platform, updating method and electronic equipment
CN109901850A (en) Software installation method, device, terminal and computer readable storage medium
WO2017085555A1 (en) System and method for providing configurable communications for services and platform instances on a per service basis
CN112130884B (en) Method and system for updating automation device, user equipment and readable storage medium
CN103914505A (en) Information management method and information management device
CN110362393A (en) The detection method and device of increment task
CN105991721A (en) Method and device for pushing application
CN105471979A (en) Application program update method, server and application program update system
CN107688473B (en) Method for realizing user-defined security domain in smart card and smart card
CN106338962B (en) For configuring the method and configuration system of hardware component in automated system
CN106294411B (en) Software category identification method and system
CN109254855A (en) A kind of register method, device and the electronic equipment of parameter transport protocol

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