CN111382157A - Device for realizing multi-plug-in form traversal operation through constructor based on service - Google Patents

Device for realizing multi-plug-in form traversal operation through constructor based on service Download PDF

Info

Publication number
CN111382157A
CN111382157A CN202010155675.9A CN202010155675A CN111382157A CN 111382157 A CN111382157 A CN 111382157A CN 202010155675 A CN202010155675 A CN 202010155675A CN 111382157 A CN111382157 A CN 111382157A
Authority
CN
China
Prior art keywords
data
service
plug
module
key value
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
CN202010155675.9A
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.)
Shandong Huimao Electronic Port Co Ltd
Original Assignee
Shandong Huimao Electronic Port 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 Shandong Huimao Electronic Port Co Ltd filed Critical Shandong Huimao Electronic Port Co Ltd
Priority to CN202010155675.9A priority Critical patent/CN111382157A/en
Publication of CN111382157A publication Critical patent/CN111382157A/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/22Indexing; Data structures therefor; Storage structures
    • G06F16/2282Tablespace storage structures; Management thereof
    • 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/24Querying
    • G06F16/245Query processing
    • G06F16/2458Special types of queries, e.g. statistical queries, fuzzy queries or distributed queries
    • G06F16/2468Fuzzy queries

Abstract

The invention provides a device for realizing multi-plug-in form traversal operation through a constructor based on service, belonging to the technical field of front ends and comprising the following three modules: the service module comprises two sub-modules: the system comprises a public service submodule and an operation service submodule, wherein the public service submodule provides a method for basic processing data and an additional extended key value object, and the operation service submodule comprises a template for providing a data object to be processed, a method for providing a component data object and a method for operating different components; the data exchange processing module is used for processing the data according to the service requirement; the component application module is based on specific applications on the service module and the data exchange processing module. The service module comprises two sub-modules, and through the two sub-modules, a developer can construct object data in the corresponding module through a constructor to operate, so that the code repetition rate is reduced, the data operation efficiency and stability are greatly improved, and the later maintenance is facilitated.

Description

Device for realizing multi-plug-in form traversal operation through constructor based on service
Technical Field
The invention relates to the technical field of front ends, in particular to a device for realizing multi-plug-in table traversal operation through a constructor based on service.
Background
The traditional application multi-component form is basically that a large number of form templates are manually written, and the form types used by the form self are screened according to data. If the amount of data to be processed is not large and the form type is single, then development time is saved in a certain sense by using the form template. If the amount of data to be processed is large, the data types are not uniform, and the types of the form templates are not single, the amount of front-end written codes is large due to the reuse of the form templates, batch foolproof judgment can be formed by data processing operation, the code repetition rate is too high, and later maintenance is difficult.
To avoid some unnecessary operations, two services are specifically encapsulated for this purpose to solve such problems by means of constructors.
Disclosure of Invention
The problem to be solved by the invention is that a plurality of different operation components exist in the table, and each different component has different attribute and operation specific data format requirements.
The technical task of the invention is to provide a device for realizing multi-plug-in table traversal operation through a construction function based on service aiming at the defects of the prior art, and mainly aiming at how to realize multi-component table application through the construction function by packaging service so as to solve the problem of multi-component table application which processes mass data and has various data types.
The technical scheme adopted by the invention for solving the technical problems is as follows:
the invention provides a device for realizing multi-plug-in table traversal operation through a constructor based on service, which comprises the following three modules:
the service module comprises two sub-modules: the system comprises a public service submodule and an operation service submodule, wherein the public service submodule provides a method for basic processing data and an additional extended key value object, and the operation service submodule comprises a template for providing a data object to be processed, a method for providing a component data object and a method for operating different components;
the data exchange processing module is used for processing the data according to the service requirement;
the component application module is based on specific applications on the service module and the data exchange processing module.
Preferably, in the service module, the method for processing data traverses a key value corresponding to an object according to an provided operation object, sets a value corresponding to the key value to null, increases an extended field object key value (key _ option), and uses the extended field object key value (key _ option) to provide a data source traversed by the pull-down component, and the method for processing data includes a method for obtaining a field type provided by the data object, and a method for providing search.
Preferably, in the data exchange processing module, the service module is introduced first, and is injected in the corresponding constractor, if there is no data initially, a specified template object usage is given as follows:
defining a field, cate ═ (new operation service module). init (); .
Preferably, when executing the component application module, the form is first confirmed, the form using the top-head-down operation is confirmed, and after the form is completed, the specific application operation is started, the steps are as follows:
the front-end page traversal object cat obtains the header name from the front-end page traversal object cat and renders the header name to the page;
secondly, specific operation plug-ins are stored in the column corresponding to the header, corresponding fields are obtained according to the field type obtaining method provided in the service module, which plug-ins are used is judged according to the fields, and after the plug-ins are successfully corresponding, the operation fields of the plug-ins need to be bound and data processing methods need to be carried out on each plug-in.
Preferably, the operation service submodule inherits the method for processing data by the common service module, the data object provided by the operation service module takes the field of the data processed by the component application module as its corresponding key value, and the value corresponding to the key value is required to be in an array form.
Preferably, the array includes data types and control-use component types in the table.
The scheme preferably includes types of string, int, borolen.
Preferably, the component types include: the downlist represents that a drop-down plug-in should be used in the table, the text represents that a text input plug-in should be used in the table, and the AutoComplete represents that a fuzzy search plug-in should be used for the table.
The scheme preferably has two methods for acquiring data by using the fuzzy search plug-in:
firstly, the back end provides data in advance, the front end writes the data in a service, and screening is carried out according to original data during searching;
secondly, according to a search method provided by public service, an operation object is packaged in the operation service, a key value is required to represent a fuzzy search operation identifier in the object, a value corresponding to the key is an operation method, the method can call a rear-end interface, obtain interface data and perform corresponding processing at a front end, and can also perform screening at the front end according to provided template data and needs to provide a specific name of a form header.
Compared with the prior art, the device for realizing the traversal operation of the multi-plug-in table through the constructor based on the service has the following beneficial effects that:
a service module is designed and comprises two sub-modules, and developers can construct object data for operation in corresponding modules through a constructor through the two sub-modules.
Drawings
In order to more clearly describe the working principle of the device for implementing multi-plug-in table traversal operation through the constructor based on service, the following schematic diagram is attached for further explanation.
FIG. 1 is a schematic structural diagram of the present invention.
The reference numerals in the figures denote:
1. the service module 100, a public service submodule 101 and an operation service submodule;
2. a data exchange processing module;
3. and (5) a component application module.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, a device for implementing a multi-plug-in table traversal operation through a constructor based on service according to the present invention includes the following three modules:
the service module 1 comprises two sub-modules: the public service submodule 100 and the operation service submodule 101, wherein the public service submodule 100 provides a method for processing basic data and an additional extended key value object, and the operation service submodule 101 comprises a template for providing a data object to be processed, a method for providing a component data object and a method for operating different components;
the data exchange processing module 2 is used for processing data according to the service requirement;
the component application module 3 is based on the specific applications of the service module 1 and the data exchange processing module 2.
In the service module 1, the method for processing data traverses a key value corresponding to an object according to a provided operation object, sets a value corresponding to the key value to null, increases an extended field object key value (key _ option), and uses the extended field object key value (key _ option) to provide a data source traversed by a pull-down component.
In the data exchange processing module 2, the service module 1 is introduced first, and is injected in the corresponding constractor, and if no data exists initially, a specified template object usage is given as follows:
defining a field cate ═ (new operation service module 1). init (); .
When the component application module 3 is executed, firstly, the form is confirmed, the form of using the top header lower operation is confirmed, and after the form is completed, the specific application operation is started, and the steps are as follows:
the front-end page traversal object cat obtains the header name from the front-end page traversal object cat and renders the header name to the page;
secondly, specific operation plug-ins are stored in the column corresponding to the header, corresponding fields are obtained according to the field type obtaining method provided in the service module 1, and what plug-ins are used is judged according to the fields, and after the plug-ins are successfully corresponding, the operation fields of the plug-ins need to be bound and data processing methods need to be carried out on each plug-in.
The operation service sub-module 101 inherits the method for processing data by the common service module 1, the data object provided by the operation service module takes the field of the data processed by the component application module as the corresponding key value, and the value corresponding to the key value is required to be in an array form.
The array comprises data types and control use component types in the table.
Wherein the data types comprise string, int and coolen.
Wherein the component types include: the downlist represents that a drop-down plug-in should be used in the table, the text represents that a text input plug-in should be used in the table, and the AutoComplete represents that a fuzzy search plug-in should be used for the table.
There are two methods for obtaining data using a fuzzy search plug-in:
firstly, the back end provides data in advance, the front end writes the data in a service, and the data is screened according to the original data during searching, but the method has poor usability and high maintenance cost;
secondly, according to a search method provided by public service, an operation object is packaged in the operation service, a key value is required to represent a fuzzy search operation identifier in the object, a value corresponding to the key is an operation method, the method can call a rear-end interface, obtain interface data and perform corresponding processing at a front end, and can also perform screening at the front end according to provided template data.
While the preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all alterations and modifications as fall within the scope of the application.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.
In addition to the technical features described in the specification, the technology is known to those skilled in the art.

Claims (9)

1. A device for realizing multi-plug-in table traversal operation through a constructor based on service is characterized by comprising the following three modules:
the service module comprises two sub-modules: the system comprises a public service submodule and an operation service submodule, wherein the public service submodule provides a method for basic processing data and an additional extended key value object, and the operation service submodule comprises a template for providing a data object to be processed, a method for providing a component data object and a method for operating different components;
the data exchange processing module is used for processing the data according to the service requirement;
the component application module is based on specific applications on the service module and the data exchange processing module.
2. The device according to claim 1, wherein in the service module, the method for processing data traverses a key value corresponding to an object according to a provided operation object, sets a value corresponding to the key value to null, adds a key value (key _ option) of an extended field object and uses the key value to provide a data source traversed by a pull-down component, and the method includes a method for obtaining a field type provided by processing the data object and a method for providing a search.
3. The apparatus according to claim 1 or 2, wherein the data exchange processing module first introduces a service module, injects the service module into a corresponding constractor, and if there is no data initially, gives a specified template object usage as follows:
defining a field, cate ═ (new operation service module). init (); .
4. The device for realizing multi-plug-in table traversal operation through the constructor based on the service according to claim 1 or 2, characterized in that when the component application module is executed, firstly, the form is confirmed, the form of the operation under the upper header is confirmed, and after the style is completed, the specific application operation is started, and the steps are as follows:
the front-end page traversal object cat obtains the header name from the front-end page traversal object cat and renders the header name to the page;
secondly, specific operation plug-ins are stored in the column corresponding to the header, corresponding fields are obtained according to the field type obtaining method provided in the service module, which plug-ins are used is judged according to the fields, and after the plug-ins are successfully corresponding, the operation fields of the plug-ins need to be bound and data processing methods need to be carried out on each plug-in.
5. The device for realizing multi-plug-in table traversal operation through the constructor based on the service according to claim 1 or 2, characterized in that the operation service submodule inherits the method for the public service module to process data, the data object provided by the operation service module mainly takes the field of the data processed by the component application module as the corresponding key value, and the value corresponding to the key value is required to be in an array form.
6. The device according to claim 5, wherein the array includes data types and control-used component types in the table.
7. The apparatus according to claim 6, wherein the data types include string, int, and borolen.
8. The apparatus according to claim 6 or 7, wherein the component type includes: the downlist represents that a drop-down plug-in should be used in the table, the text represents that a text input plug-in should be used in the table, and the AutoComplete represents that a fuzzy search plug-in should be used for the table.
9. The device for implementing traversal operation of multiple plug-in tables through a constructor based on service according to claim 8, wherein there are two methods for obtaining data by using fuzzy search plug-in:
firstly, the back end provides data in advance, the front end writes the data in a service, and screening is carried out according to original data during searching;
secondly, according to a search method provided by public service, an operation object is packaged in the operation service, a key value is required to represent a fuzzy search operation identifier in the object, a value corresponding to the key is an operation method, the method can call a rear-end interface, obtain interface data and perform corresponding processing at a front end, and can also perform screening at the front end according to provided template data and needs to provide a specific name of a form header.
CN202010155675.9A 2020-03-09 2020-03-09 Device for realizing multi-plug-in form traversal operation through constructor based on service Pending CN111382157A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010155675.9A CN111382157A (en) 2020-03-09 2020-03-09 Device for realizing multi-plug-in form traversal operation through constructor based on service

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010155675.9A CN111382157A (en) 2020-03-09 2020-03-09 Device for realizing multi-plug-in form traversal operation through constructor based on service

Publications (1)

Publication Number Publication Date
CN111382157A true CN111382157A (en) 2020-07-07

Family

ID=71217238

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010155675.9A Pending CN111382157A (en) 2020-03-09 2020-03-09 Device for realizing multi-plug-in form traversal operation through constructor based on service

Country Status (1)

Country Link
CN (1) CN111382157A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160328449A1 (en) * 2015-05-06 2016-11-10 Siemens Product Lifecycle Management Software Inc. Unified set-based traversal system
CN109240693A (en) * 2018-11-23 2019-01-18 四川长虹电器股份有限公司 A kind of creation method of many condition combinatorial search control based on react
CN109933321A (en) * 2019-01-17 2019-06-25 平安科技(深圳)有限公司 Table display method and device, storage medium based on Vue frame
CN109977376A (en) * 2017-12-28 2019-07-05 广州市顺尔电子科技有限公司 A kind of more style electronic form generation system and methods
WO2019193407A1 (en) * 2018-04-01 2019-10-10 Yogesh Chunilal Rathod Presenting structured contents with search results, generating feeds & establishing communication based on search activities and enabling search result item associated user actions and reactions
CN110347985A (en) * 2019-05-30 2019-10-18 平安科技(深圳)有限公司 Method, apparatus, computer equipment and the storage medium that table generates
US20200073926A1 (en) * 2017-05-09 2020-03-05 Hefei Hanteng Information Technology Co., Ltd. Form customization method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160328449A1 (en) * 2015-05-06 2016-11-10 Siemens Product Lifecycle Management Software Inc. Unified set-based traversal system
US20200073926A1 (en) * 2017-05-09 2020-03-05 Hefei Hanteng Information Technology Co., Ltd. Form customization method and device
CN109977376A (en) * 2017-12-28 2019-07-05 广州市顺尔电子科技有限公司 A kind of more style electronic form generation system and methods
WO2019193407A1 (en) * 2018-04-01 2019-10-10 Yogesh Chunilal Rathod Presenting structured contents with search results, generating feeds & establishing communication based on search activities and enabling search result item associated user actions and reactions
CN109240693A (en) * 2018-11-23 2019-01-18 四川长虹电器股份有限公司 A kind of creation method of many condition combinatorial search control based on react
CN109933321A (en) * 2019-01-17 2019-06-25 平安科技(深圳)有限公司 Table display method and device, storage medium based on Vue frame
CN110347985A (en) * 2019-05-30 2019-10-18 平安科技(深圳)有限公司 Method, apparatus, computer equipment and the storage medium that table generates

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
代威;董运成;: "基于jQuery EasyUI与Spring MVC框架的信息管理系统自动提示的设计与实现" *

Similar Documents

Publication Publication Date Title
DE202020105389U1 (en) Front-end framework, storage medium and electronic device
CN109388396A (en) Page generation method, device, computer equipment and storage medium
CN107329747A (en) A kind of method and device for generating multi-threaded pattern
CN106909361A (en) Web development approaches and device based on masterplate engine
CN101841515A (en) Target variable protocol data unit codec code automatic generation implementation method
CN111367524B (en) Enumeration type design method and device
CN106557307B (en) Service data processing method and system
CN109840083A (en) Web pages component template construction method, device, computer equipment and storage medium
CN106815366A (en) A kind of method and system of Mass production data
CN109445771A (en) A kind of off line network layers block code Auto-Generation Tool of CS framework and method
CN102426612A (en) Condition object query method and system
CN114818553B (en) Chip integrated design method
CN106383734A (en) Method for extracting detailed design from codes
CN111382157A (en) Device for realizing multi-plug-in form traversal operation through constructor based on service
CN106293862B (en) A kind of analysis method and device of expandable mark language XML data
CN104765722A (en) Parameter configuration method and device
CN108874387B (en) Data serialization method and related equipment thereof
CN109960590A (en) A method of optimization embedded system diagnostic printing
CN108829968A (en) Circuit diagram checking method based on Python spread function
CN111221787A (en) File processing method and device
CN110990000B (en) Data request processing method, device and equipment of MVC pattern design model layer
CN113050935A (en) Method and device for generating mixed object, computing equipment and computer readable storage medium
CN109992293B (en) Method and device for assembling Android system component version information
CN106557564A (en) A kind of object data analysis method and device
CN113254027A (en) Method, system, equipment and storage medium for converting control program of semiconductor equipment

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