CN110347984B - Policy page changing method and device, computer equipment and storage medium - Google Patents

Policy page changing method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN110347984B
CN110347984B CN201910417900.9A CN201910417900A CN110347984B CN 110347984 B CN110347984 B CN 110347984B CN 201910417900 A CN201910417900 A CN 201910417900A CN 110347984 B CN110347984 B CN 110347984B
Authority
CN
China
Prior art keywords
target
policy
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.)
Active
Application number
CN201910417900.9A
Other languages
Chinese (zh)
Other versions
CN110347984A (en
Inventor
黄建虎
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Property and Casualty Insurance Company of China Ltd
Original Assignee
Ping An Property and Casualty Insurance Company of China 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 Ping An Property and Casualty Insurance Company of China Ltd filed Critical Ping An Property and Casualty Insurance Company of China Ltd
Priority to CN201910417900.9A priority Critical patent/CN110347984B/en
Publication of CN110347984A publication Critical patent/CN110347984A/en
Application granted granted Critical
Publication of CN110347984B publication Critical patent/CN110347984B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/80Information 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/81Indexing, e.g. XML tags; Data structures therefor; Storage structures
    • 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
    • G06QINFORMATION 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/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/08Insurance

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 policy page changing method, a policy page changing device, computer equipment and a storage medium, and relates to the field of research and development management. The policy page changing method comprises the following steps: establishing a policy field; generating a general template according to the policy field; generating a target template according to the policy field, wherein the target template is related to a target type; acquiring change information of a target policy page, wherein the change information of the target policy page comprises a target type and a target typesetting type; obtaining a target template corresponding to the type of the target from the target templates; and generating a target policy page according to the universal template, the target template and the target typesetting type, wherein the universal template, the target template and the target typesetting type are stored in a YAML form. The policy page changing method can realize the rapid change of the policy page.

Description

Policy page changing method and device, computer equipment and storage medium
[ Field of technology ]
The present invention relates to the field of research and development management, and in particular, to a policy page changing method, device, computer device, and storage medium.
[ Background Art ]
Front-end development is the process of creating a front-end interface, such as a web page or application, for presentation to a user. At present, most front-end pages developed in the protection field can only adapt to fixed business requirements and cannot be applied to complex business scenes. At present, for complex business scenes, the code needs to be rewritten every time the policy pages are changed, the efficiency of changing the policy pages is too low, and the requirement of frequently changing the policy pages is difficult to meet.
[ Invention ]
In view of the above, the embodiments of the present invention provide a policy page changing method, device, computer apparatus and storage medium, which are used for solving the problem that the current policy page changing efficiency is too low.
In a first aspect, an embodiment of the present invention provides a policy page changing method, including:
establishing a policy field;
Generating a general template according to the policy field;
generating a target template according to the policy field, wherein the target template is related to a target type;
acquiring change information of a target policy page, wherein the change information of the target policy page comprises a target type and a target typesetting type;
Obtaining a target template corresponding to the type of the target from the target templates;
And generating the target policy page according to the universal template, the target template and the target typesetting type, wherein the universal template, the target template and the target typesetting type are stored in a YAML form.
Aspects and any one of the possible implementations as described above, further provide an implementation, where the establishing the policy field includes:
Acquiring field information related to a policy, and establishing an initial policy field according to the field information, wherein the field information comprises a field name, a field type, a field number and a field entry type;
A basic data table is read, and whether the sub-item relation exists in the initial policy field is judged according to the basic data table, wherein the basic data table stores sub-item information and the preset sub-item relation;
if yes, updating the initial policy field according to the sub item information to obtain the policy field;
and if not, taking the initial policy field as the policy field.
Aspects and any possible implementation manner as described above, further provide an implementation manner, where the generating a target template according to the policy field includes:
Acquiring a target field from the policy field according to the target type;
acquiring a selection instruction input by a user, and determining a template display attribute according to the selection instruction, wherein the template display attribute refers to an attribute related to the target template display;
One or more of the subject templates are generated from the subject fields and the template presentation properties.
In the aspect and any possible implementation manner described above, there is further provided an implementation manner, before the obtaining, from the target template, a target template corresponding to the target type, further including:
acquiring a first-level identification, wherein the first-level identification is related to the target template;
encrypting according to the primary identifier to obtain a secondary identifier corresponding to the target type;
the obtaining the target template corresponding to the target type from the target templates comprises the following steps:
acquiring a secondary identifier corresponding to the type of the target object;
decrypting the secondary identifier corresponding to the type of the target object to obtain the primary identifier;
And acquiring a target template corresponding to the target type from the target templates according to the first identification.
In the aspect and any possible implementation manner described above, there is further provided an implementation manner, where the generic template, the target template and the target typesetting type are stored in a YAML form, and the generating a target policy page according to the generic template, the target template and the target typesetting type includes:
converting the universal template, the target template and the target typesetting type into corresponding hypertext markup language;
And generating the target policy page by adopting a front end framework according to the hypertext markup language.
In a second aspect, an embodiment of the present invention provides a policy page changing device, including:
the policy field establishing module is used for establishing a policy field;
The general template generation module is used for generating a general template according to the policy field;
the target template generation module is used for generating a target template according to the policy field, wherein the target template is related to a target type;
The generation information acquisition module is used for acquiring the change information of the target policy page, wherein the change information of the target policy page comprises a target type and a target typesetting type;
The target template acquisition module is used for acquiring a target template corresponding to the type of the target from the target templates;
And the target policy page generation module is used for generating the target policy page according to the universal template, the target template and the target typesetting type, wherein the universal template, the target template and the target typesetting type are stored in a YAML form.
In a third aspect, a computer device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, the processor implementing the steps of the policy page altering method described above when the computer program is executed.
In a fourth aspect, embodiments of the present invention provide a computer-readable storage medium comprising: and a computer program which, when executed by the processor, implements the steps of the policy page changing method described above.
In the embodiment of the invention, firstly, the policy field is established, and the policy field can be suitable for different policy pages to meet the basic requirement of the policy page development; then generating a general template and a target template related to the target type according to the policy field, expressing the same page content in the policy page in a general template mode, expressing different page content in the policy page based on the target template, and providing an implementation basis for realizing flexible change of the policy page; then acquiring change information of the target policy pages, wherein the change information comprises a target type and a target typesetting type, and the change information can be based on the change information to acquire the change requirement of a user on the policy pages at any time and change the policy pages in time; then, the target template corresponding to the type of the target is obtained from the target templates, so that the target templates corresponding to the changing requirements can be accurately obtained, and the accuracy of changing the policy pages is ensured; and finally, generating a target policy page according to the universal template, the target template and the target typesetting type, wherein the universal template, the target template and the target typesetting type are stored in a YAML form, and the YAML form is used for storing the universal template, the target template and the target typesetting type, so that the readability of the universal template, the target template and the target typesetting type is high, the user can manage the preset template from a visual angle, and the policy page can be flexibly, accurately and efficiently changed according to the universal template, the target template and the target typesetting type.
[ Description of the drawings ]
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a policy page change method according to an embodiment of the invention;
FIG. 2 is a schematic diagram of a policy page changing apparatus according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a computer device in accordance with an embodiment of the present invention.
[ Detailed description ] of the invention
For a better understanding of the technical solution of the present invention, the following detailed description of the embodiments of the present invention refers to the accompanying drawings.
It should be understood that the described embodiments are merely some, but not all, embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The terminology used in the embodiments of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in this application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be understood that the term "and/or" as used herein is merely one of the same fields describing the associated object, meaning that there may be three relationships, e.g., a and/or B, may represent: a exists alone, A and B exist together, and B exists alone. In addition, the character "/" herein generally indicates that the front and rear associated objects are an "or" relationship.
It should be understood that although the terms first, second, third, etc. may be used to describe the preset ranges, etc. in the embodiments of the present invention, these preset ranges should not be limited to these terms. These terms are only used to distinguish one preset range from another. For example, a first preset range may also be referred to as a second preset range, and similarly, a second preset range may also be referred to as a first preset range without departing from the scope of embodiments of the present invention.
Depending on the context, the word "if" as used herein may be interpreted as "at … …" or "at … …" or "in response to a determination" or "in response to a detection". Similarly, the phrase "if determined" or "if detected (stated condition or event)" may be interpreted as "when determined" or "in response to determination" or "when detected (stated condition or event)" or "in response to detection (stated condition or event), depending on the context.
Fig. 1 shows a flowchart of the policy page changing method in the present embodiment. The policy page changing method can be applied to a policy page changing management platform, and can be realized by adopting the policy page changing management platform when the policy page is changed. The policy page change management platform can be particularly applied to computer equipment, wherein the computer equipment can be used for carrying out man-machine interaction with a user, and the equipment comprises but is not limited to a computer, a smart phone, a tablet and the like. As shown in fig. 1, the policy page changing method includes the following steps:
S10: and establishing a policy field.
The policy field refers to a field related to development requirements of a policy page.
In an embodiment, the fields required for the development of the policy pages can be summarized and stored as much as possible by establishing the policy fields, so that the policy pages can be flexibly and efficiently changed based on the established policy fields in the subsequent process.
Further, in step S10, a policy field is established, which specifically includes:
s11: acquiring field information related to the policy, and establishing an initial policy field according to the field information, wherein the field information comprises a field name, a field type, a field number and a field entry type.
It will be appreciated that a policy field includes a plurality of field information, which has its role and meaning. For example, when the policy page is a page related to security insurance (hereinafter referred to as "learning level insurance") of a pupil, field information such as field name, field type, field number, field entry type, field entry check rule, etc. of the policy field related to learning level insurance needs to be acquired. It can be understood that the insurance policy page of the learning flat insurance needs to be added with a plurality of insurance policy fields, and corresponding field names are also correspondingly plurality, and the field names can be specifically a school county, a type of a student to be insured, a school name, a grade and a class, and the field types corresponding to the field names can be classified as the field types of the student. The field number may specifically be an ID number of a field, which may be automatically generated according to the system time. The field entry types may include a value entry type, a text entry type, a drop-down option entry type, and the like. The field entry checking rules can specifically include checking rules such as whether the field is a mandatory item, whether the field exceeds a preset length, whether the field contains letters and numbers at the same time, and the like. It can be seen that adding a policy field requires that the field information of the policy field be acquired accordingly.
In one embodiment, an initial policy field is established according to the field information, and the first batch entry of the policy field is completed. The field information in the embodiment can define the policy fields from different angles, so that the richness of the policy fields can be effectively improved, and the policy fields can be suitable for more business scenes.
S12: and reading a basic data table, and judging whether the initial policy field has a sub-item relationship according to the basic data table, wherein the basic data table stores sub-item information and a preset sub-item relationship.
It can be understood that, when the policy fields are established, more resources are consumed in a mode of adding one by one, and for this purpose, the automatic generation and addition of the policy fields can be realized by reading the basic data table. The basic data table stores sub-item relations and sub-item information about policy fields, wherein the basic data table can be specifically established according to the sub-item relations and the sub-item information about policy fields recorded in the insurance field.
In one embodiment, the base data table is read, and whether the child relationship exists in the initial policy field is determined according to the base data table. If the sub-item relation related to the policy field is recorded in the basic data table, corresponding sub-item information is acquired according to the sub-item relation, so that the policy field is automatically generated according to the sub-item information.
S13: if the sub item information exists, the initial policy field is updated according to the sub item information, and the policy field is obtained.
In an embodiment, if the sub-item relation related to the policy field exists, a new policy field is automatically generated according to the sub-item information, and the second batch entry of the policy field is completed. The method can automatically generate and add the policy fields according to the sub-item relations by adopting the basic data table mode, and improves the adding efficiency of the policy fields.
S14: if not, the initial policy field is used as the policy field.
In an embodiment, if there is no child relation related to the policy field, the second batch entry of the policy field is not needed, and the initial policy field can be directly used as the policy field.
In steps S11-S14, a specific implementation manner of building the policy fields is provided, the initial policy fields are generated by acquiring field information, and then the policy fields related to the sub-item relationships are added by adopting the basic data table, so that the building efficiency of the policy fields is effectively improved.
S20: and generating a general template according to the policy field.
Wherein the universal template represents a template which can be used by different policy pages.
It can be understood that in the process of developing and maintaining the policy pages at present, the policy pages are often required to be changed due to the requirements of different business scenes, so that the policy pages need to be re-developed from the beginning each time, and huge resource waste is caused. It can be understood that, for the insurance field, the same page content exists in the policy pages, the policy fields corresponding to the page content are the same, for example, the policy fields related to the information such as the user name, the user gender, the user identification card number, the user account number, the user residence address and the like, which are the information required to be input in different policy pages, and for the same page content in the policy pages, a general template can be generated by using the policy fields, through which the same page content in the policy pages can be stored, and when the policy pages are changed each time, the same page content in the policy pages can be quickly generated according to the general template, so that the policy page changing efficiency is improved.
S30: a target template is generated from the policy field, the target template being associated with a target type.
Where a subject template refers to a template that can be used in one or more policy pages in relation to the subject type. The type of the target is a classification type obtained by dividing based on different targets. The standard refers to rights and obligations existing between two parties of a contract, such as cargo delivery, labor delivery, engineering project delivery, etc. It is a necessary condition for contract establishment, and is a necessary term for all contracts. It will be appreciated that the types of targets for different policy pages are different, such as in a policy page relating to car insurance and a policy page relating to life insurance, and thus the types of targets for both naturally differ.
It should be noted that, in addition to the template including the policy fields related to the target, since different target types sometimes need to be filled with more input information, in order to enable the coverage of the target template to be larger, the policy fields corresponding to these input information will also be regarded as the target template. For example, when the target type of the policy field in an insurance product is a learning level insurance, the insurance product includes, in addition to the corresponding policy field of the target, policy fields such as school county, insurance student type, school name, grade, class, etc., and these types of entry information to be filled in due to the target type can also be used as target templates. It will be appreciated that one target type may correspond to multiple target templates (it may be understood that there are multiple blocks of content to be entered on the policy page) at the same time, and one target template may be applied to multiple target types at the same time (e.g., the target template consisting of the fields named school county, insured student type, school name, level, class, etc. policy fields above may be applied to a policy page whose target type is teacher safe insurance, etc.).
In an embodiment, the policy field is a field related to development requirements of the policy page, including policy fields in different policy pages that form different page contents, and a target template can be generated according to the policy fields, so as to provide an implementation basis for implementing a policy page change according to the target template.
Further, in step S30, a target template is generated according to the policy field, which specifically includes:
S31: the target field is obtained from the policy field according to the target type.
The target fields refer to policy fields corresponding to target types, and different target types correspond to different policy fields.
In one embodiment, a target field corresponding to the target type is obtained from the policy field according to the target type, and a corresponding target template is generated based on the target field.
S32: and acquiring a selection instruction input by a user, and determining a template display attribute according to the selection instruction, wherein the template display attribute refers to an attribute related to target template display.
Specifically, the template presentation attribute includes a policy field presentation order option, a policy field linefeed determination option, and a default setting option. The policy field display sequence option is used for providing a user-selectable display sequence of the policy fields on the policy page, the policy field line feed determination option is used for providing a user-selectable display sequence of the policy fields on the policy page, whether line feed is performed during the display of the policy page or not, the default setting option is used for providing a user-selectable default value for the display of the policy fields on the policy page, and the display mode of the policy template can be flexibly adjusted through the template adjustment option.
S33: one or more target templates are generated from the target fields and the template presentation properties.
Specifically, for the target field related to the target type, one or more target templates can be generated according to the template display attribute so as to meet the requirements in different service scenes, and the change of the policy page can be flexibly realized.
In steps S31-S33, a specific implementation manner of generating a target template is provided, and the target template is generated by acquiring a target field from a policy field and combining with a template display attribute, so that requirements under different business scenes can be met according to various target templates.
S40: and acquiring the change information of the target policy page, wherein the change information of the target policy page comprises the type of the target and the type of the target typesetting.
It will be appreciated that the policy page to be generated under a particular certain requirement is the target policy page.
The type of the target targets determines the page content to be displayed on the target policy page, and the type of the page typesetting determines the position distribution among the target templates on the target policy page on the policy page. Specifically, the type of layout may be defined in advance according to the layout set by the user, and the target type of layout is the type of layout under a specific certain requirement.
S50: a target template corresponding to the type of target is obtained from the target templates.
It can be understood that one target type may correspond to one or more target templates, for example, the target template is a target template related to the learning level insurance, and includes, in addition to the target template related to the learning level insurance, other target templates needing additional filling of input information, where the target template is changeable page content, and rapid change of the policy page can be achieved by using the target template.
Further, before step S50, that is, before the target template corresponding to the type of the target is acquired from the target templates, the method further includes:
s51: and obtaining a first-level identification, wherein the first-level identification is related to the target template.
The primary identification refers to identification capable of uniquely identifying the target template.
In one embodiment, a primary identifier may be provided for each target template to use the compact identifier to represent the target template. In particular, the primary identification may be stored in the form of a string.
S52: and encrypting according to the primary identifier to obtain a secondary identifier corresponding to the type of the target.
The secondary identifier refers to an identifier capable of uniquely identifying the type of the target.
It will be appreciated that one target type corresponds to one or more target templates, and each target template has its corresponding primary identifier, and in this embodiment, the primary identifier of each template is encrypted to obtain a secondary identifier corresponding to the target type. In particular, the encryption algorithm may be a user-predefined algorithm. The type of the target is represented by adopting a form of the secondary mark, the contained target template can be protected, the primary mark can be obtained by decrypting the secondary mark only by adopting a decryption algorithm corresponding to the encryption algorithm, and the specific target template is determined according to the primary mark.
In steps S51-S52, the primary identifier is used to represent the target template, and encryption is performed according to the primary identifier to obtain the secondary identifier representing the target type, so that the target template contained in the target type can be protected, and only the decryption algorithm is known to obtain the target template.
Obtaining a target template corresponding to the type of the target from the target templates, wherein the method comprises the following steps:
S53: and obtaining a secondary identifier corresponding to the type of the target object.
S54: and decrypting the secondary identifier corresponding to the type of the target object to obtain the primary identifier.
S55: and acquiring the target template corresponding to the type of the target from the target templates according to the first identification.
In steps S53-S55, a specific implementation manner of obtaining the target template is provided, a first-level identifier is obtained by decrypting a second-level identifier corresponding to the type of the target, and then the target template is obtained according to the first-level identifier, where the manner of obtaining the target template effectively limits the change of the policy page, which is equivalent to setting a layer of authority. In this embodiment, the template of the target can be determined quickly only by the type of the target.
S60: and generating a target policy page according to the universal template, the target template and the target typesetting type, wherein the universal template, the target template and the target typesetting type are stored in a YAML form.
Among them, YAML is a recursive abbreviation for "YAML isn't a Markup Language" (YAML is not a markup language). In developing this language, YAML means in essence: "Yet Another Markup Language" (again a markup language). YAML emphasizes centering on data, rather than on markup language, renaming with the use of a rebate. YAML is an intuitive data serialization format that can be recognized by a computer, is a programming language that is highly readable and easy to read by humans, and easy to interact with scripting languages for expressing data sequences. It can be understood that the general template, the target template and the target typesetting type stored in the YAML form have high readability, are beneficial to the management of users from the visual angle, and can improve the efficiency of generating the target policy pages.
It should be noted that, the generated target policy page is a policy page obtained by changing the original policy page, and is not a way of generating the target policy page by calling other websites. The method for generating the target policy pages can be used for rapidly changing the original policy pages through the universal template, the target template and the target typesetting type, the page changing process can be realized without manually modifying codes, complex service scenes can be met, and the policy page changing on a website is realized. Particularly, part of the rare page contents to be changed can be finely adjusted on the basis of codes corresponding to the universal template, the target template and the target typesetting type, and the quick change of the policy pages can be met.
Further, in step S60, a target policy page is generated according to the universal template, the target template and the target typesetting type, which specifically includes:
S61: and converting the universal template, the target template and the target typesetting type into corresponding hypertext markup language.
The hypertext markup language is an application under a standard universal markup language and is a programming language for web page production.
In one embodiment, the generic template, the target template and the target typesetting type are stored in a YAML form, and need to be converted into a programming language for web page production, namely a hypertext markup language, specifically, the conversion process can be implemented by adopting groovy script tools, wherein groovy is a agile dynamic language and a mature object-oriented programming language, can be used for object-oriented programming and can be used as a pure script language, and groovy is used without writing too much codes and has other characteristics in closure and dynamic language. groovy the scripting tool is a scripting tool created based on groovy that is able to quickly transform stored data from one particular form to another. Specifically, the groovy script tool in this embodiment is specifically configured to convert the generic template, the target template and the target typesetting type stored in the YAML format into a corresponding hypertext markup language.
S62: and generating a target policy page by adopting a front-end framework according to the hypertext markup language.
The front end framework is a framework tool for developing the front end page, and the front end framework such as node, js, angularJS, and reaction can improve the aesthetic property of the interface and the efficiency of interface development.
In steps S61-S62, the quick change of the policy page can be realized by performing the conversion of the hypertext markup language for the universal template, the target template and the target typesetting type, and performing the automatic generation of the target policy page by using the front end frame.
In the embodiment of the invention, firstly, the policy field is established, and the policy field can be suitable for different policy pages to meet the basic requirement of the policy page development; then generating a general template and a target template related to the target type according to the policy field, expressing the same page content in the policy page in a general template mode, expressing different page content in the policy page based on the target template, and providing an implementation basis for realizing flexible change of the policy page; then acquiring change information of the target policy pages, wherein the change information comprises a target type and a target typesetting type, and the change information can be based on the change information to acquire the change requirement of a user on the policy pages at any time and change the policy pages in time; then, the target template corresponding to the type of the target is obtained from the target templates, so that the target templates corresponding to the changing requirements can be accurately obtained, and the accuracy of changing the policy pages is ensured; and finally, generating a target policy page according to the universal template, the target template and the target typesetting type, wherein the universal template, the target template and the target typesetting type are stored in a YAML form, and the YAML form is used for storing the universal template, the target template and the target typesetting type, so that the readability of the universal template, the target template and the target typesetting type is high, the user can manage the preset template from a visual angle, and the policy page can be flexibly, accurately and efficiently changed according to the universal template, the target template and the target typesetting type.
It should be understood that the sequence number of each step in the foregoing embodiment does not mean that the execution sequence of each process should be determined by the function and the internal logic, and should not limit the implementation process of the embodiment of the present invention.
Based on the policy page changing method provided in the embodiment, the embodiment of the invention further provides a device embodiment for implementing each step and method in the method embodiment.
Fig. 2 shows a schematic block diagram of a policy page changing apparatus in one-to-one correspondence with a policy page changing method in the embodiment. As shown in fig. 2, the policy page changing apparatus includes a policy field creation module 10, a general template generation module 20, a target template generation module 30, a generation information acquisition module 40, a target template acquisition module 50, and a target policy page generation module 60. The implementation functions of the policy field building module 10, the general template generating module 20, the target template generating module 30, the generated information acquiring module 40, the target template acquiring module 50 and the target policy page generating module 60 correspond to the steps corresponding to the policy page changing method in the embodiment one by one, so that details of the embodiment are not described in detail one by one for avoiding redundant description.
The policy field establishing module 10 is configured to establish a policy field.
The universal template generating module 20 is configured to generate a universal template according to the policy field.
The target template generating module 30 is configured to generate a target template according to the policy field, where the target template is related to a target type.
The generated information acquiring module 40 is configured to acquire change information of a target policy page, where the change information of the target policy page includes a target type and a target typesetting type.
The target template obtaining module 50 is configured to obtain a target template corresponding to the type of the target from the target templates.
The target policy page generating module 60 is configured to generate a target policy page according to the universal template, the target template and the target typesetting type, where the universal template, the target template and the target typesetting type are stored in a YAML form.
Alternatively, the policy field creation module 10 includes a field information acquisition unit, a judgment unit, a first determination unit, and a second determination unit.
The system comprises a field information acquisition unit, a field information input unit and a field information input unit, wherein the field information acquisition unit is used for acquiring field information related to a policy, and establishing an initial policy field according to the field information, wherein the field information comprises a field name, a field type, a field number and a field entry type.
The judging unit is used for reading the basic data table and judging whether the initial policy field has a sub-item relationship according to the basic data table, wherein the basic data table stores the sub-item information and the preset sub-item relationship.
And the first determining unit is used for updating the initial policy field according to the sub item information if the sub item information exists, so as to obtain the policy field.
And the second determining unit is used for taking the initial policy field as the policy field if the initial policy field does not exist.
Alternatively, the target template generation module 30 includes a target field acquisition unit, a template presentation attribute determination unit, and a target template generation unit.
And the target field acquisition unit is used for acquiring the target field from the policy field according to the target type.
The template presentation attribute determining unit is used for acquiring a selection instruction input by a user and determining a template presentation attribute according to the selection instruction, wherein the template presentation attribute refers to an attribute related to target template presentation.
And the target template generating unit is used for generating one or more target templates according to the target fields and the template presentation attributes.
Optionally, the policy page changing device further includes a primary identifier acquiring unit and a secondary identifier acquiring unit.
The primary identification acquisition unit is used for acquiring primary identifications, and the primary identifications are related to the target templates.
The secondary identification acquisition unit is used for encrypting according to the primary identification to obtain a secondary identification corresponding to the type of the target.
Optionally, the target template acquiring module 50 includes a target type secondary identifier acquiring unit, a target type primary identifier acquiring unit, and a target template acquiring unit.
The target type secondary identification acquisition unit is used for acquiring a secondary identification corresponding to the target type;
the target type primary identifier obtaining unit is used for decrypting the secondary identifier corresponding to the target type to obtain the primary identifier.
And the target template acquisition unit is used for acquiring the target template corresponding to the type of the target from the target templates according to the first identification.
Alternatively, the target policy page generation module 60 includes a conversion unit and a target policy page generation unit.
And the conversion unit is used for converting the universal template, the target template and the target typesetting type into corresponding hypertext markup language.
And the target policy page generation unit is used for generating a target policy page by adopting the front end framework according to the hypertext markup language.
In the embodiment of the invention, firstly, the policy field is established, and the policy field can be suitable for different policy pages to meet the basic requirement of the policy page development; then generating a general template and a target template related to the target type according to the policy field, expressing the same page content in the policy page in a general template mode, expressing different page content in the policy page based on the target template, and providing an implementation basis for realizing flexible change of the policy page; then acquiring change information of the target policy pages, wherein the change information comprises a target type and a target typesetting type, and the change information can be based on the change information to acquire the change requirement of a user on the policy pages at any time and change the policy pages in time; then, the target template corresponding to the type of the target is obtained from the target templates, so that the target templates corresponding to the changing requirements can be accurately obtained, and the accuracy of changing the policy pages is ensured; and finally, generating a target policy page according to the universal template, the target template and the target typesetting type, wherein the universal template, the target template and the target typesetting type are stored in a YAML form, and the YAML form is used for storing the universal template, the target template and the target typesetting type, so that the readability of the universal template, the target template and the target typesetting type is high, the user can manage the preset template from a visual angle, and the policy page can be flexibly, accurately and efficiently changed according to the universal template, the target template and the target typesetting type.
The present embodiment provides a computer readable storage medium, on which a computer program is stored, where the computer program when executed by a processor implements the policy page changing method in the embodiment, and in order to avoid repetition, details are not described herein. Or the computer program when executed by the processor implements the functions of each module/unit in the policy page changing device in the embodiment, and in order to avoid repetition, details are not described herein.
Fig. 3 is a schematic diagram of a computer device according to an embodiment of the present invention. As shown in fig. 3, the computer device 70 of this embodiment includes: the processor 71, the memory 72, and the computer program 73 stored in the memory 72 and capable of running on the processor 71, the computer program 73 when executed by the processor 71 implements the policy page changing method in the embodiment, and is not repeated here. Or the computer program 73, when executed by the processor 71, implements the functions of each model/unit in the policy page altering device in the embodiment, and is not described herein in detail for avoiding repetition.
The computer device 70 may be a desktop computer, a notebook computer, a palm top computer, a cloud server, or the like. Computer device 70 may include, but is not limited to, a processor 71, a memory 72. It will be appreciated by those skilled in the art that fig. 3 is merely an example of a computer device 70 and is not intended to limit the computer device 70, and may include more or fewer components than shown, or may combine certain components, or different components, e.g., a computer device may also include an input-output device, a network access device, a bus, etc.
The Processor 71 may be a central processing unit (Central Processing Unit, CPU), other general purpose Processor, digital signal Processor (DIGITAL SIGNAL Processor, DSP), application SPECIFIC INTEGRATED Circuit (ASIC), field-Programmable gate array (Field-Programmable GATE ARRAY, FPGA) or other Programmable logic device, discrete gate or transistor logic device, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 72 may be an internal storage unit of the computer device 70, such as a hard disk or memory of the computer device 70. The memory 72 may also be an external storage device of the computer device 70, such as a plug-in hard disk provided on the computer device 70, a smart memory card (SMART MEDIA CARD, SMC), a Secure Digital (SD) card, a flash memory card (FLASH CARD), or the like. Further, the memory 72 may also include both internal storage units and external storage devices of the computer device 70. The memory 72 is used to store computer programs and other programs and data required by the computer device. The memory 72 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions.
The above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention, and are intended to be included in the scope of the present invention.

Claims (5)

1. A policy page altering method, the method comprising:
establishing a policy field;
Generating a general template according to the policy field;
generating a target template according to the policy field, wherein the target template is related to a target type;
acquiring change information of a target policy page, wherein the change information of the target policy page comprises a target type and a target typesetting type;
Obtaining a target template corresponding to the type of the target from the target templates;
Generating the target policy page according to the universal template, the target template and the target typesetting type, wherein the universal template, the target template and the target typesetting type are stored in a YAML form;
The generating the target template according to the policy field comprises the following steps:
Acquiring a target field from the policy field according to the target type;
acquiring a selection instruction input by a user, and determining a template display attribute according to the selection instruction, wherein the template display attribute refers to an attribute related to the target template display;
generating one or more target templates according to the target fields and the template presentation attributes;
The establishing policy field includes:
Acquiring field information related to a policy, and establishing an initial policy field according to the field information, wherein the field information comprises a field name, a field type, a field number and a field entry type;
A basic data table is read, and whether the sub-item relation exists in the initial policy field is judged according to the basic data table, wherein the basic data table stores sub-item information and the preset sub-item relation;
if yes, updating the initial policy field according to the sub item information to obtain the policy field;
If not, the initial policy field is used as the policy field;
before the target template corresponding to the target type is obtained from the target templates, the method further comprises:
acquiring a first-level identification, wherein the first-level identification is related to the target template;
encrypting according to the primary identifier to obtain a secondary identifier corresponding to the target type;
the obtaining the target template corresponding to the target type from the target templates comprises the following steps:
acquiring a secondary identifier corresponding to the type of the target object;
decrypting the secondary identifier corresponding to the type of the target object to obtain the primary identifier;
And acquiring a target template corresponding to the target type from the target templates according to the first identification.
2. A method according to claim 1, wherein the generating a target policy page from the generic template, the target template and the target typesetting type comprises:
converting the universal template, the target template and the target typesetting type into corresponding hypertext markup language;
And generating the target policy page by adopting a front end framework according to the hypertext markup language.
3. A policy page altering device, the device comprising:
the policy field establishing module is used for establishing a policy field;
The general template generation module is used for generating a general template according to the policy field;
the target template generation module is used for generating a target template according to the policy field, wherein the target template is related to a target type;
The generation information acquisition module is used for acquiring the change information of the target policy page, wherein the change information of the target policy page comprises a target type and a target typesetting type;
The target template acquisition module is used for acquiring a target template corresponding to the type of the target from the target templates;
The target policy page generation module is used for generating the target policy page according to the universal template, the target template and the target typesetting type, wherein the universal template, the target template and the target typesetting type are stored in a YAML form;
the target template generation module comprises:
A target field obtaining unit, configured to obtain a target field from the policy field according to the target type;
The template display attribute determining unit is used for acquiring a selection instruction input by a user and determining a template display attribute according to the selection instruction, wherein the template display attribute refers to an attribute related to the target template display;
A target template generating unit, configured to generate one or more target templates according to the target fields and the template presentation attribute;
The policy field building module includes:
A field information acquisition unit, configured to acquire field information related to a policy, and establish an initial policy field according to the field information, where the field information includes a field name, a field type, a field number, and a field entry type;
The judging unit is used for reading a basic data table and judging whether the initial policy field has a sub-item relation according to the basic data table, wherein the basic data table stores sub-item information and the preset sub-item relation;
The first determining unit is used for updating the initial policy field according to the sub item information if the sub item information exists, so as to obtain the policy field;
the second determining unit is used for taking the initial policy field as the policy field if the initial policy field does not exist;
the policy page changing device further comprises a primary identification obtaining unit and a secondary identification obtaining unit;
the primary identifier acquisition unit is used for acquiring a primary identifier, and the primary identifier is related to the target template;
The secondary identification acquisition unit is used for encrypting according to the primary identification to obtain a secondary identification corresponding to the type of the target;
the target template acquisition module comprises a target type secondary identification acquisition unit, a target type primary identification acquisition unit and a target template acquisition unit;
The target type secondary identification acquisition unit is used for acquiring a secondary identification corresponding to the target type;
The target type primary identifier acquisition unit is used for decrypting the secondary identifier corresponding to the target type to acquire the primary identifier;
the target template acquisition unit is used for acquiring a target template corresponding to the type of the target from the target templates according to the first identification.
4. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the policy page changing method according to claim 1 or 2 when the computer program is executed.
5. A computer readable storage medium storing a computer program, characterized in that the computer program when executed by a processor implements the steps of the policy page changing method according to claim 1 or 2.
CN201910417900.9A 2019-05-20 2019-05-20 Policy page changing method and device, computer equipment and storage medium Active CN110347984B (en)

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 CN110347984A (en) 2019-10-18
CN110347984B true 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)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
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
CN111443909B (en) * 2020-03-23 2023-09-29 北京百度网讯科技有限公司 Method and device for generating page
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

Citations (5)

* Cited by examiner, † Cited by third party
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

Patent Citations (5)

* Cited by examiner, † Cited by third party
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

Also Published As

Publication number Publication date
CN110347984A (en) 2019-10-18

Similar Documents

Publication Publication Date Title
CN110347953B (en) Page generation method, page generation device, computer equipment and storage medium
CN110347984B (en) Policy page changing method and device, computer equipment and storage medium
AU2021212135B2 (en) Building and managing data-processing attributes for modelled data sources
US9411790B2 (en) Systems, methods, and media for generating structured documents
CN107479882B (en) Generating method and generating device of application page, medium and electronic equipment
WO2022095520A1 (en) Document editing method and device, server, terminal, and storage medium
US11163906B2 (en) Adaptive redaction and data releasability systems using dynamic parameters and user defined rule sets
WO2020233332A1 (en) Text structured information extraction method, server and storage medium
US20210049711A1 (en) Method of automatically transmitting data information and device of automatically transmitting data information
US20100161693A1 (en) System and method for signing an electronic document
US20160371244A1 (en) Collaboratively reconstituting tables
CN112016290A (en) Automatic document typesetting method, device, equipment and storage medium
US20150046366A1 (en) Method And System For Batch Generation Of Reports
CN111818175A (en) Enterprise service bus configuration file generation method, device, equipment and storage medium
US10659567B2 (en) Dynamic discovery and management of page fragments
CN111428464A (en) Report file generation method and device, computer equipment and storage medium
CN110837727A (en) Document template generation method and device, terminal equipment and medium
CN117522094A (en) Seal management method, platform, electronic equipment and storage medium
US11941350B2 (en) Systems and methods for conversion of documents to reusable content types
CN112597105A (en) Processing method of file associated object, server side equipment and storage medium
CN108196921B (en) Document development method and device, computer equipment and storage medium
CN111414404A (en) Data visualization device and method
CN115841095A (en) Document establishing method, system, medium and equipment
CN115759029A (en) Document template processing method and device, electronic equipment and storage medium
CN112528189B (en) Data-based component packaging method and device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant