CN116009867B - Configuration interface generation method, device and system - Google Patents

Configuration interface generation method, device and system Download PDF

Info

Publication number
CN116009867B
CN116009867B CN202310293903.2A CN202310293903A CN116009867B CN 116009867 B CN116009867 B CN 116009867B CN 202310293903 A CN202310293903 A CN 202310293903A CN 116009867 B CN116009867 B CN 116009867B
Authority
CN
China
Prior art keywords
configuration
list
class
subclass
component
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
CN202310293903.2A
Other languages
Chinese (zh)
Other versions
CN116009867A (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.)
Guangzhou Yihong Intelligent Equipment Co ltd
Original Assignee
Guangzhou Yihong Intelligent Equipment 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 Guangzhou Yihong Intelligent Equipment Co Ltd filed Critical Guangzhou Yihong Intelligent Equipment Co Ltd
Priority to CN202310293903.2A priority Critical patent/CN116009867B/en
Publication of CN116009867A publication Critical patent/CN116009867A/en
Application granted granted Critical
Publication of CN116009867B publication Critical patent/CN116009867B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a configuration interface generation method, a device and a system, which are used for obtaining category attributes of configuration type structure data by responding to the configuration type structure data input by a user, classifying the configuration type structure data according to the category attributes, calling preset component rules to define the configuration type structure data after corresponding classification, further obtaining corresponding configuration type components, and calling all the configuration type components to generate corresponding configuration interfaces. By the method, the whole process automation of the configuration interface generation is realized, the time resources and the manpower resources required to be consumed during the configuration interface generation are effectively reduced, and the development period of the configuration interface is greatly reduced.

Description

Configuration interface generation method, device and system
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method, an apparatus, and a system for generating a configuration interface.
Background
The front-end interface configuration requirements are more and more diversified, data and methods corresponding to different functions are packaged into various components, and the provision of a simple and reasonable configuration interface for software configuration is also one of the requisite modules of the current software.
The software configuration interfaces provided by the prior art have the following two defects, on one hand, the provided configuration methods are all invisible; on the other hand, the interface UI needs to be written manually, and because various UI controls need to be typeset, the interface UI needs to consume a great deal of time and labor resources.
How to reduce the time and labor resources required for configuration interface generation becomes a major challenge in the industry at present.
Disclosure of Invention
The invention provides a method, a device and a system for generating a configuration interface, which are used for realizing the technical effects of effectively reducing the time and the labor resources required by generating the configuration interface.
In order to solve the technical problem, an embodiment of the present invention provides a method for generating a configuration interface, including the following steps:
responding to configuration type structure data input by a user, and obtaining category attributes of the configuration type structure data;
wherein the category attributes include a root configuration class, a subcategory class, and a list class;
classifying the configuration type structure data according to the category attribute, and calling a preset component rule to define the configuration type structure data after corresponding classification to obtain a corresponding configuration type component;
and calling all the configuration type components to generate a corresponding configuration interface.
According to the configuration interface generation method provided by the invention, the generation device automatically obtains the category attribute of the structural data and classifies the structural data according to the corresponding category attribute of the structural data by responding to the configuration type structural data input by a user, then the generation device calls a preset component rule to define the classified structural data, further a corresponding defined configuration type component is obtained, and after the configuration interface is obtained, the device generates a corresponding configuration interface according to the component. By the method provided by the technical scheme of the invention, a user only needs to input configuration type structure data at the beginning, the device automatically completes a series of assembly and interface generation operations according to the structure data input by the user, and the method realizes the whole process automation of the steps, effectively reduces time resources and manpower resources required to be consumed in the generation of the configuration interface, and greatly reduces the development period of the configuration interface, unlike the prior art that the configuration interface is generated and the interface UI is manually written for a long time.
As a preferred example, the calling a preset component rule defines the configuration class structure data after corresponding classification to obtain a corresponding configuration class component, which specifically includes:
and when the category attribute is the root configuration class, adding definition of menu content characteristics and role authority characteristics into the root configuration class to obtain a corresponding root configuration class component.
According to the configuration interface generation method provided by the invention, the corresponding component rules are called through different category attributes to define the structure data classified according to the different category attributes, and when the called component rules are root configuration component rules, the menu content characteristics and the role authority characteristics are added to the root configuration class for defining the root configuration class structure data. The invention connects the category attribute with the corresponding component rule, so that the system can directly call the corresponding component rule according to the category attribute to define the structural data, the system can automatically complete the definition step of the structural data, and the configuration component obtained after definition provides a data base for the later generation of the configuration interface.
As a preferred example, the invoking the preset component rule defines the configuration class structure data after the corresponding classification to obtain a corresponding configuration class component, and specifically further includes:
when the class attribute is a subclass class, adding definition of group characteristics and display component characteristics into the subclass class, and determining whether zero or more definitions affecting display characteristics, role affecting characteristics, monitoring characteristics and detection function characteristics are added into the subclass class according to the configuration class structure data to obtain a corresponding subclass class component.
When the invoked component rule is a subclass component rule, the configuration interface generation method provided by the invention is defined by adding group characteristics and display component characteristics into the subclass for the subclass structural data and determining whether to add the influence display characteristics, role influence characteristics, monitoring characteristics and detection function characteristics according to the structural data. The preset class component rule of the invention comprises the characteristics, and the requirements of users on configuration interfaces are fully met.
In the present invention, the group characteristic and the display component characteristic are optional characteristics, and the remaining characteristics other than the group characteristic and the display component characteristic are optional characteristics. Meanwhile, the user can adaptively adjust the optional characteristics according to actual conditions, so that the invention also realizes the flexible adjustment function for the configuration type component.
As a preferred example, the invoking the preset component rule defines the configuration class structure data after the corresponding classification to obtain a corresponding configuration class component, and specifically further includes:
when the category attribute is a list category, determining whether to add zero or more definitions in the list component display characteristic, the list influence display characteristic, the list role display characteristic, the list monitoring characteristic and the list detection function characteristic according to the configuration category structure data in the list category to obtain a corresponding list category component.
According to the configuration interface generation method provided by the invention, when the called component rule is a list component rule, list components are added to display characteristics, list influence display characteristics, list role influence characteristics, list monitoring characteristics and list detection function characteristics of list class structure data to define list classes. The list class is inherited in the dynamiconfiglist, the characteristics have a one-to-one correspondence with the influence display characteristic, the role influence characteristic, the monitoring characteristic and the detection function characteristic contained in the subclass class, the functions which can be realized by the two corresponding characteristics also have a correspondence, and the characteristics are optional characteristics. The list component rule provided by the invention enlarges the optional range of the user and effectively improves the experience of the user.
As a preferred example, the invoking the configuration class component generates a corresponding configuration interface, which specifically includes:
scanning attributes contained in menu content characteristics in a root configuration type component, and determining whether to display the attributes of the menu content characteristics in the root configuration type component on the configuration interface according to definition of role authority characteristics;
and scanning additional attributes contained in a plurality of characteristics in the subclass class component and the list class component, and adjusting the configuration interface according to the additional attributes of the plurality of characteristics.
The method for generating the configuration interface according to the components provided by the invention comprises the steps of scanning a root configuration class component, a minor class component and a list class component, and determining and adjusting the generated configuration interface according to the attribute and the additional attribute of the characteristics contained in the components. According to the method provided by the invention, the system automatically realizes the whole process of scanning and generating, so that a great amount of time required by a user when typesetting is performed on the interface UI in the prior art is saved, and the working efficiency of the user is effectively improved.
As a preferred example, the invoking the configuration class component generates a corresponding configuration interface, and specifically further includes:
scanning parameters of the configuration type components, generating a corresponding configuration interface based on the parameters of the root configuration type components, and adjusting the configuration interface according to the parameters of the subclass type components and the parameters of the list type components;
wherein the parameters include one or more combinations of configuration objects, role names, menu displays, copy creation, group editing, and tab controls.
The invention provides a method for adjusting an interface through parameters, wherein the parameters comprise a configuration object, a role name, menu display, copy creation, group editing and a label control, wherein the configuration object is a necessary parameter, and the other parameters except the configuration object are selectable parameters.
As a preferred example, after the calling the configuration class component generates the corresponding configuration interface, the method further includes:
subscribing a plurality of events, and when a first event is triggered, sending a first notification corresponding to the first event to a user;
wherein the events include a parameter save event, a list group select event, a save notification event, a button click event, a button cancel event, and a reminder confirm event.
The invention provides a method for subscribing to a notification through subscribing to an event, wherein the event comprises a parameter saving event, a list group selecting event, a saving notification event, a button clicking event, a button canceling event and a reminding confirmation event, and the events are interface UI, so that the notification function corresponding to the event can be realized through subscribing to the events.
As a preferred example, after the calling the configuration class component generates the corresponding configuration interface, the method further includes:
and scanning theme change settings of the configuration type component, and adjusting the color of the configuration interface according to the theme change settings.
According to the method for adjusting the color of the configuration interface by adjusting the main body of the configuration component, the color of the configuration interface is adjusted more flexibly by the theme adjusting method.
Correspondingly, the invention also provides a configuration interface generating device, which comprises: the device comprises a response module, a definition module and a generation module;
the response module is used for responding to configuration type structure data input by a user and obtaining category attributes of the configuration type structure data; wherein the category attributes include a root configuration class, a subcategory class, and a list class;
the definition module is used for classifying the configuration class structure data according to the category attribute, and calling a preset component rule to define the configuration class structure data after corresponding classification to obtain a corresponding configuration class component;
the generating module is used for calling all the configuration type components to generate corresponding configuration interfaces.
The configuration interface generating device provided by the invention can realize any configuration interface generating method.
Correspondingly, the invention also provides a configuration interface generation system, which comprises a memory, a processor and a computer program stored in the memory and running on the processor, wherein the processor realizes the generation method of the configuration interface when processing the computer program.
Drawings
Fig. 1: a flow diagram of an embodiment of a configuration interface generating method provided by the invention;
fig. 2: a structural diagram of an embodiment of a method for defining configuration class structure data by calling preset component rules is provided by the invention;
fig. 3: a structural schematic diagram of an embodiment of a method for generating a configuration interface for calling a configuration class component is provided by the invention;
fig. 4: a flow diagram of an embodiment of another configuration interface generating method provided by the invention;
fig. 5: the invention provides a structural schematic diagram of an embodiment of a configuration interface generating device.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Example 1
Referring to fig. 1, a flowchart of an embodiment of a configuration interface generating method provided by the present invention includes steps 101 to 103, where each step is specifically as follows:
step 101: and responding to the configuration type structure data input by the user, and obtaining the category attribute of the configuration type structure data.
In this embodiment, the system obtains the category attribute corresponding to the configuration type structure data by responding to the configuration type structure data input by the user, and provides a parameter basis for classifying the structure data according to the category attribute in the later stage. In this embodiment, the category attributes include a root configuration class, a minor category class and a list class, where the root configuration class is a major category attribute, and the minor category class and the list class are both minor category attributes.
Step 102: classifying the configuration type structure data according to the category attribute, and calling a preset component rule to define the configuration type structure data after corresponding classification to obtain a corresponding configuration type component.
In this embodiment, the system classifies configuration class structure data input by the user according to the class attribute obtained in the foregoing, and further invokes the component rule corresponding to the class attribute to define the classified configuration class structure data, thereby obtaining the corresponding configuration class component. The whole process is automatically completed by the system, the preset assembly rule is the assembly rule prestored in the system by the user, the embodiment of the invention does not further limit the content of the assembly rule, and the user can automatically adjust the assembly rule according to the requirement.
Step 103: and calling all the configuration type components to generate a corresponding configuration interface.
In this embodiment, various configuration type components generated by system automation call generate corresponding configuration interfaces, by using the configuration interface generation method provided in this embodiment, a user only needs to input configuration type structure data, and the system can automatically generate corresponding configuration interfaces according to the structure data input by the user, without the need of the user consuming a large amount of manpower and material resources to write and typeset the interface UI.
As another example of this embodiment, referring to fig. 2, fig. 2 is a schematic structural diagram of an embodiment of a method for calling a preset component rule to define configuration class structure data according to the present invention. The category attributes provided by the invention comprise three types of root configuration class, subclass class and list class, the component rules corresponding to different category attributes and configuration class structure data are different, and the obtained configuration class components are also different.
As shown in 201A in fig. 2, when the class attribute identified by the system is a root configuration class, the component rule correspondingly invoked is a root configuration class component rule, and the system defines root configuration class structure data by using the root configuration class component rule.
The root configuration class provided by the invention inherits the dynamiconfigroot, the menu content characteristic is dynamicoHeader characteristic, and the role authority characteristic is RolePermission characteristic. The menu content characteristic is a fill-in characteristic, which declares the menu content, determines the position of the configuration content stored in the hard disk, and sorts and displays icons; the character authority characteristics and the menu content characteristics have a corresponding relation, and only the character authority characteristics are defined, so that the corresponding menu content can be displayed on a configuration interface of a user.
When the class attribute identified by the system is a subclass, as shown in 201B in fig. 2, the component rule correspondingly invoked is a subclass component rule, and the system defines the subclass structure data by using the subclass component rule, and determines whether to add the component attribute influencing display characteristic, role influencing characteristic, monitoring characteristic and detection function characteristic to define the subclass structure data according to the corresponding subclass structure data by adding the definition of the group characteristic and the display component characteristic to the subclass, thereby obtaining the subclass component.
The subclass class provided by the invention is inherited in the DynamicConfigItem, and the display component characteristics comprise the characteristics of DynamicControlNumber, dynamicControlTextBox and the like, and represent various corresponding generated controls; group properties are DynamicGroup properties.
The influence display characteristic, namely the dynamic visual bind characteristic, represents whether the corresponding control is displayed or not under the influence of the value set by the specified control of the group, so that one type of setting is realized, for example, a check box is realized, one batch of controls can be displayed when the check box is in a selected state, and another batch of controls can be displayed when the check box is in a non-selected state; the role influence characteristic is RolePermission characteristic, and represents the role influence of the corresponding control for the user, namely whether the user role can be displayed or edited; the monitoring characteristic is the editNotification characteristic, represents that the item is configured as a monitoring item, and when the whole configuration is stored, if the value of the item is changed, the system can trigger the notification to push the value before and after the change of the item configuration, so that the log function of key configuration can be realized; the detection function characteristic, namely the dynamicGroupcheck integration characteristic, represents a corresponding control for checking whether each value in a certain group meets the standard or not, and sending a notification to remind a user when finding out the value which does not meet the standard, for example, when the value corresponding to A in the group setting is required to be smaller than the value corresponding to B, if the value of A is set to be larger than or equal to the value of B by the user and the value of B is stored by the user, sending the notification to remind the user.
In the embodiment of the present invention, the group characteristic and the display component characteristic are optional characteristics, and the remaining characteristics other than the group characteristic and the display component characteristic are optional characteristics.
When the class attribute identified by the system is a list class, then the component rule that corresponds to the call is a list class component rule, and the system will use the list class component rule to define list class structure data, and define the list class by adding list component display characteristics, list influence display characteristics, list role display characteristics, list listening characteristics, and list detection function characteristics, as shown in fig. 2 at 201C. The list class is inherited in the dynamiconfiglist, and the characteristics have a one-to-one correspondence with the influence display characteristics, the role influence characteristics, the monitoring characteristics and the detection function characteristics contained in the subclasses in the foregoing, and the functions which can be realized by the two corresponding characteristics also have a correspondence.
The list component displays characteristics representing generation of various list class controls; the list influences display characteristics, and represents whether the corresponding list class control is influenced by the value set by the specified control group or not, so that the setting of one list class is realized; the list role influence characteristics represent role influence of the corresponding list class control for the user, namely whether the user role can be displayed or edited; the list monitoring characteristic represents that the item is configured as a monitoring item, and when the whole configuration is stored, if the value of the item configuration is changed, the system triggers a notification to push the specific value before and after the change of the item configuration, so that the log function of the key list class configuration can be realized; the list detection function feature represents a corresponding list control and is used for checking whether various values in a list group meet the standard or not and sending a notification to remind a user when the values which do not meet the standard are found.
In this embodiment, all the above list characteristics are optional characteristics, and if the system detects that the structure data contains the structure data with the category attribute of list, the system will define the list structure data by adding the above characteristics as required, and obtain the corresponding list component, so as to provide a data base for the later generation configuration interface.
As yet another example of the embodiment of the present invention, referring to fig. 3, fig. 3 is a schematic structural diagram of an embodiment of a method for calling a configuration class component to generate a configuration interface according to the present invention. In this embodiment, invoking the configuration class component to generate the configuration interface specifically includes the following three operations.
As shown in fig. 3 at 301A, the system scans the properties contained in the menu content properties in the root configuration class component and determines whether to display the properties of the menu content properties in the root configuration class component on the configuration interface according to the definition of the role authority properties. In this embodiment, if the system scans the definition of the character authority characteristics in the root configuration class, then it determines to display the attributes of the menu content characteristics on the configuration interface.
As shown in FIG. 3 at 301B, additional attributes contained by a number of properties in the subclass class component and the list class component are scanned and the configuration interface is adjusted according to the additional attributes of the number of properties. In this embodiment, if the system scans the group property in the class-subclass component, the corresponding control is dynamically generated according to the definitions of the various controls, and the attribute of the corresponding control is determined according to the additional attribute included in the property.
If the system scans the attribute contained in the display attribute, namely the dynamic visual bond attribute, the attribute corresponding control is set to monitor in the system, and when the value of the attribute corresponding to the same group binding is changed, a monitoring item is called to detect whether the attribute is displayed or hidden.
If the system scans the attribute contained in the character influence characteristic, namely the RolePermission characteristic, the characteristic display is set according to the character of the current user, or whether the characteristic can be edited is determined.
If the system scans the attribute contained in the monitoring characteristic, namely the EditNotification characteristic, the characteristic is added into the monitoring change list, and the push modification is triggered when the configuration is saved finally.
If the system scans the attribute contained in the detection function characteristic, namely the dynamicGroupcheck integration characteristic, the detection function is set as the detection function called during saving.
If the system scans the attribute contained in the button control characteristic, namely the dynamicControlButton characteristic, the clicking event of the button corresponding to the characteristic is set as a general call, and when the system detects that the clicking event of the button is triggered, the system outputs the binding name corresponding to the button to a user for judgment processing.
If the system scans the characteristic of the custom control, namely the dynamic control custom characteristic, the system adds the custom control to the configuration interface for user-defined adjustment, and if the user needs to add the expansion on the basis of the system, namely the special control is added, the custom control adding function can be realized by utilizing the characteristic.
As shown in 301C in fig. 3, the parameters of the configuration class component are scanned, the configuration interface is generated based on the parameters of the root configuration class component, and the configuration interface is adjusted according to the parameters of the minor class component and the parameters of the list class component, in this embodiment, the parameters include one or more combinations of a configuration object, a role name, a menu display, a copy creation, a group editing, and a label control, where the configuration object is a necessary parameter, and the other parameters except the configuration object are optional parameters.
When the system scans the configuration object, the configuration interface is dynamically generated by taking the large category as the blue book.
If the system scans the role name, the system compares the role name with the role authority characteristics, and determines whether the role authority characteristics are the current role name, if the role authority comparison is not the current role name, the system conceals menu content contained in the role authority characteristics; if the role authority comparison is the current role name, the system displays menu content contained in the role authority characteristics.
If the system scans the menu display, determining whether to hide the menu on the configuration interface according to the menu display.
If the system scans the copy creation, a notification is triggered to remind the user whether to modify the copy. When the system detects that the copy creation is triggered, the system adjusts the copy modified content to the original object only when detecting that the real storage control is triggered; if the system does not detect that the real save control is triggered or detects that the cancel control is triggered, the system will not adjust the copy modified content to the original object, and the parameter will be stored in the system as an anti-misoperation insurance mechanism.
If the system scans the group editing, the controls contained in the group are adjusted to an uneditable state, only if the system detects that the editing controls in the group controls are triggered, the controls in the group are adjusted to the editable state, and only if the system detects that the determining controls in the group controls are triggered, the edited content is adjusted to the group; if the system does not scan the group edit, the controls contained in the group are all in an editable state.
If the system scans the Tab control, namely the Tab control, the system displays the configuration interface in a Tab mode, namely the large category is displayed above the interface, and the small category is displayed below the interface; if the system does not scan the label control, the system displays the configuration interface in a default mode, namely, the large category is displayed on the left side of the interface, and the small category is displayed on the right side of the interface.
In summary, in the configuration interface generating method provided in this embodiment, by responding to configuration class structure data input by a user, the generating device automatically obtains class attributes of the structure data and classifies the structure data according to corresponding class attributes thereof, then the generating device invokes a preset component rule to define classified structure data, further obtains a corresponding defined configuration class component, and after obtaining, the generating device generates a corresponding configuration interface according to the component. By the method provided by the technical scheme of the invention, a user only needs to input configuration type structure data at the beginning, the device automatically completes a series of assembly and interface generation operations according to the structure data input by the user, and the method realizes the whole process automation of the steps, effectively reduces time resources and manpower resources required to be consumed in the generation of the configuration interface, and greatly reduces the development period of the configuration interface, unlike the prior art that the configuration interface is generated and the interface UI is manually written for a long time.
Example two
Referring to fig. 4, fig. 4 is a flowchart of an embodiment of another configuration interface generating method provided by the present invention, including steps 401 to 405, as shown in fig. 4, steps 401 to 403 in the second embodiment are the same as steps 101 to 103 in the first embodiment, but steps 404 to 405 are newly added steps in the second embodiment. Therefore, the method for generating the configuration interface provided by the second embodiment includes all the steps of the first embodiment, and is expanded based on the first embodiment, wherein the expansion content is steps 404 to 405 in fig. 4, and the two steps are specifically as follows:
step 404: and subscribing a plurality of events, and when the first event is triggered, sending a first notification corresponding to the first event to a user.
In this embodiment, the events include a parameter saving event, a list group selecting event, a saving notification event, a button clicking event, a button cancelling event, and a reminder confirming event, which are all interface UIs, and the notification function corresponding to the event can be further realized by subscribing the above events.
If the system detects a parameter saving event, namely a SaveParametersChange event, namely after being triggered by an edited event of a related control containing the edition Notification characteristic, sending a corresponding notification to a user; if the system detects a list group selection event, namely a SelectedListGroupChange event, namely when a related control for dynamically generating a list is triggered as a current selection, a corresponding notification is sent to a user; if the system detects a save notification event, namely a SaveSucceess event, namely after a save button is triggered, a confirm save notification is sent to a user; if the system detects that the button click event, namely the button click event is triggered, a corresponding notification is sent to the user; if the system detects that the button cancel event, namely the CanelClick event is triggered, sending a configuration interface closing notification to a user; if the system detects that the reminding confirmation event, namely the dialogMessageHandle, is triggered, a confirmation notification is sent to the user, and false touch operation is prevented. The delegation is similar to the events and has a difference that the events can call a plurality of subscription functions, and only one executive function is set for delegation.
In addition to the events and delegation described above, if the system detects a override function convertProperty, the system will enable the function when it detects that the save button is triggered, enabling the system to perform a series of operations according to the modified content when certain configuration items are modified.
Step 405: and scanning theme change settings of the configuration type component, and adjusting the color of the configuration interface according to the theme change settings.
According to the method for adjusting the colors of the configuration interfaces by adjusting the topics of the configuration components, the colors of the configuration interfaces are adjusted more flexibly by the topic adjusting method, and meanwhile, users can adjust the topics of the configuration interfaces according to actual needs so that the colors are matched with actual software topics.
In order to better illustrate the working principle and the step flow of the configuration interface generating method, the device and the system of the invention, the invention can be but not limited to the related description.
Accordingly, referring to fig. 5, fig. 5 is a schematic structural diagram of an embodiment of a configuration interface generating device provided by the present invention, where the generating device includes a response module 501, a definition module 502, and a generating module 503;
the response module 501 is configured to obtain a category attribute of configuration type structure data in response to the configuration type structure data input by a user; wherein the category attributes include a root configuration class, a subcategory class, and a list class;
the definition module 502 is configured to classify the configuration class structure data according to the class attribute, and call a preset component rule to define the configuration class structure data after the corresponding classification, so as to obtain a corresponding configuration class component;
the generating module 503 is configured to call all the configuration class components to generate a corresponding configuration interface.
The configuration interface generating device provided by the invention can realize any configuration interface generating method.
Correspondingly, the embodiment of the invention also provides a configuration interface generation system, which comprises a memory, a processor and a computer program stored on the memory and running on the processor, wherein the processor realizes the generation method of the configuration interface when processing the computer program.
In summary, according to the method, the device and the system for generating the configuration interface provided by the invention, the category attribute of the configuration type structural data is obtained by responding to the configuration type structural data input by the user, the configuration type structural data is classified according to the category attribute, the corresponding classified configuration type structural data is defined by calling a preset component rule, the corresponding configuration type component is further obtained, and then all the configuration type components are called to generate the corresponding configuration interface. By the method, the whole process automation of the configuration interface generation is realized, the time resources and the manpower resources required to be consumed during the configuration interface generation are effectively reduced, and the development period of the configuration interface is greatly reduced.
The foregoing embodiments have been provided for the purpose of illustrating the general principles of the present invention, and are not to be construed as limiting the scope of the invention. It should be noted that any modifications, equivalent substitutions, improvements, etc. made by those skilled in the art without departing from the spirit and principles of the present invention are intended to be included in the scope of the present invention.

Claims (7)

1. The method for generating the configuration interface is characterized by comprising the following steps:
responding to configuration type structure data input by a user, and obtaining category attributes of the configuration type structure data;
wherein the category attributes include a root configuration class, a subcategory class, and a list class;
classifying the configuration class structure data according to the class attribute, and adding definition of menu content characteristics and role authority characteristics into the root configuration class when the class attribute is the root configuration class to obtain a corresponding root configuration class component, wherein the method specifically comprises the following steps:
determining menu content according to the menu content characteristics, and determining whether the menu content is displayed on the configuration interface according to the role authority characteristics; wherein the menu content includes: the method comprises the steps that configuration contents are stored in the positions of a hard disk, and the ordering of the configuration contents and icons displayed by the configuration contents are performed;
when the class attribute is a subclass class, adding definitions of group characteristics and display component characteristics into the subclass class, and determining whether zero or more definitions affecting display characteristics, role affecting characteristics, monitoring characteristics and detection function characteristics are added into the subclass class according to the configuration class structure data to obtain a corresponding subclass class component, wherein the method specifically comprises the following steps:
determining a generated subclass group through the group characteristics, determining a generated subclass control through the display component characteristics, determining whether the subclass control is displayed by the influence of the value of a designated control corresponding to the subclass control through the influence display characteristics, determining the influence of the role of a user on the subclass control through the role influence characteristics, determining whether the subclass configuration of the configuration interface is modified through the monitoring characteristics, determining whether each numerical value in the subclass group accords with a preset subclass standard numerical value through the detection function characteristics, and sending a reminding notification to the user when the detected numerical value is determined to be not in accordance with the subclass standard numerical value;
when the category attribute is a list category, determining whether to add zero or more definitions in the list component display characteristic, the list influence display characteristic, the list role display characteristic, the list monitoring characteristic and the list detection function characteristic in the list category according to the configuration category structure data to obtain a corresponding list category component, wherein the method specifically comprises the following steps of:
determining whether the generated list type control is displayed by the influence of the value of the appointed control corresponding to the list type control through the list component display characteristic, determining whether the list type control is influenced by the role of a user through the list role display characteristic, determining whether the list type configuration of the configuration interface is modified through the list monitoring characteristic, determining whether various values in the list type control accord with preset list type standard values through the list detection function characteristic, and sending a reminding notification to the user when judging that the detected values do not accord with the list type standard values;
and calling the root configuration class component, the subclass class component and the list class component to generate a corresponding configuration interface.
2. The method for generating a configuration interface according to claim 1, wherein the calling the root configuration class component, the subclass class component and the list class component generates a corresponding configuration interface, specifically comprising:
scanning attributes contained in menu content characteristics in a root configuration type component, and determining whether to display the attributes of the menu content characteristics in the root configuration type component on the configuration interface according to definition of role authority characteristics;
and scanning additional attributes contained in a plurality of characteristics in the subclass class component and the list class component, and adjusting the configuration interface according to the additional attributes of the plurality of characteristics.
3. The method for generating a configuration interface according to claim 1, wherein said calling said root configuration class component, said subclass class component, and said list class component generates a corresponding configuration interface, and specifically further comprising:
scanning parameters of the configuration type components, generating a corresponding configuration interface based on the parameters of the root configuration type components, and adjusting the configuration interface according to the parameters of the subclass type components and the parameters of the list type components;
wherein the parameters include one or more combinations of configuration objects, role names, menu displays, copy creation, group editing, and tab controls.
4. The method for generating a configuration interface according to claim 1, further comprising, after said calling said root configuration class component, said subclass class component, and said list class component to generate corresponding configuration interfaces:
subscribing a plurality of events, and when a first event is triggered, sending a first notification corresponding to the first event to a user;
wherein the events include a parameter save event, a list group select event, a save notification event, a button click event, a button cancel event, and a reminder confirm event.
5. The method for generating a configuration interface according to claim 1, further comprising, after said calling said root configuration class component, said subclass class component, and said list class component to generate corresponding configuration interfaces:
and scanning theme change settings of the configuration type component, and adjusting the color of the configuration interface according to the theme change settings.
6. A generating device of a configuration interface, characterized in that the generating device comprises: the device comprises a response module, a definition module and a generation module;
the response module is used for responding to configuration type structure data input by a user and obtaining category attributes of the configuration type structure data; wherein the category attributes include a root configuration class, a subcategory class, and a list class;
the definition module is used for classifying the configuration class structure data according to the class attribute, and when the class attribute is the root configuration class, the definition module adds the definition of the menu content characteristic and the role authority characteristic into the root configuration class to obtain a corresponding root configuration class component, and the definition module specifically comprises:
determining menu content according to the menu content characteristics, and determining whether the menu content is displayed on the configuration interface according to the role authority characteristics; wherein the menu content includes: the method comprises the steps that configuration contents are stored in the positions of a hard disk, and the ordering of the configuration contents and icons displayed by the configuration contents are performed;
when the class attribute is a subclass class, adding definitions of group characteristics and display component characteristics into the subclass class, and determining whether zero or more definitions affecting display characteristics, role affecting characteristics, monitoring characteristics and detection function characteristics are added into the subclass class according to the configuration class structure data to obtain a corresponding subclass class component, wherein the method specifically comprises the following steps:
determining a generated subclass group through the group characteristics, determining a generated subclass control through the display component characteristics, determining whether the subclass control is displayed by the influence of the value of a designated control corresponding to the subclass control through the influence display characteristics, determining the influence of the role of a user on the subclass control through the role influence characteristics, determining whether the subclass configuration of the configuration interface is modified through the monitoring characteristics, determining whether each numerical value in the subclass group accords with a preset subclass standard numerical value through the detection function characteristics, and sending a reminding notification to the user when the detected numerical value is determined to be not in accordance with the subclass standard numerical value;
when the category attribute is a list category, determining whether to add zero or more definitions in the list component display characteristic, the list influence display characteristic, the list role display characteristic, the list monitoring characteristic and the list detection function characteristic in the list category according to the configuration category structure data to obtain a corresponding list category component, wherein the method specifically comprises the following steps of:
determining whether the generated list type control is displayed by the influence of the value of the appointed control corresponding to the list type control through the list component display characteristic, determining whether the list type control is influenced by the role of a user through the list role display characteristic, determining whether the list type configuration of the configuration interface is modified through the list monitoring characteristic, determining whether various values in the list type control accord with preset list type standard values through the list detection function characteristic, and sending a reminding notification to the user when judging that the detected values do not accord with the list type standard values;
the generation module is used for calling the root configuration class component, the subclass class component and the list class component to generate a corresponding configuration interface.
7. A system for generating a configuration interface, characterized in that the system comprises a memory, a processor and a computer program stored on the memory and running on the processor, the processor implementing a method for generating a configuration interface according to any of claims 1-5 when processing the computer program.
CN202310293903.2A 2023-03-24 2023-03-24 Configuration interface generation method, device and system Active CN116009867B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310293903.2A CN116009867B (en) 2023-03-24 2023-03-24 Configuration interface generation method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310293903.2A CN116009867B (en) 2023-03-24 2023-03-24 Configuration interface generation method, device and system

Publications (2)

Publication Number Publication Date
CN116009867A CN116009867A (en) 2023-04-25
CN116009867B true CN116009867B (en) 2023-06-16

Family

ID=86033873

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310293903.2A Active CN116009867B (en) 2023-03-24 2023-03-24 Configuration interface generation method, device and system

Country Status (1)

Country Link
CN (1) CN116009867B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106126257A (en) * 2016-06-30 2016-11-16 珠海金山网络游戏科技有限公司 The system and method that a kind of interface generates
CN108228292A (en) * 2017-12-29 2018-06-29 武汉船舶通信研究所(中国船舶重工集团公司第七二二研究所) A kind of generation method and device at ExtJS interfaces
CN113778442A (en) * 2021-09-10 2021-12-10 未鲲(上海)科技服务有限公司 System menu generating method, device, equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7721219B2 (en) * 2004-08-02 2010-05-18 Microsoft Corporation Explicitly defining user interface through class definition

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106126257A (en) * 2016-06-30 2016-11-16 珠海金山网络游戏科技有限公司 The system and method that a kind of interface generates
CN108228292A (en) * 2017-12-29 2018-06-29 武汉船舶通信研究所(中国船舶重工集团公司第七二二研究所) A kind of generation method and device at ExtJS interfaces
CN113778442A (en) * 2021-09-10 2021-12-10 未鲲(上海)科技服务有限公司 System menu generating method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN116009867A (en) 2023-04-25

Similar Documents

Publication Publication Date Title
EP0844555B1 (en) Multifunctional object
US7490314B2 (en) System and method for exposing tasks in a development environment
US5623591A (en) System and methods for building spreadsheet applications
US6097391A (en) Method and apparatus for graphically manipulating objects
De Baar et al. Coupling application design and user interface design
US5041992A (en) Interactive method of developing software interfaces
US5548745A (en) Method and apparatus for designating context in a windowing environment
EP0615200B1 (en) System and methods for management of electronic modelling systems
CA2051180C (en) Application independent (open) hypermedia enablement services
US8381127B2 (en) Methods, systems, and computer program products for displaying windows on a graphical user interface based on relative priorities associated with the windows
US5831611A (en) Apparatus and method for creating and executing graphically depicted communication
US20040153973A1 (en) System and method for automatically storing and recalling application states based on application contexts
US6177935B1 (en) Computer object managing container and managing method thereof
JPH1091414A (en) Method for displaying function object in graphic programming
US7928991B2 (en) Color scheme-compatible color selection with hue preservation
CN112506500B (en) Visual control creating method and device
JPH1091413A (en) Device and method for selecting operation in computer system
US5802334A (en) Method for displaying object oriented class information and content information
CN116009867B (en) Configuration interface generation method, device and system
JPH09134272A (en) Object-oriented method and apparatus for processing of multimedia data
US20230236804A1 (en) Method and Apparatus for Automatic Programming
US6122558A (en) Aggregation of system settings into objects
US6810157B1 (en) Dynamic templates for specifying values for parameters of an operation in a video editing system
CN113988008A (en) Document object size adjusting method and device, electronic equipment and storage medium
Tran et al. Generating user interface from task, user and domain models

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
CP03 Change of name, title or address

Address after: 101-301, building 3, No.9, Huijiang Shinan 2nd Road, Dashi street, Panyu District, Guangzhou, Guangdong 511400

Patentee after: Guangzhou Yihong Intelligent Equipment Co.,Ltd.

Country or region after: China

Address before: 101-301, building 3, No.9, Huijiang Shinan 2nd Road, Dashi street, Panyu District, Guangzhou, Guangdong 511400

Patentee before: GUANGZHOU EHOLLY INTELLIGENT EQUIPMENT Co.,Ltd.

Country or region before: China

CP03 Change of name, title or address