CN110347984A - Declaration form page variation, device, computer equipment and storage medium - Google Patents
Declaration form page variation, device, computer equipment and storage medium Download PDFInfo
- Publication number
- CN110347984A CN110347984A CN201910417900.9A CN201910417900A CN110347984A CN 110347984 A CN110347984 A CN 110347984A CN 201910417900 A CN201910417900 A CN 201910417900A CN 110347984 A CN110347984 A CN 110347984A
- Authority
- CN
- China
- Prior art keywords
- target
- declaration form
- template
- field
- type
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000003860 storage Methods 0.000 title claims abstract description 19
- 230000008859 change Effects 0.000 claims abstract description 42
- 238000012986 modification Methods 0.000 claims abstract description 18
- 230000004048 modification Effects 0.000 claims abstract description 18
- 238000000034 method Methods 0.000 claims description 16
- 238000004590 computer program Methods 0.000 claims description 13
- 230000006870 function Effects 0.000 description 7
- 238000004422 calculation algorithm Methods 0.000 description 5
- 238000011161 development Methods 0.000 description 5
- 230000008569 process Effects 0.000 description 5
- 238000001514 detection method Methods 0.000 description 4
- 230000004044 response Effects 0.000 description 4
- 230000000007 visual effect Effects 0.000 description 4
- 238000013070 change management Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- 238000006243 chemical reaction Methods 0.000 description 2
- 238000009826 distribution Methods 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 238000012384 transportation and delivery Methods 0.000 description 2
- 238000012795 verification Methods 0.000 description 2
- 230000010485 coping Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000009432 framing Methods 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 239000010977 jade Substances 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 230000014759 maintenance of location Effects 0.000 description 1
- 238000007726 management method Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000035800 maturation Effects 0.000 description 1
- 238000012827 research and development Methods 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/80—Information retrieval; Database structures therefor; File system structures therefor of semi-structured data, e.g. markup language structured data such as SGML, XML or HTML
- G06F16/81—Indexing, e.g. XML tags; Data structures therefor; Storage structures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/166—Editing, e.g. inserting or deleting
- G06F40/186—Templates
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q40/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/08—Insurance
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Business, Economics & Management (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Finance (AREA)
- Accounting & Taxation (AREA)
- General Engineering & Computer Science (AREA)
- Economics (AREA)
- Technology Law (AREA)
- Data Mining & Analysis (AREA)
- Development Economics (AREA)
- Software Systems (AREA)
- Marketing (AREA)
- Strategic Management (AREA)
- Databases & Information Systems (AREA)
- General Business, Economics & Management (AREA)
- Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Document Processing Apparatus (AREA)
Abstract
The invention discloses a kind of declaration form page variation, device, computer equipment and storage medium, it is related to researching and developing management domain.The declaration form page variation includes: to establish declaration form field;Common template is generated according to declaration form field;Target template is generated according to declaration form field, target template is related to target type;The modification information of the target declaration form page is obtained, the modification information of the target declaration form page includes target target type and target typesetting type;Target target template corresponding with target target type is obtained from target template;The target declaration form page is generated according to common template, target target template and target typesetting type, wherein common template, target target template and target typesetting type are stored using YAML form.It can be realized the quick change of the declaration form page using the declaration form page variation.
Description
[technical field]
The present invention relates to research and development management domain more particularly to a kind of declaration form page variation, device, computer equipment and
Storage medium.
[background technique]
Front end exploitation is the process for creating the front-end interfaces such as Webpage or application program and being presented to the user.Currently, protecting
Most of the front end page of dangerous field exploitation can only adapt to fixed business demand, can not be suitable for complicated business scenario.Mesh
The preceding business scenario for complexity requires to rewrite code, the efficiency of declaration form page change in the change declaration form page every time
It is too low, it is difficult to meet the needs of frequently change declaration form page.
[summary of the invention]
In view of this, the embodiment of the invention provides a kind of declaration form page variation, device, computer equipment and storages
Medium, to solve the problems, such as that current declaration form page change efficiency is too low.
In a first aspect, the embodiment of the invention provides a kind of declaration form page variations, comprising:
Establish declaration form field;
Common template is generated according to the declaration form field;
Target template is generated according to the declaration form field, the target template is related to target type;
The modification information of the target declaration form page is obtained, the modification information of the target declaration form page includes target target type
With target typesetting type;
Target target template corresponding with the target target type is obtained from the target template;
The target declaration form page is generated according to the common template, the target target template and the target typesetting type
Face, wherein the common template, the target target template and the target typesetting type are stored using YAML form.
The aspect and any possible implementation manners as described above, it is further provided a kind of implementation, the foundation are protected
Individual character section, comprising:
Field information relevant to declaration form is obtained, initial declaration form field is established according to the field information, wherein the word
Segment information includes field name, field type, field number and field typing type;
Base data table is read, judges that the initial declaration form field is closed with the presence or absence of subitem according to the base data table
System, wherein the base data table stores subitem information and the preset subitem relationship;
If it exists, then the initial declaration form field according to the subitem information update, obtains the declaration form field;
If it does not exist, then using the initial declaration form field as the declaration form field.
The aspect and any possible implementation manners as described above, it is further provided a kind of implementation, it is described according to institute
It states declaration form field and generates target template, comprising:
According to the target type, target field is obtained from the declaration form field;
The selection instruction for obtaining user's input determines that template shows attribute according to the selection instruction, wherein the template
Show that attribute refers to attribute relevant to the target template displaying;
Show that attribute generates one or more target templates according to the target field and the template.
The aspect and any possible implementation manners as described above, it is further provided a kind of implementation, described from institute
It states before obtaining target target template corresponding with the target target type in target template, further includes:
Level-one mark is obtained, the level-one mark is related to the target template;
Second level mark corresponding with the target type is obtained according to level-one mark encryption;
It is described that target target template corresponding with the target target type is obtained from the target template, comprising:
Obtain the corresponding second level mark of the target target type;
The target target type corresponding second level mark is decrypted, the level-one mark is obtained;
Target target corresponding with the target target type is obtained from the target template according to the first identifier
Template.
The aspect and any possible implementation manners as described above, it is further provided a kind of implementation, the Universal Die
Plate, the target target template and the target typesetting type are stored using YAML form, described according to the common template, institute
It states target target template and the target typesetting type generates the target declaration form page, comprising:
The common template, the target target template and the target typesetting type are converted into corresponding hypertext mark
Remember language;
According to the hypertext markup language, the target declaration form page is generated using front end frame.
Second aspect, the embodiment of the invention provides a kind of declaration form page change devices, comprising:
Declaration form field establishes module, for establishing declaration form field;
Common template generation module, for generating common template according to the declaration form field;
Target template generation module, for generating target template, the target template and target according to the declaration form field
Type is related;
Data obtaining module is generated, for obtaining the modification information of the target declaration form page, the change of the target declaration form page
More information includes target target type and target typesetting type;
Target target template obtains module, corresponding with the target target type for obtaining from the target template
Target target template;
Target declaration form page generation module, for according to the common template, the target target template and the target
Typesetting type generates the target declaration form page, wherein the common template, the target target template and the target typesetting
Type is stored using YAML form.
The third aspect, a kind of computer equipment, including memory, processor and storage are in the memory and can be
The computer program run on the processor, the processor realize that the above-mentioned declaration form page becomes when executing the computer program
The step of more method.
Fourth aspect, the embodiment of the invention provides a kind of computer readable storage mediums, comprising: computer program, institute
State the step of above-mentioned declaration form page variation is realized when computer program is executed by processor.
In embodiments of the present invention, declaration form field is initially set up, which can be suitable for the different declaration form pages,
Meet the primary demand of declaration form page development;Common template is generated then according to declaration form field and is generated relevant to target type
Content of pages identical in the declaration form page can be indicated, by the declaration form page by target template by way of common template
In different content of pages be based on target template be indicated, for realize the declaration form page it is flexible change provide realization base
Plinth;Then the modification information of the target declaration form page is obtained, which includes target target type and target typesetting type, energy
It is enough that user is known to the change demand of the declaration form page, to be modified in time to the declaration form page based on the modification information at any time;So
Target target template corresponding with target target type is obtained from target template afterwards, can accurately be obtained and change demand phase
Corresponding target target template guarantees the accuracy of declaration form page change;Finally according to common template, target target template and mesh
It marks typesetting type and generates the target declaration form page, wherein common template, target target template and target typesetting type use YAML shape
Formula storage is stored the readability height so that common template, target target template and target typesetting type using YAML form, helped
Default template is managed from visual angle in user, according to common template, target target template and target typesetting type
It can flexibly, accurately and efficiently realize the change of the declaration form page.
[Detailed description of the invention]
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be to needed in the embodiment attached
Figure is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for this field
For those of ordinary skill, without any creative labor, it can also be obtained according to these attached drawings other attached
Figure.
Fig. 1 is a flow chart of declaration form page variation in one embodiment of the invention;
Fig. 2 is a schematic diagram of declaration form page change device in one embodiment of the invention;
Fig. 3 is a schematic diagram of computer equipment in one embodiment of the invention.
[specific embodiment]
For a better understanding of the technical solution of the present invention, being retouched in detail to the embodiment of the present invention with reference to the accompanying drawing
It states.
It will be appreciated that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.Base
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts it is all its
Its embodiment, shall fall within the protection scope of the present invention.
The term used in embodiments of the present invention is only to be not intended to be limiting merely for for the purpose of describing particular embodiments
The present invention.In the embodiment of the present invention and the "an" of singular used in the attached claims, " described " and "the"
It is also intended to including most forms, unless the context clearly indicates other meaning.
It should be appreciated that term "and/or" used herein is only a kind of identical field for describing affiliated partner, table
Show there may be three kinds of relationships, for example, A and/or B, can indicate: individualism A exists simultaneously A and B, individualism B this three
Kind situation.In addition, character "/" herein, typicallys represent the relationship that forward-backward correlation object is a kind of "or".
It will be appreciated that though default model may be described using term first, second, third, etc. in embodiments of the present invention
It encloses, but these preset ranges should not necessarily be limited by these terms.These terms are only used to for preset range being distinguished from each other out.For example,
In the case where not departing from range of embodiment of the invention, the first preset range can also be referred to as the second preset range, similarly,
Second preset range can also be referred to as the first preset range.
Depending on context, word as used in this " if " can be construed to " ... when " or " when ...
When " or " in response to determination " or " in response to detection ".Similarly, depend on context, phrase " if it is determined that " or " if detection
(condition or event of statement) " can be construed to " when determining " or " in response to determination " or " when the detection (condition of statement
Or event) when " or " in response to detection (condition or event of statement) ".
Fig. 1 shows a flow chart of declaration form page variation in the present embodiment.The declaration form page variation can be applied
On declaration form page change management platform, it is real that the declaration form page change management platform can be used when carrying out the change of the declaration form page
It is existing.The declaration form page change management platform specifically can be applicable in computer equipment, wherein the computer equipment is can be with user
The equipment for carrying out human-computer interaction, the including but not limited to equipment such as computer, smart phone and plate.As shown in Figure 1, the declaration form page
Variation includes the following steps:
S10: declaration form field is established.
Wherein, declaration form field refers to field relevant to the exploitation demand of the declaration form page.
In one embodiment, field needed for declaration form page development can be carried out as much as possible by establishing declaration form field
Conclude and store so that when subsequent can the declaration form field based on the foundation flexibly, efficiently the declaration form page is changed.
Further, in step slo, declaration form field is established, is specifically included:
S11: field information relevant to declaration form is obtained, initial declaration form field is established according to field information, wherein field letter
Breath includes field name, field type, field number and field typing type.
It is to be appreciated that a declaration form field includes multiple field informations, these field informations have its effect and meaning.
For example, need to be obtained when the declaration form page is specifically a kind of and students in middle and primary schools Pingan Insurance (hereinafter referred to as " learning flat danger ") related pages
Take field name, field type, field number, field typing type and the field typing school of declaration form field relevant to flat danger is learned
Test the field informations such as rule.It is needed there are many declaration form fields to be added it is to be appreciated that learning and putting down the dangerous declaration form page, it is corresponding
Field name also has corresponding a variety of, and field name specifically can be school district, by insurance student's type, school's title, year
Grade and class, the corresponding field type of these field names can be classified as the field type of " student ".Field number specifically can be with
It is the ID number of field, the ID number of the field can be to be automatically generated according to system time.Field typing type may include number
It is worth typing type, Characters type and drop-down option typing type etc..Field typing verification rule can specifically include field
It whether is required item, whether beyond preset length and whether regular comprising the verification such as letter and number simultaneously.As can be seen that addition
One declaration form field needs correspondingly to obtain the field information of the declaration form field.
In one embodiment, initial declaration form field is established according to field information, completes first typing of declaration form field.This
Field information in embodiment can from different angles be defined declaration form field, can effectively improve the rich of declaration form field
Rich degree, so that declaration form field can adapt in more business scenarios.
S12: reading base data table, judges that initial declaration form field whether there is subitem relationship according to base data table,
In, base data table stores subitem information and preset subitem relationship.
It is to be appreciated that declaration form field will expend more resource according to the mode added one by one when establishing, to this
Automatically generating and adding for declaration form field can be realized by way of reading base data table.The base data table stores pass
In the subitem relationship and subitem information of declaration form field, wherein the base data table specifically can be to be remembered according in insurance field
What the subitem relationship and subitem information about declaration form field carried was established.
In one embodiment, base data table is read, judges initial declaration form field with the presence or absence of son according to base data table
N-th-trem relation n.It, will be corresponding according to subitem Relation acquisition if recite subitem relationship relevant to the declaration form field in base data table
Subitem information, according to the subitem Automatic generation of information declaration form field.
S13: if it exists, then according to the initial declaration form field of subitem information update, declaration form field is obtained.
In one embodiment, subitem relationship relevant to declaration form field if it exists, will obtain according to subitem Automatic generation of information
To new declaration form field, the second batch typing of declaration form field is completed.It can be according to subitem relationship by the way of base data table
Declaration form field is automatically generated and added, the addition efficiency of declaration form field is improved.
S14: if it does not exist, then using initial declaration form field as declaration form field.
In one embodiment, subitem relationship relevant to declaration form field if it does not exist, then without carrying out the of declaration form field
Two batches of typings, initial declaration form field can be directly as declaration form fields.
In step S11-S14, a kind of specific embodiment for establishing declaration form field is provided, by obtaining field information
Initial declaration form field is generated, then using the relevant declaration form field of base data table addition subitem relationship, effectively increases declaration form word
Section establishes efficiency.
S20: common template is generated according to declaration form field.
Wherein, common template indicates the template that the different declaration form pages can use.
It is to be appreciated that at present during exploitation, the maintenance declaration form page, since the demand of different business scenarios is frequent
It needs to change the declaration form page, this to require from the beginning to develop the declaration form page again every time, causes huge resource
Waste.It is to be appreciated that, there are identical content of pages in the declaration form page, these content of pages institute is right for insurance field
The declaration form field answered is identical, for example, now occupying with address name, user's gender, user identity card number, user's household register and user
The relevant declaration form field of the information such as address, these are all the information of the required typing in the different declaration form pages, for these guarantors
Identical content of pages in single-page can generate common template using declaration form field, can be by declaration form by the common template
Identical content of pages stores in the page, and guarantor can be quickly generated according to common template in the change declaration form page every time
Identical content of pages in single-page improves the efficiency of declaration form page change.
S30: target template is generated according to declaration form field, target template is related to target type.
Wherein, target template refer to it is relevant to target type, being capable of the mould used in one or more declaration form pages
Plate.Target type is to carry out dividing obtained classification type based on different targets.Target refer to contract both parties it
Between existing rights and duties relationship, such as cargo delivery, labor service delivery, engineering project deliver.It is necessity that contract is set up
Condition is the indispensable clause of all contracts.It is to be appreciated that the target type of the different declaration form pages is different, such as and vehicle insurance
Target in the relevant declaration form page and the declaration form page relevant to life insurance is different, therefore the two target type is also naturally different.
It should be noted that target template is other than including the template of declaration form field relevant to target, due to different marks
Type sometimes for more typing information are inserted, in order to which the coverage area of target template will larger can record these
Enter declaration form field corresponding to information and also takes target template as.For example, the target type of declaration form field is in an insurance products
When learning flat danger, other than the declaration form field corresponding to the target, further include field name be school district, by insurance student's type,
The declaration forms field such as school's title, grade and class, these typing information for needing to insert because of target type also can be used as target
Template.It (can be understood as having on the declaration form page it is to be appreciated that a target type can correspond to multiple target templates simultaneously
The content of multiple plates needs typing), a target template may be applied to multiple target types (as above by field name simultaneously
Referred to as school district, can be applied by the target template that the declaration forms field such as insurance student's type, school's title, grade and class forms
In the declaration form page that target type is teacher Pingan Insurance etc.).
In one embodiment, declaration form field is field relevant to the exploitation demand of the declaration form page, including different declaration form pages
The declaration form field that different content of pages are formed in face can generate target template according to declaration form field, be subsequent according to the target
Template realizes that the change of the declaration form page provides optimized integration.
Further, in step s 30, target template is generated according to declaration form field, specifically included:
S31: according to target type, target field is obtained from declaration form field.
Wherein, target field refers to that declaration form field corresponding with target type, different target types are corresponding with difference
Declaration form field.
In one embodiment, target word corresponding with target type will be obtained from declaration form field according to target type
Section generates corresponding target template based on based on target field.
S32: obtaining the selection instruction of user's input, determines that template shows attribute according to selection instruction, wherein template is shown
Attribute refers to attribute relevant to the displaying of target template.
Specifically, template shows that attribute includes declaration form field displaying sequence option, the determining option of declaration form field line feed and writes from memory
Recognize value setting option.Declaration form field displaying sequence option for provide it is at user option about declaration form field in the declaration form page
Displaying sequence, declaration form field enter a new line determine option for provide it is at user option about between declaration form field in the declaration form page
Whether enter a new line when displaying, default value setting option for provide it is at user option about declaration form field in declaration form page exhibition
The default value shown when showing, flexibly adjustment can be carried out to the exhibition method of declaration form template by adjusting option by the template.
S33: show that attribute generates one or more target templates according to target field and template.
Specifically, for target field relevant to target type, it can show that attribute generates one or more according to template
A target template flexibly realizes the change of the declaration form page to meet the needs of under different business scene.
In step S31-S33, a kind of specific embodiment for generating target template is provided, by from declaration form field
Target field is obtained, shows that attribute generates target template in conjunction with template, different business can be met according to the target template of multiplicity
Demand under scene.
S40: the modification information of the target declaration form page is obtained, the modification information of the target declaration form page includes target target type
With target typesetting type.
It is to be appreciated that the declaration form page to be generated is the target declaration form page under specific a certain demand.
Wherein, target target type determines the content of pages of required displaying on the target declaration form page, page composition type
Then determine the position distribution on the target declaration form page between each target template on the declaration form page.Specifically, typesetting type can
Being defined previously according to the typesetting of user setting, target typesetting type is the typesetting type under specific a certain demand.
S50: target target template corresponding with target target type is obtained from target template.
It is to be appreciated that a target target type can be corresponding with one or more target target templates, such as target mark
Template be and learn the relevant target target template in flat danger, other than target target template relevant to flat dangerous target is learned, also
Target target template including other typing information that need to additionally insert, target target template is modifiable content of pages, is adopted
The quick change of the declaration form page may be implemented with target target template.
Further, before step S50, i.e., target mark corresponding with target target type is being obtained from target template
Template before, further includes:
S51: obtaining level-one mark, and level-one mark is related to target template.
Wherein, level-one mark is the mark for referring to unique identification target template.
In one embodiment, a level-one can be arranged for each target template to identify, to use succinct mark
It goes to represent target template.Specifically, level-one mark can be is stored in the form of character string.
S52: second level corresponding with target type is obtained according to level-one mark encryption and is identified.
Wherein, second level mark is the mark for referring to unique identification target type.
It is to be appreciated that a target type is corresponding with one or more target templates, and each target template has
Its corresponding level-one identifies, and in the present embodiment, will be encrypted, and obtained and target type according to the level-one of each template mark
Corresponding second level mark.Specifically, Encryption Algorithm can be the predefined algorithm of user.It is indicated in the form of second level mark
Target type can to it includes target template protect, only to second level identify use decryption corresponding with Encryption Algorithm
Algorithm could be decrypted to obtain level-one mark, and determine specific target template according to level-one mark.
In step S51-S52, being identified using level-one indicates target template, and is encrypted to obtain table according to level-one mark
The second level of the type of indicating identifies, and can protect to the target template for including in target type, only know decipherment algorithm
Target target template could be obtained, in addition, can compactly indicate target type using second level mark, can be identified according to second level
Quickly the declaration form page is changed.
Target target template corresponding with target target type is obtained from target template, comprising:
S53: the corresponding second level mark of target target type is obtained.
S54: being decrypted target target type corresponding second level mark, obtains level-one mark.
S55: target target template corresponding with target target type is obtained from target template according to first identifier.
In step S53-S55, a kind of specific implementation for obtaining target target template is provided, decryption and mesh are passed through
The corresponding second level mark of target type is marked, level-one mark is obtained, identifies to obtain target target template, the acquisition further according to level-one
The mode of target target template effectively limits changes the declaration form page with carrying out, and is equivalent to provided with one layer of permission.In this reality
It applies in example, target target template can quickly only be determined by target target type.
S60: the target declaration form page is generated according to common template, target target template and target typesetting type, wherein general
Template, target target template and target typesetting type are stored using YAML form.
Wherein, YAML is the recurrence of " YAML isn't a Markup Language " (YAML is not a kind of markup language)
Abbreviation.When developing this language, the meaning of YAML is in fact: " Yet Another Markup Language " (is still a kind of
Markup language).YAML is emphasized centered on data, rather than is attached most importance to markup language, is renamed using uncut jade word is returned.
YAML is a kind of Data Serialization format that can be intuitively identified by computer, is a kind of readable high and is easy to be read by the mankind
It reads, is easy and scripting language is interactive, for expressing the programming language of data sequences.It is to be appreciated that being stored using YAML form
Common template, the readability of target target template and target typesetting type it is high, facilitate user from visual angle and carry out pipe
Reason can be improved the efficiency of target declaration form page generation.
It should be noted that the target declaration form page generated is the declaration form page changed to the former declaration form page,
Rather than calling other network address come by way of generating the target declaration form page.It can using the method for the generation target declaration form page
It, should quickly changed on the basis of the former declaration form page by common template, target target template and target typesetting type
Change process can realize that the page changes in a manner of obstructed manual amendment's code excessively, can satisfy complicated business scenario, realize
Declaration form page change in a network address.Particularly, the content of pages that part is rare, need to change, can common template,
It is finely adjusted in code base corresponding to target target template and target typesetting type, equally can satisfy the fast of the declaration form page
Speed change.
Further, in step S60, target is generated according to common template, target target template and target typesetting type
The declaration form page, specifically includes:
S61: common template, target target template and target typesetting type are converted into corresponding hypertext markup language.
Wherein, hypertext markup language is an application under standard generalized markup language, is the programming language of webpage making
Speech.
In one embodiment, common template, target target template and target typesetting type are stored using YAML form, are needed
It is converted into the programming language i.e. hypertext markup language of webpage making, specifically, conversion process can use groovy script work
Tool is realized, wherein groovy is a kind of dynamic language of agility, a kind of Object-Oriented Programming Language of maturation, both be can be used for
Object-Oriented Programming, and may be used as pure scripting language, excessive code need not be write using groovy, while having again
Other characteristics in closure and dynamic language.Groovy wscript.exe is the wscript.exe based on groovy creation, can be quick
The data of storage are converted into another particular form from certain particular form by ground.Specifically, the groovy foot in the present embodiment
This tool is specifically used for be converted into pair using common template, target target template and the target typesetting type of the storage of YAML form
The hypertext markup language answered.
S62: according to hypertext markup language, the target declaration form page is generated using front end frame.
Wherein, front end frame refers to the framing tools of exploitation front end page, using such as node.js, angularJS and
The front end frames such as react are able to ascend the aesthetics at interface and improve the efficiency of interface development.
In step S61-S62, by carrying out hypertext mark to common template, target target template and target typesetting type
Remember the conversion of language, and target declaration form automatic production of HTML page is carried out using front end frame, can be realized the quick change of the declaration form page
More.
In embodiments of the present invention, declaration form field is initially set up, which can be suitable for the different declaration form pages,
Meet the primary demand of declaration form page development;Common template is generated then according to declaration form field and is generated relevant to target type
Content of pages identical in the declaration form page can be indicated, by the declaration form page by target template by way of common template
In different content of pages be based on target template be indicated, for realize the declaration form page it is flexible change provide realization base
Plinth;Then the modification information of the target declaration form page is obtained, which includes target target type and target typesetting type, energy
It is enough that user is known to the change demand of the declaration form page, to be modified in time to the declaration form page based on the modification information at any time;So
Target target template corresponding with target target type is obtained from target template afterwards, can accurately be obtained and change demand phase
Corresponding target target template guarantees the accuracy of declaration form page change;Finally according to common template, target target template and mesh
It marks typesetting type and generates the target declaration form page, wherein common template, target target template and target typesetting type use YAML shape
Formula storage is stored the readability height so that common template, target target template and target typesetting type using YAML form, helped
Default template is managed from visual angle in user, according to common template, target target template and target typesetting type
It can flexibly, accurately and efficiently realize the change of the declaration form page.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process
Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present invention constitutes any limit
It is fixed.
Based on declaration form page variation provided in embodiment, the embodiment of the present invention, which further provides, realizes above-mentioned side
The Installation practice of each step and method in method embodiment.
Fig. 2 shows the principle frames with the one-to-one declaration form page change device of declaration form page variation in embodiment
Figure.As shown in Fig. 2, the declaration form page change device includes that declaration form field establishes module 10, common template generation module 20, target
Template generation module 30 generates data obtaining module 40, target target template acquisition module 50 and target declaration form page generation mould
Block 60.Wherein, declaration form field is established module 10, common template generation module 20, target template generation module 30, generation information and is obtained
Modulus block 40, target target template obtain protects in module 50 and the realization function and embodiment of target declaration form page generation module 60
The corresponding step of single-page variation corresponds, and to avoid repeating, the present embodiment is not described in detail one by one.
Declaration form field establishes module 10, for establishing declaration form field.
Common template generation module 20, for generating common template according to declaration form field.
Target template generation module 30, for generating target template, target template and target type phase according to declaration form field
It closes.
Data obtaining module 40 is generated, for obtaining the modification information of the target declaration form page, the change of the target declaration form page
Information includes target target type and target typesetting type.
Target target template obtains module 50, for obtaining target mark corresponding with target target type from target template
Template.
Target declaration form page generation module 60, for raw according to common template, target target template and target typesetting type
At the target declaration form page, wherein common template, target target template and target typesetting type are stored using YAML form.
Optionally, declaration form field establish module 10 include field information acquiring unit, judging unit, the first determination unit and
Second determination unit.
Field information acquiring unit establishes initial protect according to field information for obtaining field information relevant to declaration form
Individual character section, wherein field information includes field name, field type, field number and field typing type.
Judging unit judges initial declaration form field with the presence or absence of son for reading base data table according to base data table
N-th-trem relation n, wherein base data table stores subitem information and preset subitem relationship.
First determination unit, for if it exists, then according to the initial declaration form field of subitem information update, obtaining declaration form field.
Second determination unit is used for if it does not exist, then using initial declaration form field as declaration form field.
Optionally, target template generation module 30 include target field acquiring unit, template show attribute determining unit and
Target template generation unit.
Target field acquiring unit, for obtaining target field from declaration form field according to target type.
Template shows attribute determining unit, for obtaining the selection instruction of user's input, determines template according to selection instruction
Show attribute, wherein template shows that attribute refers to attribute relevant to the displaying of target template.
Target template generation unit, for showing that attribute generates one or more target moulds according to target field and template
Plate.
Optionally, declaration form page change device further includes level-one mark acquiring unit and second level mark acquiring unit.
Level-one mark acquiring unit, for obtaining level-one mark, level-one mark is related to target template.
Second level mark acquiring unit is identified for obtaining second level corresponding with target type according to level-one mark encryption.
Optionally, it includes target target type second level mark acquiring unit, target mark that target target template, which obtains module 50,
Type level-one mark acquiring unit and target template acquiring unit.
Target target type second level mark acquiring unit, for obtaining the corresponding second level mark of target target type;
Target target type level-one mark acquiring unit, for being solved to target target type corresponding second level mark
It is close, obtain level-one mark.
Target template acquiring unit, it is corresponding with target target type for being obtained from target template according to first identifier
Target target template.
Optionally, target declaration form page generation module 60 includes converting unit and target declaration form page generating unit.
Converting unit, for common template, target target template and target typesetting type to be converted to corresponding hypertext
Markup language.
Target declaration form page generating unit, for generating target declaration form using front end frame according to hypertext markup language
The page.
In embodiments of the present invention, declaration form field is initially set up, which can be suitable for the different declaration form pages,
Meet the primary demand of declaration form page development;Common template is generated then according to declaration form field and is generated relevant to target type
Content of pages identical in the declaration form page can be indicated, by the declaration form page by target template by way of common template
In different content of pages be based on target template be indicated, for realize the declaration form page it is flexible change provide realization base
Plinth;Then the modification information of the target declaration form page is obtained, which includes target target type and target typesetting type, energy
It is enough that user is known to the change demand of the declaration form page, to be modified in time to the declaration form page based on the modification information at any time;So
Target target template corresponding with target target type is obtained from target template afterwards, can accurately be obtained and change demand phase
Corresponding target target template guarantees the accuracy of declaration form page change;Finally according to common template, target target template and mesh
It marks typesetting type and generates the target declaration form page, wherein common template, target target template and target typesetting type use YAML shape
Formula storage is stored the readability height so that common template, target target template and target typesetting type using YAML form, helped
Default template is managed from visual angle in user, according to common template, target target template and target typesetting type
It can flexibly, accurately and efficiently realize the change of the declaration form page.
The present embodiment provides a computer readable storage medium, computer journey is stored on the computer readable storage medium
Sequence realizes declaration form page variation in embodiment when the computer program is executed by processor, different herein to avoid repeating
One repeats.Alternatively, realizing in embodiment each module in declaration form page change device/mono- when the computer program is executed by processor
The function of member does not repeat one by one herein to avoid repeating.
Fig. 3 is the schematic diagram for the computer equipment that one embodiment of the invention provides.As shown in figure 3, the calculating of the embodiment
Machine equipment 70 includes: processor 71, memory 72 and is stored in the calculating that can be run in memory 72 and on processor 71
Machine program 73 realizes the declaration form page variation in embodiment, to avoid when the computer program 73 is executed by processor 71
It repeats, does not repeat one by one herein.Alternatively, realizing that the declaration form page becomes in embodiment when the computer program 73 is executed by processor 71
The function of each model/unit does not repeat one by one herein in more device to avoid repeating.
Computer equipment 70 can be desktop PC, notebook, palm PC and cloud server etc. and calculate equipment.
Computer equipment 70 may include, but be not limited only to, processor 71, memory 72.It will be understood by those skilled in the art that Fig. 3 is only
It is only the example of computer equipment 70, does not constitute the restriction to computer equipment 70, may include more more or less than illustrating
Component, perhaps combine certain components or different components, for example, computer equipment can also include input-output equipment,
Network access equipment, bus etc..
Alleged processor 71 can be central processing unit (Central Processing Unit, CPU), can also be
Other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit
(Application Specific Integrated Circuit, ASIC), field programmable gate array (Field-
Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,
Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor
Deng.
Memory 72 can be the internal storage unit of computer equipment 70, such as the hard disk or interior of computer equipment 70
It deposits.Memory 72 is also possible to the plug-in type being equipped on the External memory equipment of computer equipment 70, such as computer equipment 70
Hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card
(Flash Card) etc..Further, memory 72 can also both including computer equipment 70 internal storage unit and also including
External memory equipment.Memory 72 is for storing other programs and data needed for computer program and computer equipment.It deposits
Reservoir 72 can be also used for temporarily storing the data that has exported or will export.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each function
Can unit, module division progress for example, in practical application, can according to need and by above-mentioned function distribution by different
Functional unit, module are completed, i.e., the internal structure of device are divided into different functional unit or module, to complete above description
All or part of function.
The above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although with reference to the foregoing embodiments
Invention is explained in detail, those skilled in the art should understand that: it still can be to aforementioned each implementation
Technical solution documented by example is modified or equivalent replacement of some of the technical features;And these modification or
Replacement, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution should all include
Within protection scope of the present invention.
Claims (10)
1. a kind of declaration form page variation, which is characterized in that the described method includes:
Establish declaration form field;
Common template is generated according to the declaration form field;
Target template is generated according to the declaration form field, the target template is related to target type;
The modification information of the target declaration form page is obtained, the modification information of the target declaration form page includes target target type and mesh
Mark typesetting type;
Target target template corresponding with the target target type is obtained from the target template;
The target declaration form page is generated according to the common template, the target target template and the target typesetting type,
Wherein, the common template, the target target template and the target typesetting type are stored using YAML form.
2. the method according to claim 1, wherein described establish declaration form field, comprising:
Field information relevant to declaration form is obtained, initial declaration form field is established according to the field information, wherein the field letter
Breath includes field name, field type, field number and field typing type;
Base data table is read, judges that the initial declaration form field whether there is subitem relationship according to the base data table,
In, the base data table stores subitem information and the preset subitem relationship;
If it exists, then the initial declaration form field according to the subitem information update, obtains the declaration form field;
If it does not exist, then using the initial declaration form field as the declaration form field.
3. the method according to claim 1, wherein described generate target template, packet according to the declaration form field
It includes:
According to the target type, target field is obtained from the declaration form field;
The selection instruction for obtaining user's input determines that template shows attribute according to the selection instruction, wherein the template is shown
Attribute refers to attribute relevant to the target template displaying;
Show that attribute generates one or more target templates according to the target field and the template.
4. the method according to claim 1, wherein being obtained and the target from the target template described
Before the corresponding target target template of target type, further includes:
Level-one mark is obtained, the level-one mark is related to the target template;
Second level mark corresponding with the target type is obtained according to level-one mark encryption;
It is described that target target template corresponding with the target target type is obtained from the target template, comprising:
Obtain the corresponding second level mark of the target target type;
The target target type corresponding second level mark is decrypted, the level-one mark is obtained;
Target target template corresponding with the target target type is obtained from the target template according to the first identifier.
5. the method according to claim 1, which is characterized in that it is described according to the common template, it is described
Target target template and the target typesetting type generate the target declaration form page, comprising:
The common template, the target target template and the target typesetting type are converted into corresponding hypertext markup language
Speech;
According to the hypertext markup language, the target declaration form page is generated using front end frame.
6. a kind of declaration form page change device, which is characterized in that described device includes:
Declaration form field establishes module, for establishing declaration form field;
Common template generation module, for generating common template according to the declaration form field;
Target template generation module, for generating target template, the target template and target type according to the declaration form field
It is related;
Data obtaining module is generated, for obtaining the modification information of the target declaration form page, the change letter of the target declaration form page
Breath includes target target type and target typesetting type;
Target target template obtains module, for obtaining target corresponding with the target target type from the target template
Target template;
Target declaration form page generation module, for according to the common template, the target target template and the target typesetting
Type generates the target declaration form page, wherein the common template, the target target template and the target typesetting type
It is stored using YAML form.
7. device according to claim 6, which is characterized in that the declaration form field establishes module, comprising:
Field information acquiring unit establishes initial protect according to the field information for obtaining field information relevant to declaration form
Individual character section, wherein the field information includes field name, field type, field number and field typing type;
Judging unit judges whether the initial declaration form field deposits according to the base data table for reading base data table
In subitem relationship, wherein the base data table stores subitem information and the preset subitem relationship;
First determination unit, for if it exists, then the initial declaration form field according to the subitem information update, to obtain the guarantor
Individual character section;
Second determination unit is used for if it does not exist, then using the initial declaration form field as the declaration form field.
8. device according to claim 6, which is characterized in that the target template generation module, comprising:
Target field acquiring unit, for obtaining target field from the declaration form field according to the target type;
Template shows attribute determining unit, for obtaining the selection instruction of user's input, determines template according to the selection instruction
Show attribute, wherein the template shows that attribute refers to attribute relevant to the target template displaying;
Target template generation unit, for showing that attribute generates described in one or more according to the target field and the template
Target template.
9. a kind of computer equipment, including memory, processor and storage are in the memory and can be in the processor
The computer program of upper operation, which is characterized in that the processor realized when executing the computer program as claim 1 to
The step of any one of 5 declaration form page variation.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists
In realizing the declaration form page variation as described in any one of claim 1 to 5 when the computer program is executed by processor
Step.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910417900.9A CN110347984B (en) | 2019-05-20 | 2019-05-20 | Policy page changing method and device, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910417900.9A CN110347984B (en) | 2019-05-20 | 2019-05-20 | Policy page changing method and device, computer equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110347984A true CN110347984A (en) | 2019-10-18 |
CN110347984B CN110347984B (en) | 2024-05-03 |
Family
ID=68173905
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910417900.9A Active CN110347984B (en) | 2019-05-20 | 2019-05-20 | Policy page changing method and device, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110347984B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111221518A (en) * | 2019-11-08 | 2020-06-02 | 深圳市彬讯科技有限公司 | Script generation method, device, equipment and computer storage medium |
CN111443909A (en) * | 2020-03-23 | 2020-07-24 | 北京百度网讯科技有限公司 | Method and device for generating page |
CN111598707A (en) * | 2020-04-16 | 2020-08-28 | 中国人民财产保险股份有限公司 | Page generation method and electronic equipment |
CN114047999A (en) * | 2021-12-17 | 2022-02-15 | 携程旅游网络技术(上海)有限公司 | Page configuration method, system, electronic equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107886439A (en) * | 2017-12-21 | 2018-04-06 | 中国平安财产保险股份有限公司 | Insurance products development approach, device, equipment and computer-readable recording medium |
CN108647076A (en) * | 2018-05-14 | 2018-10-12 | 阿里巴巴集团控股有限公司 | A kind of page processing method, device and equipment |
CN108829885A (en) * | 2018-06-27 | 2018-11-16 | 珠海市君天电子科技有限公司 | Page generation method, device, server, electronic equipment and storage medium |
CN109376150A (en) * | 2018-09-03 | 2019-02-22 | 中国平安财产保险股份有限公司 | Methods of product development, device, computer equipment and storage medium |
CN109446499A (en) * | 2018-09-25 | 2019-03-08 | 平安科技(深圳)有限公司 | Contract template generation method, device, equipment and medium based on XML |
-
2019
- 2019-05-20 CN CN201910417900.9A patent/CN110347984B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107886439A (en) * | 2017-12-21 | 2018-04-06 | 中国平安财产保险股份有限公司 | Insurance products development approach, device, equipment and computer-readable recording medium |
CN108647076A (en) * | 2018-05-14 | 2018-10-12 | 阿里巴巴集团控股有限公司 | A kind of page processing method, device and equipment |
CN108829885A (en) * | 2018-06-27 | 2018-11-16 | 珠海市君天电子科技有限公司 | Page generation method, device, server, electronic equipment and storage medium |
CN109376150A (en) * | 2018-09-03 | 2019-02-22 | 中国平安财产保险股份有限公司 | Methods of product development, device, computer equipment and storage medium |
CN109446499A (en) * | 2018-09-25 | 2019-03-08 | 平安科技(深圳)有限公司 | Contract template generation method, device, equipment and medium based on XML |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111221518A (en) * | 2019-11-08 | 2020-06-02 | 深圳市彬讯科技有限公司 | Script generation method, device, equipment and computer storage medium |
CN111443909A (en) * | 2020-03-23 | 2020-07-24 | 北京百度网讯科技有限公司 | Method and device for generating page |
CN111443909B (en) * | 2020-03-23 | 2023-09-29 | 北京百度网讯科技有限公司 | Method and device for generating page |
CN111598707A (en) * | 2020-04-16 | 2020-08-28 | 中国人民财产保险股份有限公司 | Page generation method and electronic equipment |
CN111598707B (en) * | 2020-04-16 | 2023-06-13 | 中国人民财产保险股份有限公司 | Page generation method and electronic equipment |
CN114047999A (en) * | 2021-12-17 | 2022-02-15 | 携程旅游网络技术(上海)有限公司 | Page configuration method, system, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN110347984B (en) | 2024-05-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110347984A (en) | Declaration form page variation, device, computer equipment and storage medium | |
CN110347953A (en) | Page generation method, device, computer equipment and storage medium | |
EP3433732B1 (en) | Converting visual diagrams into code | |
CN107644286B (en) | Workflow processing method and device | |
CN106155686A (en) | Interface creating method, device and system | |
CN109840257B (en) | Database query method, database query device, computer device and readable storage medium | |
CN101158940B (en) | Method and device for dwindling character stuffing in target region | |
KR102248823B1 (en) | System, method and application for data visual service | |
US10331756B2 (en) | Accessibility tagger for non-accessibility enabled webpages | |
CN110472109B (en) | Dynamic data quality analysis method and platform system | |
CN112068911A (en) | Method, device, system, equipment and medium for generating electronic form | |
US9934291B2 (en) | Dynamic presentation of a results set by a form-based software application | |
CN109857964B (en) | Thermodynamic diagram drawing method and device for page operation, storage medium and processor | |
CN115712422A (en) | Form page generation method and device, computer equipment and storage medium | |
CN111428464A (en) | Report file generation method and device, computer equipment and storage medium | |
CN109213465B (en) | Multi-display identification method and system for education operation system | |
CN102073688A (en) | Device for converting client form to Web page and method thereof | |
CN112068828A (en) | Title control generation method, device, system, equipment and medium | |
US9176746B2 (en) | Data templates in user interface elements | |
CN110347379A (en) | Processing method, device and the storage medium of combined crowdsourcing topic | |
CN115756692A (en) | Method for automatically combining and displaying pages based on style attributes and related equipment thereof | |
CN111079392B (en) | Automatic filling method and device for web form, storage medium and electronic equipment | |
CN110020342A (en) | The processing method and processing device of data | |
CN113239670A (en) | Method and device for uploading service template, computer equipment and storage medium | |
CN113704650A (en) | Information display method, device, system, 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |