CN113704344A - Data filing method, device, equipment and storage medium based on form template - Google Patents

Data filing method, device, equipment and storage medium based on form template Download PDF

Info

Publication number
CN113704344A
CN113704344A CN202111007670.2A CN202111007670A CN113704344A CN 113704344 A CN113704344 A CN 113704344A CN 202111007670 A CN202111007670 A CN 202111007670A CN 113704344 A CN113704344 A CN 113704344A
Authority
CN
China
Prior art keywords
configuration
service platform
template
information
filing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111007670.2A
Other languages
Chinese (zh)
Inventor
杨成
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Kangjian Information Technology Shenzhen Co Ltd
Original Assignee
Kangjian Information Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Kangjian Information Technology Shenzhen Co Ltd filed Critical Kangjian Information Technology Shenzhen Co Ltd
Priority to CN202111007670.2A priority Critical patent/CN113704344A/en
Publication of CN113704344A publication Critical patent/CN113704344A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/26Visual data mining; Browsing structured data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems

Abstract

The invention relates to the field of big data and discloses a data filing method, a device, equipment and a storage medium based on a form template. The method comprises the following steps: acquiring template configuration information of first service platform record and extracting area identification information and record requirement information of the first service platform; analyzing the filing requirement information to obtain supervision dimension information and functional attribute information so as to configure a form configuration template corresponding to the first service platform, and identifying the form configuration template by adopting the area identification information; acquiring a data filing request of a second service platform and extracting target area identification information of the second service platform; selecting a target form configuration template corresponding to the target area identification information, and generating a record configuration form corresponding to the second service platform; and acquiring the record data corresponding to the second service platform through the record configuration form. The invention realizes the filtering of the supervision data of different service platforms by adopting the form template aiming at different supervision requirements.

Description

Data filing method, device, equipment and storage medium based on form template
Technical Field
The invention relates to the field of big data, in particular to a data filing method, a data filing device, data filing equipment and a storage medium based on a form template.
Background
The form is mainly responsible for data collection functions in the web page. A form has three basic components: form label: included herein are URLs of CGI programs used to process form data and methods of submitting data to a server. Form field: including text boxes, password boxes, hidden fields, multi-line text boxes, check boxes, radio boxes, drop-down selection boxes, file upload boxes, and the like. Form button: comprises a submit button, a reset button and a general button; the CGI script used to transfer data to the server or cancel the input, and the form button can also be used to control other processing tasks that define the processing script.
At present, companies are orderly promoted in internet hospitals, cooperative entity hospitals are gradually increased, the large number of entity hospitals need to create own internet hospital systems, and basic data required by each internet hospital according to local laws and regulations are different, such as requirements on qualifications of hospitals and doctors and certificates required by the hospitals are different. This makes redundant data redundant between hospital and regulatory docks, and therefore requires filtering of the relevant redundant data.
Disclosure of Invention
The invention mainly aims to solve the technical problem that supervision data needing to be recorded among different service platforms and different supervision authorities are easy to have redundancy.
The invention provides a data filing method based on a form template in a first aspect, which comprises the following steps: acquiring template configuration information corresponding to first service platform filing, and extracting area identification information and filing requirement information of an area where the first service platform is located from the template configuration information; analyzing the filing requirement information to obtain supervision dimension information and functional attribute information required by the area where the first service platform is located; configuring a form configuration template corresponding to the first service platform based on the supervision dimension information and the function attribute information, and identifying the form configuration template by adopting the area identification information; acquiring a data filing request corresponding to a second service platform, and extracting target area identification information of an area where the second service platform is located from the data filing request; selecting a target form configuration template corresponding to the target area identification information, and generating a record configuration form corresponding to the second service platform through the target form configuration template; and acquiring the record data corresponding to the second service platform through the record configuration form.
Optionally, in a first implementation manner of the first aspect of the present invention, the generating, by using the target form configuration template, a docketing configuration form corresponding to the second service platform includes: determining target supervision dimension information and target function attribute information corresponding to the second service platform through a target form configuration template; determining a supervision key value required by the second service platform to record according to the target supervision dimension information, and acquiring a record field corresponding to the supervision key value from a preset database; filling the filed fields into the target form configuration template to obtain a field configuration form corresponding to the second service platform filing; and dynamically rendering the field configuration form based on the target function attribute information to obtain a record configuration form corresponding to the second service platform.
Optionally, in a second implementation manner of the first aspect of the present invention, the dynamically rendering the field configuration form based on the target function attribute information to obtain a record configuration form corresponding to the second service platform includes: determining a function attribute parameter corresponding to the field configuration form and selecting a corresponding preset form rendering component based on the target function attribute information; transmitting the function attribute parameters to each function attribute module in the form rendering component; and according to the transmitted functional attribute parameters, dynamically rendering the field configuration form by sequentially adopting functional attribute modules in the form rendering component to obtain a record configuration form corresponding to the second service platform.
Optionally, in a third implementation manner of the first aspect of the present invention, after the dynamically rendering the field configuration form based on the target function attribute information to obtain a record configuration form corresponding to the second service platform, the method further includes: analyzing the record configuration form to obtain a form object described by a preset format and a value range corresponding to the form object; selecting a preset regular expression corresponding to the value domain, and judging whether a filed field in a form object corresponding to the value domain is matched with the regular expression or not; and if so, deploying the recorded configuration form on the second service platform.
Optionally, in a fourth implementation manner of the first aspect of the present invention, the acquiring, by the record configuration form, the record data corresponding to the second service platform includes: acquiring the input information of the second service platform and the URL address of the corresponding data processing CGI script through the form field of the record configuration form; transmitting the input information to a CGI script corresponding to the URL address through a form button of the record configuration form; and performing data conversion in a preset structural form on the input information through the CGI script to obtain the recorded data corresponding to the second service platform.
Optionally, in a fifth implementation manner of the first aspect of the present invention, the configuring, based on the supervision dimension information and the function attribute information, a form configuration template corresponding to the first service platform includes: selecting a plurality of form rendering components corresponding to the first service platform from a preset component library based on the supervision dimension information and the function attribute information; configuring a dependency relationship and a logic relationship between the form rendering components; loading each form rendering component into a preset form engine container corresponding to the first service platform; and according to the dependency relationship and the logic relationship, mounting the trigger events corresponding to the form rendering components in the form engine container to obtain a form configuration template corresponding to the first service platform.
The second aspect of the present invention provides a data filing apparatus based on a form template, including: the first extraction module is used for acquiring template configuration information corresponding to first service platform filing, and extracting area identification information and filing requirement information of an area where the first service platform is located from the template configuration information; the analysis module is used for analyzing the filing requirement information to obtain supervision dimension information and functional attribute information required by the area where the first service platform is located; the configuration module is used for configuring a form configuration template corresponding to the first service platform based on the supervision dimension information and the function attribute information, and identifying the form configuration template by adopting the area identification information; the second extraction module is used for acquiring a data filing request corresponding to a second service platform and extracting target area identification information of an area where the second service platform is located from the data filing request; the generating module is used for selecting a target form configuration template corresponding to the target area identification information and generating a record configuration form corresponding to the second service platform through the target form configuration template; and the acquisition module is used for acquiring the record data corresponding to the second service platform through the record configuration form.
Optionally, in a first implementation manner of the second aspect of the present invention, the generating module includes: the determining unit is used for determining target supervision dimension information and target function attribute information corresponding to the second service platform through a target form configuration template; the acquisition unit is used for determining a supervision key value required by the second service platform for filing according to the target supervision dimension information and acquiring a filing field corresponding to the supervision key value from a preset database; the filling unit is used for filling the filed fields into the target form configuration template to obtain a field configuration form corresponding to the second service platform filed; and the rendering unit is used for dynamically rendering the field configuration form based on the target function attribute information to obtain a record configuration form corresponding to the second service platform.
Optionally, in a second implementation manner of the second aspect of the present invention, the rendering unit is further configured to include: determining a function attribute parameter corresponding to the field configuration form and selecting a corresponding preset form rendering component based on the target function attribute information; transmitting the function attribute parameters to each function attribute module in the form rendering component; and according to the transmitted functional attribute parameters, dynamically rendering the field configuration form by sequentially adopting functional attribute modules in the form rendering component to obtain a record configuration form corresponding to the second service platform.
Optionally, in a third implementation manner of the second aspect of the present invention, the generating module further includes a deploying unit, configured to: analyzing the record configuration form to obtain a form object described by a preset format and a value range corresponding to the form object; selecting a preset regular expression corresponding to the value domain, and judging whether a filed field in a form object corresponding to the value domain is matched with the regular expression or not; and if so, deploying the recorded configuration form on the second service platform.
Optionally, in a fourth implementation manner of the second aspect of the present invention, the acquisition module includes: the acquisition unit is used for acquiring the input information of the second service platform and the URL address of the corresponding data processing CGI script through the form field of the record configuration form; the input unit is used for inputting the input information into the CGI script corresponding to the URL address through a form button of the record configuration form; and the conversion unit is used for performing data conversion in a preset structural form on the input information through the CGI script to obtain the recorded data corresponding to the second service platform.
Optionally, in a fifth implementation manner of the second aspect of the present invention, the configuration module includes: the selecting unit is used for selecting a plurality of form rendering components corresponding to the first service platform from a preset component library based on the supervision dimension information and the function attribute information; the loading unit is used for configuring the dependency relationship and the logic relationship among the form rendering components; loading each form rendering component into a preset form engine container corresponding to the first service platform; and the mounting unit is used for mounting the trigger events corresponding to the form rendering components in the form engine container according to the dependency relationship and the logic relationship to obtain the form configuration template corresponding to the first service platform.
The third aspect of the present invention provides a data filing apparatus based on a form template, including: a memory and at least one processor, the memory having instructions stored therein; the at least one processor invokes the instructions in the memory to cause the form template based data docketing device to perform the form template based data docketing method described above.
A fourth aspect of the present invention provides a computer-readable storage medium having stored therein instructions, which, when run on a computer, cause the computer to execute the above-mentioned form template-based data filing method.
In the technical scheme provided by the invention, because corresponding supervision of the same region is generally the same and required filing information is also the same, the configuration of the form configuration template is firstly carried out according to different regions. Configuring the same set of form configuration templates in the same region, uniformly adding or reducing fields, configuring a filing configuration form after classifying and integrating all information, dynamically rendering all configurable function items when configuring the templates, selecting corresponding form configuration according to requirements, storing data at the back end by calling a configured interface, and then acquiring corresponding form data.
Drawings
FIG. 1 is a diagram of a first embodiment of a form template-based data filing method according to the present invention;
FIG. 2 is a diagram of a second embodiment of the method for data filing based on form templates in the present invention;
FIG. 3 is a diagram of a third embodiment of the data filing method based on the form template in the present invention;
FIG. 4 is a diagram of an embodiment of a form template-based data filing apparatus according to the present invention;
FIG. 5 is a schematic diagram of another embodiment of the data filing apparatus based on the form template in the present invention;
FIG. 6 is a diagram of an embodiment of a data filing apparatus based on a form template.
Detailed Description
The embodiment of the invention provides a data filing method, a device, equipment and a storage medium based on a form template, which are characterized in that template configuration information of first service platform filing is obtained, and area identification information and filing requirement information of the first service platform are extracted; analyzing the filing requirement information to obtain supervision dimension information and functional attribute information so as to configure a form configuration template corresponding to the first service platform, and identifying the form configuration template by adopting the area identification information; acquiring a data filing request of a second service platform and extracting target area identification information of the second service platform; selecting a target form configuration template corresponding to the target area identification information, and generating a record configuration form corresponding to the second service platform; and acquiring the record data corresponding to the second service platform through the record configuration form. The invention realizes the filtering of the supervision data of different service platforms by adopting the form template aiming at different supervision requirements.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that the embodiments described herein may be practiced otherwise than as specifically illustrated or described herein. Furthermore, the terms "comprises," "comprising," or "having," and any variations thereof, are intended to cover non-exclusive inclusions, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
For convenience of understanding, a specific flow of the embodiment of the present invention is described below, and referring to fig. 1, a first embodiment of the data filing method based on a form template in the embodiment of the present invention includes:
101. acquiring template configuration information corresponding to first service platform record, and extracting area identification information and record requirement information of an area where the first service platform is located from the template configuration information;
it is to be understood that the executing entity of the present invention may be a data filing apparatus based on a form template, and may also be a terminal or a server, which is not limited herein. The embodiment of the present invention is described by taking a server as an execution subject.
In this embodiment, the first service platform refers to each type of service platform that needs to perform configuration of the supervision configuration form. Generally speaking, the supervision requirements of the supervision mechanisms in the same region on the same type of platform are the same, so developers perform template configuration according to the supervision requirements of the supervision mechanisms in different regions, and after the configuration of each first service platform is completed, template configuration information corresponding to the first service platform is uploaded, wherein the template configuration information includes area identification information of a region where the supervised mechanism is located, and also includes integrated filing requirement information such as content and rendering style required by a form configuration template, so that the area identification information and the filing requirement information of the first service platform can be directly extracted from the template configuration information.
For example, for an internet medical platform, the supervision requirements of medical service integrated supervision platforms at different places may be different, city a needs to supervise and record inquiry data of a patient, and does not need to supervise and record prescription information issued by a doctor, city B needs to supervise and record prescription information issued by a doctor, and does not need to supervise and record inquiry data of a patient, at this time, template configuration information corresponding to the first service platform of city a includes area identification information of city a and record requirement information corresponding to the inquiry data, and template configuration information corresponding to the first service platform of city B includes area identification information of city B and record requirement information corresponding to the prescription information.
102. Analyzing the filing requirement information to obtain supervision dimension information and functional attribute information required by the area where the first service platform is located;
in this embodiment, the filing requirement information includes a region where the first service platform is located, and monitoring dimension information and functional attribute information required by a monitoring authority, where the monitoring dimension information refers to field information of each type of dimension that the first service platform needs to monitor for filing, that is, fields of each type of dimension that need to be configured in the filing configuration template, and the functional attribute information refers to style rendering content in the filing configuration template, such as form button size, font color, text alignment mode, format conversion, and the like.
For example, the aforementioned inquiry data required for filing and supervision of the first service platform of city a and the prescription information required for filing and supervision of the first service platform of city B are supervision dimension information containing different types of dimensions, and if the first service platform of city a needs to add a date format into the filing content and city B needs to convert all the filing fields into an XML (Extensible Markup Language) format in the filing content, both the date format and the XML format are functional attribute information.
103. Configuring a form configuration template corresponding to the first service platform based on the supervision dimension information and the functional attribute information, and identifying the form configuration template by adopting the area identification information;
in the embodiment, according to the supervision dimension information and the function attribute information, a plurality of form rendering components corresponding to a first service platform are selected from a preset component library, and the dependency relationship and the logic relationship among the form rendering components are configured; and loading each form rendering component into a preset form engine container corresponding to the first service platform, and hanging a trigger event corresponding to each form rendering component into the form engine container according to the dependency relationship and the logic relationship to obtain a form configuration template corresponding to the first service platform.
Specifically, the form rendering component includes: a pop-up box container component, a logical container component, a group container component, a condition judgment container component, a list container component, a form container component, a tab container component, and the like; the supervision dimension information and the function attribute information comprise identification information of the form rendering components for realizing the configuration of the corresponding supervision fields and the function styles, and the corresponding form rendering components can be screened from the component library through the identification information. And meanwhile, the form rendering component is set through a preset dependency relationship and a preset logic relationship.
Specifically, when logical relationship configuration is performed, an event subscription mechanism is adopted to define the interdependence of data between components, for example, when the value of the component a takes true, the component B can only display the data; when the dependency relationship configuration is carried out, an event callback mechanism is adopted, a method is captured after a certain common component triggers the method, and the control between the form rendering components is realized by analyzing the method and carrying out necessary operations.
In the embodiment, each form rendering component is loaded into a preset form causing container, and then the trigger event of each component is mounted on a form engine, so that the form engine has the capability of controlling and controlling the form rendering components; meanwhile, the form rendering component mounted on the form engine keeps normative, and the form engine can receive and call triggering events of the form rendering component behind, so that the form engine has dominance capability on the form rendering component. The configuration of the form configuration template is completed, the second service platforms are determined to be available through the area identification information, and the generation of the record configuration form can be realized by directly executing the form engine subsequently.
104. Acquiring a data filing request corresponding to the second service platform, and extracting target area identification information of an area where the second service platform is located from the data filing request;
in this embodiment, the second service platform refers to a service platform on which data recording is required. After the configuration of the form configuration template is completed, when data filing is required to be executed, the second client initiates a data filing request, obtains corresponding target area identification information directly according to an area where the second service platform is located, and searches the corresponding form configuration template to generate a filing configuration form by taking the target area identification information as an index.
105. Selecting a target form configuration template corresponding to the target area identification information, and generating a record configuration form corresponding to the second service platform through the target form configuration template;
in this embodiment, the concept of the form configuration template is introduced, the record configuration form is configured as needed, and the mode of configuring the template by one form in one region is adopted, because the monitoring mechanisms corresponding to the same type of service platform in the same region are the same, and the required record information is also the same. And configuring the same set of form configuration templates in the same region, uniformly adding or reducing fields, classifying and integrating information recorded by all service platforms, and configuring the form configuration templates.
In this embodiment, a JSON format data of all record fields is reserved on the second service platform or the server, and when a record configuration form corresponding to the second service platform is generated through the form configuration template, the corresponding record fields are obtained according to configuration information in the form configuration template, and the record configuration form can be generated by writing the record configuration form into a position corresponding to the form configuration template. Only the fields required for supervision are recorded in the docket configuration form, and the redundant fields are filtered.
106. And acquiring the record data corresponding to the second service platform through the record configuration form.
In this embodiment, the record configuration form is deployed in the second service platform, and service personnel can enter corresponding record data through the record configuration form.
In the embodiment of the invention, because corresponding supervision of the same region is generally the same and required filing information is also the same, the configuration of the form configuration template is firstly carried out according to different regions. Configuring the same set of form configuration templates in the same region, uniformly adding or reducing fields, configuring a filing configuration form after classifying and integrating all information, dynamically rendering all configurable function items when configuring the templates, selecting corresponding form configuration according to requirements, storing data at the back end by calling a configured interface, and then acquiring corresponding form data.
Referring to fig. 2, a second embodiment of the data filing method based on the form template according to the embodiment of the present invention includes:
201. acquiring template configuration information corresponding to first service platform record, and extracting area identification information and record requirement information of an area where the first service platform is located from the template configuration information;
202. analyzing the filing requirement information to obtain supervision dimension information and functional attribute information required by the area where the first service platform is located;
203. configuring a form configuration template corresponding to the first service platform based on the supervision dimension information and the functional attribute information, and identifying the form configuration template by adopting the area identification information;
204. acquiring a data filing request corresponding to the second service platform, and extracting target area identification information of an area where the second service platform is located from the data filing request;
205. selecting a target form configuration template corresponding to the target area identification information, and determining target supervision dimension information and target function attribute information corresponding to the second service platform through the target form configuration template;
206. determining a supervision key value required by the second service platform to record according to the target supervision dimension information, and acquiring a record field corresponding to the supervision key value from a preset database;
207. filling the filed fields into the target form configuration template to obtain a field configuration form corresponding to the second service platform filing;
208. dynamically rendering the field configuration form based on the target function attribute information to obtain a record configuration form corresponding to the second service platform;
in this embodiment, the target form configuration template carries target supervision dimension information and functional attribute information, and it is determined which fields need to be supervised and which types need to be configured for the docket configuration form. The target supervision dimension information comprises supervision key values of a plurality of fields required by the second service platform, and corresponding filed fields are obtained from a stored database through the supervision key values and are filled to obtain a field configuration form; and then, selecting configurable items through the function attribute information, and dynamically rendering the field configuration form to obtain a record configuration form corresponding to the second service platform.
209. Acquiring the input information of the second service platform and the URL address of the corresponding data processing CGI script through the form field of the record configuration form;
210. inputting the input information into a CGI script corresponding to the URL address through a form button of the record configuration form;
211. and performing data conversion in a preset structural form on the input information through the CGI script to obtain the recorded data corresponding to the second service platform.
In this embodiment, after the second service platform completes the deployment of the docketing configuration form, a data acquisition function is executed in the second service platform through the docketing configuration form. The record configuration form comprises form fields, form labels and form buttons, wherein the entry information of the second service platform and the form labels corresponding to the form fields are collected through the form fields firstly, the form labels comprise URL addresses of CGI scripts used for processing the entry information of the forms, and the form fields comprise text boxes, password boxes, hidden fields, multi-line text boxes, check boxes, radio boxes, pull-down selection boxes, file upload boxes and the like. And finally, inputting the input information into the CGI script according to the URL address through a form button, and performing data conversion according to a preset standard conversion rule to obtain corresponding filing data, wherein the form button comprises a submission button, a reset button and a general button.
In the embodiment of the invention, when the record configuration form is configured, the monitoring dimension information and the function attribute information required by the current second service platform are determined through the pre-configured form configuration template so as to determine the monitoring fields and the function item rendering required by the second service platform, thereby realizing the automatic acquisition of the monitoring fields.
Referring to fig. 3, a third embodiment of the data filing method based on the form template according to the embodiment of the present invention includes:
301. acquiring template configuration information corresponding to first service platform record, and extracting area identification information and record requirement information of an area where the first service platform is located from the template configuration information;
302. analyzing the filing requirement information to obtain supervision dimension information and functional attribute information required by the area where the first service platform is located;
303. configuring a form configuration template corresponding to the first service platform based on the supervision dimension information and the functional attribute information, and identifying the form configuration template by adopting the area identification information;
304. acquiring a data filing request corresponding to the second service platform, and extracting target area identification information of an area where the second service platform is located from the data filing request;
305. determining target supervision dimension information and target function attribute information corresponding to a second service platform through a target form configuration template;
306. determining a supervision key value required by the second service platform to record according to the target supervision dimension information, and acquiring a record field corresponding to the supervision key value from a preset database;
307. filling the filed fields into the target form configuration template to obtain a field configuration form corresponding to the second service platform filing;
308. determining a function attribute parameter corresponding to the field configuration form and selecting a corresponding preset form rendering component based on the target function attribute information;
309. transmitting the function attribute parameters into each function attribute module in the form rendering component;
310. according to the transmitted function attribute parameters, dynamically rendering the field configuration form by sequentially adopting function attribute modules in the form rendering component to obtain a record configuration form corresponding to the second service platform;
in this embodiment, a form rendering component corresponding to each field configuration form is configured in advance, where the form rendering component is a form rendering component implemented based on a vue.js framework and an iView UI component library. Taking a form rendering component in a popup form as an example, writing a plurality of form basic components in the popup component to complete the creation of an initial form rendering component, wherein the popup component is composed of the plurality of form basic components, the popup component is a main file, a background management system generally has a plurality of field configuration forms, each field configuration form corresponds to one form rendering component, and when any field configuration form uses the form rendering component, the popup component needs to be referenced, specifically, the form rendering component is referenced in each field configuration form, so that the popup component of the form rendering component is rendered on each field configuration form.
Further, the form rendering component may include text boxes, password boxes, hidden fields, multi-line text boxes, check boxes, radio boxes, drop-down selection boxes, file upload boxes, and the like, and the specific description of the part of the form rendering component is as follows: 1) the pop-up window component adopts a pop-up window opening method for better display because the number of the forms is large; text entry box component: the method is expanded on the basis of an input text input box component of the iView UI, and comprises the following types: plain text boxes, text fields, password boxes, search boxes with buttons, and the like; distinguishing various types by using the simplest code by utilizing the type attribute transmission parameter, configuring corresponding attributes, and rendering the form rendering component to each field configuration form; the method comprises the steps that a radio frame component, a multi-frame component, a drop-down frame component, a tree-shaped drop-down frame component and the like are expanded on the basis of the radio frame component of the iView UI, and a form rendering component is rendered to each field configuration form by utilizing incoming frame selection data; a date component: the date component of the iView UI is extended for setting the date format and the date type.
In this embodiment, the functional attribute module is a configuration dependent file of the form rendering component, a single functional attribute module is established based on the form module of the field configuration form that needs to refer to the form rendering component, and may be written in javascript language, and each attribute information of the field configuration form is configured by using the corresponding custom attribute, and is introduced into each field configuration form separately and directly referred to.
Specifically, a function attribute module file is newly created, a preset form value of a field configuration form is compiled, the preset form value comprises a series of extensible attributes including a form item name, a form item field, a form item width, a form item type, a read-only option, whether required verification is carried out, whether acquiescence is carried out and the like, and configuration information of a form rendering component can be read from a function attribute module.
In the embodiment, when the field configuration form is rendered by adopting the functional attribute module, public interface service between the form and the record data in the field configuration form is configured in each field configuration form; and then according to the transmitted functional attribute parameters, realizing interface connection between the field configuration form and the recorded data, configuring the size and color of a button of the field configuration form, determining whether the attribute is horizontal, vertical and medium style, resetting the functional attributes of the form, converting data format (such as JSON format), date format and the like, and rendering to obtain the functional attribute corresponding to each field configuration form by using v-for attribute circulation to obtain the recorded configuration form corresponding to the second service platform.
311. Analyzing the record configuration form to obtain a form object described by a preset format and a value range corresponding to the form object;
312. selecting a preset regular expression corresponding to the value domain, and judging whether the filed field in the form object corresponding to the value domain is matched with the regular expression;
313. if the matching is successful, the recorded configuration form is deployed on a second service platform;
in this embodiment, each of the docket configuration forms includes a corresponding form object and a value range of the form object, and if the multiple docket configuration forms include the form object of the same type and the requirement of the form object of the type is consistent with the requirement of the information submitted by the second service platform, only one value range may be saved for the form object of the same type in the multiple second service platforms, otherwise, corresponding value ranges may be respectively established according to different form objects. In addition, the value range is differentiated according to the type of the form object, for example, if the form object is a dialog box indicating a user to input a mailbox address, the value range of the form object is a value specification, and if the form object is a text box, the value range of the form object is a coding specification.
The set regular expression is used as a value domain to determine whether the information submitted by the user is matched with the specification corresponding to the regular expression; in practical application, the value range may be set as a value range or a set of a plurality of specified values, for example, the value range of the dialog box indicating the user to input the city name may be a set of a plurality of specified values, such as values corresponding to cities of guangzhou, shenzhen, and the like, and specifically, the value range may be set according to the requirements of each form object.
When the received filing configuration form is analyzed, the filing configuration form can be analyzed into two parts, namely, a form object and a corresponding value field, which are described by adopting a page code format supported by the second service platform. Specifically, for the parsed form object described in the preset format, the format description of the page code supported by the Windows operating system is Hypertext markup Language (HTML), and then the docketing configuration form is parsed into the form object described in the format of HTML; for the format of the parsed value range, the value range may be converted into a corresponding code according to a code format preset by the second service platform.
In this embodiment, the configuration fields submitted in the docket configuration form may be verified by comparing the value range with the corresponding regular expressions, for example, a set of values corresponding to a specified city (e.g., guangzhou or shenzhen) is determined, and whether the configuration fields of the city items are in the set is determined to determine whether the configuration fields are matched.
314. And acquiring the record data corresponding to the second service platform through the record configuration form.
In the embodiment of the invention, through the pre-developed functional attribute module, when the dynamic rendering of the record configuration form is carried out, the functional attribute module required by the corresponding form rendering component is directly selected according to the functional attribute parameters for assembly, so that the corresponding record configuration form can be obtained, and the record efficiency of the supervision data is improved.
With reference to fig. 4, the data filing method based on the form template in the embodiment of the present invention is described above, and a data filing apparatus based on the form template in the embodiment of the present invention is described below, where an embodiment of the data filing apparatus based on the form template in the embodiment of the present invention includes:
a first extraction module 401, configured to obtain template configuration information corresponding to a first service platform record, and extract area identification information and record requirement information of an area where the first service platform is located from the template configuration information;
an analyzing module 402, configured to analyze the filing requirement information to obtain supervision dimension information and functional attribute information required by an area where the first service platform is located;
a configuration module 403, configured to configure a form configuration template corresponding to the first service platform based on the supervision dimension information and the function attribute information, and identify the form configuration template by using the area identification information;
a second extracting module 404, configured to obtain a data filing request corresponding to a second service platform, and extract target area identification information of an area where the second service platform is located from the data filing request;
a generating module 405, configured to select a target form configuration template corresponding to the target area identification information, and generate a docket configuration form corresponding to the second service platform through the target form configuration template;
the collecting module 406 is configured to collect the filing data corresponding to the second service platform through the filing configuration form.
In the embodiment of the invention, because corresponding supervision of the same region is generally the same and required filing information is also the same, the configuration of the form configuration template is firstly carried out according to different regions. Configuring the same set of form configuration templates in the same region, uniformly adding or reducing fields, configuring a filing configuration form after classifying and integrating all information, dynamically rendering all configurable function items when configuring the templates, selecting corresponding form configuration according to requirements, storing data at the back end by calling a configured interface, and then acquiring corresponding form data.
Referring to fig. 5, another embodiment of the data filing apparatus based on the form template according to the embodiment of the present invention includes:
a first extraction module 401, configured to obtain template configuration information corresponding to a first service platform record, and extract area identification information and record requirement information of an area where the first service platform is located from the template configuration information;
an analyzing module 402, configured to analyze the filing requirement information to obtain supervision dimension information and functional attribute information required by an area where the first service platform is located;
a configuration module 403, configured to configure a form configuration template corresponding to the first service platform based on the supervision dimension information and the function attribute information, and identify the form configuration template by using the area identification information;
a second extracting module 404, configured to obtain a data filing request corresponding to a second service platform, and extract target area identification information of an area where the second service platform is located from the data filing request;
a generating module 405, configured to select a target form configuration template corresponding to the target area identification information, and generate a docket configuration form corresponding to the second service platform through the target form configuration template;
the collecting module 406 is configured to collect the filing data corresponding to the second service platform through the filing configuration form.
Specifically, the generating module 405 includes:
a determining unit 4051, configured to determine, through a target form configuration template, target supervision dimension information and target function attribute information corresponding to the second service platform;
an obtaining unit 4052, configured to determine, according to the target supervision dimension information, a supervision key value required by the second service platform to record, and obtain a record field corresponding to the supervision key value from a preset database;
a filling unit 4053, configured to fill the filed field into the target form configuration template, so as to obtain a field configuration form corresponding to the second service platform filing;
and a rendering unit 4054, configured to dynamically render the field configuration form based on the target function attribute information, so as to obtain a record configuration form corresponding to the second service platform.
Specifically, the rendering unit 4054 is further configured to include:
determining a function attribute parameter corresponding to the field configuration form and selecting a corresponding preset form rendering component based on the target function attribute information;
transmitting the function attribute parameters to each function attribute module in the form rendering component;
and according to the transmitted functional attribute parameters, dynamically rendering the field configuration form by sequentially adopting functional attribute modules in the form rendering component to obtain a record configuration form corresponding to the second service platform.
Specifically, the generating module further includes a deployment unit 4055, configured to:
analyzing the record configuration form to obtain a form object described by a preset format and a value range corresponding to the form object;
selecting a preset regular expression corresponding to the value domain, and judging whether a filed field in a form object corresponding to the value domain is matched with the regular expression or not;
and if so, deploying the recorded configuration form on the second service platform.
Specifically, the acquisition module 406 includes:
the acquisition unit 4061 is configured to acquire, through the form field of the docket configuration form, entry information of the second service platform and a URL address of the corresponding data processing CGI script;
an import unit 4062, configured to import the entry information into the CGI script corresponding to the URL address through a form button of the docket configuration form;
a conversion unit 4063, configured to perform data conversion in a preset structural form on the input information through the CGI script, so as to obtain the filing data corresponding to the second service platform.
Specifically, the configuration module 403 includes:
a selecting unit 4031, configured to select, based on the supervision dimension information and the function attribute information, a plurality of form rendering components corresponding to the first service platform from a preset component library;
a loading unit 4032, configured to configure a dependency relationship and a logical relationship between the form rendering components; loading each form rendering component into a preset form engine container corresponding to the first service platform;
a mounting unit 4033, configured to mount, according to the dependency relationship and the logical relationship, the trigger event corresponding to each form rendering component in the form engine container, so as to obtain a form configuration template corresponding to the first service platform.
In the embodiment of the invention, when a record configuration form is configured, a preset form configuration template is used for determining which supervision dimension information and function attribute information are needed by the current second service platform so as to determine supervision fields and function item rendering needed by the second service platform, thereby realizing automatic acquisition of supervision fields; through the pre-developed functional attribute module, when dynamic rendering of the record configuration form is performed, the functional attribute modules required by the corresponding form rendering component are directly selected according to the functional attribute parameters to be assembled, so that the corresponding record configuration form can be obtained, and the record efficiency of the supervision data is improved.
Fig. 4 and 5 describe the form template-based data filing apparatus in the embodiment of the present invention in detail from the perspective of the modular functional entity, and the form template-based data filing apparatus in the embodiment of the present invention is described in detail from the perspective of hardware processing.
Fig. 6 is a schematic structural diagram of a form template-based data filing apparatus 600 according to an embodiment of the present invention, which may have a relatively large difference due to different configurations or performances, and may include one or more processors (CPUs) 610 (e.g., one or more processors) and a memory 620, one or more storage media 630 (e.g., one or more mass storage devices) storing applications 633 or data 632. Memory 620 and storage medium 630 may be, among other things, transient or persistent storage. The program stored on the storage medium 630 may include one or more modules (not shown), each of which may include a series of instruction operations for the form template based data dockee 600. Still further, the processor 610 may be configured to communicate with the storage medium 630 to execute a series of instruction operations in the storage medium 630 on the form template based data dockee 600.
The form template based data dockee 600 may also include one or more power supplies 640, one or more wired or wireless network interfaces 650, one or more input-output interfaces 660, and/or one or more operating systems 631, such as Windows Server, Mac OS X, Unix, Linux, FreeBSD, and the like. Those skilled in the art will appreciate that the form template based data docketing device configuration shown in FIG. 6 does not constitute a limitation of form template based data docketing devices and may include more or fewer components than shown, or some components in combination, or a different arrangement of components.
The invention also provides a data filing device based on the form template, which comprises a memory and a processor, wherein computer readable instructions are stored in the memory, and when the computer readable instructions are executed by the processor, the processor is enabled to execute the steps of the data filing method based on the form template in the embodiments.
The present invention also provides a computer readable storage medium, which may be a non-volatile computer readable storage medium, and which may also be a volatile computer readable storage medium, having stored therein instructions, which, when run on a computer, cause the computer to perform the steps of the form template based data docketing method.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present 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 solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A data filing method based on a form template is characterized by comprising the following steps:
acquiring template configuration information corresponding to first service platform filing, and extracting area identification information and filing requirement information of an area where the first service platform is located from the template configuration information;
analyzing the filing requirement information to obtain supervision dimension information and functional attribute information required by the area where the first service platform is located;
configuring a form configuration template corresponding to the first service platform based on the supervision dimension information and the function attribute information, and identifying the form configuration template by adopting the area identification information;
acquiring a data filing request corresponding to a second service platform, and extracting target area identification information of an area where the second service platform is located from the data filing request;
selecting a target form configuration template corresponding to the target area identification information, and generating a record configuration form corresponding to the second service platform through the target form configuration template;
and acquiring the record data corresponding to the second service platform through the record configuration form.
2. The form template-based data docketing method of claim 1, wherein generating the docketing configuration form corresponding to the second business platform via the target form configuration template comprises:
determining target supervision dimension information and target function attribute information corresponding to the second service platform through a target form configuration template;
determining a supervision key value required by the second service platform to record according to the target supervision dimension information, and acquiring a record field corresponding to the supervision key value from a preset database;
filling the filed fields into the target form configuration template to obtain a field configuration form corresponding to the second service platform filing;
and dynamically rendering the field configuration form based on the target function attribute information to obtain a record configuration form corresponding to the second service platform.
3. The form template-based data filing method of claim 2, wherein the dynamically rendering the field configuration form based on the target function attribute information to obtain the filing configuration form corresponding to the second service platform comprises:
determining a function attribute parameter corresponding to the field configuration form and selecting a corresponding preset form rendering component based on the target function attribute information;
transmitting the function attribute parameters to each function attribute module in the form rendering component;
and according to the transmitted functional attribute parameters, dynamically rendering the field configuration form by sequentially adopting functional attribute modules in the form rendering component to obtain a record configuration form corresponding to the second service platform.
4. The form template-based data filing method of claim 2, wherein after the field configuration form is dynamically rendered based on the target function attribute information to obtain the filing configuration form corresponding to the second service platform, the method further comprises:
analyzing the record configuration form to obtain a form object described by a preset format and a value range corresponding to the form object;
selecting a preset regular expression corresponding to the value domain, and judging whether a filed field in a form object corresponding to the value domain is matched with the regular expression or not;
and if so, deploying the recorded configuration form on the second service platform.
5. The form template-based data filing method of claim 1, wherein the collecting of the filing data corresponding to the second service platform through the filing configuration form comprises:
acquiring the input information of the second service platform and the URL address of the corresponding data processing CGI script through the form field of the record configuration form;
transmitting the input information to a CGI script corresponding to the URL address through a form button of the record configuration form;
and performing data conversion in a preset structural form on the input information through the CGI script to obtain the recorded data corresponding to the second service platform.
6. The form template-based data docketing method of any of claims 1-5, wherein the configuring the form configuration template corresponding to the first business platform based on the regulatory dimension information and the functional attribute information comprises:
selecting a plurality of form rendering components corresponding to the first service platform from a preset component library based on the supervision dimension information and the function attribute information;
configuring a dependency relationship and a logic relationship between the form rendering components; loading each form rendering component into a preset form engine container corresponding to the first service platform;
and according to the dependency relationship and the logic relationship, mounting the trigger events corresponding to the form rendering components in the form engine container to obtain a form configuration template corresponding to the first service platform.
7. A form template-based data filing apparatus, comprising:
the first extraction module is used for acquiring template configuration information corresponding to first service platform filing, and extracting area identification information and filing requirement information of an area where the first service platform is located from the template configuration information;
the analysis module is used for analyzing the filing requirement information to obtain supervision dimension information and functional attribute information required by the area where the first service platform is located;
the configuration module is used for configuring a form configuration template corresponding to the first service platform based on the supervision dimension information and the function attribute information, and identifying the form configuration template by adopting the area identification information;
the second extraction module is used for acquiring a data filing request corresponding to a second service platform and extracting target area identification information of an area where the second service platform is located from the data filing request;
the generating module is used for selecting a target form configuration template corresponding to the target area identification information and generating a record configuration form corresponding to the second service platform through the target form configuration template;
and the acquisition module is used for acquiring the record data corresponding to the second service platform through the record configuration form.
8. The form template-based data docketing device of claim 7, wherein the generation module comprises:
the determining unit is used for determining target supervision dimension information and target function attribute information corresponding to the second service platform through a target form configuration template;
the acquisition unit is used for determining a supervision key value required by the second service platform for filing according to the target supervision dimension information and acquiring a filing field corresponding to the supervision key value from a preset database;
the filling unit is used for filling the filed fields into the target form configuration template to obtain a field configuration form corresponding to the second service platform filed;
and the rendering unit is used for dynamically rendering the field configuration form based on the target function attribute information to obtain a record configuration form corresponding to the second service platform.
9. A form template-based data docketing device, comprising: a memory and at least one processor, the memory having instructions stored therein;
the at least one processor invoking the instructions in the memory to cause the form template based data docketing device to perform the steps of the form template based data docketing method of any one of claims 1-6.
10. A computer readable storage medium having stored thereon instructions, which when executed by a processor, carry out the steps of the form template based data docketing method of any one of claims 1-6.
CN202111007670.2A 2021-08-30 2021-08-30 Data filing method, device, equipment and storage medium based on form template Pending CN113704344A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111007670.2A CN113704344A (en) 2021-08-30 2021-08-30 Data filing method, device, equipment and storage medium based on form template

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111007670.2A CN113704344A (en) 2021-08-30 2021-08-30 Data filing method, device, equipment and storage medium based on form template

Publications (1)

Publication Number Publication Date
CN113704344A true CN113704344A (en) 2021-11-26

Family

ID=78657076

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111007670.2A Pending CN113704344A (en) 2021-08-30 2021-08-30 Data filing method, device, equipment and storage medium based on form template

Country Status (1)

Country Link
CN (1) CN113704344A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117151743A (en) * 2023-10-27 2023-12-01 江苏中天互联科技有限公司 Digital record identification method and device, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103514159A (en) * 2012-06-14 2014-01-15 阿里巴巴集团控股有限公司 Method, system and device for processing form template
CN110223052A (en) * 2018-03-02 2019-09-10 阿里巴巴集团控股有限公司 Data processing method, device and machine readable media
CN111414405A (en) * 2020-03-23 2020-07-14 北京同邦卓益科技有限公司 Data acquisition method and device and electronic equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103514159A (en) * 2012-06-14 2014-01-15 阿里巴巴集团控股有限公司 Method, system and device for processing form template
CN110223052A (en) * 2018-03-02 2019-09-10 阿里巴巴集团控股有限公司 Data processing method, device and machine readable media
CN111414405A (en) * 2020-03-23 2020-07-14 北京同邦卓益科技有限公司 Data acquisition method and device and electronic equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117151743A (en) * 2023-10-27 2023-12-01 江苏中天互联科技有限公司 Digital record identification method and device, electronic equipment and storage medium
CN117151743B (en) * 2023-10-27 2024-01-30 江苏中天互联科技有限公司 Digital record identification method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN107317724B (en) Data acquisition system and method based on cloud computing technology
CA2684822C (en) Data transformation based on a technical design document
US10542123B2 (en) System and method for generating and monitoring feedback of a published webpage as implemented on a remote client
CN109376291B (en) Website fingerprint information scanning method and device based on web crawler
US10452664B2 (en) Declarative MapReduce using regular expressions
EP3499360B1 (en) Systems and methods for client-side data analysis
CN105808701B (en) Realize the method and system communicated between list automatic Verification and multisystem
CN111488109A (en) Method, device, terminal and storage medium for acquiring control information of user interface
US9262550B2 (en) Processing semi-structured data
CN111859076B (en) Data crawling method, device, computer equipment and computer readable storage medium
CN109862074B (en) Data acquisition method and device, readable medium and electronic equipment
CN113704344A (en) Data filing method, device, equipment and storage medium based on form template
CN109240700B (en) Key code positioning method and system
US9104573B1 (en) Providing relevant diagnostic information using ontology rules
CN113296653A (en) Simulation interaction model construction method, interaction method and related equipment
CN113419729A (en) Front-end page building method, device, equipment and storage medium based on modularization
US9959577B1 (en) Tax return preparation automatic document capture and parsing system
CN112130781A (en) Log printing method and device, electronic equipment and storage medium
CN109062784B (en) Interface parameter constraint code entry positioning method and system
CN113986954B (en) User event acquisition method and device, intelligent terminal and readable storage medium
CN113515715B (en) Buried point event code generation method, buried point event code processing method and related equipment
US20180159917A1 (en) Service to invoke companion applications
CN110032503A (en) Data processing system, method, equipment and device based on UI automation and OCR
CN114911462A (en) Gantt chart generation method and device, equipment and storage medium
CN109062785B (en) Interface parameter constraint code positioning method and system

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