CN117406985A - Page batch generation method and device - Google Patents
Page batch generation method and device Download PDFInfo
- Publication number
- CN117406985A CN117406985A CN202311269657.3A CN202311269657A CN117406985A CN 117406985 A CN117406985 A CN 117406985A CN 202311269657 A CN202311269657 A CN 202311269657A CN 117406985 A CN117406985 A CN 117406985A
- Authority
- CN
- China
- Prior art keywords
- page
- target
- generated
- template
- target data
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 58
- 238000013499 data model Methods 0.000 claims abstract description 137
- 230000004044 response Effects 0.000 claims abstract description 45
- 238000011161 development Methods 0.000 abstract description 8
- 238000010586 diagram Methods 0.000 description 11
- 238000004590 computer program Methods 0.000 description 6
- 230000008569 process Effects 0.000 description 6
- 230000008676 import Effects 0.000 description 5
- 238000012545 processing Methods 0.000 description 5
- 238000013461 design Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 4
- 230000006978 adaptation Effects 0.000 description 2
- 230000006399 behavior Effects 0.000 description 2
- 238000010276 construction Methods 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 238000007726 management method Methods 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 230000009466 transformation Effects 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000009960 carding Methods 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000012790 confirmation Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000013507 mapping Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000008520 organization Effects 0.000 description 1
- 238000012502 risk assessment Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/38—Creation or generation of source code for implementing user interfaces
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/36—Software reuse
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Stored Programmes (AREA)
Abstract
The disclosure provides a method and a device for generating pages in batches, wherein the method comprises the following steps: judging whether a first page template matched with a page to be generated exists in a page template list displayed by the low-code platform; under the condition that a first page template matched with a page to be generated does not exist in the page template list, responding to a first selection operation, and selecting at least one first target page configuration component matched with the page to be generated from a plurality of page configuration components displayed by a low-code platform; configuring at least one first target page configuration component to generate a second page template in response to the configuration operation; selecting a plurality of first target data models from the plurality of data models in the low code platform in response to the second selection operation; according to the second page template and the first target data models, the pages to be generated are generated, so that the pages can be generated in batches efficiently and accurately, the page generation efficiency is further improved, and the development cost is reduced.
Description
Technical Field
The disclosure relates to the technical field of computers, and in particular relates to a method and a device for generating pages in batches.
Background
With the popularization of the internet and the wide application of mobile devices, the demands of enterprises for digital transformation are becoming stronger, but the traditional development mode often cannot meet the rapidly-changing market demands. In order to meet rapidly changing market demands, enterprises generate pages based on low-code platforms, so that page generation efficiency is improved, and development cost is reduced.
In order to further improve the generation efficiency of pages and reduce the development cost, how to generate pages in batches based on a low-code platform has become a problem to be solved.
Disclosure of Invention
The present disclosure provides a method and apparatus for generating pages in batches, so as to solve at least one of the technical problems in the related art to a certain extent. The technical scheme of the present disclosure is as follows:
according to a first aspect of an embodiment of the present disclosure, there is provided a method for generating pages in batches, including: judging whether a first page template matched with a page to be generated exists in a page template list displayed by the low-code platform; if a first page template matched with a page to be generated does not exist in the page template list, responding to a first selection operation, and selecting at least one first target page configuration component matched with the page to be generated from a plurality of page configuration components displayed by the low-code platform; configuring the at least one first target page configuration component to generate a second page template in response to a configuration operation; selecting a plurality of first target data models from a plurality of data models in the low code platform in response to a second selection operation; and generating a plurality of pages to be generated according to the second page template and the plurality of first target data models.
According to a second aspect of an embodiment of the present disclosure, there is provided a page batch generation apparatus, including: the judging module is used for judging whether a first page template matched with a page to be generated exists in a page template list displayed by the low-code platform; the first selecting module is used for responding to a first selecting operation when a first page template matched with a page to be generated does not exist in the page template list, and selecting at least one first target page configuration component matched with the page to be generated from a plurality of page configuration components displayed by the low code platform; the configuration module is used for responding to the configuration operation and configuring the at least one first target page configuration component so as to generate a second page template; a second selection module for selecting a plurality of first target data models from a plurality of data models in the low code platform in response to a second selection operation; and the generation module is used for generating a plurality of pages to be generated according to the second page template and the plurality of first target data models.
According to a third aspect of embodiments of the present disclosure, there is provided an electronic device, comprising: a processor; a memory for storing the processor-executable instructions; wherein the processor is configured to execute the instructions to implement the page batch generation method according to the embodiment of the first aspect of the present disclosure.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer readable storage medium, which when executed by a processor of an electronic device, causes the electronic device to perform a page batch generation method according to an embodiment of the first aspect of the present disclosure.
According to a fifth aspect of embodiments of the present disclosure, there is provided a computer program product comprising: a computer program which, when executed by a processor, implements a page batch generation method as described in the embodiments of the first aspect of the present disclosure.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
1. under the condition that a first page template matched with a page to be generated does not exist in a page template list, a first page template is generated in response to selection and configuration operation of a first target page configuration component, a plurality of first target data models selected from a plurality of data models are generated according to a second page template and the plurality of first target data models, pages can be efficiently and accurately generated in batches based on a low-code platform, page generation efficiency is further improved, and development cost is reduced;
2. In the process of generating a plurality of pages to be generated according to a second page template and a plurality of first target data models, responding to a third selection operation, selecting a second page configuration assembly establishing a binding relation with the first target data model from at least one second page configuration assembly in the second page template, and binding the second page configuration assembly with the first target data model according to the binding relation between the second page configuration assembly and the first target data model, so that the pages generated in batches can meet the actual service requirements, and the user experience is improved;
3. after the pages are generated in batches, for any page to be generated, the page attribute of the page to be generated is adjusted in response to the adjustment operation, so that the adjustment of the page to be generated according to the actual service requirement is realized, and the user experience is further improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure and do not constitute an undue limitation on the disclosure.
FIG. 1 is a flow diagram of a page batch generation method shown in a first embodiment of the present disclosure;
FIG. 2 is a flow diagram of a page batch generation method shown in a second embodiment of the present disclosure;
FIG. 3 is a schematic illustration of selection of a second target page configuration component shown in an embodiment of the present disclosure;
FIG. 4 is a schematic diagram illustrating a second target page configuration component establishing a binding relationship with a first target data model according to an embodiment of the present disclosure;
FIG. 5 is a flow chart of a page batch generation method according to a third embodiment of the present disclosure;
FIG. 6 is a schematic diagram of a template configuration page provided by an embodiment of the present disclosure;
FIG. 7 is a diagram illustrating selecting a target directory to store to a plurality of pages to be generated according to an embodiment of the present disclosure;
fig. 8 is a flowchart of a page batch generation method according to a fourth embodiment of the present disclosure;
FIG. 9 is a diagram of log information shown in an embodiment of the present disclosure;
fig. 10 is a general page diagram of a new service scenario of a low-code platform according to an embodiment of the disclosure;
FIG. 11 is a diagram illustrating data model importation according to an embodiment of the present disclosure;
fig. 12 is a schematic structural view of a page batch generation apparatus shown in a fifth embodiment of the present disclosure;
Fig. 13 is a schematic structural view of an electronic device according to an exemplary embodiment of the present disclosure.
Detailed Description
In order to enable those skilled in the art to better understand the technical solutions of the present disclosure, the technical solutions of the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the foregoing figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the disclosure described herein may be capable of operation in sequences other than those illustrated or described herein. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
It should be noted that, in the technical solution of the present disclosure, the related processes of collecting, storing, using, processing, transmitting, providing, disclosing, etc. of the personal information of the user are all performed on the premise of proving the consent of the user, and all conform to the rules of the related laws and regulations, and do not violate the popular regulations of the public order.
The following describes a page batch generation method and device according to an embodiment of the present disclosure with reference to the accompanying drawings.
Fig. 1 is a flowchart of a page batch generation method according to a first embodiment of the present disclosure.
As shown in fig. 1, the page batch generation method may include the following steps:
and step 101, judging whether a first page template matched with a page to be generated exists in a page template list displayed by the low-code platform.
As an example, a template identifier adapted to a page to be generated may be configured in the low-code platform, and a page template list displayed by the low-code platform may be queried according to the template identifier to determine whether a page template matching the template identifier exists in the page template list, i.e. whether a first page template adapted to the page to be generated exists in the page template list displayed by the low-code platform is determined.
As another example, in response to a determination operation by a user, it is determined whether a first page template adapted to a page to be generated exists in a page template list presented by the low code platform.
The method includes that a first page template matched with a page to be generated is a page template meeting actual business requirements of a user.
In the embodiment of the disclosure, each page to be generated may be adapted to one page template, a plurality of pages to be generated may be adapted to a plurality of different page templates, or a plurality of pages to be generated may be adapted to the same page template.
Step 102, in the case that the first page template adapted to the page to be generated does not exist in the page template list, responding to the first selection operation, and selecting at least one first target page configuration component adapted to the page to be generated from a plurality of page configuration components displayed by the low code platform.
As an example, in the case that the first page template adapted to the page to be generated does not exist in the page template list, at least one first target page configuration component meeting the actual requirement of the user, that is, at least one first target page configuration component adapted to the page to be generated, may be selected from a plurality of page configuration components displayed by the low code platform in response to the first selection operation. At least one first target page configuration component that is adapted to the page to be generated is selected, for example, by means of a drag. It should be noted that, the first target page configuration component is a component capable of carrying the data model, that is, the first target page configuration component is a component capable of displaying service data in the data model.
The data model can comprise an entity model, a view model, an object model and the like, is an abstract organization of various data, and provides an abstract framework for information representation and operation of a database system. It should be noted that, the design of the data model is an important means and method for carding the data structure and determining the data relationship, and the data modeling is a core link in the scenes of business system construction, data lake construction, several-bin design and the like. In the data processing process, the design of a data model is carried out according to data requirements, the design result of the data model is combined with data processing logic to carry out data development, so that data which meets service requirements and has value is formed, and the service enterprise operation monitoring, risk analysis and daily service management are the booster and accelerator for enterprise digital transformation.
As another example, in the case where there is a first page template in the page template list that is adapted to the page to be generated, the first page template is directly selected.
And step 103, responding to the configuration operation, and configuring at least one first target page configuration component to generate a second page template.
For example, for any first target page configuration component, attribute information of the any first target page configuration component, such as component background, component height, component width, component name, and the like, after at least one first target page configuration component is configured, a template configuration page of a page template to be generated can be displayed in response to a triggering operation (such as submission) of a target control, and a second page template can be generated and stored in response to template information input into the template configuration page.
Step 104, responding to the second selection operation, selecting a plurality of first target data models from a plurality of data models in the low-code platform.
Further, the method is used for selecting a plurality of first target data models from a plurality of data models in the low-code platform according to actual service requirements.
And 105, generating a plurality of pages to be generated according to the second page template and the plurality of first target data models.
In the embodiment of the disclosure, a plurality of pages to be generated are generated based on the business data in the first target data models displayed by the second page template.
In addition, under the condition that a first page template matched with a page to be generated exists in the page template list, the first page template is directly selected, a plurality of second target data models are selected from a plurality of data models in a low-code platform, and a plurality of pages to be generated are generated according to the first page template and the plurality of second target data models.
It should be noted that, each page to be generated may be adapted to one page template, a plurality of pages to be generated may be adapted to the same page template, and a plurality of pages to be generated may also be adapted to different page templates, which is not specifically limited in the disclosure.
In summary, judging whether a first page template matched with a page to be generated exists in a page template list displayed by a low-code platform; under the condition that a first page template matched with a page to be generated does not exist in the page template list, responding to a first selection operation, and selecting at least one first target page configuration component matched with the page to be generated from a plurality of page configuration components displayed by a low-code platform; configuring at least one first target page configuration component to generate a second page template in response to the configuration operation; selecting a plurality of first target data models from the plurality of data models in the low code platform in response to the second selection operation; according to the second page template and the first target data models, the pages to be generated are generated, so that the pages can be generated in batches efficiently and accurately based on the low-code platform, the page generation efficiency of enterprises is further improved, and the development cost is reduced.
In order to clearly illustrate how to generate a plurality of pages to be generated according to the second page template and the plurality of first target data models in the above embodiments, the present disclosure proposes another page batch generation method.
Fig. 2 is a flowchart of a page batch generation method according to a second embodiment of the present disclosure.
As shown in fig. 2, the page batch generation method may include the steps of:
step 201, judging whether a first page template matched with a page to be generated exists in a page template list displayed by the low-code platform.
Step 202, in the case that a first page template adapted to a page to be generated does not exist in the page template list, responding to a first selection operation, and selecting at least one first target page configuration component adapted to the page to be generated from a plurality of page configuration components displayed by a low-code platform.
In response to the configuring operation, at least one first target page configuring component is configured to generate a second page template, step 203.
In response to the second selection operation, a plurality of first target data models are selected from the plurality of data models in the low code platform, step 204.
In response to the third selection operation, at least one second target page configuration component is selected from the at least one first target page configuration components of the second page template, step 205.
For example, as shown in fig. 3, taking the second page template as the list page template 1 as an example, at least one second target page configuration component is selected from at least one first target page configuration component, and the at least one second target page configuration component may be a list page component (container), a form component (container) and a form component (container) in the area 31 in fig. 3.
Step 206, establishing a binding relationship between any second page configuration component and at least one first target data model in the plurality of first target data models for any second target page configuration component.
Further, as shown in FIG. 4, the at least one first target data model may include: contact information, follow-up information, contract base information, contract extension information, contract associated refund, contract sales information, and the like, the at least one second target page configuration component includes: the list page component, the form component and the form component establish a binding relationship of at least one second target page configuration component and at least one first target data model in response to a model binding operation. As shown in area 41 of FIG. 4, the list page component in the plurality of page templates establishes binding relationships with the contact information, follow-up information, contract base information, contract extension information, contract association refund, and contract sales information, respectively. It should be noted that, each second page configuration component in the same page to be generated binds a first target data model.
Step 207, generating at least one page to be generated according to at least one first target data model of which any second target page configuration component has a binding relationship with any second target page configuration component.
The same page to be generated comprises a first target data model bound with any second target page configuration component.
As an example, a number of at least one first target data model having a binding relationship with any one second target page configuration component is obtained; and generating a number of pages to be generated according to at least one first target data model with binding relation between any second target page configuration component and any second target page configuration component. The page to be generated comprises the following steps: selecting a first target data model from at least one first target data model having a binding relationship with any one of the second target page configuration components; filling a first target data model into any second target page configuration component to obtain any filled second target page configuration component; and generating a page to be generated according to any second target page configuration component after filling.
As a scene, the plurality of pages to be generated adopt the same page template, and the number of at least one first target data model with binding relation with any second target page configuration component in the page template is acquired aiming at any second target page configuration component in the page template, so that the number of pages to be generated can be generated. For example, the pages A, B and C to be generated are both page templates D, a first target data model is bound in the page template D with the component F adapted to the page a to be generated, the page template D is bound with the component F adapted to the page B to be generated with a first target data model, and the page template D is bound with the component F adapted to the page C to be generated with a first target data model, so that each page to be generated includes: for the component F, selecting a first target data model from the plurality of bound first target data models, filling the first target data model into a corresponding second target page configuration component, and generating a page to be generated according to any second target page configuration component after filling.
As another scenario, the multiple pages to be generated all adopt different page templates, and for the second target page configuration component in each page template, the number of at least one first target data model with binding relation with any second target page configuration component is obtained, where the number may be 1, that is, each second target page configuration component in each page template corresponds to a different data model, and each page template generates a corresponding page to be generated.
In summary, selecting at least one second target page configuration component from the at least one first target page configuration components of the second page template by responding to the third selection operation; establishing a binding relationship between any second page configuration component and at least one first target data model in a plurality of first target data models aiming at any second target page configuration component; according to at least one first target data model with binding relation between any second target page configuration component and any second target page configuration component, at least one page to be generated is generated, so that binding of the second page configuration component and the first target data model according to actual service requirements is realized, the mass generated pages can meet the actual service requirements, and user experience is improved.
To clearly illustrate how at least one target page configuration component is configured to generate a second page template in response to a configuration operation in the above embodiments, the present disclosure proposes another page batch generation method.
Fig. 5 is a flowchart of a page batch generation method according to a third embodiment of the present disclosure.
As shown in fig. 5, the page batch generation method may include the steps of:
step 501, judging whether a first page template matched with a page to be generated exists in a page template list displayed by the low-code platform.
Step 502, in the case that a first page template adapted to a page to be generated does not exist in the page template list, responding to a first selection operation, and selecting at least one first target page configuration component adapted to the page to be generated from a plurality of page configuration components displayed by a low-code platform.
In step 503, in response to the configuration operation, the at least one target page configuration component is configured to obtain target configuration information of the at least one target page configuration component.
In an embodiment of the present disclosure, in response to a configuration operation, at least one target page configuration component may be configured, for example, attribute information, interaction behavior information, and so on of the first target page configuration component may be configured, where the attribute information may include: component context, component height, component width, component name, etc., the interaction behavior information may include: responsive to user operation (e.g., double click, single click), setting component status, obtaining user input, etc.
And step 504, responding to the triggering operation of the target control in the low-code platform, and displaying a template configuration page of the page template to be generated.
As an example, after the configuration of the at least one first target page configuration component is completed, a template configuration page of the page template to be generated may be presented in response to a triggering operation of the target control (e.g., submitting or saving the template).
In step 505, a second page template is generated in response to template information entered in the template configuration page.
For example, as shown in fig. 6, fig. 6 is a schematic diagram of a template configuration page provided in an embodiment of the present disclosure, in which template information may be input, and in response to a confirmation operation, a second page template may be generated and saved in response to the template information (e.g., template code, template name, version number, template classification, belonging scene, upload icon, template type, and template description, etc.) input in the template configuration page.
In response to the second selection operation, a plurality of first target data models are selected from the plurality of data models in the low code platform, step 506.
And step 507, generating a plurality of pages to be generated according to the second page template and the plurality of first target data models.
It should be noted that, after generating a plurality of pages to be generated, if the actual service requirement is changed, as an example, for any page to be generated, page attribute information of any page to be generated is adjusted in response to an adjustment operation; and determining a target directory to which any adjusted page to be generated is to be stored, and storing any adjusted page to be generated under the target directory.
That is, when the actual service requirement is not changed, that is, the generated multiple pages to be generated are pages expected by the user, as shown in a region 71 in fig. 7, a target directory to which the multiple pages to be generated are to be stored may be selected in a drop-down frame of the selection directory, and then the multiple pages to be generated are stored under the target directory. As another example, when the actual service requirement changes, in order to quickly generate a page matching with the changed service requirement, the generated page to be generated may be adjusted according to the actual service requirement, for example, a certain column is deleted, a certain row is deleted, page attribute information such as line width and line width is adjusted, further, a target directory to which any adjusted page to be generated is to be stored is selected, and any adjusted page to be generated is stored under the target directory.
In summary, configuring at least one target page configuration component by responding to the configuration operation to obtain target configuration information of the at least one target page configuration component; responding to the triggering operation of a target control in the low-code platform, and displaying a template configuration page of a page template to be generated; and generating the second page template in response to template information input in the template configuration page, so that the second page template can be efficiently generated according to the actual business requirements of the user.
In order to facilitate unified management of data models, in the embodiment of the present disclosure, multiple data models in a low-code platform may be located in a data set of the low-code platform, and target data in a target file may be imported into the data models of the data set, which is described in detail below in connection with fig. 8.
Fig. 8 is a flowchart of a page batch generation method according to a fourth embodiment of the present disclosure.
As shown in fig. 8, the page batch generation method may include the steps of:
step 801, it is determined whether a first page template adapted to a page to be generated exists in a page template list displayed by the low code platform.
Step 802, in the case that the first page template adapted to the page to be generated does not exist in the page template list, responding to the first selection operation, and selecting at least one first target page configuration component adapted to the page to be generated from a plurality of page configuration components displayed by the low code platform.
In response to the configuration operation, at least one first target page configuration component is configured to generate a second page template 803.
In step 804, a plurality of target files are acquired in response to the import operation.
In the embodiment of the disclosure, in response to the import operation, a plurality of target files may be acquired from the file list.
Step 805, for any target file, generating a target data model corresponding to any target file according to target data in any target file.
Further, for the target data in any target file, a target data model corresponding to any target file may be generated, wherein the data format in the target data model may be a set format. For example, the data format may include a plurality of setting fields.
In the embodiment of the disclosure, in the data set of the low-code platform, the data fields of the target data in each data model can be intuitively displayed, the fields matched with the search keywords in the data model can be screened out according to the search keywords, and in addition, the user can delete the data model in the data set of the low-code platform so as to manage the data model in the data set.
In addition, it should be noted that the data of each data model in the data set may be imported from the object file, obtained from the server through the server interface, or obtained from the entity model or the view model stored in the low-code platform.
Step 806, importing the target data model corresponding to any target file into the data set of the low code platform.
Further, the target data model corresponding to any one of the target files may be imported into the data set of the low-code platform, so that a plurality of data models of the low-code platform may be located in the data set of the low-code platform.
In response to the second selection operation, a plurality of first target data models are selected from the plurality of data models in the low code platform, step 807.
In an embodiment of the present disclosure, in response to the second selection operation, a plurality of first target data models may be selected from a plurality of data models of a data set in the low code platform.
Step 808, generating a plurality of pages to be generated according to the second page template and the plurality of first target data models.
In addition, it should be noted that, in order to facilitate the user to observe the generation states of the pages in time, in the embodiment of the present disclosure, as shown in fig. 9, the generation states of a plurality of pages to be generated may be obtained; generating log information according to the generation states of the plurality of pages to be generated, and displaying the log information.
In summary, a plurality of target files are acquired by responding to an import operation; generating a target data model corresponding to any target file according to target data in any target file aiming at any target file; and importing the target data model corresponding to any target file into a data set of the low-code platform, so that the data set of the low-code platform can be effectively generated, a plurality of data models can be uniformly managed through the data set, and the user experience can be further improved.
On the basis of any embodiment of the disclosure, the page batch generation method of the embodiment of the disclosure can be further realized based on the following steps:
1. as shown in FIG. 10, a general page of a business scenario is newly built on a low-code platform, all the components related to data in the page have a model binding function (namely binding data sources), and as shown in an area 102 in FIG. 10, a data model bound with the corresponding component is selected in a model binding drop-down box. Selecting a plurality of components from the plurality of components displayed in the region 102 for displaying the plurality of components in fig. 10 in a dragging mode to the region 103 in fig. 10 for page configuration, and clicking a save template button to input template related information in a pop-up dialog box so as to save the current page as a template;
2. as shown in fig. 11, an application developer converts service requirements into data models, and inputs the models into a model template excel provided by a low-code platform (the model template excel can include fields of form chinese names, form english names, field chinese names, field english names, input and output, component names, data types, whether empty, whether displayed, whether ordered, length, default values and the like), and then inputs the data into a system through an import function, and adds the data into model data of an application;
3. Selecting a model required by mass page generation, clicking a page generation button at the upper right corner to enter a mass page generation guide. The method comprises the steps of template selection, configuration of a model binding container component in the template, page and model mapping, catalog selection, page coding, name adjustment and the like, and then the pages are generated in batches. In the process of generating, the model is automatically injected into a corresponding model container component to enable the model container component to have data attributes;
4. entering a low code configuration platform, the page can be finely adjusted for batch generation so as to meet the requirements of business scenes.
Corresponding to the page batch generation method provided by the above embodiment, the present disclosure further provides a page batch generation device, and since the page batch generation device provided by the embodiment of the present disclosure corresponds to the page batch generation method provided by the above embodiment, an implementation of the page batch generation method is also applicable to the page batch generation device provided by the embodiment of the present disclosure, and will not be described in detail in the embodiment of the present disclosure.
Fig. 12 is a schematic structural diagram of a page batch generation apparatus shown in a fifth embodiment of the present disclosure. In the embodiment of the disclosure, the page batch generation device can be applied to a low-code platform.
As shown in fig. 12, the page batch generation apparatus 1200 includes: a judging module 1210, a first selecting module 1220, a configuring module 1230, a second selecting module 1240 and a generating module 1250.
The judging module 1210 is configured to judge whether a first page template adapted to a page to be generated exists in a page template list displayed by the low-code platform; a first selecting module 1220, configured to respond to a first selecting operation when there is no first page template adapted to a page to be generated in the page template list, and select at least one first target page configuration component adapted to the page to be generated from a plurality of page configuration components displayed by a low code platform; a configuration module 1230 for configuring at least one first target page configuration component to generate a second page template in response to a configuration operation; a second selection module 1240 for selecting a plurality of first target data models from the plurality of data models in the low code platform in response to a second selection operation; the generating module 1250 is configured to generate a plurality of pages to be generated according to the second page template and the plurality of first target data models.
As one possible implementation of an embodiment of the disclosure, a generating module 1250 is configured to select at least one second target page configuration component from the at least one first target page configuration components of the second page template in response to the third selection operation; establishing a binding relationship between any second page configuration component and at least one first target data model in a plurality of first target data models aiming at any second target page configuration component; generating at least one page to be generated according to at least one first target data model of which any second target page configuration component and any second target page configuration component have binding relation; the same page to be generated comprises a first target data model bound with any second target page configuration component.
As one possible implementation manner of the embodiment of the present disclosure, the generating module 1250 is further configured to obtain a number of at least one first target data model having a binding relationship with any one second target page configuration component; and generating a number of pages to be generated according to at least one first target data model with binding relation between any second target page configuration component and any second target page configuration component.
As one possible implementation of an embodiment of the present disclosure, the generating process of the generating module 1250 to generate the page to be generated includes: selecting a first target data model from at least one first target data model having a binding relationship with any one of the second target page configuration components; filling a first target data model into any second target page configuration component to obtain any filled second target page configuration component; and generating a page to be generated according to any second target page configuration component after filling.
As one possible implementation of the embodiment of the disclosure, the configuration module 1230 is configured to configure at least one target page configuration component in response to a configuration operation, so as to obtain target configuration information of the at least one target page configuration component; responding to the triggering operation of a target control in the low-code platform, and displaying a template configuration page of a page template to be generated; a second page template is generated in response to template information entered in the template configuration page.
As one possible implementation manner of the embodiment of the present disclosure, the page batch generating apparatus 1200 further includes: an adjustment module and a storage module.
The adjusting module is used for responding to the adjusting operation for any page to be generated and adjusting the page attribute information of any page to be generated; the storage module is used for determining a target directory to which any adjusted page to be generated is to be stored, and storing any adjusted page to be generated under the target directory.
As one possible implementation manner of the embodiment of the present disclosure, the page batch generating apparatus 1200 further includes: and a third selecting module.
The third selecting module is used for responding to the existence of a first page template matched with the first page template in the page template list and responding to the fourth selecting operation to select a plurality of second target data models from a plurality of data models in the low-code platform; the generating module 1250 is further configured to generate a plurality of pages to be generated according to the first page template and the plurality of second target data models.
As one possible implementation manner of the embodiment of the present disclosure, the page batch generating apparatus 1200 further includes: the system comprises a first acquisition module and an import module.
The system comprises an acquisition module, a storage module and a storage module, wherein the acquisition module is used for responding to an importing operation and acquiring a plurality of target files; the generating module 1250 is further configured to generate, for any target file, a target data model corresponding to any target file according to target data in any target file; and the importing module is used for importing the target data model corresponding to any target file into the data set of the low-code platform.
As one possible implementation manner of the embodiment of the present disclosure, the page batch generating apparatus 1200 further includes: and the second acquisition module and the display module.
The second acquisition module is used for acquiring the generation states of a plurality of pages to be generated; the generating module 1250 is further configured to generate log information according to the generating states of the plurality of pages to be generated; and the display module is used for displaying the log information.
The page batch generation device is applied to a low-code platform, and is used for judging whether a first page template matched with a page to be generated exists in a page template list displayed by the low-code platform or not; under the condition that a first page template matched with a page to be generated does not exist in the page template list, responding to a first selection operation, and selecting at least one first target page configuration component matched with the page to be generated from a plurality of page configuration components displayed by a low-code platform; configuring at least one first target page configuration component to generate a second page template in response to the configuration operation; selecting a plurality of first target data models from the plurality of data models in the low code platform in response to the second selection operation; according to the second page template and the first target data models, the pages to be generated are generated, so that the pages can be generated in batches efficiently and accurately, the page generation efficiency of enterprises is further improved, and the development cost is reduced.
In an exemplary embodiment, an electronic device is also presented.
Wherein, electronic equipment includes:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to execute instructions to implement a page batch generation method as set forth in any of the foregoing embodiments.
As an example, fig. 13 is a schematic structural diagram of an electronic device 1300 according to an exemplary embodiment of the present disclosure, where, as shown in fig. 13, the electronic device 1300 may further include:
memory 1310 and processor 1320, bus 1330 connecting the different components (including memory 1310 and processor 1320), memory 1310 stores a computer program that when executed by processor 1320 implements the page batch generation method described in embodiments of the present disclosure.
Bus 1330 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures. By way of example, and not limitation, such architectures include Industry Standard Architecture (ISA) bus, micro channel architecture (MAC) bus, enhanced ISA bus, video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Electronic device 1300 typically includes a variety of electronic device readable media. Such media can be any available media that is accessible by the electronic device 1300 and includes both volatile and nonvolatile media, removable and non-removable media.
Memory 1310 may also include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM) 1340 and/or cache memory 1350. Server 1300 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, the storage system 1360 may be used to read from or write to non-removable, nonvolatile magnetic media (not shown in FIG. 13, commonly referred to as a "hard disk drive"). Although not shown in fig. 13, a magnetic disk drive for reading from and writing to a removable non-volatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive for reading from or writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In such cases, each drive may be coupled to bus 1330 through one or more data medium interfaces. Memory 1310 may include at least one program product having a set (e.g., at least one) of program modules configured to perform the functions of the various embodiments of the present disclosure.
A program/utility 1380 having a set (at least one) of program modules 1370 may be stored, for example, in memory 1310, such program modules 1370 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment. Program modules 1370 generally perform the functions and/or methods in the embodiments described in this disclosure.
The electronic device 1300 may also communicate with one or more external devices 1390 (e.g., keyboard, pointing device, display 1391, etc.), one or more devices that enable a user to interact with the electronic device 1300, and/or any device (e.g., network card, modem, etc.) that enables the electronic device 1300 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 1392. Also, the electronic device 1300 may communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, e.g., the internet, through a network adapter 1393. As shown, network adapter 1393 communicates with other modules of electronic device 1300 via bus 1330. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with electronic device 1300, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
Processor 1320 executes programs stored in memory 1310, thereby performing various functional applications and data processing.
The implementation process and the technical principle of the electronic device in this embodiment refer to the foregoing explanation of the page batch generation method in the embodiment of the disclosure, and are not repeated herein.
In an exemplary embodiment, a computer readable storage medium is also provided, e.g., a memory, comprising instructions executable by a processor of an electronic device to perform the page batch generation method set forth in any one of the embodiments above. Alternatively, the computer readable storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
In an exemplary embodiment, a computer program product is also provided, including a computer program/instruction, characterized in that the computer program/instruction, when executed by a processor, implements the page batch generation method proposed in any of the above embodiments.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any adaptations, uses, or adaptations of the disclosure following the general principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims (10)
1. The page batch generation method is characterized by being applied to a low-code platform and comprising the following steps of:
judging whether a first page template matched with a page to be generated exists in a page template list displayed by the low-code platform;
if a first page template matched with a page to be generated does not exist in the page template list, responding to a first selection operation, and selecting at least one first target page configuration component matched with the page to be generated from a plurality of page configuration components displayed by the low-code platform;
configuring the at least one first target page configuration component to generate a second page template in response to a configuration operation;
selecting a plurality of first target data models from a plurality of data models in the low code platform in response to a second selection operation;
and generating a plurality of pages to be generated according to the second page template and the plurality of first target data models.
2. The method of claim 1, wherein the generating a plurality of the pages to be generated according to the second page template and the plurality of the first target data models comprises:
responding to a third selection operation, and selecting at least one second target page configuration component from at least one first target page configuration component of the second page template;
establishing a binding relationship between any second page configuration component and at least one first target data model in a plurality of first target data models aiming at any second target page configuration component;
generating at least one page to be generated according to at least one first target data model of which any second target page configuration component has a binding relation with any second target page configuration component;
the same page to be generated comprises a first target data model bound with any second target page configuration component.
3. The method according to claim 2, wherein generating at least one of the pages to be generated according to at least one first target data model of which the any one of the second target page configuration components has a binding relationship with the any one of the second target page configuration components includes:
Acquiring the number of at least one first target data model with binding relation with any second target page configuration component;
and generating the number of pages to be generated according to at least one first target data model of which any second target page configuration component has a binding relation with any second target page configuration component.
4. A method according to claim 3, wherein the generation of the page to be generated comprises:
selecting a first target data model from at least one first target data model having a binding relationship with any one of the second target page configuration components;
filling the first target data model into any one of the second target page configuration components to obtain any one of the filled second target page configuration components;
and generating a page to be generated according to any second target page configuration component after filling.
5. The method of claim 1, wherein configuring the at least one target page configuration component to generate a second page template in response to a configuration operation comprises:
responding to configuration operation, and configuring the at least one target page configuration component to obtain target configuration information of the at least one target page configuration component;
Responding to the triggering operation of a target control in the low-code platform, and displaying a template configuration page of a page template to be generated;
and generating the second page template in response to template information input into the template configuration page.
6. The method of claim 1, wherein after generating a plurality of the pages to be generated according to the second page template and a plurality of the first target data models, the method further comprises:
responding to the adjustment operation for any page to be generated, and adjusting page attribute information of any page to be generated;
and determining a target directory to which any one of the adjusted pages to be generated is to be stored, and storing any one of the adjusted pages to be generated under the target directory.
7. The method according to claim 1, wherein the method further comprises:
responding to the existence of a first page template matched with the first page template in the page template list, and responding to a fourth selection operation, selecting a plurality of second target data models from a plurality of data models in the low-code platform;
and generating a plurality of pages to be generated according to the first page template and the plurality of second target data models.
8. The method of claim 1, wherein the plurality of data models are located in a dataset of the low-code platform, the method further comprising, in response to a second selection operation, prior to selecting a first plurality of target data models from the plurality of data models in the low-code platform:
responding to the importing operation, and acquiring a plurality of target files;
generating a target data model corresponding to any one of the target files according to target data in any one of the target files aiming at any one of the target files;
and importing the target data model corresponding to any one of the target files into the data set of the low-code platform.
9. The method according to any one of claims 1-8, further comprising:
acquiring the generation states of a plurality of pages to be generated;
generating log information according to the generation states of the pages to be generated;
and displaying the log information.
10. The page batch generation device is characterized by being applied to a low-code platform and comprising the following components:
the judging module is used for judging whether a first page template matched with a page to be generated exists in a page template list displayed by the low-code platform;
The first selecting module is used for responding to a first selecting operation when a first page template matched with a page to be generated does not exist in the page template list, and selecting at least one first target page configuration component matched with the page to be generated from a plurality of page configuration components displayed by the low code platform;
the configuration module is used for responding to the configuration operation and configuring the at least one first target page configuration component so as to generate a second page template;
a second selection module for selecting a plurality of first target data models from a plurality of data models in the low code platform in response to a second selection operation;
and the generation module is used for generating a plurality of pages to be generated according to the second page template and the plurality of first target data models.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311269657.3A CN117406985A (en) | 2023-09-27 | 2023-09-27 | Page batch generation method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311269657.3A CN117406985A (en) | 2023-09-27 | 2023-09-27 | Page batch generation method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117406985A true CN117406985A (en) | 2024-01-16 |
Family
ID=89489939
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311269657.3A Pending CN117406985A (en) | 2023-09-27 | 2023-09-27 | Page batch generation method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117406985A (en) |
-
2023
- 2023-09-27 CN CN202311269657.3A patent/CN117406985A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108304201B (en) | Object updating method, device and equipment | |
CN111427561A (en) | Service code generation method and device, computer equipment and storage medium | |
CN111784108B (en) | Modeling method and device of main data management platform | |
CN108388623B (en) | ER relationship generation method and device, computer equipment and storage medium | |
EP4120167A1 (en) | Abnormal behavior detection method and apparatus, and electronic device and computer-readable storage medium | |
US20210124752A1 (en) | System for Data Collection, Aggregation, Storage, Verification and Analytics with User Interface | |
CN113590102A (en) | Zero-code rapid software development method, system, medium and equipment | |
CN111444158A (en) | Long-short term user portrait generation method, device, equipment and readable storage medium | |
CN114201615B (en) | Scientific research data change review method and server based on data snapshot | |
CN116244387A (en) | Entity relationship construction method, device, electronic equipment and storage medium | |
CN111427577A (en) | Code processing method and device and server | |
CN110780970A (en) | Data screening method, device, equipment and computer readable storage medium | |
CN115629763A (en) | Target code generation method and NPU instruction display method and device | |
CN117406985A (en) | Page batch generation method and device | |
CN114266233A (en) | Form generation method, device, equipment and medium | |
CN113296912A (en) | Task processing method, device and system, storage medium and electronic equipment | |
WO2021234019A1 (en) | Database management methods and associated apparatus | |
CN112130841B (en) | SQL development method and device and terminal equipment | |
CN112650809B (en) | Method and device for formatting tree structure data and electronic equipment | |
CN115357604B (en) | Data query method and device | |
CN117234512B (en) | Method, system, electronic equipment and storage medium for rapidly developing business | |
CN114969383B (en) | Application processing method and device based on zero code development | |
CN117931176A (en) | Business application generation method, device, platform and medium | |
CN114462271A (en) | Finite element model element layering information modification method, system, equipment and medium | |
CN116415914A (en) | Service data processing method, device, computer equipment and storage medium |
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 |