CN107992458A - The generation method and device of form rule - Google Patents

The generation method and device of form rule Download PDF

Info

Publication number
CN107992458A
CN107992458A CN201610950698.2A CN201610950698A CN107992458A CN 107992458 A CN107992458 A CN 107992458A CN 201610950698 A CN201610950698 A CN 201610950698A CN 107992458 A CN107992458 A CN 107992458A
Authority
CN
China
Prior art keywords
rule
data
input data
target table
preset
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610950698.2A
Other languages
Chinese (zh)
Other versions
CN107992458B (en
Inventor
武利剑
刘宏宇
杨林
罗令
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Beijing Co Ltd
Original Assignee
Tencent Technology Beijing 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 Tencent Technology Beijing Co Ltd filed Critical Tencent Technology Beijing Co Ltd
Priority to CN201610950698.2A priority Critical patent/CN107992458B/en
Publication of CN107992458A publication Critical patent/CN107992458A/en
Application granted granted Critical
Publication of CN107992458B publication Critical patent/CN107992458B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/177Editing, e.g. inserting or deleting of tables; using ruled lines
    • G06F40/18Editing, e.g. inserting or deleting of tables; using ruled lines of spreadsheets
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/14Tree-structured documents
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Artificial Intelligence (AREA)
  • Software Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses the generation method and device of a kind of form rule.This method includes:The first input data for being used for showing target table is obtained, wherein, target table is the form to be generated marked by preset language;Determine preset table rule corresponding with the first input data, preset table rule is used for the first structure data that target table the first display data to be presented and the first logical construction for determining target table are determined according to the first input data;The first rule editing region is shown according to the first display data and first structure data;The target table rule of the second structured data for determining target table the second display data to be presented and the second logical construction for determining target table is obtained into edlin to preset table rule by the first rule editing region;The target table by target table rule generation is shown in the first predeterminable area.The present invention solves the low technical problem of formation efficiency of form rule in correlation technique.

Description

The generation method and device of form rule
Technical field
The present invention relates to data processing field, in particular to the generation method and device of a kind of form rule.
Background technology
At present, in the generation of form rule, form rule can be write by writing by hand, such as, hand-coding surpasses text This markup language (Hyper Text Markup Language, referred to as HTML) form.But the generation of hand-coding form Logical process is cumbersome, during the create-rule of form is write, when create-rule changes, and the generation result of form Also can change, user cannot immediately check the change of the form generation result caused by rule changes, it is impossible to vertical Form rule is adjusted according to the generation result of form, the formation efficiency of form rule is relatively low.
The scheme that form is drawn by visualization tool exists in the prior art, but can be only generated fixed table at present, Different form cannot be dynamically generated according to different input datas, lacks the flexibility of form rule generation.Work as needs , it is necessary to depend on hand-coding create-rule when generating the rule of other forms in addition to fixed table, cause form rule not Can efficiently it generate.
For form rule in above-mentioned correlation technique formation efficiency it is low the problem of, not yet propose effective solve at present Scheme.
The content of the invention
An embodiment of the present invention provides the generation method and device of a kind of form rule, at least to solve table in correlation technique The low technical problem of the formation efficiency of lattice rule.
A kind of one side according to embodiments of the present invention, there is provided generation method of form rule.Form rule Generation method includes:The first input data for being used for showing target table is obtained, wherein, target table is to pass through preset language mark The form to be generated of note;Determine preset table rule corresponding with the first input data, wherein, preset table rule is used for root Target table the first display data to be presented and the first logic knot for determining target table are determined according to the first input data The first structure data of structure;The first rule editing region is shown according to the first display data and first structure data;Pass through first Rule editing region to preset table rule into edlin, obtain for determine target table the second display data to be presented and Target table for the second structured data of the second logical construction for determining target table is regular;Shown in the first predeterminable area Pass through the target table of target table rule generation.
Another aspect according to embodiments of the present invention, additionally provides a kind of editing device of form rule.Form rule Editing device include:Acquiring unit, for obtaining the first input data for being used for showing target table, wherein, target table For the form to be generated marked by preset language;Determination unit, for determining and the corresponding preset table of the first input data Lattice rule, wherein, preset table rule is used to determine target table the first display data to be presented according to the first input data With the first structure data of the first logical construction for determining target table;First display unit, for according to the first displaying Data and first structure data show the first rule editing region;Edit cell, for by the first rule editing region to pre- If form rule is obtained for determining target table the second display data to be presented and for determining target table into edlin The second logical construction the second structured data target table rule;Second display unit, for being shown in the first predeterminable area Show the target table by target table rule generation, wherein, target table rule is used to determining to be presented the of target table Second structured data of two display datas and the second logical construction for determining target table.
In embodiments of the present invention, by obtaining the first input data for being used for showing target table, wherein, target table For the form to be generated marked by preset language;Determine preset table rule corresponding with the first input data, wherein, in advance If form rule is used to determine target table the first display data to be presented and for determining target according to the first input data The first structure data of first logical construction of form;Show that the first rule is compiled according to the first display data and first structure data Collect region;Preset table rule is obtained being used to determine that target table is to be presented into edlin by the first rule editing region The second display data and the second logical construction for determining target table the second structured data target table rule; First predeterminable area shows the target table by target table rule generation, has reached the mesh into edlin to form rule , it is achieved thereby that improving the technique effect of the formation efficiency of form rule, and then solve form rule in correlation technique The low technical problem of formation efficiency.
Brief description of the drawings
Attached drawing described herein is used for providing a further understanding of the present invention, forms the part of the application, this hair Bright schematic description and description is used to explain the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is a kind of schematic diagram of the hardware environment of the generation method of form rule according to embodiments of the present invention;
Fig. 2 is a kind of flow chart of the generation method of form rule according to embodiments of the present invention;
Fig. 3 is the method that a kind of acquisition according to embodiments of the present invention is used to show the first input data of target table Flow chart;
Fig. 4 is another method for obtaining the first input data for being used to show target table according to embodiments of the present invention Flow chart;
Fig. 5 is the flow chart of the generation method of another form rule according to embodiments of the present invention;
Fig. 6 is the flow chart of the generation method of another form rule according to embodiments of the present invention;
Fig. 7 is a kind of side determined with the corresponding preset table rule of the first input data according to embodiments of the present invention The flow chart of method;
Fig. 8 be it is according to embodiments of the present invention it is a kind of by the first rule editing region to preset table rule into edlin Method flow chart;
Fig. 9 is the flow chart of the generation method of another form rule according to embodiments of the present invention;
Figure 10 is the flow chart of the generation method of another form rule according to embodiments of the present invention;
Figure 11 is the flow chart of the generation method of another form rule according to embodiments of the present invention;
Figure 12 is the flow chart of the generation method of another form rule according to embodiments of the present invention;
Figure 13 is a kind of schematic diagram of Table edit instrument according to embodiments of the present invention;
Figure 14 is a kind of schematic diagram of form ranks rule editor according to embodiments of the present invention;
Figure 15 is a kind of form effect diagram according to form rule generation according to embodiments of the present invention;
Figure 16 is a kind of schematic diagram of the editing device of form rule according to embodiments of the present invention;
Figure 17 is the schematic diagram of the editing device of another form rule according to embodiments of the present invention;
Figure 18 is the schematic diagram of the editing device of another form rule according to embodiments of the present invention;And
Figure 19 is a kind of structure diagram of terminal according to embodiments of the present invention.
Embodiment
In order to make those skilled in the art more fully understand the present invention program, below in conjunction with the embodiment of the present invention Attached drawing, is clearly and completely described the technical solution in the embodiment of the present invention, it is clear that described embodiment is only The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people Member's all other embodiments obtained without making creative work, should all belong to the model that the present invention protects Enclose.
It should be noted that term " first " in description and claims of this specification and above-mentioned attached drawing, " Two " etc. be for distinguishing similar object, without for describing specific order or precedence.It should be appreciated that so use Data can exchange in the appropriate case, so as to the embodiment of the present invention described herein can with except illustrating herein or Order beyond those of description is implemented.In addition, term " comprising " and " having " and their any deformation, it is intended that cover Cover it is non-exclusive include, be not necessarily limited to for example, containing the process of series of steps or unit, method, system, product or equipment Those steps or unit clearly listed, but may include not list clearly or for these processes, method, product Or the intrinsic other steps of equipment or unit.
Embodiment 1
According to embodiments of the present invention, there is provided a kind of embodiment of the generation method of form rule.
Alternatively, in the present embodiment, the generation method of above table rule can be applied to as shown in Figure 1 by servicing In the hardware environment that device 102 and terminal 104 are formed.Fig. 1 is a kind of generation side of form rule according to embodiments of the present invention The schematic diagram of the hardware environment of method.As shown in Figure 1, server 102 is attached by network and terminal 104, above-mentioned network bag Include but be not limited to:Wide area network, Metropolitan Area Network (MAN) or LAN, terminal 104 are not limited to PC, mobile phone, tablet computer etc..It is of the invention real Applying the generation method of the form rule of example can be performed by server 102, can also be performed, can also be by terminal 104 Performed jointly by server 102 and terminal 104.Wherein, terminal 104 performs the generation method of the form rule of the embodiment of the present invention Can also be performed by client mounted thereto.
Fig. 2 is a kind of flow chart of the generation method of form rule according to embodiments of the present invention.As shown in Fig. 2, the table The generation method of lattice rule may comprise steps of:
Step S202, obtains the first input data for being used for showing target table.
In the technical solution that above-mentioned steps S202 of the present invention is provided, obtain and be used for the first input number for showing target table According to, wherein, target table is the form to be generated marked by preset language.
Target table is form to be generated, for the form marked by preset language, such as, pass through hypertext markup language The form of mark is sayed, that is, target table is html table.Or to pass through extending mark language (Extensible Markup Language, referred to as XML) mark form, that is, target table is XML forms.Obtain and be used to show the of target table One input data, first input data are the original input data during the form rule of generation target table, are led to The edit effect of the form rule of the first input data displaying target table is crossed, which can derive from different Project data.The first input data of area's selection input can be selected in the input data of the main region of Table edit instrument.Should First input data can make choice input by different paths, can obtain the data prestored in local disk File as the first input data, such as, by the automatic pull-up operating-system resources manager of the label function of file type from Locally select the first input data.Alternatively, the first input data institute is selected in the input data selection area of Table edit instrument The data file of category, when receiving the operational order made choice to local file, triggers the data text of Table edit instrument Part selects event, and the backstage of Table edit instrument selects action listener to the side of the data file currently selected by data file Case title, data file is selected to obtain object table according to the Scenario Name of data file under catalogue where Table edit instrument First input data of lattice.When the data file of local disk memory storage can not meet the demand of generation target table, also may be used To obtain data as the first input data from remote server, such as, can be certainly according to the chained address of the first input data It is dynamic that first input data is downloaded by server, and then enrich the first input data.
Step S204, determines preset table rule corresponding with the first input data.
In the technical solution that above-mentioned steps S204 of the present invention is provided, determine and the corresponding preset table of the first input data Lattice rule, wherein, preset table rule is used to determine target table the first display data to be presented according to the first input data With the first structure data of the first logical construction for determining target table.
Form rule, that is, form create-rule, for the portion needed for the selection target form displaying from the first input data The logic of divided data and sets target tableau format.Preset table rule is used to determine target table according to the first input data First display data to be presented and the first structure data of the first logical construction for determining target table, to pre-establish Good form corresponding with the first input data rule, the first different input datas correspond to different preset tables and advise Then, such as, the data for showing Olympic event are corresponding with the form rule for expressing Olympic Games characteristic, which can With up to hundreds of.Obtaining for after showing the first input data of target table, determining opposite with the first input data The preset table rule answered.
Alternatively, in regular scheme selection area's selection preset table rule of Table edit instrument.When receiving to default During the operational order that form rule makes choice, regular selection event is triggered, background server selects action listener by rule To the Scenario Name of the preset table rule currently selected, selected according to the Scenario Name of preset table rule under predetermined directory File is to be used as preset table corresponding with the first input data rule.
Step S206, the first rule editing region is shown according to the first display data and first structure data.
In the technical solution that above-mentioned steps S206 of the present invention is provided, shown according to the first display data and first structure data Show the first rule editing region.
After the definite and corresponding preset table rule of the first input data, according to the first display data and the first knot Structure data show the first rule editing region, which is active sheet rule editing region, including for Represent the first display data and the first list data of first structure data, can determine to be currently generated according to the first list data Form.Alternatively, by the first rule editing region can to preset table rule into edlin, such as, delete, insertion Operation.
First rule editing region represents cell using Cell classes, such including containing cell content, occupancy line number, accounting for With columns, whether be 4 attributes of gauge outfit.Multiple Cell classes examples are put into array and just constitute cell list, multiple units A form is just constituted when lattice list is put into array, when form is represented using Table classes, form is considered as two-dimemsional number Group, cell list are the items of two-dimensional array.When cell list content to be regarded as to the row of form, this form is created by row Build, i.e. each single item of two-dimensional array represents a line of form;When regarding as cell list content by row establishment, this Form is created by row, i.e. each single item of two-dimensional array represents a row of form.
Step S208, obtains being used to determine target to preset table rule by the first rule editing region into edlin The target of form the second display data to be presented and the second structured data of the second logical construction for determining target table Form rule.
In the technical solution that above-mentioned steps S208 of the present invention is provided, preset table is advised by the first rule editing region Then into edlin, obtain for determining target table the second display data to be presented and for determining that the second of target table patrols Collect the target table rule of the second structured data of structure.
After the first rule editing region is shown according to the first display data and first structure data, pass through the first rule Editing area to preset table rule into edlin, can be by receiving the touch-control to the predeterminated position in the first rule editing region Instruction, pop-up Code Edit region, obtains being used to determine target to preset table rule by Code Edit region into edlin The target of form the second display data to be presented and the second structured data of the second logical construction for determining target table Form rule.
Step S210, the target table by target table rule generation is shown in the first predeterminable area.
In the technical solution that above-mentioned steps S210 of the present invention is provided, show in the first predeterminable area and advised by target table The target table then generated.
By the first rule editing region to preset table rule into after edlin, the first input number can be directed to According into edlin, can also being directed to the corresponding preset table rule of the first input data into edlin.
By above-mentioned steps S202 to step S210, the first input data for showing target table is used for by acquisition, its In, target table is the form to be generated marked by preset language;Determine and the corresponding preset table of the first input data Rule, wherein, preset table rule be used for according to the first input data determine target table the first display data to be presented and First structure data for the first logical construction for determining target table;Shown according to the first display data and first structure data Show the first rule editing region;Preset table rule is obtained being used to determine mesh into edlin by the first rule editing region Mark the mesh of form the second display data to be presented and the second structured data of the second logical construction for determining target table Mark form rule;The target table by target table rule generation is shown in the first predeterminable area, can solve related skill The low technical problem of the formation efficiency of form rule in art, and then improve the technique effect of the formation efficiency of form rule.
As a kind of optional embodiment, step S202, obtaining the first input data for being used to show target table includes: First input data is loaded from server according to chained address corresponding with the first input data, avoids can be only generated fixed table Lattice rule, so as to improve the formation efficiency of form rule.
Fig. 3 is the method that a kind of acquisition according to embodiments of the present invention is used to show the first input data of target table Flow chart.As shown in figure 3, the acquisition is used to show that the method for the first input data of target table comprises the following steps:
Step S301, receives the first acquisition instruction for being used for that the first input data to be obtained from server.
In the technical solution that above-mentioned steps S301 of the present invention is provided, receive and be used to obtain the first input data from server First obtain instruction.
Start form rule editing instrument, after form rule editing instrument is started, obtain and be used to show target table The first input data.The first input data can be obtained through a variety of ways, alternatively, the first input is obtained by server Data.The the first acquisition instruction for being used for that the first input data to be obtained from server is received, such as, by under Table edit instrument Draw selection in menu to be used for the menu for receiving the instruction for the chained address for obtaining the first list data from server, or pass through table The predeterminable area of lattice rule editing instrument receives touching signals to obtain the first acquisition instruction.
Step S302, obtains instruction according to first and obtains chained address corresponding with the first input data.
In the technical solution that above-mentioned steps S302 of the present invention is provided, obtain instruction according to first and obtain and the first input number According to corresponding chained address, wherein, chained address is the position that the first input data is stored on server.
The corresponding chained address of first input data can be the position that the first input data is directly acquired from server, Can also be the chained address for obtaining the corresponding website of the first list data stored on server, alternatively, the link Address for the first list data universal resource locator (Uniform Resource Locator, referred to as URL).Connecing Receipts are used for after the first of server the first list data of acquisition obtains instruction, defeated according to the first acquisition instruction acquisition and first Enter the corresponding chained address of data.Alternatively, which obtains according to first instructs acquisition corresponding with the first list data By asynchronous Javascript And XML, (Asynchronous Javascript And XML, are referred to as chained address AJAX) technology is realized, wherein, AJAX is a kind of web development technologies of establishment formula Interactive Web Page application, and Javascript is A kind of programming language for realizing ECMA-262 standards, details are not described herein again.
Alternatively, selection is used to receive from the first input of server acquisition in the drop-down menu by Table edit instrument After the menu of the instruction of the link of data, the chained address locally prestored is obtained, can also be in Table edit instrument Predeterminable area receives the chained address that user directly inputs.
Step S303, the first input data is loaded according to chained address from server.
In the technical solution that above-mentioned steps S303 of the present invention is provided, inputted according to chained address from server loading first Data.
Obtained according to first after instruction obtains corresponding with the first input data chained address, according to chained address to Server, which is sent, to be used to ask the acquisition request for obtaining the first input data from server, and server receives acquisition request, and Responded to obtaining request, obtain the first input data.After server is to obtaining request response, loaded from server First input data, and then realize the first input data for obtaining and being used for generating target table.In the base of the first list data Create-rule is edited on plinth, improves the efficiency of form generation.
Alternatively, targeted customer inputs the corresponding chain ground connection of the first input data in the predeterminable area of Table edit instrument Location, will download from a server the first input data automatically, improve the efficiency of form generation.
The embodiment is instructed by receiving the first acquisition for being used to obtain the first input data from server;Obtained according to first Instruction fetch obtains chained address corresponding with the first input data, wherein, chained address is the input of storage first number on server According to position;First input data is loaded from server according to chained address, realizes to obtain and is used to show the of target table The purpose of one input data.
As a kind of optional embodiment, step S202, obtaining the first input data for being used to show target table includes: First default file is obtained from local according to the identification information of the first default file, and loads the first input data.
Fig. 4 is another method for obtaining the first input data for being used to show target table according to embodiments of the present invention Flow chart.As shown in figure 4, the acquisition is used to show that the method for the first input data of target table comprises the following steps:
Step S401, receives local the second acquisition instruction for obtaining the first input data being used for from client.
In the technical solution that above-mentioned steps S401 of the present invention is provided, receive defeated for the local acquisition first from client Enter data second obtains instruction.
Start Table edit instrument, after Table edit instrument is started, obtain for generating the first defeated of target table Enter data.The first input data can be obtained through a variety of ways, and alternatively, local from client obtains the first form number According to that is, passing through the first input data of file acquisition in local disk.Such as the drop-down menu by Table edit instrument Middle selection is used to receive the menu from the local instruction for obtaining the first input data, or the preset areas by Table edit instrument Domain receives touching signals to obtain the first acquisition instruction.
Step S402, according to the second identification information for obtaining instruction the first default file of acquisition.
In the technical solution that above-mentioned steps S402 of the present invention is provided, obtain instruction according to second and obtain the first default file Identification information, wherein, the first default file includes the first input data.
First default file is the data file being locally stored, and includes first of the create-rule for generating target table Input data.It is used for receiving after the second of the first input data of local acquisition obtains instruction, obtains the first default file Input (Input) label function of file (File) type of the html language in local disk.Can also be in Table edit The predeterminable area of instrument receives the store path or title that user selects the first default file of input, obtains the first default text The identification information of part.
Step S403, the first default file is obtained according to identification information from local, and loads the first input data.
In the technical solution that above-mentioned steps S403 of the present invention is provided, the first default text is obtained from local according to identification information Part, and load the first input data.
After the identification information that instruction obtains the first default file is obtained according to second, the money of automatic pull-up operating system Source manager selects the first default file, and loads the first input data in the first default file, and then realizes acquisition Purpose for the first input data for generating target table.On the basis of the first input data into edlin create-rule, carry The high efficiency of Table edit.
The embodiment is used to instruct from local the second acquisition for obtaining the first input data of client by receiving;According to Second obtains the identification information that instruction obtains the first default file, wherein, the first default file includes the first input data;According to Identification information obtains the first default file from local, and loads the first input data, realizes acquisition and is used to show target table The first input data purpose.
As a kind of optional embodiment, after the first input data is loaded, the form of the first input data is carried out Processing, the first input data after the processing of the second predeterminable area display formatization.
Fig. 5 is the flow chart of the generation method of another form rule according to embodiments of the present invention.As shown in figure 5, should The generation method of form rule is further comprising the steps of:
Step S501, handles the form of the first input data, obtains the second input data.
In the technical solution that above-mentioned steps S501 of the present invention is provided, the form of the first input data is handled, is obtained To the second input data.
After the first input data is loaded, default expression formula can be used to match first the form of first input data The key components of input data are handled, such as, language is exchanged using the text data of matching regular expressions lightweight The crucial compositions such as the brace of speech (JavaScript Object Notation, referred to as JSON) data structure, key, value comma Part, is the forms such as different parts addition line feed, the retraction of the first input data, obtains the second input data.
Step S502, the second input data is shown in the second predeterminable area.
In the technical solution that above-mentioned steps S502 of the present invention is provided, the second input data is shown in the second predeterminable area.
Handle in the form to the first input data, after obtaining the second input data, shown in the second predeterminable area Show the second input data, that is, preview is carried out in input data preview region after handling the form of the first input data, Strengthen the readability of data, the second input data is checked so as to be easy to developer, understand in time in form rule The state of input data in generating process.
The embodiment is by after the first input data is loaded, handling the form of the first input data, obtaining Second input data;The second input data is shown in the second predeterminable area, improves the efficiency of form rule generation.
As a kind of optional embodiment, determine with after the corresponding preset table rule of the first input data, 3rd predeterminable area shows the first output data handled the form of the first display data;Passing through the first rule Editing area into edlin, obtains for determining target table the second display data to be presented and being used for preset table rule After the target table rule for determining the second structured data of the second logical construction of target table, updated in the 3rd predeterminable area First output data is the second output data handled the form of the second display data.
Fig. 6 is the flow chart of the generation method of another form rule according to embodiments of the present invention.As shown in fig. 6, should The generation method of form rule is further comprising the steps of:
Step S601, handles the form of the first display data, obtains the first output data.
In the technical solution that above-mentioned steps S601 of the present invention is provided, the form of the first display data is handled, is obtained To the first output data.
The first input data for showing target table is being obtained, is being determined and the corresponding preset table of the first input data After lattice rule, according to the definite target table of preset table rule the first display data to be presented, to the first display data The key components that form can use default expression formula to match the first display data are handled, such as, using canonical table It is that the different of the first display data form up to key components such as the brace of formula matching JSON data structures, key, value commas The forms such as part addition line feed, retraction, obtain the first output data.
Step S602, the first output data is shown in the 3rd predeterminable area.
In the technical solution that above-mentioned steps S602 of the present invention is provided, the first output data is shown in the 3rd predeterminable area.
Handle in the form to the first display data, after obtaining the first output data, shown in the 3rd predeterminable area Show the first output data, that is, preview is carried out in output data preview region after handling the form of the first display data, Strengthen the readability of data, the first output data is checked so as to be easy to developer, understand in time in form rule The state of output data in generating process.
Step S603, handles the form of the second display data, obtains the second output data.
In the technical solution that above-mentioned steps S603 of the present invention is provided, the form of the second display data is handled, is obtained To the second output data.
By the first rule editing region to preset table rule into edlin, obtain being used to determine that target table is waited to open up The second display data and the target table rule of the second structured data of the second logical construction for determining target table shown Afterwards, can to the form of the second display data according to the definite target table of target table rule the second display data to be presented Handled with the key components for matching the second display data using default expression formula, such as, using regular expression The key components such as brace, key with JSON data structures, value comma, add for the different parts of the second display data Add the forms such as line feed, retraction, obtain the second output data.
Step S604, it is the second output data to update the first output data in the 3rd predeterminable area.
In the technical solution that above-mentioned steps S604 of the present invention is provided, updating the first output data in the 3rd predeterminable area is Second output data.
Handled in the form to the second display data, after obtaining the second output data, in the 3rd predeterminable area more New first output data is the second output data, that is, in output data after handling the form of the second display data Preview region carries out preview, strengthens the readability of data, the second output data is checked so as to be easy to developer, timely The state of solution output data in the generating process of form rule, can check in time causes to tie because of the change of form rule The change of fruit, is in time modified form rule, improves the efficiency that form rule is write.
The embodiment is by determining with after the corresponding preset table rule of the first input data, number is shown to first According to form handled, obtain the first output data;The first output data is shown in the 3rd predeterminable area;Passing through the first rule Then editing area is obtained for determining target table the second display data to be presented and use to preset table rule into edlin After the target table rule of the second structured data of the second logical construction of target table is determined, method further includes:To The form of two display datas is handled, and obtains the second output data;The first output data is updated for the in the 3rd predeterminable area Two output datas, improve the efficiency that form rule is write.
As a kind of optional embodiment, step S204, determines preset table rule corresponding with the first input data Including:Improve pre- for selecting the selection instruction of preset table rule to search corresponding with rule name second from predetermined directory If file, preset table rule is obtained from the second default file.
Fig. 7 is a kind of side determined with the corresponding preset table rule of the first input data according to embodiments of the present invention The flow chart of method.As shown in fig. 7, this determines to include following step with the method for the corresponding preset table rule of the first input data Suddenly:
Step S701, receives the selection instruction for being used for selecting preset table rule.
In the technical solution that above-mentioned steps S701 of the present invention is provided, receive and be used to select the selection of preset table rule to refer to Order.
Preset table rule is regular for the form corresponding from different first input datas pre-established.Used obtaining After the first input data of displaying target table, the selection instruction for being used for selecting preset table rule is received.User can be with A preset table rule is selected in form regular scheme selection area, menu can be triggered at this time and change event, can be passed through from the background Preset function listens to the behavior that user selects menu, such as, user is listened to by addEventListener functions and is selected The behavior of menu.
Step S702, the rule name of preset table rule is detected according to selection instruction.
In the technical solution that above-mentioned steps S702 of the present invention is provided, the rule of preset table rule are detected according to selection instruction Then title.
Receiving for after selecting the selection instruction of preset table rule, preset table rule to be detected according to selection instruction Rule name.Alternatively, after the behavior of user's selection menu is listened to by addEventListener functions, pass through This function can further detect the Scenario Name for the form rule that user currently selects.
Step S703, searches the second default file corresponding with rule name from predetermined directory.
In above-mentioned steps S703 of the present invention, there is provided technical solution in, from predetermined directory search it is corresponding with rule name The second default file, wherein, the second default file include preset table rule.
, can be where form rule editor after the rule name of preset table rule is detected according to selection instruction In the subdirectory of the same name with preset table rule name under catalogue find index.js files, the index.js files be from The second default file corresponding with rule name found in predetermined directory.
Step S704, in the case where finding the second default file, obtains preset table rule from the second default file Then.
In the technical solution that above-mentioned steps S704 of the present invention is provided, in the case where finding the second default file, from Preset table rule is obtained in second default file.
, can be using iindex.js files as preset table rule in the case where finding the second default file.
The embodiment is by receiving the selection instruction for being used for selecting preset table rule;Preset table is detected according to selection instruction The rule name of lattice rule;The second default file corresponding with rule name, the second default file bag are searched from predetermined directory Include preset table rule;In the case where finding the second default file, preset table rule is obtained from the second default file, Realize the purpose determined with the corresponding preset table rule of the first input data.
As a kind of optional embodiment, step S208, carries out preset table rule by the first rule editing region Editor, obtains for determining target table the second display data to be presented and the second logical construction for determining target table The target table rule of the second structured data include:It is used for according to what the first rule editing region received to preset table rule First the first edit instruction of edit instruction into edlin shows Second Rule editing area;Connect by Second Rule editing area Receive the second edit instruction;Target table rule is obtained into edlin to preset rules code according to the second edit instruction.
Fig. 8 be it is according to embodiments of the present invention it is a kind of by the first rule editing region to preset table rule into edlin Method flow chart.As shown in figure 8, method bag of the first rule editing region to preset table rule into edlin should be passed through Include following steps:
Step S801, the first editor being used for preset table rule into edlin is received by the first rule editing region Instruction.
In the technical solution that above-mentioned steps S801 of the present invention is provided, received and be used for pre- by the first rule editing region If form rule is into the first edit instruction of edlin.
The first rule editing region is shown according to the first display data and first structure data, the first rule editing region Be included in for preset table rule into during edlin can touch-control button, such as, " insertion " button, " deletion " button, with And button to cell editor etc..According to the first display data and first structure data show the first rule editing region it Afterwards, the button that user can be clicked on the first rule editing region, which produces, to be used to compile preset table rule into the first of edlin Instruction is collected, so that passing through the first rule editing region receives the first edit instruction.
Step S802, Second Rule editing area is shown according to the first edit instruction.
In the technical solution that above-mentioned steps S802 of the present invention is provided, Second Rule editor is shown according to the first edit instruction Region, wherein, Second Rule editing area shows the corresponding preset rules code of preset table rule.
The rule of row or column is bundled in the button in the first rule editing region using MVVM frames vue.js by the embodiment On.Wherein, MVVM frames are a kind of data model and the design pattern of graphics field binding.Passing through the first rule editing region Receive and be used to show Second Rule according to the first edit instruction into after the first edit instruction of edlin to preset table rule Editing area, the Second Rule editing area are the boundary for showing and editing the corresponding preset rules code of preset table rule Face, that is, show and edit the first rule editing region by the corresponding code of the button of touch-control, such as, the rule of displaying first is compiled Collect the rule code of corresponding a line of cell of form or a row in region.Alternatively, if the corresponding table of preset rules Lattice are the form created by row, and click on cell editor is the rule of a line, if the corresponding form of preset rules is by row The form of establishment, click on cell editor is the rule of a row.
Step S803, the second edit instruction is received by Second Rule editing area.
In the technical solution that above-mentioned steps S803 of the present invention is provided, the second editor is received by Second Rule editing area Instruction.
After Second Rule editing area is shown according to the first edit instruction, user can pass through Second Rule editing area Domain input starts the input signal to preset table rule into edlin, input editing code, so that Second Rule editor Region receives the second edit instruction.
Step S804, target table rule is obtained according to the second edit instruction to preset rules code into edlin.
Above-mentioned steps S804 of the present invention provide technical solution in, according to the second edit instruction to preset rules code into Edlin, obtains target table rule.
After the second edit instruction is received by Second Rule editing area, according to the second edit instruction to preset rules Code into edlin, can according to the second edit instruction to the line code of preset rules code into edlin, obtain target table Rule line discipline, can also according to the second edit instruction to the row code of preset rules code into edlin, obtain object table The row rule of lattice.After being completed according to the second edit instruction to preset rules code into edlin, receive and be used to indicate basis The instruction that second edit instruction completes preset rules Code Edit, such as, pass through " submission " on Second Rule editing area Button, which receives, submits instruction, then generates target table rule, checks the correctness of target table rule, in target table rule just In the case of really, target table rule is preserved.
The embodiment receives the first editor being used for preset table rule into edlin by the first rule editing region Instruction;Second Rule editing area is shown according to the first edit instruction, wherein, Second Rule editing area shows preset table rule Then corresponding preset rules code;Second edit instruction is received by Second Rule editing area;According to the second edit instruction pair Preset rules code obtains target table rule into edlin, realize the first rule editing region to preset table rule into Edlin, obtains the purpose of target table rule, improves the formation efficiency of form rule.
As a kind of optional embodiment, the first rule editing region is shown for representing the first display data and first First list data of structured data, in step S804, obtains preset rules code into edlin according to the second edit instruction It is for representing the second display data and the in first the first list data of rule editing area update after target table rule Second list data of two structured datas.
First rule editing region shows the first form number for representing the first display data and first structure data According to, such as, the first list data include cell content, take line number, take columns, whether be 4 attributes of gauge outfit.It is optional Ground, the form rule editor inside of the embodiment represent cell using Cell classes, multiple Cell classes examples are put into array Cell list is just constituted, a form is just constituted when multiple cell lists are put into array, Table classes can be used Represent, form is considered as two-dimensional array at this time, and cell list is the item of two-dimensional array.Regard as when by cell list content During the row of form, then this form is created by row, i.e. each single item of two-dimensional array represents a line of form;When by cell When list content is regarded as by row establishment, claiming this form is created by row, i.e. each single item of two-dimensional array represents form One row.According to the second edit instruction to preset rules code into edlin, after obtaining target table rule, the first form number According to comprising cell content, take line number, take columns, whether be that 4 attributes of gauge outfit also change with the change of preset rules, The second list data is obtained, is for representing the second display data and the in first the first list data of rule editing area update Second list data of two structured datas, so as to fulfill target table data or structure with the change of form rule and even if Renewal and display, so that user recognizes the generating process of form rule in time, improve the formation efficiency of form rule.
As a kind of optional embodiment, step S801, is received by the first rule editing region and is used for preset table First edit instruction of rule into edlin includes:Received by the first rule editing region and be used to compile default line discipline The edlin instruction collected;Or received by the first rule editing region and be used to refer to the row editor of default row rule into edlin Order, wherein, default line discipline is used for the first row attribute for determining target table, and default row rule is used to determining the of target table One Column Properties, preset table rule include default line discipline and default row rule;Step S804, according to the second edit instruction to pre- Into edlin, if obtain target table rule includes rule code:Default line discipline code is carried out according to the second edit instruction Editor, obtains target line discipline, wherein, preset rules code includes default line discipline code, and target line discipline is used to determine mesh Mark the second row attribute of form;Or according to the second edit instruction to default row rule code into edlin, obtain target column rule, Wherein, preset rules code includes default row rule code, and target column rule is used for the second Column Properties for determining target table.
Preset table rule includes being used to determine the default line discipline of the first row attribute of target table and for determining mesh Mark the default row rule of the first Column Properties of form.When cell list content to be regarded as to the row of form, this form be by Row create, click on the first rule editing region cell editor be a line rule, pass through the first rule editing region Receive and be used to instruct the edlin for presetting line discipline into edlin.When regarding as cell list content by row establishment, This form be by row create, click on the first rule editing region cell editor be a row rule, pass through first Rule editing region receives the row edit instruction being used for default row rule into edlin, passes through the first rule editing area to realize Domain receives the first edit instruction being used for preset table rule into edlin.Preset rules code includes default line discipline code With default row rule code, by Second Rule editing area receive the second edit instruction after, according to the second edit instruction To default line discipline code into edlin, the line discipline code of the second row attribute for determining target table is obtained;Or according to Second edit instruction, into edlin, obtains the row rule of the second Column Properties for determining target table to default row rule code Code, finally carries out completion confirmation to the editor of preset rules code, obtains target table rule, to realize according to the second editor Instruction, into edlin, obtains the purpose of target table rule to preset rules code.
As a kind of optional embodiment, after the first predeterminable area display target form, according to the first predeterminable area Being used for of receiving show three sigma rule editing area to the 3rd edit instruction of preset table rule into edlin, passes through the 3rd and advises Then editing area receives the 3rd edit instruction;Object table is obtained into edlin to preset rules code according to the 3rd edit instruction Lattice rule.
Fig. 9 is the flow chart of the generation method of another form rule according to embodiments of the present invention.As shown in figure 9, should The generation method of form rule is further comprising the steps of:
Step S901, is received by the first predeterminable area and is used to refer to the 3rd editor of preset table rule into edlin Order.
In the technical solution that above-mentioned steps S901 of the present invention is provided, received and be used for preset table by the first predeterminable area Threeth edit instruction of the lattice rule into edlin.
The embodiment uses the two-way binding function of MVVM frames.After the first predeterminable area display target form, pass through Target table reversely adjusts form rule, with to the further optimization of form rule.It can be received and be used for by the first predeterminable area The 3rd edit instruction to preset table rule into edlin.That is, user clicks on the target table that the first predeterminable area is shown A certain cell, produce the 3rd edit instruction.
Step S902, three sigma rule editing area is shown according to the 3rd edit instruction.
In the technical solution that above-mentioned steps S902 of the present invention is provided, three sigma rule editor is shown according to the 3rd edit instruction Region, wherein, three sigma rule editing area shows the corresponding preset rules code of preset table rule.
After being received by the first predeterminable area for threeth edit instruction of the preset table rule into edlin, root Three sigma rule editing area is shown according to the 3rd edit instruction, that is, user clicks on the target table that the first predeterminable area is shown A certain cell, produces the 3rd edit instruction, and pop-up is used for the editing interface to preset table rule code into edlin.It is optional Ground, the three sigma rule editing area of the embodiment is identical with above-mentioned Second Rule editing area, shows the cell of target table The rule code of a line at place or a row.
Step S903, the 3rd edit instruction is received by three sigma rule editing area.
In the technical solution that above-mentioned steps S903 of the present invention is provided, the 3rd editor is received by three sigma rule editing area Instruction.
After three sigma rule editing area is shown according to the second edit instruction, user can pass through three sigma rule editing area Domain input starts the input signal to preset table rule into edlin, input editing code, so that three sigma rule editor Region receives the 3rd edit instruction.
Step S904, target table rule is obtained according to the 3rd edit instruction to preset rules code into edlin.
Above-mentioned steps S904 of the present invention provide technical solution in, according to the 3rd edit instruction to preset rules code into Edlin, obtains target table rule.
After the 3rd edit instruction is received by three sigma rule editing area, according to the 3rd edit instruction to preset rules Code into edlin, can according to the 3rd edit instruction to the line code of preset rules code into edlin, obtain target table Rule line discipline, can also according to the 3rd edit instruction to the row code of preset rules code into edlin, obtain object table The row rule of lattice.After being completed according to the 3rd edit instruction to preset rules code into edlin, receive and be used to indicate basis The instruction that 3rd edit instruction completes preset rules Code Edit, such as, pass through " submission " on three sigma rule editing area Button, which receives, submits instruction, then generates target table rule, checks the correctness of target table rule, in target table rule just In the case of really, target table rule is preserved.
The embodiment is received by the first predeterminable area and is used for pair by after the first predeterminable area display target form Threeth edit instruction of the preset table rule into edlin;Three sigma rule editing area is shown according to the 3rd edit instruction, wherein, Three sigma rule editing area shows the corresponding preset rules code of preset table rule;The is received by three sigma rule editing area Three edit instructions;Is obtained by target table rule, is realized to table into edlin for preset rules code according to the 3rd edit instruction Lattice rule improves the formation efficiency of form rule into the purpose of edlin.
As a kind of optional embodiment, to preset table rule into edlin, after obtaining target table rule, In the case of judging that target table rule meets preset condition, target table rule is preserved.
Figure 10 is the flow chart of the generation method of another form rule according to embodiments of the present invention.As shown in Figure 10, The generation method of form rule is further comprising the steps of:
Step S1001, judges whether target table rule meets preset condition.
In the technical solution that above-mentioned steps S1001 of the present invention is provided, judge whether target table rule meets default bar Part.
Preset table rule into edlin, after obtaining target table rule, is being received and is being used to indicate to preset table Rule editing complete instruction, such as, by above-mentioned Second Rule editing area and three sigma rule editing area to preset table After lattice rule code editor completes, " submission " button is clicked on, then esprima storehouses can be used to analyze inside form rule editor Whether the grammer of target table rule code is wrong.
Step S1002, preserves target table rule.
Above-mentioned steps S1002 of the present invention provide technical solution in, if it is judged that target table rule meet it is default Condition, preserves target table rule.Alternatively, it is errorless in the grammer that target table rule code is analyzed by esprima storehouses In the case of, target table rule is preserved, that is, preserving form configuration, notifies background update form rule file, while first is pre- If the second output data that the target table that region is shown, the second predeterminable area are shown, the first rule editing region show Two list datas are all updated with target table rule.
In this embodiment, whenever tool initialization, or during renewal form rule, the resolution logic of form can be triggered, If parse be Table classes example, the example of the Table classes is tied to interface by MVVM, so interface display Form can change with the change of input data, with the different and different of preset table rule selection, with to preset table rule Code is different and different into the logic of edlin, greatly facilitates developer and writes form create-rule, improves form The efficiency of rule editing.
The embodiment to preset table rule by, into edlin, after obtaining target table rule, judging object table Whether lattice rule meets preset condition;If it is judged that target table rule meets preset condition, target table rule is preserved, into And the renewal to form rule is realized, improve the efficiency of form rule editing.
Embodiment 2
Technical scheme is illustrated with reference to preferred embodiment.Specifically advised with the form of html table Then generation method is introduced.
Figure 11 is the flow chart of the generation method of another form rule according to embodiments of the present invention.As shown in figure 11, The generation method of form rule comprises the following steps:
Step S1101, starts html table rule developing instrument.
The html table rule developing instrument of the embodiment is html table rule editor.
Step S1102, judges whether input data comes from file.
The embodiment supports number of ways to obtain input data, which is used to show target table.Starting After html table rule developing instrument, judge whether input data to be obtained comes from file.If it is judged that input data From file, step S1103 is performed, if it is judged that input data does not come from file, performs step 1104.
Step S1103, the select file out of local disk.
After judging whether input data comes from file, if it is judged that input data comes from file, from local disk Interior select file.Alternatively, the input label functions of the File types of html language are passed through so that html table rule exploitation Instrument can pull-up operating-system resources manager select file out of local disk automatically.In the select file out of local disk Afterwards, step S1105 is performed.
Step S1104, obtains the chained address of input data.
After judging whether input data comes from file, if it is judged that input data does not come from file, Ke Yicong Remote web server obtains input data, and alternatively, the data for obtaining remote web server have used Ajax technologies, Yong Huke To fill in or select chained address in the input frame of html table rule developing instrument.
Step S1105, loads input data automatically.
After the select file out of local disk, according to the file loading html table rule selected out of local disk The input data of developing instrument;The chained address of input data is being obtained, is downloading input data automatically.
Step S1106, clicks on configuring area, and the form rule of a row or column is obtained in the editing machine of pop-up.
After loading input data automatically, configuring area is clicked on, that is, the first rule editing area in above-described embodiment Domain, and user fills in the form rule of a row or column in the editing machine of pop-up, so as to obtain the form of a row or column Rule.Wherein, the Second Rule editing area in editing machine namely above-described embodiment.When form is the form by row establishment, The line discipline code for rule of filling up a form in editing machine, when form is the form by row establishment, fills in table in editing machine The row rule code of lattice rule.
Step S1107, judges whether form rule is correct.
After the form rule that a row or column is obtained in the editing machine of pop-up, judge whether form rule is correct, can With whether wrong using esprima storehouses analysis rule code syntax.If it is judged that form rule is correct, step S1108 is performed, If it is judged that form rule is incorrect, step S1106 is performed, continues to click on configuring area, and in the editing machine of pop-up Obtain the form rule of a row or column.
Step S1108, preserves form rule.
After judging whether form rule is correct, if it is judged that form rule is correct, opened by html table rule Hair instrument background update rule file, and then form rule is preserved, complete the configuration to form rule.
The embodiment judges whether input data comes from file, if sentenced by starting html table rule developing instrument Break and input data and come from file, the select file out of local disk, if it is judged that input data does not come from file, obtain The chained address of input data, loads input data automatically, clicks on configuring area, and obtain a line in the editing machine of pop-up Or one row form rule, judge whether form rule correct, judge form rule correctly in the case of preserve form rule Then, the formation efficiency of form rule is improved.
Figure 12 is the flow chart of the generation method of another form rule according to embodiments of the present invention.As shown in figure 12, The generation method of form rule comprises the following steps:
Step S1201, after target table rule is generated, reacquires input data.
Step S1202, determines the exemplary form rule of Table classes, the rule of row or column is bundled in interface by MVVM Button, to form rule into edlin.
Step S1203, according to the form rule generation html table after editor.
The embodiment is by after target table rule is generated, reacquiring input data, determining that Table classes are exemplary The rule of row or column, the button at interface is bundled in by MVVM, to form rule into edlin, after editor by form rule Form rule generation html table, avoiding the generation of hand-coding html table, logical process is cumbersome, mistake in redaction rule Cannot be checked immediately in journey because rule change caused by results change, it is less efficient the problem of.Avoid at the same time by can The problem of form can only make fixed html table, shortage flexibility, the embodiment preferred pin pair are drawn depending on changing HTML instruments Html table design, very easily assists developers html table create-rule can be write, can be according to not so as to reach Same input data is dynamically generated the function of different form.
It should be noted that above-described embodiment uses be preferable to carry out method of the html table for the embodiment of the present invention, not It is only html table to be limited to form, any form that can verify form rule formation efficiency all protection scope of the present invention it It is interior, no longer repeat one by one herein.
Embodiment 3
The application environment of the embodiment of the present invention can be, but not limited to reference to the application environment in above-described embodiment, the present embodiment In this is repeated no more.An embodiment of the present invention provides the optional tool of one kind of the generation method for implementing above table rule Body application.
Figure 13 is a kind of schematic diagram of Table edit instrument according to embodiments of the present invention.As shown in figure 13, the embodiment Table edit instrument include input data selection area, input data preview region, form regular scheme selection area, active sheet rule Then editing area, form preview region and output data preview region.
Input data selection area, input data preview region, form regular scheme selection area, active sheet are advised separately below Then editing area, form preview region and output data preview region.
(1) input data selection area
Input data selection area has the function of input data acquisition, which is used to show target table, is specially The source for the data that preset rules selection displaying target table needs, can be JSON data.The embodiment is supported using local File in disk and the data from remote web server are as input data.Local disk data are obtained to use The file type input label functions of html language so that Table edit instrument can pull-up operating-system resources management automatically Device carrys out select file, and this document is JSON files;Obtain remote web server data and used Ajax technologies, when user is defeated Input data will be downloaded automatically by entering to fill in link in frame, can obtain input data by the URL of input data.
(2) input data preview region
After input data is obtained, the form of input data is handled, can be after input data be got Using key components such as the brace of matching regular expressions JSON data structures, key, value, commas, for the difference of data Part addition line feed, retraction etc. form, realize the preview to input data, beneficial to developer to input data in time Checked.
(3) form regular scheme selection area
After input data is got, preset table rule corresponding with input data is obtained.Preset table rule is used Required part data and setting tableau format when selection target form is shown from input data.Different first is defeated Enter data and correspond to different preset table rules, such as, the table of data and expression Olympic Games characteristic for showing Olympic event Lattice rule is corresponding, the preset table rule can up to hundreds of.Obtain be used for show target table input data it Afterwards, preset table rule corresponding with input data is determined.Alternatively, receive and be used to select the selection of preset table rule to refer to Order.User can select area to select a preset table rule in form regular scheme, can trigger menu at this time and change event, after Platform can listen to the behavior that user selects menu by preset function, such as, monitored by addEventListener functions The behavior of menu is selected to user.The form regular scheme title currently selected by this function check to user, then from work Where tool under catalogue with found in form regular scheme title subdirectory of the same name ex.json files as input data, Index.js is as form create-rule.
(4) active sheet rule editing area
After input data and definite preset table rule is obtained, it is determined that determine target according to the first input data The first structure data of form the first display data to be presented and the first logical construction for determining target table, according to One display data and first structure data show current rule editing region, and regular editing area includes being used for representing the before deserving One display data and the list data of first structure data and " insertion " button for insertion operation and for delete operation " deletion " button.
This Table edit tool interior represents cell using Cell classes, such to include cell content, take line number, account for With columns, whether be 4 attributes of gauge outfit.Multiple Cell classes examples are put into array and just constitute cell list, multiple units A form is just constituted when lattice list is put into array, represents that form is considered as two-dimensional array at this time using Table classes, it is single First lattice list is the item of two-dimensional array.When cell list content to be regarded as to the row of form, form is created by row, i.e., two The each single item of dimension group represents a line of form;When by cell list content regard as by row create when, this form be by What row created, i.e. each single item of two-dimensional array represents a row of form.
Alternatively, shown in active sheet rule editing area for representing the first display data and first structure data List data, from the top down, includes from left to right:[{html:" stage ", rowSpan:3 }], for representing in list cell The line number in " stage " is 3, columns 1;[{html:" holding ", colSpan:2 }], for representing " holding " in list cell Line number be 1, columns 2;[{html:" holding number ", rowSpan:2 }], for representing " holding number " in list cell Line number is 2, columns 1;[{html:" time ", rowSpan:2 }], for representing that the line number of " time " in list cell is 2, columns 1;[{html:" score/fumble ", colSpan:8 }], for representing the row of " score/fumble " in list cell Number is 1, columns 8;[{html:" how much shoot ", colSpan:2 }], for represent in list cell " how much to penetrate The line number of door " is 1, columns 2;[{html:" goal " }], the line number for representing " stage " in list cell is 1, columns For 1;[{html:" lost " }], the line number for representing " lost " in list cell is 1, columns 1;[{html:" attack Shooting ", colSpan:2 }], for representing that the line number of " attack shooting " in list cell is 1, columns 2;[{html:" into Ball " }], the line number for representing " goal " in list cell is 1, columns 1;[{html:" lost " }], for representing table The line number of " lost " in lattice unit is 1, columns 1;[{html:" free kick ", colSpan:2 }], for representing form list The line number of " free kick " in member is 1, columns 2;[{html:" goal " }], for representing " goal " in list cell Line number is 1, columns 1;[{html:" lost " }], the line number for representing " lost " in list cell is 1, columns 1; [{html:" 5 meters of shootings ", colSpan:2 }], for representing that the line number of " 5 meters of shootings " in list cell is 1, columns 2; [{html:" goal " }], the line number for representing " goal " in list cell is 1, columns 1;[{html:" lost " }], Line number for representing " lost " in list cell is 1, columns 1;[{html:" corner-kick ", rowSpan:3 }], for table The line number for showing " corner-kick " in list cell is 3, columns 1.
(5) the form preview region that input data is exported according to current rule
The data of the cell of the form shown corresponding to active sheet rule editing area, input data is according to current rule The form preview region of output carries out the preset table rule output formats that form preview region is selected according to input data and currently, obtains To the final effect of form.Wherein, cell " stage ", " holding number ", " time ", " score/fumble ", " how much shoot ", " goal ", " lost ", " attack shooting ", " goal ", " lost ", " free kick ", " goal ", " lost ", " 5 meters shooting ", " into Ball ", " lost ", " corner-kick " correspond to the list data that active sheet rule editing area is shown.Other data are according to preset table The data that rule is selected from input data.
(6) output data preview region
After the definite and corresponding preset table rule of input data, at the form of the first display data Reason, obtains the first output data;In the first output data preview region display output data;Passing through active sheet rule editing area To preset table rule into edlin, obtain for determining target table the second display data to be presented and for determining target After the target table rule of second structured data of the second logical construction of form, at the form of the second display data Reason, obtains the second output data;It is the second output data to update the first output data in output data preview region.
(7) form rule editor region
The Table edit instrument of the embodiment using MVVM frames vue.js by the rule of row or column be bundled in interface by On button, when the form preview that user clicks on the button in active sheet rule editing area or input data is exported according to current rule During some cell of the form in area, interface as shown in figure 14 can be ejected.Wherein, Figure 14 is according to embodiments of the present invention A kind of form ranks rule editor schematic diagram.As shown in figure 14, show this element lattice where a line or one row (form created by row, click on cell editor is the rule of a line to rule code, and the form created by row, clicks on unit Lattice editor be a row rule), to a line where cell or a rule code arranged into edlin, so as to default Form rule is into edlin.After being completed to the rule code of preset table rule editing, click on and " carry at rule editing interface Hand over ", whether lattice edit tool inside can use esprima storehouses analysis rule code syntax wrong, if errorless be informed about work Has background update rule file, while output data preview region, active sheet rule editing area and input data are according to working as front lay The trizonal data in form preview region or structure then exported can be according to newest Policy Updates.
When tool initialization or user update rule, form analysis logic can be triggered, analysis result is Table classes Example, this example is tied to interface by MVVM, so the form at interface can follow the change of data and change, very big place Developer write form create-rule.
Figure 15 is a kind of form effect diagram according to form rule generation according to embodiments of the present invention.Such as Figure 15 institutes Show, Table edit tool interior using Cell classes represent cell, it is such comprising cell content, take line number, take columns, Whether it is 4 attributes of gauge outfit.Multiple Cell classes examples are put into array and just constitute cell list, multiple cell lists are put A form is just constituted when entering array, is represented using Table classes.Sports items are generated according to the generation method of form rule Competition data statistical form, this table shows China to Japan information during the games, including every, every innings, fortune The information such as mobilization, fraction, can according to the change of form rule either the change of input data and change or at the same time according to table Changing and being changed according to the change of input data for lattice rule, improves the efficiency of form generation.
It should be noted that for foregoing each method embodiment, in order to be briefly described, therefore it is all expressed as a series of Combination of actions, but those skilled in the art should know, the present invention and from the limitation of described sequence of movement because According to the present invention, some steps can use other orders or be carried out at the same time.Secondly, those skilled in the art should also know Know, embodiment described in this description belongs to preferred embodiment, and involved action and module are not necessarily of the invention It is necessary.
Through the above description of the embodiments, those skilled in the art can be understood that according to above-mentioned implementation The method of example can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but very much In the case of the former be more preferably embodiment.Based on such understanding, technical scheme is substantially in other words to existing The part that technology contributes can be embodied in the form of software product, which is stored in a storage In medium (such as ROM/RAM, magnetic disc, CD), including some instructions are used so that a station terminal equipment (can be mobile phone, calculate Machine, server, or network equipment etc.) perform method described in each embodiment of the present invention.
Embodiment 4
According to embodiments of the present invention, a kind of form rule of generation method for being used to implement above table rule is additionally provided Editing device.Figure 16 is a kind of schematic diagram of the editing device of form rule according to embodiments of the present invention.As shown in figure 16, The editing device of form rule can include:Acquiring unit 10, determination unit 20, the first display unit 30, edit cell 40 With the second display unit 50.
Acquiring unit 10, for obtaining the first input data for being used for showing target table, wherein, target table is to pass through The form to be generated of preset language mark.
Determination unit 20, for determining preset table rule corresponding with the first input data, wherein, preset table rule Then be used for according to the first input data determine target table the first display data to be presented and for determining target table the The first structure data of one logical construction.
First display unit 30, for showing the first rule editing area according to the first display data and first structure data Domain.
Edit cell 40, for by the first rule editing region to preset table rule into edlin, obtain being used for true Second structured data of the form that sets the goal the second display data to be presented and the second logical construction for determining target table Target table rule.
Second display unit 50, for showing the target table by target table rule generation in the first predeterminable area, Wherein, target table rule be used for determine target table the second display data to be presented and for determining target table second Second structured data of logical construction.
It should be noted that the acquiring unit 10 in the embodiment can be used for performing the step in the embodiment of the present application 1 S202, the determination unit 20 in the embodiment can be used for performing the step S204 in the embodiment of the present application 1, in the embodiment First display unit 30 can be used for performing the step S206 in the embodiment of the present application 1, and the edit cell 40 in the embodiment can For the step S208 in execution the embodiment of the present application 1, the second display unit 50 in the embodiment can be used for performing sheet Apply for the step S210 in embodiment 1.
Figure 17 is the schematic diagram of the editing device of another form rule according to embodiments of the present invention.As shown in figure 17, The editing device of form rule can include:Acquiring unit 10, determination unit 20, the first display unit 30, edit cell 40 With the second display unit 50.Wherein, acquiring unit 10 includes:First receiving module 11, the first acquisition module 12 and the first loading Module 13.
First receiving module 11, for receiving the first acquisition instruction for being used for that the first input data to be obtained from server.
First acquisition module 12, chained address corresponding with the first input data is obtained for obtaining instruction according to first, Wherein, chained address is the position that the first input data is stored on server.
First load-on module 13, for loading the first input data from server according to chained address.
Figure 18 is the schematic diagram of the editing device of another form rule according to embodiments of the present invention.As shown in figure 18, The editing device of form rule can include:Acquiring unit 10, determination unit 20, the first display unit 30, edit cell 40 With the second display unit 50.Wherein, acquiring unit 10 includes:Second receiving module 14, the second acquisition module 15 and the second loading Module 16.
Second receiving module 14, is used to refer to from local the second acquisition for obtaining the first input data of client for receiving Order.
Second acquisition module 15, for obtaining the identification information of instruction the first default file of acquisition according to second, wherein, the One default file includes the first input data.
Second load-on module 16, for obtaining the first default file from local according to identification information, and loads the first input Data.
Alternatively, the editing device of the form rule of above-described embodiment further includes:Processing unit, for defeated in loading first After entering data, the form of the first input data is handled, obtains the second input data;3rd display unit, for Second predeterminable area shows the second input data.
Alternatively, the editing device of form rule further includes:First processing units, the 4th display unit, second processing Unit and the first updating block.Wherein, first processing units, for determining and the corresponding preset table of the first input data After rule, the form of the first display data is handled, obtains the first output data;4th display unit, for Three predeterminable areas show the first output data;Second processing unit, for by the first rule editing region to preset table Rule into edlin, obtain for determine target table the second display data to be presented and for determining target table second After the target table rule of second structured data of logical construction, the form of the second display data is handled, obtains Two output datas;First updating block, is the second output data for updating the first output data in the 3rd predeterminable area.
Optionally it is determined that unit 20 includes:3rd receiving module, searching module and the 3rd acquisition module.Wherein, the 3rd connect Module is received, for receiving the selection instruction for being used for selecting preset table rule;Detection module, it is pre- for being detected according to selection instruction If the rule name of form rule;Searching module, for searching the corresponding with rule name second default text from predetermined directory Part, wherein, the second default file includes preset table rule;3rd acquisition module, for finding the second default file In the case of, preset table rule is obtained from the second default file.
Alternatively, edit cell 40 includes:4th receiving module, display module, the 5th receiving module and editor module.Its In, the 4th receiving module, for by the first rule editing region receive be used for preset table rule into edlin first Edit instruction;Display module, for showing Second Rule editing area according to the first edit instruction, wherein, Second Rule editor Region shows the corresponding preset rules code of preset table rule;5th receiving module, for passing through Second Rule editing area Receive the second edit instruction;Editor module, for according to the second edit instruction to preset rules code into edlin, obtain target Form rule.
Alternatively, the first rule editing region shows first for the first display data of expression and first structure data List data, according to the second edit instruction to preset rules code into edlin, after obtaining target table rule, the form The editing device of rule further includes:Second updating block, for being used in first the first list data of rule editing area update In the second list data for representing the second display data and the second structured data.
Alternatively, the 4th receiving module is used to receive by the first rule editing region and is used to compile default line discipline The edlin instruction collected;Or received by the first rule editing region and be used to refer to the row editor of default row rule into edlin Order, wherein, default line discipline is used for the first row attribute for determining target table, and default row rule is used to determining the of target table One Column Properties, preset table rule include default line discipline and default row rule.Editor module is used for according to the second edit instruction To default line discipline code into edlin, target line discipline is obtained, wherein, preset rules code includes default line discipline code, Target line discipline is used for the second row attribute for determining target table;Or default row rule code is carried out according to the second edit instruction Editor, obtains target column rule, wherein, preset rules code includes default row rule code, and target column rule is used to determine mesh Mark the second Column Properties of form.
Alternatively, the editing device of form rule further includes:First receiving unit, the 5th display unit, second receive Unit and the first edit cell.Wherein, the first receiving unit, for after the first predeterminable area display target form, passing through First predeterminable area receives the 3rd edit instruction being used for preset table rule into edlin;5th display unit, for root Three sigma rule editing area is shown according to the 3rd edit instruction, wherein, three sigma rule editing area shows that preset table rule is corresponding Preset rules code;Second receiving unit, for receiving the 3rd edit instruction by three sigma rule editing area;First editor Unit, for according to the 3rd edit instruction to preset rules code into edlin, obtain target table rule.
The editing device of form rule further includes:Judging unit and storage unit.Wherein, judging unit, for right Preset table rule after obtaining target table rule, judges whether target table rule meets preset condition into edlin;Protect Memory cell, for when judging that target table rule meets preset condition, preserving target table rule.
The embodiment obtains the first input data for being used for showing target table by acquiring unit 10, wherein, object table Lattice are the form to be generated marked by preset language, are determined by determination unit 20 corresponding default with the first input data Form rule, wherein, preset table rule is used to determine target table the first displaying number to be presented according to the first input data According to the first structure data with the first logical construction for determining target table, by the first display unit 30 according to the first exhibition Registration evidence and first structure data show the first rule editing region, pass through the first rule editing region pair by edit cell 40 Preset table rule is obtained for determining target table the second display data to be presented and for determining object table into edlin The target table rule of second structured data of the second logical construction of lattice, by the second display unit 50 in the first predeterminable area The target table that display is generated by target table rule, wherein, target table rule is used to determine that target table is to be presented Second structured data of the second display data and the second logical construction for determining target table, has reached generation form rule Purpose, it is achieved thereby that improving the technique effect of the formation efficiency of form rule, and then solve form in correlation technique The low technical problem of regular formation efficiency.
Herein it should be noted that example and application scenarios phase that said units and module are realized with corresponding step Together, but it is not limited to 1 disclosure of that of above-described embodiment.It should be noted that above-mentioned module can be with as a part for device Operate in hardware environment as shown in Figure 1, can be realized by software, can also by hardware realization, wherein, hardware environment Including network environment.
Embodiment 5
According to embodiments of the present invention, additionally provide it is a kind of be used for implement above table rule generation method server or Terminal.
Figure 19 is a kind of structure diagram of terminal according to embodiments of the present invention.As shown in figure 19, which can include: One or more (one is only shown in figure) processor 191, memory 193 and transmitting devices 195.As shown in figure 19, the end End can also include input-output equipment 197.
Wherein, memory 193 can be used for storage software program and module, such as the form rule in the embodiment of the present invention Generation method and the corresponding programmed instruction/module of device, processor 191 are stored in the software journey in memory 193 by operation Sequence and module, so as to perform various functions application and data processing, that is, realize the generation method of above-mentioned form rule.Deposit Reservoir 193 may include high speed random access memory, can also include nonvolatile memory, as one or more magnetic storage fills Put, flash memory or other non-volatile solid state memories.In some instances, memory 193 can further comprise relative to place The remotely located memory of device 191 is managed, these remote memories can pass through network connection to terminal.The example bag of above-mentioned network Include but be not limited to internet, intranet, LAN, mobile radio communication and combinations thereof.
Above-mentioned transmitting device 195 is used to data are received or sent via network, can be also used for processor with Data transfer between memory.Above-mentioned network instantiation may include cable network and wireless network.In an example, Transmitting device 195 includes a network adapter (Network Interface Controller, NIC), it can pass through cable It is connected with other network equipments with router so as to be communicated with internet or LAN.In an example, transmission dress It is radio frequency (Radio Frequency, RF) module to put 195, it is used to wirelessly be communicated with internet.
Wherein, specifically, memory 193 is used to store application program.
Processor 191 can call the application program that memory 193 stores by transmitting device 195, to perform following steps Suddenly:
The first input data for being used for showing target table is obtained, wherein, target table is to be marked by preset language Form to be generated;
Determine preset table rule corresponding with the first input data, wherein, preset table rule is used for according to first Input data determines the of target table the first display data to be presented and the first logical construction for determining target table One structured data;
The first rule editing region is shown according to the first display data and first structure data;
Preset table rule is obtained being used to determine that target table is to be presented into edlin by the first rule editing region The second display data and the second logical construction for determining target table the second structured data target table rule;
The target table by target table rule generation is shown in the first predeterminable area.
Processor 191 is additionally operable to perform following step:Receive and be used to obtain from the first of server the first input data of acquisition Instruction fetch;Instruction, which is obtained, according to first obtains chained address corresponding with the first input data, wherein, chained address is server The position of the first input data of upper storage;First input data is loaded from server according to chained address.
Processor 191 is additionally operable to perform following step:Receive and be used for from the first input data of local acquisition of client Second obtains instruction;According to the second identification information for obtaining instruction the first default file of acquisition, wherein, the first default file includes First input data;First default file is obtained from local according to identification information, and loads the first input data.
Processor 191 is additionally operable to perform following step:After the first input data is loaded, to the lattice of the first input data Formula is handled, and obtains the second input data;The second input data is shown in the second predeterminable area.
Processor 191 is additionally operable to perform following step:Determining preset table rule corresponding with the first input data Afterwards, the form of the first display data is handled, obtains the first output data;The first output is shown in the 3rd predeterminable area Data;By the first rule editing region to preset table rule into edlin, obtain being used to determine that target table is to be presented The second display data and the second logical construction for determining target table the second structured data target table rule Afterwards, the form of the second display data is handled, obtains the second output data;In the 3rd predeterminable area renewal the first output number According to for the second output data.
Processor 191 is additionally operable to perform following step:Receive the selection instruction for being used for selecting preset table rule;According to choosing Select the rule name of command detection preset table rule;The corresponding with rule name second default text is searched from predetermined directory Part, wherein, the second default file includes preset table rule;It is default from second in the case where finding the second default file Preset table rule is obtained in file.
Processor 191 is additionally operable to perform following step:Received by the first rule editing region and be used to advise preset table Then into the first edit instruction of edlin;Second Rule editing area is shown according to the first edit instruction, wherein, Second Rule is compiled Collect region and show the corresponding preset rules code of preset table rule;The second editor is received by Second Rule editing area to refer to Order;Target table rule is obtained into edlin to preset rules code according to the second edit instruction.
Processor 191 is additionally operable to perform following step:First rule editing region is shown for representing the first displaying number According to the first list data with first structure data, according to the second edit instruction to preset rules code into edlin, obtain After target table rule, in the first rule editing region point the first list data of renewal be for represent the second display data and Second list data of the second structured data.
Processor 191 is additionally operable to perform following step:Received and be used for presetting line discipline by the first rule editing region Edlin into edlin instructs;Or received by the first rule editing region and be used to compile the row of default row rule into edlin Instruction is collected, wherein, default line discipline is used for the first row attribute for determining target table, and the default rule that arranges is used to determine target table The first Column Properties, preset table rule includes default line discipline and default row rule;According to the second edit instruction to presetting row Rule code obtains target line discipline into edlin, wherein, preset rules code includes default line discipline code, target professional etiquette Then it is used for the second row attribute for determining target table;Or obtained according to the second edit instruction to presetting row rule code into edlin To target column rule, wherein, preset rules code includes default row rule code, and target column rule is used to determine target table Second Column Properties.
Processor 191 is additionally operable to perform following step:It is pre- by first after the first predeterminable area display target form If region receives the 3rd edit instruction being used for preset table rule into edlin;3rd rule are shown according to the 3rd edit instruction Then editing area, wherein, three sigma rule editing area shows the corresponding preset rules code of preset table rule;Pass through the 3rd rule Then editing area receives the 3rd edit instruction;Object table is obtained into edlin to preset rules code according to the 3rd edit instruction Lattice rule.
Processor 191 is additionally operable to perform following step:Into edlin, target table rule is being obtained to preset table rule Afterwards, judge whether target table rule meets preset condition;If it is judged that target table rule meets preset condition, preserve Target table rule.
Using the embodiment of the present invention, there is provided a kind of generation method of form rule.It is used to show object table by obtaining First input data of lattice, wherein, target table is the form to be generated marked by preset language;Determine and the first input number According to corresponding preset table rule, wherein, preset table rule is used to determine that target table is waited to open up according to the first input data The first display data and the first structure data of the first logical construction for determining target table shown;According to the first displaying number The first rule editing region is shown according to first structure data;Preset table rule is compiled by the first rule editing region Volume, obtain for determining target table the second display data to be presented and the second logical construction for determining target table The target table rule of second structured data;The target table by target table rule generation is shown in the first predeterminable area, Achieve the purpose that to generate form rule, it is achieved thereby that improving the technique effect of the formation efficiency of form rule, and then solved The low technical problem of the formation efficiency of form rule in correlation technique of having determined.
Alternatively, the specific example in the present embodiment may be referred to the example described in above-described embodiment, the present embodiment Details are not described herein.
It will appreciated by the skilled person that the structure shown in Figure 19 is only to illustrate, terminal can be smart mobile phone (such as Android phone, iOS mobile phones), tablet computer, palm PC and mobile internet device (Mobile Internet Devices, MID), the terminal device such as PAD.Figure 18 it does not cause to limit to the structure of above-mentioned electronic device.For example, terminal is also It may include more either less components (such as network interface, display device) than shown in Figure 19 or have and Figure 19 institutes Show different configurations.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment is can To be completed by program come command terminal device-dependent hardware, which can be stored in a computer-readable recording medium In, storage medium can include:Flash disk, read-only storage (Read-Only Memory, ROM), random access device (Random Access Memory, RAM), disk or CD etc..
Embodiment 6
The embodiment of the present invention additionally provides a kind of storage medium.Alternatively, in the present embodiment, above-mentioned storage medium can For the program code of the generation method of executive table rule.
Alternatively, in the present embodiment, above-mentioned storage medium can be located at multiple in the network shown in above-described embodiment On at least one network equipment in the network equipment.
Alternatively, in the present embodiment, storage medium is arranged to the program code that storage is used to perform following steps:
The first input data for being used for showing target table is obtained, wherein, target table is to be marked by preset language Form to be generated;
Determine preset table rule corresponding with the first input data, wherein, preset table rule is used for according to first Input data determines the of target table the first display data to be presented and the first logical construction for determining target table One structured data;
The first rule editing region is shown according to the first display data and first structure data;
Preset table rule is obtained being used to determine that target table is to be presented into edlin by the first rule editing region The second display data and the second logical construction for determining target table the second structured data target table rule;
The target table by target table rule generation is shown in the first predeterminable area.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:Receive and be used for from clothes First acquisition instruction of device the first input data of acquisition of being engaged in;Instruction, which is obtained, according to first obtains chain corresponding with the first input data Location is grounded, wherein, chained address is the position that the first input data is stored on server;Loaded according to chained address from server First input data.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:Receive and be used for from visitor The local second acquisition instruction for obtaining the first input data at family end;According to the second mark for obtaining instruction the first default file of acquisition Know information, wherein, the first default file includes the first input data;First default file is obtained from local according to identification information, And load the first input data.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:It is defeated in loading first After entering data, the form of the first input data is handled, obtains the second input data;Is shown in the second predeterminable area Two input datas.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:Determining and first After the corresponding preset table rule of input data, the form of the first display data is handled, obtains the first output number According to;The first output data is shown in the 3rd predeterminable area;Preset table rule is compiled by the first rule editing region Volume, obtain for determining target table the second display data to be presented and the second logical construction for determining target table After the target table rule of second structured data, the form of the second display data is handled, obtains the second output data; It is the second output data to update the first output data in the 3rd predeterminable area.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:Receive and be used to select The selection instruction of preset table rule;The rule name of preset table rule is detected according to selection instruction;Looked into from predetermined directory The second default file corresponding with rule name is looked for, wherein, the second default file includes preset table rule;Finding second In the case of default file, preset table rule is obtained from the second default file.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:Pass through the first rule Editing area receives the first edit instruction being used for preset table rule into edlin;Second is shown according to the first edit instruction Rule editing region, wherein, Second Rule editing area shows the corresponding preset rules code of preset table rule;Pass through second Rule editing region receives the second edit instruction;Target is obtained into edlin to preset rules code according to the second edit instruction Form rule.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:First rule editing Region shows the first list data for representing the first display data and first structure data, according to the second edit instruction To preset rules code into edlin, after obtaining target table rule, in the first form of the first rule editing region point renewal Data are the second list data for representing the second display data and the second structured data.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:Pass through the first rule Editing area, which receives, to be used to instruct the edlin for presetting line discipline into edlin;Or received and used by the first rule editing region In the row edit instruction to default row rule into edlin, wherein, default line discipline is used for the first row category for determining target table Property, first Column Properties of the default row rule for determining target table, preset table rule includes default line discipline and presets row Rule;Target line discipline is obtained into edlin to default line discipline code according to the second edit instruction, wherein, preset rules generation Code includes default line discipline code, and target line discipline is used for the second row attribute for determining target table;Or referred to according to the second editor Order into edlin, obtains target column rule to default row rule code, wherein, preset rules code includes default row regular generation Code, target column rule are used for the second Column Properties for determining target table.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:In the first preset areas After the display target form of domain, received by the first predeterminable area and be used to refer to the 3rd editor of preset table rule into edlin Order;Three sigma rule editing area is shown according to the 3rd edit instruction, wherein, three sigma rule editing area shows preset table rule Corresponding preset rules code;3rd edit instruction is received by three sigma rule editing area;According to the 3rd edit instruction to pre- If rule code obtains target table rule into edlin.
Alternatively, the specific example in the present embodiment may be referred to the example described in above-described embodiment, the present embodiment Details are not described herein.
Alternatively, in the present embodiment, above-mentioned storage medium can include but is not limited to:USB flash disk, read-only storage (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disc or CD etc. is various can be with the medium of store program codes.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
If the integrated unit in above-described embodiment is realized in the form of SFU software functional unit and is used as independent product Sale or in use, the storage medium that above computer can be read can be stored in.Based on such understanding, skill of the invention The part or all or part of the technical solution that art scheme substantially in other words contributes the prior art can be with soft The form of part product embodies, which is stored in storage medium, including some instructions are used so that one Platform or multiple stage computers equipment (can be personal computer, server or network equipment etc.) perform each embodiment institute of the present invention State all or part of step of method.
In the above embodiment of the present invention, the description to each embodiment all emphasizes particularly on different fields, and does not have in some embodiment The part of detailed description, may refer to the associated description of other embodiment.
In several embodiments provided herein, it should be understood that disclosed client, can be by others side Formula is realized.Wherein, device embodiment described above is only schematical, such as the division of the unit, is only one Kind of division of logic function, can there is an other dividing mode when actually realizing, for example, multiple units or component can combine or Another system is desirably integrated into, or some features can be ignored, or do not perform.It is another, it is shown or discussed it is mutual it Between coupling, direct-coupling or communication connection can be INDIRECT COUPLING or communication link by some interfaces, unit or module Connect, can be electrical or other forms.
The unit illustrated as separating component may or may not be physically separate, be shown as unit The component shown may or may not be physical location, you can with positioned at a place, or can also be distributed to multiple In network unit.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs 's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can also That unit is individually physically present, can also two or more units integrate in a unit.Above-mentioned integrated list Member can both be realized in the form of hardware, can also be realized in the form of SFU software functional unit.
The above is only the preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications also should It is considered as protection scope of the present invention.

Claims (15)

  1. A kind of 1. generation method of form rule, it is characterised in that including:
    The first input data for being used for showing target table is obtained, wherein, the target table is to be marked by preset language Form to be generated;
    Determine preset table rule corresponding with first input data, wherein, the preset table rule is used for basis First input data determines the target table the first display data to be presented and for determining the target table The first structure data of first logical construction;
    First rule editing region is shown according to first display data and the first structure data;
    The preset table rule is obtained being used to determine the object table into edlin by the first rule editing region The mesh of lattice the second display data to be presented and the second structured data of the second logical construction for determining the target table Mark form rule;
    The target table by target table rule generation is shown in the first predeterminable area.
  2. 2. according to the method described in claim 1, it is characterized in that, obtain the first input number for being used for target table displaying According to including:
    Receive the first acquisition instruction for being used for that first input data to be obtained from server;
    Instruction, which is obtained, according to described first obtains chained address corresponding with first input data, wherein, the chain ground connection Location is the position that first input data is stored on the server;
    First input data is loaded from the server according to the chained address.
  3. 3. according to the method described in claim 1, it is characterized in that, obtain the first input number for being used for target table displaying According to including:
    Receive the second acquisition instruction for being used for that first input data to be obtained from the local of client;
    According to the described second identification information for obtaining instruction the first default file of acquisition, wherein, first default file includes First input data;
    According to the identification information from local acquisition first default file, and load first input data.
  4. 4. according to the method in claim 2 or 3, it is characterised in that after first input data is loaded, the side Method further includes:
    The form of first input data is handled, obtains the second input data;
    Second input data is shown in the second predeterminable area.
  5. 5. according to the method described in claim 1, it is characterized in that,
    After the definite and corresponding preset table rule of first input data, the method further includes:To described The form of one display data is handled, and obtains the first output data;
    First output data is shown in the 3rd predeterminable area;
    By the first rule editing region to the preset table rule into edlin, obtain being used to determine the target Form the second display data to be presented and the second structured data of the second logical construction for determining the target table After target table rule, the method further includes:The form of second display data is handled, obtains the second output Data;
    It is second output data to update first output data in the 3rd predeterminable area.
  6. 6. according to the method described in claim 1, it is characterized in that, determine and the corresponding preset table of the first input data Lattice rule includes:
    Receive the selection instruction for being used for selecting the preset table rule;
    The rule name of the preset table rule is detected according to the selection instruction;
    The second default file corresponding with the rule name is searched from predetermined directory, wherein, the second default file bag Include the preset table rule;
    In the case where finding second default file, the preset table rule are obtained from second default file Then.
  7. 7. according to the method described in claim 1, it is characterized in that, by the first rule editing region to the preset table Into edlin, obtain the target table rule includes lattice rule:
    The first edit instruction being used for the preset table rule into edlin is received by the first rule editing region;
    Second Rule editing area is shown according to first edit instruction, wherein, the Second Rule editing area shows institute State the corresponding preset rules code of preset table rule;
    Second edit instruction is received by the Second Rule editing area;
    The target table rule is obtained into edlin to the preset rules code according to second edit instruction.
  8. 8. the method according to the description of claim 7 is characterized in that the first rule editing region is shown for representing institute State the first display data and the first list data of the first structure data, according to second edit instruction to described pre- If rule code is into edlin, after obtaining the target table rule, the method further includes:In first rule editing First list data described in area update is the second table for representing second display data and second structured data Lattice data.
  9. 9. the method according to the description of claim 7 is characterized in that
    The first edit instruction being used for the preset table rule into edlin is received by the first rule editing region Including:Received by the first rule editing region and be used to instruct the edlin for presetting line discipline into edlin;Or pass through The first rule editing region receives the row edit instruction being used for default row rule into edlin, wherein, the default row Rule is used for the first row attribute for determining the target table, and the default row rule is used to determine the first of the target table Column Properties, the preset table rule include the default line discipline and the default row rule;
    According to second edit instruction to the preset rules code into edlin, obtaining the target table rule includes: Target line discipline is obtained into edlin to default line discipline code according to second edit instruction, wherein, the preset rules Code includes the default line discipline code, and the target line discipline is used for the second row attribute for determining the target table;Or According to second edit instruction to the default row rule code into edlin, target column rule is obtained, wherein, it is described default Rule code includes the default row rule code, and the target column rule is used for the second dependent of dead military hero for determining the target table Property.
  10. 10. according to the method described in claim 1, it is characterized in that, show the target table in first predeterminable area Afterwards, the method further includes:
    The 3rd edit instruction being used for the preset table rule into edlin is received by first predeterminable area;
    Three sigma rule editing area is shown according to the 3rd edit instruction, wherein, the three sigma rule editing area shows institute State the corresponding preset rules code of preset table rule;
    3rd edit instruction is received by the three sigma rule editing area;
    The target table rule is obtained into edlin to the preset rules code according to the 3rd edit instruction.
  11. 11. according to the method described in claim 1, it is characterized in that, into edlin, institute is being obtained to the preset table rule After stating target table rule, the method further includes:
    Judge whether the target table rule meets preset condition;
    If it is judged that the target table rule meets the default bar, the target table rule is preserved.
  12. A kind of 12. editing device of form rule, it is characterised in that including:
    Acquiring unit, for obtaining the first input data for being used for showing target table, wherein, the target table is by pre- If the form to be generated of language tag;
    Determination unit, for determining preset table rule corresponding with first input data, wherein, the preset table Rule is used to determine the target table the first display data to be presented and for determining according to first input data State the first structure data of the first logical construction of target table;
    First display unit, for showing the first rule editing area according to first display data and the first structure data Domain;
    Edit cell, for by the first rule editing region to the preset table rule into edlin, obtain target Form rule;
    Second display unit, for showing the object table by target table rule generation in the first predeterminable area Lattice, wherein, the target table rule is used to determine the target table the second display data to be presented and for determining State the second structured data of the second logical construction of target table.
  13. 13. device according to claim 12, it is characterised in that the acquiring unit includes:
    First receiving module, for receiving the first acquisition instruction for being used for that first input data to be obtained from server;
    First acquisition module, chain ground connection corresponding with first input data is obtained for obtaining instruction according to described first Location, wherein, the chained address is the position that first input data is stored on the server;
    First load-on module, for loading first input data from the server according to the chained address.
  14. 14. device according to claim 12, it is characterised in that the acquiring unit includes:
    Second receiving module, is used to obtain the second of first input data from the local of client and obtain to refer to for receiving Order;
    Second acquisition module, for obtaining the identification information of instruction the first default file of acquisition according to described second, wherein, it is described First default file includes first input data;
    Second load-on module, for locally obtaining first default file from described according to the identification information, and loads institute State the first input data.
  15. 15. the device according to claim 13 or 14, it is characterised in that described device further includes:
    Processing unit, for after first input data is loaded, handling the form of first input data, Obtain the second input data;
    3rd display unit, for showing second input data in the second predeterminable area.
CN201610950698.2A 2016-10-26 2016-10-26 Table rule generation method and device, storage medium and electronic equipment Active CN107992458B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610950698.2A CN107992458B (en) 2016-10-26 2016-10-26 Table rule generation method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610950698.2A CN107992458B (en) 2016-10-26 2016-10-26 Table rule generation method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN107992458A true CN107992458A (en) 2018-05-04
CN107992458B CN107992458B (en) 2021-03-26

Family

ID=62029445

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610950698.2A Active CN107992458B (en) 2016-10-26 2016-10-26 Table rule generation method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN107992458B (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109445958A (en) * 2018-09-30 2019-03-08 联想(北京)有限公司 Editing and processing method, electronic equipment and the storage medium of data
CN109582941A (en) * 2018-11-29 2019-04-05 杭州迪普科技股份有限公司 A kind of list data display methods, device, equipment and storage medium
CN110032694A (en) * 2019-03-04 2019-07-19 北京立思辰安科技术有限公司 Form of general use control implementation method suitable for network auditing system
CN110569469A (en) * 2019-09-06 2019-12-13 四川长虹电器股份有限公司 Method for dynamically generating HTML (hypertext markup language) form based on data configuration
CN110826305A (en) * 2019-10-14 2020-02-21 北京字节跳动网络技术有限公司 Data processing method and device for online form, terminal and server
CN110990162A (en) * 2018-09-30 2020-04-10 北京国双科技有限公司 Data shuttling processing method and device
CN111191162A (en) * 2019-11-05 2020-05-22 腾讯科技(深圳)有限公司 Data processing method and equipment
WO2020119800A1 (en) * 2018-12-14 2020-06-18 北京字节跳动网络技术有限公司 List display method, apparatus and device, and storage medium
CN111538750A (en) * 2020-06-24 2020-08-14 深圳壹账通智能科技有限公司 Information restoration method and device, computer system and readable storage medium
CN112214978A (en) * 2020-10-10 2021-01-12 金蝶云科技有限公司 Data processing method and related equipment
CN112784552A (en) * 2020-06-05 2021-05-11 珠海金山办公软件有限公司 Table editing method and device
CN113448566A (en) * 2021-06-09 2021-09-28 心医国际数字医疗系统(大连)有限公司 Configuration method and device of form logic
CN113779943A (en) * 2021-01-12 2021-12-10 北京沃东天骏信息技术有限公司 Table generation method, table generation device, storage medium, and electronic apparatus

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101308490A (en) * 2008-04-28 2008-11-19 北京航空航天大学 Dynamic report generation method and platform
CN102043769A (en) * 2010-12-27 2011-05-04 畅捷通软件有限公司 Method and device for editing documents
US20120109960A1 (en) * 2010-10-29 2012-05-03 International Business Machines Corporation Generating rules for classifying structured documents

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101308490A (en) * 2008-04-28 2008-11-19 北京航空航天大学 Dynamic report generation method and platform
US20120109960A1 (en) * 2010-10-29 2012-05-03 International Business Machines Corporation Generating rules for classifying structured documents
CN102043769A (en) * 2010-12-27 2011-05-04 畅捷通软件有限公司 Method and device for editing documents

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110990162A (en) * 2018-09-30 2020-04-10 北京国双科技有限公司 Data shuttling processing method and device
CN109445958A (en) * 2018-09-30 2019-03-08 联想(北京)有限公司 Editing and processing method, electronic equipment and the storage medium of data
CN109582941A (en) * 2018-11-29 2019-04-05 杭州迪普科技股份有限公司 A kind of list data display methods, device, equipment and storage medium
WO2020119800A1 (en) * 2018-12-14 2020-06-18 北京字节跳动网络技术有限公司 List display method, apparatus and device, and storage medium
CN110032694A (en) * 2019-03-04 2019-07-19 北京立思辰安科技术有限公司 Form of general use control implementation method suitable for network auditing system
CN110569469B (en) * 2019-09-06 2022-02-01 四川长虹电器股份有限公司 Method for dynamically generating HTML (hypertext markup language) form based on data configuration
CN110569469A (en) * 2019-09-06 2019-12-13 四川长虹电器股份有限公司 Method for dynamically generating HTML (hypertext markup language) form based on data configuration
CN110826305A (en) * 2019-10-14 2020-02-21 北京字节跳动网络技术有限公司 Data processing method and device for online form, terminal and server
CN111191162A (en) * 2019-11-05 2020-05-22 腾讯科技(深圳)有限公司 Data processing method and equipment
CN111191162B (en) * 2019-11-05 2024-05-17 腾讯科技(深圳)有限公司 Data processing method and device
CN112784552A (en) * 2020-06-05 2021-05-11 珠海金山办公软件有限公司 Table editing method and device
CN112784552B (en) * 2020-06-05 2023-10-27 珠海金山办公软件有限公司 Table editing method and apparatus
CN111538750A (en) * 2020-06-24 2020-08-14 深圳壹账通智能科技有限公司 Information restoration method and device, computer system and readable storage medium
CN112214978A (en) * 2020-10-10 2021-01-12 金蝶云科技有限公司 Data processing method and related equipment
CN113779943A (en) * 2021-01-12 2021-12-10 北京沃东天骏信息技术有限公司 Table generation method, table generation device, storage medium, and electronic apparatus
CN113448566A (en) * 2021-06-09 2021-09-28 心医国际数字医疗系统(大连)有限公司 Configuration method and device of form logic
CN113448566B (en) * 2021-06-09 2024-03-19 心医国际数字医疗系统(大连)有限公司 Form logic configuration method and device

Also Published As

Publication number Publication date
CN107992458B (en) 2021-03-26

Similar Documents

Publication Publication Date Title
CN107992458A (en) The generation method and device of form rule
CN108197114B (en) Method and device for detecting table data, storage medium and electronic device
CN109597954A (en) Data item methods of exhibiting, calculates equipment and medium at device
EP3667520A1 (en) Webpage content extraction method and terminal device
CN111104635B (en) Method and device for generating form webpage
CN108628741A (en) Webpage test method, device, electronic equipment and medium
CN109614424A (en) Page layout generation method, calculates equipment and medium at device
CN107562620A (en) One kind buries an automatic setting method and device
CN113094037A (en) Interaction method, development platform, equipment and storage medium for forms and workflows
CN101576823A (en) Method for verifying form control and device
CN104636139A (en) Visualized cross-platform mobile application development and generation system
CN106886418A (en) Html interface control is pasted
CN101652748A (en) Service program generation technology
CN109408764A (en) Page area division methods, calculate equipment and medium at device
CN111159014B (en) Response method and device for exploratory test, computer equipment and storage medium
CN106844635A (en) The edit methods and device of the element in webpage
CN106570013A (en) Method and device for processing page access data
CN107305527A (en) The treating method and apparatus of code file
CN110096322A (en) The method and device of adaptive terminal screen, storage medium, electronic device
CN111782317A (en) Page testing method and device, storage medium and electronic device
CN110765552B (en) Attribute information display method and device of three-dimensional geological model
CN110019970A (en) Inventory downloads template creation method, device, terminal and readable storage medium storing program for executing
CN104081347A (en) Graphical representation of an order of operations
US9063764B2 (en) Automated software script creator and editor
CN110471727A (en) Method, apparatus, system and the storage medium of interaction hot-zone are created based on web terminal

Legal Events

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