Management page generation method and device, electronic equipment and storage medium
By obtaining and semantically identifying page description information, building page configuration files, and generating management pages, it solves the problem that low-code platforms cannot cover user needs when faced with customer customization needs and complex business scenarios, lowers the development threshold and improves code efficiency. quality.
Patent Information
- Application Number
- CN202410836866.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-26
- Publication Date
- 2024-09-06
AI Technical Summary
Existing low-code platforms cannot fully cover the diverse needs of users when faced with customer customization needs and complex business scenarios, and the development threshold is high.
By obtaining page description information for semantic identification, obtain key information and functional information of the page, build page configuration files, and generate target management pages, lower the development threshold and meet customized needs.
It improves the efficiency of page generation, reduces the workload of manual coding, lowers the development threshold, avoids code errors caused by human factors, improves code quality, and can meet complex business scenarios and customized needs.
Smart Images

Figure CN118605873A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a management page generation method, device, electronic equipment and storage medium. Background Art
[0002] In recent years, with the rapid development of Internet technology, the demand for websites and applications from enterprises and individuals has increased day by day. Against this background, low-code platforms have emerged. By providing efficient development tools and environments, they help developers quickly build applications, greatly improving development efficiency and quality. However, in actual application, the existing low-code platforms still have some shortcomings, especially when facing customer customization needs, which often require users to have a high level of technical skills and professional knowledge, such as CSS knowledge related to WEB development. This has led to an increase in the development threshold. If the user is a non-professional, it takes a lot of time and energy to learn and train in order to master development skills. In addition, for the field of industrial Internet, since different types of industries (such as steel, manufacturing, textiles, etc.) have their own unique production processes and business needs, if the user has less development experience and more diverse development needs, the low-code platform may not be able to fully cover the user's needs.
[0003] To sum up, although the existing low-code platforms have improved development efficiency and quality to a certain extent, they cannot cover the diverse needs of users when faced with customer customization requirements and complex business scenarios, and the development threshold is relatively high. Summary of the invention
[0004] In view of this, the embodiments of the present invention provide a management page generation method, device, electronic device and storage medium to solve the problem that the various needs of users cannot be covered and the development threshold is high when facing customer customization needs and complex business scenarios.
[0005] In a first aspect, an embodiment of the present invention provides a management page generation method, the method comprising:
[0006] Get the page description information used to generate the management page;
[0007] Performing semantic recognition on the page description information to obtain page key information and page function information;
[0008] Based on the page key information and the page function information, a plurality of target components for generating a management page and component information corresponding to each of the target components are acquired;
[0009] A page configuration file is constructed using the target component and the component information of the target component, and the page configuration file is run to obtain a target management page.
[0010] Furthermore, the semantic recognition of the page description information to obtain the page key information and page function information includes:
[0011] Obtaining text content corresponding to the page description information;
[0012] The text content is parsed to obtain a plurality of keywords, and the plurality of keywords are divided into the page key information and the page function information.
[0013] Furthermore, based on the page key information and the page function information, obtaining multiple target components for generating a management page and component information corresponding to each target component includes:
[0014] Parsing the key information of the page to obtain multiple target components and location information corresponding to each of the target components;
[0015] Acquire a function description corresponding to each target component from the page function information, and generate a business logic code corresponding to the target component according to the function description;
[0016] The component identification corresponding to the target component is obtained, and the component information corresponding to the target component is constructed based on the component identification corresponding to each target component, the positioning information and the business logic code.
[0017] Furthermore, the using the target component and the component information of the target component to construct a page configuration file includes:
[0018] triggering a file generation instruction for a page configuration file based on the target component;
[0019] In response to the file generation instruction, a file identifier for identifying the page configuration file is generated, and components for constructing the page configuration file are determined to obtain a component set;
[0020] Constructing a root node using the file identifier and the component set, and constructing a child node corresponding to the root node using the component information of each target component;
[0021] The page configuration file is constructed based on the root node and the plurality of child nodes.
[0022] Furthermore, after constructing the page configuration file based on the root node and the plurality of child nodes, the method further includes:
[0023] Verify the node content of the root node and each of the child nodes to obtain a verification result;
[0024] If the verification result is that the verification passes, storing the page configuration file;
[0025] If the verification result is that the verification fails, a target node having abnormal node content is determined, and the abnormal node content in the target node is updated until the verification passes.
[0026] Furthermore, after running the page configuration file to obtain the target management page, the method further includes:
[0027] Displaying the target management page in a first preset area, and obtaining modified content for the target management page;
[0028] Updating the target management page using the modified content to obtain an updated target management page;
[0029] Displaying the updated target management page in the first preset area, and updating the page configuration file according to the modified content to obtain an updated page configuration file;
[0030] Deploy the updated page configuration file to the target environment.
[0031] Furthermore, the obtaining of the modified content for the target management page includes:
[0032] Displaying page customization information in a second preset area, wherein the second preset area is displayed in association with the first preset area, and the page customization information includes a plurality of customization items;
[0033] detecting a selection operation acting on the second preset area;
[0034] In response to the selection operation, determining a target customization item selected in the second preset area;
[0035] The customized content corresponding to the target customized item is used as the modified content.
[0036] In a second aspect, an embodiment of the present invention provides a page generation device, the device comprising:
[0037] An acquisition module, used to acquire page description information used to generate a management page;
[0038] An identification module is used to perform semantic identification on the page description information to obtain key page information and page function information;
[0039] A processing module, used for acquiring a plurality of target components for generating a management page and component information corresponding to each of the target components based on the page key information and the page function information;
[0040] A generation module is used to generate a target management page using the target component and component information corresponding to the target component.
[0041] In a third aspect, an embodiment of the present invention provides an electronic device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, computer instructions being stored in the memory, and the processor executing the method of the first aspect or any corresponding embodiment thereof by executing the computer instructions.
[0042] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the method of the first aspect or any corresponding embodiment thereof.
[0043] The method provided by the embodiment of the present application avoids the tedious process of manually writing page codes by directly obtaining page description information. Secondly, semantic recognition is performed on the page description information, so that the key information and functional requirements of the page can be understood more accurately. Then, a page configuration file is constructed based on the target component and component information, so that the structure and function of the page are clearer and more modular. The target management page finally generated can more accurately meet the needs of users and provide a better user experience. It can improve the efficiency of page generation, reduce the workload of manually writing code, and thus lower the technical threshold of page development.
[0044] The method provided in the embodiment of the present application, on the one hand, can quickly generate a management page configuration file by automatically acquiring and analyzing page description information, thereby reducing the workload of manual development. Developers do not need to have an in-depth understanding of specific development technologies, and only need to provide page description information to automatically generate management pages, thereby lowering the development threshold. On the other hand, different pages can be generated according to different page description information to meet the customization needs of customers. Since the page configuration file is automatically generated, code errors caused by human factors can be avoided and the code quality can be improved. Even in the face of complex business scenarios and customized requirements, it is possible to select appropriate components to generate pages that meet user needs. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0046] Figure 1 is a schematic diagram of a system architecture according to some embodiments of the present invention;
[0047] Figure 2 is a flow chart of a management page generation method according to some embodiments of the present invention;
[0048] Figure 3 is a flow chart of a management page generation method according to some embodiments of the present invention;
[0049] Figure 4 is a schematic diagram of an input interface for page description information according to some embodiments of the present invention;
[0050] Figure 5 is a schematic diagram of a root node in a configuration file according to some embodiments of the present invention;
[0051] Figure 6 is a schematic diagram of the display effect of a target management page according to some embodiments of the present invention;
[0052] Figure 7 is a structural block diagram of a page generating device according to an embodiment of the present invention;
[0053] Figure 8 It is a schematic diagram of the hardware structure of the electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0054] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0055] In the description of the embodiments of the present disclosure, the term "including" and similar terms should be understood as open inclusion, that is, "including but not limited to". The term "based on" should be understood as "based at least in part on". The term "one embodiment" or "the embodiment" should be understood as "at least one embodiment". The term "some embodiments" should be understood as "at least some embodiments". Other explicit and implicit definitions may also be included below.
[0056] Herein, unless explicitly stated, executing a step “in response to A” does not mean executing the step immediately after “A” but may include one or more intermediate steps.
[0057] It is understandable that the data involved in this technical solution (including but not limited to the data itself, the acquisition, use, storage or deletion of the data) shall comply with the requirements of relevant laws, regulations and relevant provisions.
[0058] It is understandable that before using the technical solutions disclosed in the various embodiments of the present disclosure, the types, scopes of use, usage scenarios, etc. of the information involved in the present disclosure should be informed to relevant users and their authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations. The relevant users may include any type of right holders, such as individuals, enterprises, and groups.
[0059] For example, in response to receiving an active request from a user, a prompt message is sent to the relevant user to clearly prompt the relevant user that the operation requested to be performed will require obtaining and using the information of the relevant user, so that the relevant user can independently choose whether to provide information to software or hardware such as an electronic device, application, server or storage medium that executes the operation of the technical solution of the present disclosure based on the prompt message.
[0060] As an optional but non-limiting implementation, in response to receiving an active request from a relevant user, a prompt message is sent to the relevant user, for example, in the form of a pop-up window, in which the prompt message may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to select "agree" or "disagree" to provide information to the electronic device.
[0061] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet relevant laws and regulations may also be applied to the implementation of the present disclosure.
[0062] Figure 1 A schematic diagram of a system architecture provided in an embodiment of the present application is shown as follows: Figure 1 As shown, the system architecture includes: a user terminal 100, a server 200 and a language processing model 300. Specifically, the user terminal 100 provides an input box or a voice recognition function, enabling the user to enter a natural language description or issue a voice command. When the user enters the page description information, the display page of the user terminal 100 generates a preview of the code in real time so that the user can view and verify the result before submitting it. At the same time, the interface design takes into account different devices and screen sizes to ensure a good user experience on various terminals. The display page of the user terminal 100 also includes some user interaction elements, such as buttons, drop-down menus, etc., for further selecting or adjusting the generated code.
[0063] The language processing model 300 is used to parse the page description information input by the user and extract the user's intention, such as generating a specific type of code, performing an operation, or requesting specific information. According to the user's intention, the engine converts the natural language into corresponding commands or codes so that the server 200 can compile and execute them. The language processing model 300 can be a Llama2 model. Llama2 is a large language model that uses the Transformer architecture to perform unsupervised learning on a large amount of text, so that it can generate natural language text, answer questions, dialogues, summaries, etc.
[0064] The server 200 is used to compile the page description information submitted by the user and convert it into executable code or code template. The server is also used to manage the user's session, including the creation, maintenance and termination of the session, to ensure that the user's operation remains consistent between different requests.
[0065] According to an embodiment of the present invention, a management page generation method, device, electronic device and storage medium are provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0066] In this embodiment, a management page generation method is provided. Figure 2 is a flow chart of a method for generating a management page according to an embodiment of the present invention. Figure 2 As shown, the process includes the following steps:
[0067] Step S101, obtaining page description information for generating a management page.
[0068] In an embodiment of the present application, an input box is provided on the display page of the user terminal for the user to input page description information. The corresponding event processing function is triggered when the user input content changes. The text content in the input box, that is, the page description information, is obtained through the event processing function. It can be understood that the page description information is a description of the user's specific needs for the page to be generated. For example: the user wants a search area at the top of the page for entering query conditions. The main content of the page is a table for displaying data. The table should contain fields such as name and gender, which are the data columns that the user wants to see in the table.
[0069] Step S102: perform semantic recognition on the page description information to obtain page key information and page function information.
[0070] In an embodiment of the present application, the page description information is cleaned and preprocessed, such as removing special characters, converting text to lowercase, etc. Features are extracted from the page description information, such as vocabulary, part of speech, named entities, etc. Then, natural language processing technology and machine learning algorithms are used to perform semantic recognition on the extracted features, such as text classification, semantic understanding, information extraction, etc. The key information of the page (such as the position of the component on the page, the name of the component) and the page function information (the functions that the page needs to implement) are extracted from the results of the semantic recognition.
[0071] Step S103, based on the page key information and the page function information, a plurality of target components used to generate the management page and component information corresponding to each target component are obtained.
[0072] In an embodiment of the present application, multiple target components that need to be used to generate a management page are determined based on the page key information and function information. The target component can be a common page element, such as a title, text box, button, list, picture, etc., or it can be a customized component to meet specific page requirements. Component information may include the properties, style, behavior, events, etc. of the component. The properties may include the name, type, value, etc. of the component, the style may include the color, font, size, layout, etc. of the component, the behavior may include the interactive logic, action response, etc. of the component, and the event may include the event handling mechanism such as click, hover, submit, etc. of the component.
[0073] Step S104, constructing a page configuration file using the target component and the component information of the target component, and running the page configuration file to obtain a target management page.
[0074] In an embodiment of the present application, first, a page configuration file is created using the JSON format to ensure that the name, properties, style, and data of the component are organized in a proper manner in the JSON file. Then, a suitable programming language or framework is used to load and parse the JSON page configuration file. During the parsing process, the target component and its component information are extracted, and the target management page is constructed using appropriate techniques and frameworks based on the component information obtained by the parsing. For example, techniques such as HTML, CSS, and JavaScript are used. Each component is added to the page in the order and layout defined in the JSON file. At the same time, the properties, style, and data of the component are set. After the page construction is completed, the page is run or rendered so that it is displayed in the browser.
[0075] The method provided in the embodiment of the present application, on the one hand, can quickly generate a management page configuration file by automatically acquiring and analyzing page description information, thereby reducing the workload of manual development. Developers do not need to have an in-depth understanding of specific development technologies, and only need to provide page description information to automatically generate management pages, thereby lowering the development threshold. On the other hand, different pages can be generated according to different page description information to meet the customization needs of customers. Since the page configuration file is automatically generated, code errors caused by human factors can be avoided and the code quality can be improved. Even in the face of complex business scenarios and customized requirements, it is possible to select appropriate components to generate pages that meet user needs.
[0076] Figure 3 is a flow chart of a method for generating a management page according to an embodiment of the present invention. Figure 3 As shown, the process includes the following steps:
[0077] Step S201, obtaining page description information for generating a management page.
[0078] In the embodiments of the present application, Figure 4 As shown, an input box is provided on the display page of the user terminal, allowing users to enter their specific requirements for the page. The user is allowed to provide description information through voice input or text input. For voice input, voice recognition technology is used to convert voice into text. The input box supports real-time input so that users can easily express their ideas word by word or sentence by sentence. At the same time, clear and undo functions are also provided so that users can correct input errors or modify previous descriptions. And some prompts or guiding information are provided near the input box to help users understand what content should be entered.
[0079] Among them, for voice input, the user may click the microphone icon to start recording, and the recording will be automatically converted into text after the recording is completed. For text input, the user is allowed to edit, delete and modify the input content. Through the above method, the page description information for generating the management page based on the user's input in the input box can be easily obtained, whether in voice or text form, to meet the user's specific needs for the page.
[0080] Step S202: perform semantic recognition on the page description information to obtain page key information and page function information.
[0081] In the embodiment of the present application, semantic recognition is performed on the page description information to obtain the page key information and page function information, including the following steps A1-A2:
[0082] Step A1, obtaining text content corresponding to the page description information.
[0083] Specifically, if the page description information is input by voice, it is necessary to use voice recognition technology to convert the voice into text. Voice recognition technology can convert voice signals into text and use it as the text content of the page description information. If the page description information is input by text, the text content input by the user can be directly obtained and used as the text content of the page description information. Whether it is voice input or text input, the input content needs to be parsed and processed to obtain useful information. The specific processing method will vary depending on the application scenario and requirements. For example, natural language processing technology can be used to perform word segmentation, part-of-speech tagging, named entity recognition and other processing on the text to extract key information and entities.
[0084] Step A2, parsing the text content to obtain multiple keywords, and dividing the multiple keywords into the page key information and the page function information.
[0085] Specifically, the extracted text content is parsed and processed to extract keywords. Keywords can be identified through natural language processing techniques, such as lexical analysis, part-of-speech tagging, named entity recognition, etc. These technologies can identify important words and phrases in the text. Next, the keywords are classified. The purpose of classification is to classify keywords into two categories: page key information and page function information. Page key information can be subdivided into page layout and component requirements. Page layout involves the arrangement and organization of page elements, while components are the various functional modules that make up the page. Page function information mainly focuses on the implementation location of each function on the page. This means clarifying the display of functions at specific locations on the page so that users can use these functions conveniently. The classification method can be based on factors such as semantic understanding, lexical features, and context. Classification can be performed using machine learning algorithms, rule engines, or manual annotations.
[0086] Step S203: Based on the page key information and the page function information, multiple target components for generating the management page and component information corresponding to each target component are obtained.
[0087] In the embodiment of the present application, based on the page key information and the page function information, obtaining multiple target components for generating a management page and component information corresponding to each target component includes the following steps B1-B3:
[0088] Step B1, parse the key information of the page to obtain multiple target components and the location information corresponding to each target component.
[0089] Specifically, first, parse and analyze the key information of the page. This involves using natural language processing technology, lexical analysis or other related technologies to extract key elements and vocabulary. Based on the results of the analysis, determine the target components required in the page. These components can be various types of user interface elements, such as buttons, text boxes, lists, images, etc. For each target component, obtain its positioning information in the page. The positioning information can be relative or absolute coordinates, the index of the page element, a specific identifier, or other information used to determine the location of the component.
[0090] Step B2, obtaining the function description corresponding to each target component from the page function information, and generating the business logic code corresponding to the target component according to the function description.
[0091] Specifically, the page function information is preprocessed through a natural language processing model (such as the Llama2 model), such as lexical analysis, named entity recognition, etc., and then the function description of each target component is extracted based on the preprocessed page function information. The extracted function description is analyzed to understand its semantics and logic. According to the obtained semantics and logic, the corresponding business logic operation and related parameters are determined. According to the determined business logic operation and related parameters, the business logic code is generated using the corresponding programming language or framework.
[0092] As an example, the page description information is: the top is the search criteria, and the bottom is a page of a table, which has fields such as name and gender. The page description information is preprocessed using natural language processing technology, such as lexical analysis and named entity recognition. Lexical analysis is used to decompose the page description information into words, phrases, and punctuation marks. Named entity recognition is used to identify entities in the page description, such as "search criteria", "table", "name", "gender", etc.
[0093] Then, the functional description of each target component is extracted based on the preprocessed page functional information. The functional descriptions are "enter search conditions" and "display data containing name and gender". The extracted functional descriptions are analyzed to understand their semantics and logic. Semantic 1 is: users search by entering text, and Logic 1 is: retrieve data from the database according to the conditions entered by the user. Semantic 2 is: display data, and Logic 2 is: obtain data according to the data source and present it in a table.
[0094] Finally, according to the results of semantic and logical analysis, the corresponding business logic operations and related parameters are determined. Business logic operation 1 can be to execute a database query, and the related parameters include the search conditions entered by the user. Business logic operation 2 can be to obtain data from the data source, and the related parameters are the column name and data type of the table. Use the corresponding programming language or framework to generate business logic code. Taking Python as an example, you can use the database connection library to execute database queries and obtain business logic code.
[0095] Step B3, obtaining the component identification corresponding to the target component, and constructing the component information corresponding to the target component based on the component identification, positioning information and business logic code corresponding to each target component.
[0096] Specifically, a unique component identifier of each target component is obtained. The component identifier can be a custom identifier, a component class name, or other information that uniquely identifies the component. Based on the component identifier, location information, and business logic code corresponding to each target component, the component information corresponding to the target component is constructed. The component information can include detailed information on the component's identifier, location, style, and function implementation. This component information will be used in the subsequent page generation process to create a page with specific functions and layout.
[0097] Step S204, constructing a page configuration file using the target component and the component information of the target component, and running the page configuration file to obtain a target management page.
[0098] In an embodiment of the present application, a page configuration file is constructed using a target component and component information of the target component, including: triggering a file generation instruction for the page configuration file based on the target component; in response to the file generation instruction, generating a file identifier for identifying the page configuration file, and determining a component for constructing the page configuration file to obtain a component set; constructing a root node using the file identifier and the component set, and constructing a child node corresponding to the root node using the component information of each target component; and constructing a page configuration file based on the root node and multiple child nodes.
[0099] Specifically, when the target component is selected or specified, a file generation instruction for the page configuration file is triggered to start the process of building the page configuration file. In response to the file generation instruction, a unique file identifier is generated to identify the page configuration file being built. All components that need to build the page configuration file are collected and combined into a component set. Each component should have corresponding component information.
[0100] Then, create a root node using the file identifier and component collection, and use the component collection as a child node of the root node. In this way, the root node represents the entire page configuration file. For each target component, use its component information to create a corresponding child node under the root node. Component information can include the type, attributes, style, etc. of the component. Finally, combine the root node and all its child nodes together to form a complete page configuration file. This file can be used for page rendering and presentation.
[0101] like Figure 5 As shown, the key fields in the root node include: id: "0-0": used to identify the configuration file. data: Object{...} The "data" field here contains an object, and the specific object content is represented by Object{...}. For example, it is an identifier or a specific mark used to reference or define the object, which can be the parameter / size configuration of the page. children: Array[1]`: The "children" field indicates that the element has a component array (component collection), which contains multiple elements, each of which can be the component name or component ID of the component.
[0102] In an embodiment of the present application, after constructing a page configuration file based on the root node and multiple child nodes, the method also includes: verifying the node content of the root node and each child node to obtain a verification result; if the verification result is that the verification passes, the page configuration file is stored; if the verification result is that the verification fails, the target node with abnormal node content is determined, and the abnormal node content in the target node is updated, and the above verification steps are repeated until the verification passes.
[0103] Specifically, the verification content includes the following points: Data format: Check whether the node content conforms to the expected data format, such as whether it is a valid string, number, etc. Integrity: Ensure that the node contains the necessary information and no key data is missing. Logical relationship: Verify whether the logical relationship between the node content is correct, such as whether the relationship between the parent node and the child node is reasonable. Uniqueness: Check whether there is duplicate node content. Range restriction: For certain node content, check whether it is within the specified range, such as whether the number is within the valid range and whether the string length meets the requirements.
[0104] Use predefined validation rules and algorithms to check the content of the root node and each child node one by one. If the validation result is passed, it means that the node content meets the requirements and the page configuration file can be stored or further processed. If the validation result is not passed, determine the target node with abnormal node content. Analyze the validation results to find out the nodes that do not meet the requirements and their abnormal node content. Provide feedback to the user and point out the specific abnormal information so that the user can make modifications. The user updates the abnormal node content in the target node. Repeat the validation until the validation passes.
[0105] In the embodiment of the present application, after running the page configuration file and obtaining the target management page, the method further includes the following steps C1-C4:
[0106] Step C1, displaying the target management page in the first preset area, and obtaining the modified content for the target management page.
[0107] Specifically, an area is clearly designated in the page layout for displaying the target management page. The target management page is loaded and displayed in the first preset area to ensure that the user can intuitively see the page content.
[0108] In an embodiment of the present application, obtaining modification content for a target management page includes: displaying page customization information in a second preset area, wherein the second preset area is displayed in association with the first preset area, and the page customization information includes multiple customization items; detecting a selection operation acting on the second preset area; responding to the selection operation, determining a target customization item selected in the second preset area; and using the customization content corresponding to the target customization item as modification content.
[0109] Specifically, Figure 6 As shown, an area for displaying page customization information in the user interface, i.e., a second preset area, is determined. A plurality of selectable customization items are listed in the second preset area. Each customization item corresponds to a specific page customization content. For example, a customization item may be a layout style, a menu style, a table style, etc. The user's interaction actions with the second preset area are monitored in real time, such as mouse clicks and touches. The user's selection behavior for a specific customization item is captured. According to the user's selection operation, the customization item selected in the second preset area is determined. The selected customization item is marked as a target customization item. The customization content corresponding to the target customization item is extracted as the modified content.
[0110] Step C2: update the target management page using the modified content to obtain an updated target management page.
[0111] Specifically, based on the information of the modified content, find the specific elements or parts of the target management page that need to be updated. For example, use the identifier, selector or other positioning method of the page element. Apply the parsed modified content to the found target management page element. For example, change the attribute, content, style or other related characteristics of the element. After the modification is completed, generate the updated target management page. This can be achieved by reloading the page, refreshing the page or using other appropriate methods to ensure that the user can see the updated effect.
[0112] Step C3, displaying the updated target management page in the first preset area, and updating the page configuration file according to the modified content to obtain an updated page configuration file;
[0113] Specifically, the updated target management page is loaded and displayed in the first preset area, so that the user can immediately see the changes to the page. According to the modified content, the page configuration file is updated accordingly. This may include modifying parameters, settings or other page-related information in the configuration file. The updated page configuration file is saved to a suitable location for subsequent use and deployment.
[0114] Step C4, deploying the updated page configuration file to the target environment.
[0115] Specifically, after the page configuration file is updated, the user can export the updated page configuration file for use in other environments or for further processing. The updated page configuration file can also be deployed to a specified server so that it can run in the actual environment. In terms of deployment, the user can upload it directly to the cloud server, that is, the user can upload the updated page configuration file directly to the cloud server so that it can run in the cloud environment. Alternatively, the user can choose to download the updated page configuration file locally and then deploy and run it on the local server or other local environment.
[0116] The method provided by the embodiment of the present application displays the target management page in the first preset area, and the user can immediately see the effect of the modification, providing real-time feedback, which is convenient for the user to adjust and optimize. Modifications are made directly on the target management page, avoiding cumbersome code editing and recompiling processes, and improving the efficiency of page modification. Secondly, by displaying page customization information in the second preset area, users can select the customization items that need to be modified according to specific needs, thereby achieving more flexible page customization. Then, the modified content will be automatically updated to the target management page and the page configuration file, maintaining the consistency of the two, and also facilitating subsequent page deployment and maintenance. Finally, the updated page configuration file is directly deployed to the target environment, reducing the time and cost of manual configuration and deployment, and improving the efficiency of the entire development and release process. In this way, through customized options and automatic update mechanisms, repeated manual modifications are avoided, which is suitable for rapid customization and unified management of multiple pages or projects.
[0117] In this embodiment, a page generation device is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0118] This embodiment provides a page generation device, such as Figure 7 As shown, including:
[0119] The acquisition module 701 is used to acquire page description information used to generate a management page;
[0120] Identification module 702, used to perform semantic identification on the page description information to obtain page key information and page function information;
[0121] The processing module 703 is used to obtain multiple target components used to generate the management page and component information corresponding to each target component based on the page key information and the page function information;
[0122] The generating module 704 is used to generate a target management page using the target component and the component information corresponding to the target component.
[0123] In the embodiment of the present application, the identification module 702 is used to obtain the text content corresponding to the page description information; parse the text content to obtain multiple keywords, and divide the multiple keywords into page key information and page function information.
[0124] In an embodiment of the present application, processing module 703 is used to parse page key information to obtain multiple target components and positioning information corresponding to each target component; obtain the function description corresponding to each target component from the page function information, and generate the business logic code corresponding to the target component according to the function description; obtain the component identifier corresponding to the target component, and construct the component information corresponding to the target component based on the component identifier corresponding to each target component, the positioning information and the business logic code.
[0125] In an embodiment of the present application, generation module 704 is used to trigger a file generation instruction for a page configuration file based on a target component; in response to the file generation instruction, a file identifier for identifying the page configuration file is generated, and components for constructing the page configuration file are determined to obtain a component set; a root node is constructed using the file identifier and the component set, and a child node corresponding to the root node is constructed using the component information of each target component; and a page configuration file is constructed based on the root node and multiple child nodes.
[0126] In an embodiment of the present application, the device also includes: a verification module, which is used to verify the node content of the root node and each child node to obtain a verification result; if the verification result is that the verification is passed, the page configuration file is stored; if the verification result is that the verification is not passed, the target node with abnormal node content is determined, and the abnormal node content in the target node is updated.
[0127] In an embodiment of the present application, the device also includes: an update module, which is used to display the target management page in a first preset area and obtain the modified content for the target management page; update the target management page using the modified content to obtain an updated target management page; display the updated target management page in the first preset area, and update the page configuration file according to the modified content to obtain an updated page configuration file; deploy the updated page configuration file to the target environment.
[0128] In an embodiment of the present application, the device also includes: an update module, used to display page customization information in a second preset area, wherein the second preset area is displayed in association with the first preset area, and the page customization information includes multiple customization items; detecting a selection operation acting on the second preset area; responding to the selection operation, determining a target customization item selected in the second preset area; and using the customization content corresponding to the target customization item as the modified content.
[0129] See also Figure 8 , Figure 8 is a schematic diagram of the structure of an electronic device provided by an optional embodiment of the present invention, such as Figure 8As shown, the electronic device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. The various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process instructions executed in the electronic device, including instructions stored in or on the memory to display graphical information of the GUI on an external input / output device (such as a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple electronic devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system).
[0130] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.
[0131] The memory 20 stores instructions executable by at least one processor 10, so that the at least one processor 10 executes the method shown in the above embodiment.
[0132] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created by the use of an electronic device based on the presentation of a small program landing page, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the electronic device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0133] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.
[0134] The electronic device further comprises a communication interface 30 for the electronic device to communicate with other devices or a communication network.
[0135] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.
[0136] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A management page generation method, characterized in that: The method comprises: Get the page description information used to generate the management page; Performing semantic recognition on the page description information to obtain page key information and page function information; Based on the page key information and the page function information, obtaining multiple target components for generating a management page and component information corresponding to each target component; A page configuration file is constructed using the target component and the component information of the target component, and the page configuration file is run to obtain a target management page.
2. The method according to claim 1, characterized in that The semantic recognition of the page description information to obtain the page key information and page function information includes: Obtaining text content corresponding to the page description information; The text content is parsed to obtain a plurality of keywords, and the plurality of keywords are divided into the page key information and the page function information.
3. The method according to claim 1, characterized in that The acquiring, based on the page key information and the page function information, a plurality of target components for generating a management page and component information corresponding to each target component includes: Parsing the key information of the page to obtain multiple target components and positioning information corresponding to each target component; Obtaining a function description corresponding to each target component from the page function information, and generating a business logic code corresponding to the target component according to the function description; Obtain the component identifier corresponding to the target component, and construct the component information corresponding to the target component based on the component identifier, positioning information and business logic code corresponding to each target component.
4. The method according to claim 1, wherein The step of constructing a page configuration file by using the target component and the component information of the target component includes: triggering a file generation instruction for a page configuration file based on the target component; In response to the file generation instruction, a file identifier for identifying the page configuration file is generated, and components for constructing the page configuration file are determined to obtain a component set; Constructing a root node using the file identifier and the component set, and constructing a child node corresponding to the root node using the component information of each target component; The page configuration file is constructed based on the root node and the plurality of child nodes.
5. The method according to claim 4, characterized in that After constructing the page configuration file based on the root node and the plurality of child nodes, the method further includes: Verify the node content of the root node and each of the child nodes to obtain a verification result; If the verification result is that the verification passes, the page configuration file is stored; If the verification result is failure to pass, a target node having abnormal node content is determined, and the abnormal node content in the target node is updated.
6. The method according to claim 1, characterized in that After running the page configuration file to obtain the target management page, the method further includes: Displaying the target management page in a first preset area and obtaining modified content for the target management page; Updating the target management page using the modified content to obtain an updated target management page; Displaying the updated target management page in the first preset area, and updating the page configuration file according to the modified content to obtain an updated page configuration file; Deploy the updated page configuration file to the target environment.
7. The method according to claim 6, characterized in that The acquiring of the modified content for the target management page includes: Displaying page customization information in a second preset area, wherein the second preset area is displayed in association with the first preset area, and the page customization information includes a plurality of customization items; detecting a selection operation acting on the second preset area; In response to the selection operation, determining a target customization item selected in the second preset area; The customized content corresponding to the target customized item is used as the modified content.
8. A page generating device, characterized in that: The device comprises: An acquisition module is used to obtain page description information used to generate a management page; An identification module is used to perform semantic identification on the page description information to obtain page key information and page function information; A processing module, configured to obtain, based on the page key information and the page function information, a plurality of target components for generating a management page and component information corresponding to each of the target components; A generation module is used to generate a target management page using the target component and component information corresponding to the target component.
9. An electronic device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the method according to any one of claims 1 to 7 by executing the computer instructions.
10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the method according to any one of claims 1 to 7.
Citation Information
Cited By
Customized page construction method and device, electronic equipment and computer readable medium
CN119336429A
Customized page construction method and device, electronic equipment and computer readable medium
CN119336429B
Page layout file generation method and device, equipment and storage medium
CN119902762A
