CN113626025A - Page configuration method, device, equipment and storage medium - Google Patents

Page configuration method, device, equipment and storage medium Download PDF

Info

Publication number
CN113626025A
CN113626025A CN202110738692.XA CN202110738692A CN113626025A CN 113626025 A CN113626025 A CN 113626025A CN 202110738692 A CN202110738692 A CN 202110738692A CN 113626025 A CN113626025 A CN 113626025A
Authority
CN
China
Prior art keywords
business
page
template
target
component
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110738692.XA
Other languages
Chinese (zh)
Inventor
杜东彬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Baoyun Network Information Service Co ltd
Original Assignee
Shanghai Baoyun Network Information Service Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Baoyun Network Information Service Co ltd filed Critical Shanghai Baoyun Network Information Service Co ltd
Priority to CN202110738692.XA priority Critical patent/CN113626025A/en
Publication of CN113626025A publication Critical patent/CN113626025A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/35Creation or generation of source code model driven
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/177Editing, e.g. inserting or deleting of tables; using ruled lines
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/186Templates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a page configuration method, a device, equipment and a storage medium, wherein the method comprises the following steps: performing granulation processing on the page components to obtain a service template library; selecting a plurality of target business templates from the business template library, and automatically generating an instruction template of each target business template; rendering each instruction template into a corresponding business component; and configuring a target page by one key based on a plurality of business components. According to the technical scheme, a public PC end page configuration is abstracted, so that the development process is greatly simplified, and manpower and material resources are saved; the unified page configuration can strengthen the connectivity and reusability among the systems, solve the problem that a similar component is likely to be developed for several times when the systems fight each other at present, and improve the development efficiency.

Description

Page configuration method, device, equipment and storage medium
Technical Field
The present invention belongs to the technical field of page configuration, and in particular, to a page configuration method, device, apparatus, and storage medium.
Background
PC end systems are various, the similarity of requirements among the systems is high, most page modes are similar (mainly comprising forms and tables), and the requirements on the interfaces are not strict. In addition, because of the intensive user demands, the project cannot be on line normally due to insufficient development resources, developers mostly use repetitive labor, and the work desire and energy are discounted, so that the development work difficulty is high, and the efficiency is low.
Disclosure of Invention
The present invention is directed to solving, at least to some extent, one of the technical problems in the related art. Therefore, an object of the present invention is to provide a method, an apparatus, a device, and a storage medium for configuring a page, which can reduce the difficulty of development work and improve the development efficiency.
In order to solve the above technical problem, an embodiment of the present invention provides the following technical solutions:
a method of page configuration, comprising:
performing granulation processing on the page components to obtain a service template library;
selecting a plurality of target business templates from the business template library, and automatically generating an instruction template of each target business template;
rendering each instruction template into a corresponding business component;
and configuring a target page by one key based on a plurality of business components.
Optionally, performing granulation processing on the page component to obtain a service template library, including:
splitting the page component into a plurality of buttons and an input box;
and extracting common attributes of the plurality of buttons and the input boxes, wherein the common attributes comprise length, width and height, color, font and margin.
Optionally, selecting a plurality of target service templates from the service template library, and automatically generating an instruction template of each target service template, including:
dragging a plurality of target business templates on a page to a page generation area, wherein the page comprises a component menu bar, a view configuration bar and an attribute configuration bar;
automatically generating one unique corresponding instruction template for each business template;
and superposing the instruction templates to form a JSON character string.
Optionally, the rendering each instruction template into a corresponding business component includes:
rendering each instruction template into a corresponding business component through a rendering engine driven by JSON configuration; and the JSON configuration driven rendering engine comprises a JSON character string corresponding to one business component.
Optionally, the one-key configuration of the target page based on the plurality of business components includes:
packaging a plurality of the business components into a large component; the large-scale component comprises a query form, a data playback form and an attribute configuration column;
and integrating a plurality of large components into the target page.
Optionally, the integrating the plurality of large components into the target page includes:
and generating the target page through excel or word.
Optionally, the method further includes an intelligent configuration page:
carrying out keyword division on the service template library; wherein the keywords comprise an input box and a button;
the voice terminal receives the keywords of the client;
the voice terminal searches in the service template library according to the keywords and determines a service template to be used;
calling a standby instruction template corresponding to the standby service template;
rendering the standby instruction templates to pages based on the rendering engine.
The embodiment of the present invention further provides a device for page configuration, including:
the processing module is used for carrying out granulation processing on the page components to obtain a business template library;
the selection module is used for selecting a plurality of target business templates from the business template library and automatically generating an instruction template of each target business template;
the rendering module is used for rendering each instruction template into a corresponding business component;
and the configuration module is used for configuring the target page by one key based on a plurality of business components.
Embodiments of the present invention also provide a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the method as described above when executing the computer program.
Embodiments of the present invention also provide a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements a method as described above.
The embodiment of the invention has the following technical effects:
according to the technical scheme, 1) a public PC end page configuration is abstracted, so that the development process is greatly simplified, and manpower and material resources are saved.
2) The unified page configuration can strengthen the connectivity and reusability among the systems, solve the problem that a similar component is likely to be developed for several times when the systems fight each other at present, and improve the development efficiency.
3) Development resources are greatly saved, meanwhile, the complexity of daily maintenance iteration of the system is greatly reduced, and the excel import can realize a 'fool' one-key configuration page based on voice recognition.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
Fig. 1 is a schematic flowchart of a method for configuring a page according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a service template library provided in an embodiment of the present invention;
fig. 3 is a schematic diagram of generating a target page through excel or word according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of an intelligent configuration page provided by an embodiment of the invention;
fig. 5 is a schematic structural diagram of a computer device according to an embodiment of the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are illustrative and intended to be illustrative of the invention and are not to be construed as limiting the invention.
The JSON (JavaScript Object Notation) mentioned in the invention is a lightweight data exchange format; a PC terminal: and a computer terminal.
As shown in fig. 1, an embodiment of the present invention provides a page configuration method, including:
step S1: performing granulation processing on the page components to obtain a service template library;
step S2: selecting a plurality of target business templates from the business template library, and automatically generating an instruction template of each target business template;
step S3: rendering each instruction template into a corresponding business component;
step S4: and configuring a target page by one key based on a plurality of business components.
According to the embodiment of the invention, a public PC end page configuration is abstracted, so that the development process is greatly simplified, and manpower and material resources are saved; the unified page configuration can strengthen the connectivity and reusability among the systems, solve the problem that a similar component is likely to be developed for several times when the systems fight each other at present, and improve the development efficiency.
In an alternative embodiment of the present invention, in step S1, the granulating the page component to obtain the service template library includes:
step S11: splitting the page component into a plurality of buttons and an input box;
step S12: and extracting common attributes of the plurality of buttons and the input boxes, wherein the common attributes comprise length, width and height, color, font and margin.
Specifically, the page components are subdivided, for example, a button and an input box are accurately obtained, a service template library is formed, and meanwhile, common attributes of the service template, such as length, width, height, color, font, margin and other information, can be extracted and controlled by transmitting fixed instructions.
The embodiment of the invention carries out extensive user research, and the user uses analysis to granulate the page components to the utmost extent so as to be convenient for splicing and using the pages.
As shown in fig. 2, in an alternative embodiment of the present invention, in step S2, selecting a plurality of target service templates from the service template library, and automatically generating an instruction template for each target service template, includes:
step S21: dragging a plurality of target business templates on a page to a page generation area, wherein the page comprises a component menu bar, a view configuration bar and an attribute configuration bar;
specifically, as shown in fig. 2, the left side is a component menu bar corresponding to the basic component, the middle part is a view configuration bar, and the right side is an attribute configuration bar.
Step S22: automatically generating one unique corresponding instruction template for each business template;
step S23: and superposing the instruction templates to form a JSON character string.
Specifically, a service template library page is provided for a developer to use, when the developer drags a service template on the page to a page generation area, a corresponding instruction template is automatically generated, and finally a JOSN character string is generated.
According to the embodiment of the invention, the corresponding JSON character string is generated by the service template in a view mode, so that the manual writing instruction template is changed into the dragging automatic generation instruction template, and the development efficiency is greatly improved.
In an alternative embodiment of the present invention, in step S3, the rendering each instruction template into a corresponding business component includes:
step S31: rendering each instruction template into a corresponding business component through a rendering engine driven by JSON configuration; and the JSON configuration driven rendering engine comprises a JSON character string corresponding to one business component.
According to the embodiment of the invention, the granular business templates can be configured and spliced into the required page through the rendering engine.
In step S4, an alternative embodiment of the present invention, where the configuring the target page by one key based on a plurality of the service components includes:
step S41: packaging a plurality of the business components into a large component; the large-scale component comprises a query form, a data playback form and an attribute configuration column;
step S42: and integrating a plurality of large components into the target page.
In the embodiment of the invention, the service templates are integrated from the practical angle of the user, so that the user can generate the target page by one key.
As shown in fig. 3, in an alternative embodiment of the present invention, in step S42, the integrating the large components into the target page includes:
step S421: and generating the target page through excel or word.
Specifically, the basic table or the main body of the page is generated by supporting excel or word import.
The embodiment of the invention greatly saves development resources, greatly reduces the complexity of daily maintenance iteration of the system, and can realize a 'fool' one-key configuration page based on introduction of excel and the like.
As shown in fig. 4, an alternative embodiment of the present invention further includes step S5: intelligent configuration page:
step S51: carrying out keyword division on the service template library; wherein the keywords comprise an input box and a button;
step S52: the voice terminal receives the keywords of the client;
step S53: the voice terminal searches in the service template library according to the keywords and determines a service template to be used;
step S54: calling a standby instruction template corresponding to the standby service template;
step S55: rendering the standby instruction templates to pages based on the rendering engine.
For example, a user says i want to create a form, the first action name and must fill in, the device will generate the corresponding JSON string and return it to the client.
The embodiment of the invention realizes the method based on the target page configuration, and realizes the intelligent configuration of the page by combining the intelligent configuration.
The embodiment of the present invention further provides a device for page configuration, including:
the processing module is used for carrying out granulation processing on the page components to obtain a business template library;
the selection module is used for selecting a plurality of target business templates from the business template library and automatically generating an instruction template of each target business template;
the rendering module is used for rendering each instruction template into a corresponding business component;
and the configuration module is used for configuring the target page by one key based on a plurality of business components.
As shown in fig. 5, an embodiment of the present invention further provides a computer device 50, which includes a memory 52, a processor 51, and a computer program stored on the memory 52 and executable on the processor 51, wherein the processor 51 implements the method described above when executing the computer program.
Embodiments of the present invention also provide a computer readable storage medium having stored thereon a computer program which, when executed by the processor 52, implements the method as described above.
In addition, other configurations and functions of the device according to the embodiment of the present invention are known to those skilled in the art, and are not described herein in detail to reduce redundancy.
It should be noted that the logic and/or steps represented in the flowcharts or otherwise described herein, such as an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
In the description of the present invention, it is to be understood that the terms "central," "longitudinal," "lateral," "length," "width," "thickness," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," "outer," "clockwise," "counterclockwise," "axial," "radial," "circumferential," and the like are used in the orientations and positional relationships indicated in the drawings for convenience in describing the invention and to simplify the description, and are not intended to indicate or imply that the referenced devices or elements must have a particular orientation, be constructed and operated in a particular orientation, and are therefore not to be considered limiting of the invention.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
In the present invention, unless otherwise expressly stated or limited, the terms "mounted," "connected," "secured," and the like are to be construed broadly and can, for example, be fixedly connected, detachably connected, or integrally formed; can be mechanically or electrically connected; they may be directly connected or indirectly connected through intervening media, or they may be connected internally or in any other suitable relationship, unless expressly stated otherwise. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations.
In the present invention, unless otherwise expressly stated or limited, the first feature "on" or "under" the second feature may be directly contacting the first and second features or indirectly contacting the first and second features through an intermediate. Also, a first feature "on," "over," and "above" a second feature may be directly or diagonally above the second feature, or may simply indicate that the first feature is at a higher level than the second feature. A first feature being "under," "below," and "beneath" a second feature may be directly under or obliquely under the first feature, or may simply mean that the first feature is at a lesser elevation than the second feature.
Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.

Claims (10)

1. A method of page configuration, comprising:
performing granulation processing on the page components to obtain a service template library;
selecting a plurality of target business templates from the business template library, and automatically generating an instruction template of each target business template;
rendering each instruction template into a corresponding business component;
and configuring a target page by one key based on a plurality of business components.
2. The method of claim 1, wherein the particularizing the page component to obtain a library of business templates comprises:
splitting the page component into a plurality of buttons and an input box;
and extracting common attributes of the plurality of buttons and the input boxes, wherein the common attributes comprise length, width and height, color, font and margin.
3. The method of claim 2, wherein selecting a plurality of target business templates from the business template library, and automatically generating an instruction template for each target business template comprises:
dragging a plurality of target business templates on a page to a page generation area, wherein the page comprises a component menu bar, a view configuration bar and an attribute configuration bar;
automatically generating one unique corresponding instruction template for each business template;
and superposing the instruction templates to form a JSON character string.
4. The method of claim 3, wherein rendering each of the instruction templates into a corresponding business component comprises:
rendering each instruction template into a corresponding business component through a rendering engine driven by JSON configuration; and the JSON configuration driven rendering engine comprises a JSON character string corresponding to one business component.
5. The method of claim 4, wherein said one-touch configuring the target page based on a plurality of said business components comprises:
packaging a plurality of the business components into a large component; the large-scale component comprises a query form, a data playback form and an attribute configuration column;
and integrating a plurality of large components into the target page.
6. The method of claim 5, wherein integrating the plurality of large components into the target page comprises:
and generating the target page through excel or word.
7. The method of claim 6, further comprising an intelligent configuration page:
carrying out keyword division on the service template library; wherein the keywords comprise an input box and a button;
the voice terminal receives the keywords of the client;
the voice terminal searches in the service template library according to the keywords and determines a service template to be used;
calling a standby instruction template corresponding to the standby service template;
rendering the standby instruction templates to pages based on the rendering engine.
8. An apparatus for page configuration, comprising:
the processing module is used for carrying out granulation processing on the page components to obtain a business template library;
the selection module is used for selecting a plurality of target business templates from the business template library and automatically generating an instruction template of each target business template;
the rendering module is used for rendering each instruction template into a corresponding business component;
and the configuration module is used for configuring the target page by one key based on a plurality of business components.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method according to any of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the method according to any one of claims 1 to 7.
CN202110738692.XA 2021-06-30 2021-06-30 Page configuration method, device, equipment and storage medium Pending CN113626025A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110738692.XA CN113626025A (en) 2021-06-30 2021-06-30 Page configuration method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110738692.XA CN113626025A (en) 2021-06-30 2021-06-30 Page configuration method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113626025A true CN113626025A (en) 2021-11-09

Family

ID=78378752

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110738692.XA Pending CN113626025A (en) 2021-06-30 2021-06-30 Page configuration method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113626025A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111443911A (en) * 2020-03-24 2020-07-24 五八有限公司 Page development method and device, electronic equipment and computer storage medium
CN112433799A (en) * 2020-11-25 2021-03-02 平安普惠企业管理有限公司 Page generation method, device, equipment and medium
US20210174004A1 (en) * 2019-12-05 2021-06-10 Brad Sherp Methods and systems for dynamic customization of independent webpage section templates

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20210174004A1 (en) * 2019-12-05 2021-06-10 Brad Sherp Methods and systems for dynamic customization of independent webpage section templates
CN111443911A (en) * 2020-03-24 2020-07-24 五八有限公司 Page development method and device, electronic equipment and computer storage medium
CN112433799A (en) * 2020-11-25 2021-03-02 平安普惠企业管理有限公司 Page generation method, device, equipment and medium

Similar Documents

Publication Publication Date Title
CN102201009B (en) Form generating method and device
CN109582909B (en) Webpage automatic generation method and device, electronic equipment and storage medium
CN109299073B (en) Data blood margin generation method and system, electronic equipment and storage medium
US20230259509A1 (en) Data association query method and apparatus, device, and storage medium
CN104699706A (en) Directory tree generation method, device and system
CN111597484A (en) UI dynamic generation method
CN109344374B (en) Report generation method and device based on big data, electronic equipment and storage medium
CN110008195A (en) A kind of dynamic configuration html turns the method, apparatus and system of pdf
CN110705237A (en) Automatic document generation method, data processing device, and storage medium
CN105138561A (en) Deep web space data acquisition method and apparatus
CN111026931A (en) Data query method, device, equipment and medium
CN113835693A (en) Code generation method and device, electronic equipment and storage medium
CN111831626A (en) Graph structure generation method of database logical relation, data query method and device
US20190197123A1 (en) Metadata storage method, device and server
CN117057318A (en) Domain model generation method, device, equipment and storage medium
CN106776779B (en) Method for generating entity file by JSON data based on Mac platform
CN114692532A (en) Chip system integration method and device and computer readable storage medium
CN113626025A (en) Page configuration method, device, equipment and storage medium
CN104657248A (en) Java thread stack analysis method and system
CN116107524B (en) Low-code application log processing method, medium, device and computing equipment
CN116361184A (en) Data searching method, device, medium and computer equipment
CN116257714A (en) Method, device, computer equipment and storage medium for generating cascading style sheet
CN102163145A (en) Method of applying 3D and 2D compatibility on set top box
CN113609154B (en) Data query method and device, electronic equipment and storage medium
CN116243914A (en) Internationalization software development method, internationalization software development system and server

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