CN108428112A - A kind of generation method of list, device, computer and storage medium - Google Patents

A kind of generation method of list, device, computer and storage medium Download PDF

Info

Publication number
CN108428112A
CN108428112A CN201810200540.2A CN201810200540A CN108428112A CN 108428112 A CN108428112 A CN 108428112A CN 201810200540 A CN201810200540 A CN 201810200540A CN 108428112 A CN108428112 A CN 108428112A
Authority
CN
China
Prior art keywords
list
target widget
target
control
widget
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810200540.2A
Other languages
Chinese (zh)
Inventor
李倩
张文明
陈少杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuhan Douyu Network Technology Co Ltd
Original Assignee
Wuhan Douyu Network Technology 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 Wuhan Douyu Network Technology Co Ltd filed Critical Wuhan Douyu Network Technology Co Ltd
Priority to CN201810200540.2A priority Critical patent/CN108428112A/en
Publication of CN108428112A publication Critical patent/CN108428112A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • G06Q10/103Workflow collaboration or project management
    • 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

Abstract

The embodiment of the invention discloses a kind of generation method of list, device, computer and storage mediums.This method includes:The rendering position of the control identification information and each target widget of at least one target widget in list to be generated is obtained successively;The entity class and view class of target widget are determined according to the control identification information of target widget and the first default mapping table;The default configuration body of target widget is determined according to the entity class of target widget;According to the attribute information of default configuration body and the target widget of acquisition, based on view class corresponding target widget is rendered in rendering position, to generate list, so that non-developer quickly and easily makes list, and the overlapping development of front end page rendering is avoided.

Description

A kind of generation method of list, device, computer and storage medium
Technical field
The present embodiments relate to software development technique more particularly to a kind of generation method of list, device, computer and Storage medium.
Background technology
Enterprise Resources Plan (Enterprise Resource Planning, ERP) system be by all resources of enterprise into The logistics of enterprise, cash flow, information flow are carried out the information system of entirely integrating management by row integration management.Therefore The applications such as it will appear many workflow applications in the ERP system of enterprise, for example work overtime, ask for leave, registration, become a full member, leave office, and The miscellaneous workflows such as complicated advertisement, lantern slide.As it can be seen that enterprises are got over about the workflow of resources planning and management Come it is more, and often generate a new resource bid be required for for its customize a new workflow form.However, new table In content need the software developer of profession to preset and develop again, to be unable to reach multiplexing so that development cost is high, And the page rendering of front end is all overlapping development, wastes human resources.
Invention content
The embodiment of the present invention provides a kind of generation method of list, device, computer and storage medium, so that non-exploit person Member quickly and easily makes list, and the overlapping development for avoiding front end page from rendering.
In a first aspect, an embodiment of the present invention provides a kind of generation methods of list, including:
The rendering of the control identification information and each target widget of at least one target widget in list to be generated is obtained successively Position;
The entity of the target widget is determined according to the control identification information of the target widget and the first default mapping table Class and view class;
The default configuration body of the target widget is determined according to the entity class of the target widget;
According to the attribute information of the default configuration body and the target widget of acquisition, based on the view class described Rendering position renders corresponding target widget, to generate list.
Second aspect, the embodiment of the present invention additionally provide a kind of generating means of list, including:
Control information acquisition module, the control for obtaining at least one target widget in list to be generated successively identify letter The rendering position of breath and each target widget;
Target widget matching module, for true according to the control identification information of the target widget and the first default mapping table The entity class and view class of the fixed target widget;
Default configuration body determining module, the acquiescence for determining the target widget according to the entity class of the target widget Structure;
List generation module, for the attribute information according to the default configuration body and the target widget of acquisition, base Corresponding target widget is rendered in the rendering position in the view class, to generate list.
The third aspect, the embodiment of the present invention additionally provide a kind of computer, and the computer includes:
One or more processors;
Memory, for storing one or more programs;
When one or more of programs are executed by one or more of processors so that one or more of processing Device realizes the list generation method as described in any embodiment of the present invention.
Fourth aspect, the embodiment of the present invention additionally provide a kind of computer readable storage medium, are stored thereon with computer Program realizes the list generation method as described in any embodiment of the present invention when the program is executed by processor.
The embodiment of the present invention by obtain successively at least one target widget in list to be generated control identification information and The rendering position of each target widget;Target widget is determined according to the control identification information of target widget and the first default mapping table Entity class and view class;The default configuration body of target widget is determined according to the entity class of target widget;According to default configuration body and The attribute information of the target widget of acquisition renders corresponding target widget, to generate list based on view class in rendering position.From And so that non-developer quickly and easily makes list according to actual demand, and the repetition for avoiding front end page rendering is opened Hair.
Description of the drawings
Fig. 1 is a kind of flow chart of the generation method for list that the embodiment of the present invention one provides;
Figure 1A is a kind of schematic diagram at form editing interface that the embodiment of the present invention one provides;
Fig. 2 is a kind of structural schematic diagram of the generating means of list provided by Embodiment 2 of the present invention;
Fig. 3 is a kind of structural schematic diagram for computer that the embodiment of the present invention three provides.
Specific implementation mode
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining the present invention rather than limitation of the invention.It also should be noted that in order to just Only the parts related to the present invention are shown in description, attached drawing rather than entire infrastructure.
Embodiment one
Fig. 1 is a kind of flow chart of the generation method for list that the embodiment of the present invention one provides, and the present embodiment is applicable to The case where self-defined generation list, this method can be executed by the generating means of list, which can be by software and/or hard The mode of part is realized, is integrated in computer.This method specifically comprises the following steps:
S110, the control identification information for obtaining at least one target widget in list to be generated successively and each target widget Rendering position.
Wherein, it regard each control in list to be generated as target widget successively, obtains the control mark of each target widget Know information and rendering position.Control identification information can be but be not limited to control title and control number, with according to different marks Information is known to distinguish target widget.Rendering position refers to display location or addition position of the target widget in list to be generated It sets.In the present embodiment user can according to actual demand come the different target widget of unrestricted choice and corresponding rendering position, with Allow user's customizing form.Target widget can include but is not limited to layout control, field control and special control, this reality It applies in example, target widget includes at least one layout control and at least one field control.Wherein layout control can be used for setting The layout structure of control in list is set, for example a line shows how many a controls;Field control, which can be used for being arranged list content, to be believed Breath;Special control is the control customized for the specific demand of user.Illustratively, layout control can be but be not limited to one One Column Layout of row, two Column Layout of a line, three Column Layout of a line and detailed sublist etc..Field control can be but be not limited to input Frame, radio box, check box, dat frame, phone frame, digital frame etc..If target widget is one Column Layout of a line, then it represents that the row is only It can show a field control or special control.
Optionally, step S110 includes:When detecting that control button is clicked and when being pulled, by dragged control It is determined as target widget, and obtains the corresponding control identification information of dragged control button;When detect release it is dragged When control button, the releasing position of control button is determined as to the rendering position of target widget.
Wherein, each control can correspond to a control button, and corresponding control mark letter is shown on control button Breath, to distinguish different controls.Optionally, when the user clicks and when pulling control button, generate control and pull instruction.Work as list When generating means detect that control pulls instruction, dragged control is determined as target widget, and obtains target widget correspondence Control identification information.When target widget is drawn in list display box by user and discharges control button, generates control and release Instruction is put, and records the releasing position of control button.When list generating means detect that control releases order, by control button Releasing position be determined as the rendering position of target widget.In the present embodiment target is determined in the way of dragging control button Control and corresponding rendering position, more convenient generation customizing form.
Optionally, this method further includes:When detecting that control button is clicked and when being pulled, calls and pull view Class, with the drag operation of post-processing object control.
Wherein, it when pulling each target widget, is gone forward side by side come the drag operation of post-processing object control by pulling view class Row display, to realize the drag function of control, illustratively, it for example can be DragInView view classes to pull view class. When detecting that control button is clicked and when being pulled, calls and pull view class and rendered, and trigger HTML The onDragStart events of (HyperText Markup Language, HyperText Markup Language) label record dragging The corresponding control identification information of target widget.
S120, the entity class that target widget is determined according to the control identification information of target widget and the first default mapping table and View class.
Wherein, the entity class and view class of each control are write in advance, and wherein view class is compiled based on ant design It writes.The entity class of control is used to record the attribute and method of control, to obtain and preserve the structure of control.Illustratively, defeated The attribute for entering frame can include but is not limited to title, number, description, whether must fill out and give tacit consent to signal language;The method of input frame can To include but not limited to setting title, obtain title, automatically generate number and obtain control structure.The view class of control is used for Control in varied situations renders and data collection.The view class of each control can include but is not limited to the first sub- view Class, the second sub- view class and the sub- view class of third, wherein when the first sub- view class is in editing mode for list display box Control renders, such as when control is drawn in the list display box in editing mode by user, to control in list display box Part is rendered;Attribute when second sub- view class is in editing mode for attribute display frame renders, to show and collect control Part attribute information;The sub- view class of third is rendered for the control in workflow form, to show the entire form to user.This reality Example is applied after writing each control, it would be desirable to which the control of gathered data uses the From in ant design to encapsulate, so that control Part has the function of automatic data collection, verification data and submits data, hence for every a kind of workflow form, without exploitation Personnel artificially write the logical code for collecting data.
The present embodiment is developed by react, and Component Gallery is done using ant design, can be with more convenient quick generation List and collection data.The present embodiment separates the entity class of each control and view class, has clearly divided traffic border, i.e., The entity class of control is only responsible for the generation and preservation of control structure, and view class is only responsible for rendering control and collects data, to protect Demonstrate,prove the pure property of view layer.When upgrading or replacing ant design, the view class of control need to be only changed, without to control entity Class carries out any modification, consequently facilitating the maintenance of control.In the present embodiment, each identical mesh in different lists to be generated The view class of mark control may be multiplexed, the overlapping development rendered so as to avoid front end page.
Control identification information and control entity when the first default mapping table in the present embodiment can be recorded in editor's list The correspondence of class and view class can also record control mark when editing list and when showing entire workflow form respectively The correspondence of information and control entity class and view class.Illustratively, according to the first default mapping table, it may be determined that editing The entity class of target widget corresponding to control identification information of each target widget, the first sub- view class and the second son regard when list Figure class can also determine that the control identification information of each target widget when showing entire workflow form corresponds to the sub- view of third Class.
Optionally, at the end of detecting drag operation, according to the control recorded in the onDragStart events of html tag Part identification information and the first default mapping table determine the entity class and view class of target widget, and pass through html tag OnDragEnter, OnDrop, onDragOver and onDragLeave method render corresponding target widget.
S130, the default configuration body that target widget is determined according to the entity class of target widget.
Wherein, each attribute in each target widget entity class all has a default property information, default property information It can be system default information, or blank information.Such as:Whether attribute in input frame is that must fill out, if the attribute Default property information is yes, then it represents that the input frame is required item, then needs to show before input frame when showing the input frame One must fill out mark.Method in target widget is for obtaining control property and corresponding default property information, and according to obtaining The control property that takes and corresponding default property information generate default configuration body.
S140, according to the attribute information of default configuration body and the target widget of acquisition, based on view class in rendering position wash with watercolours Corresponding target widget is contaminated, to generate list.
Wherein, corresponding target widget is rendered on corresponding rendering position using the view class of each target widget, The attribute information that the content and acquisition in corresponding default configuration body are shown on rendering position, to generate list.
It should be noted that when detecting that user increases new target widget in list to be generated, then repeatedly step S110 to S140 renders the target widget using the newly-increased corresponding view class of target widget, in list display box Middle display increases target widget newly.When user deletes the target widget in list to be generated, generates control and delete instruction, according to control Part deletes instruction and determines the attribute information of the corresponding default configuration body of target widget to be deleted and acquisition and deleted, in table The display of the target widget is deleted in single display box.When detecting user's mobile target widget in list to be generated, update The rendering position of the target widget, and the target widget is rendered again at rendering position after update.In the present embodiment The method for generating list can make non-developer arbitrarily be increased according to actual demand, be deleted and move control etc., operable Property is strong, is easily understood, more hommization.
Optionally, corresponding target widget is rendered in rendering position based on view class in step S140, including:
Rendering position post-processing object control of the first sub- view class in list display box based on target widget generates mesh Mark display structure of the control in list to be generated;
Second sub- view class post-processing object control in attribute display frame based on target widget, generates the category of target widget Property acquisition frame, wherein attribute acquisition frame is used to acquire the attribute information of target widget.
Wherein, when the first of target widget the sub- view class and the second sub- view class are in editing mode for list to be generated Rendering.Illustratively, Figure 1A is a kind of schematic diagram at form editing interface that the embodiment of the present invention one provides, such as Figure 1A institutes Show, when target widget is drawn in list display box, utilizes first sub- view class wash with watercolours on rendering position of target widget Dye renders control using the second sub- view class to generate the structure of simultaneously display target control in attribute display frame, with aobvious Show control property and generates the attribute acquisition frame of acquisition attributes information.
Optionally, the attribute information according to default configuration body and the target widget of acquisition in step S140 is based on view Class renders corresponding target widget in rendering position, including:
According to default configuration body, the view class based on target widget carries out initial render in rendering position to target widget; According to the attribute information acquired in real time, the view class based on target widget is updated rendering in rendering position to target widget.
Wherein, when target widget is added in list to be generated, first according to the default configuration body of the target widget, base Initial render is carried out in rendering position in the view class of the target widget, the control of the target widget is shown in list display box Structure and corresponding default property information is shown in attribute display frame.If collecting what user inputted in attribute display frame Attribute information then triggers information and replaces event, and attribute information input by user is replaced the default property in default configuration body and is believed Breath, and rendering is updated based on view class, to show attribute information input by user in list display box.In the present embodiment Real-time update rendering can be carried out according to the attribute information of the target widget acquired in real time, all attribute letters can also acquired Attribute is generated after breath and preserves instruction, and preserving instruction according to attribute is updated rendering.
Optionally, the generation list in step S140, including:
According to the attribute information and corresponding rendering position of the default configuration body of each target widget and acquisition, each mesh is generated Mark the target structure of control;According to the target structure of each target widget in list to be generated, list array is generated, wherein Each element value in list array corresponds to a target structure;List array is converted to the list word of the first preset format Symbol string, and stored.
Wherein, after the completion of user is by the attribute information of each target widget in list to be generated and rendering position editor, List, which is generated, by list save button preserves instruction.Instruction is preserved according to list to preserve the list of generation.This implementation The attribute information acquired in each target widget is replaced the default property information in corresponding default configuration body by example, and according to correspondence Rendering position generate corresponding target structure so that view class can render corresponding control according to each target structure Part, to obtain the list of generation.For the ease of storage, the target structure of each target widget is generated into list array.Example Property, list array can be the two-dimensional array of two rows, and each element value wherein in the first row can be layout control Corresponding target structure, each element value in the second row can be the corresponding target structure of field control, due to customization Control can be special field control, so the target structure of custom control can also be placed in the element value of the second row. The first preset format in the present embodiment can be JSON (JavaScript Object Notation) string format, so as to It is parsed in manual compiling and machine, effectively promotes network transmission efficiency.Optionally, list character string is exported and is preserved to service Device end, so as to the calling of list.
The embodiment of the present invention by obtain successively at least one target widget in list to be generated control identification information and The rendering position of each target widget;Target widget is determined according to the control identification information of target widget and the first default mapping table Entity class and view class;The default configuration body of target widget is determined according to the entity class of target widget;According to default configuration body and The attribute information of the target widget of acquisition renders corresponding target widget, to generate list based on view class in rendering position.From And so that non-developer quickly and easily makes list according to actual demand, and the repetition for avoiding front end page rendering is opened Hair.
Based on the above technical solution, after generating multiple lists using step S110-S140, application personnel can root Any list is selected to be used according to demand.
Optionally, after generating list, further include:
Instruction is transferred according to list, obtains the corresponding target list character string of target list;To target list character string into Row de-parsing obtains the target structure of each target widget in target list;According to each target structure and correspond to acquisition User data renders each target widget, to generate based on the sub- view class of the corresponding third of each target widget in target structure Workflow form.
Wherein, in display interface, the list each generated can correspond to a list button.When detect list by When button is clicked, the list being clicked is determined as target list, and generates corresponding list and transfers instruction.It is transferred according to list Instruction obtains the corresponding list identification information of target list, and wherein list identification information can be form name, such as work overtime application Table or application form of becoming a full member etc..Corresponding target list character string is obtained according to list identification information and the second default mapping table, In the second default mapping table include the one-to-one relationship of list identification information and list character string.Pass through the table to target list Unit string carries out de-parsing and obtains each target structure, and according to the control identification information and the in each target structure Three default mapping tables determine that the corresponding sub- view class of third, wherein third preset mapping table for being recorded in the entire workflow of displaying The correspondence of control identification information and the sub- view class of third when list.Optionally, it is being opened up when the first default mapping table has recorded It, can be according to control identification information when showing entire workflow form when the correspondence of control identification information and the sub- view class of third The corresponding sub- view class of third is determined with the first default mapping table.
Optionally, according to the user data of each target structure and corresponding acquisition, based on each target in target structure The sub- view class of the corresponding third of control renders each target widget, to generate workflow form, including:
According to each target structure, each target widget is carried out based on the sub- view class of the corresponding third of target structure initial It renders, generates initialization flow table list;Acquisition corresponding user data of each target widget in target list, and it is based on third Sub- view class is updated rendering to each target widget;The user data of acquisition is verified, and in user data verification at When work(, the data character string for converting user data to the second preset format stores.
Wherein, it in workflow form display box, is primarily based on the sub- view class of the corresponding third of each target structure and carries out Control renders, and generates initialization flow table list and shows.User data is acquired in initialization flow table list and is updated wash with watercolours Dye, to show user data in workflow form.It, can be to the use after submission after control is carried out From encapsulation in the present embodiment User data collect and verify automatically.For example, being arranged when generating list in phone frame needs 11 numbers of input, if in electricity It is not 11 numbers to talk about collected user data in frame, then data entry error information is generated, to remind user to re-enter. For another example, if not collecting data in the required item of target list, data input missing information is generated, to remind user to fill out Write required item.The second preset format in the present embodiment can be JSON string formats, in order to manual compiling and machine solution Analysis, effectively promotes network transmission efficiency.Optionally, it is preserved to server after the user data of acquisition being generated data character string End, and the correspondence between data character string and list character string is established, subsequently to show that user fills in auditor Workflow form.
Optionally, after generating workflow form, further include:
According to the instruction of transferring of workflow form, the corresponding target list character string of target operation flow table list and target are obtained Data character string;De-parsing is carried out respectively to target list character string and target data character string, is obtained each in target list The sub- view class of target structure, third and user data of target widget;According to each target structure and user data, it is based on The corresponding sub- view class of third renders each target widget, with display target workflow form.
Wherein, each user job flow table list can correspond to a workflow table single button, when detecting workflow form When button is clicked, the workflow form being clicked is determined as target operation flow table list and generate workflow form transfers finger It enables.When receive transfer instruction when, obtain the corresponding workflow form identification information of target operation flow table list, wherein workflow table Single identification information can be but not limited to the form name with name or Digital ID, for example, the work overtime application table of Zhang San plus Class's application form is first-class.According to workflow form identification information and the 4th default mapping table obtain corresponding target list character string and Target data character string, wherein the 4th default mapping table record is workflow form identification information and list character string and data The correspondence of character string.According to each target structure, target widget is rendered based on corresponding third sub- view class, with Target list is generated, and in target list, the method for a class value is arranged by using the From of ant design and is based on Each sub- view class of third echoes the user data after parsing, so that auditor sees the workflow that application personnel submit List, and determine whether audit passes through.
Embodiment two
Fig. 2 is a kind of structural schematic diagram of the generating means of list provided by Embodiment 2 of the present invention, and the present embodiment can fit The case where for self-defined generation list, which specifically includes:Control information acquisition module 210, target widget match mould Block 220, default configuration body determining module 230 and list generation module 240.
Wherein, control information acquisition module 210, the control for obtaining at least one target widget in list to be generated successively The rendering position of part identification information and each target widget;Target widget matching module 220, for the control mark according to target widget Know information and the first default mapping table determines the entity class and view class of target widget;Default configuration body determining module 230, is used for The default configuration body of target widget is determined according to the entity class of target widget;List generation module 240, for according to default configuration The attribute information of body and the target widget of acquisition renders corresponding target widget, to generate table based on view class in rendering position It is single.
Optionally, control information acquisition module 210, including:
Control identification information obtaining unit will be dragged for when detecting that control button is clicked and when being pulled Control be determined as target widget, and obtain the corresponding control identification information of dragged control button;
Rendering position determination unit, for when detect discharge dragged control button when, by the release of control button Location determination is the rendering position of target widget.
Optionally, which further includes:
View class calling module is pulled, is regarded for when detecting that control button is clicked and when being pulled, calling to pull Figure class, with the drag operation of post-processing object control.
Optionally, list generation module 240, including:
First sub- view class rendering unit is used for wash with watercolours of the first sub- view class in list display box based on target widget Position post-processing object control is contaminated, display structure of the target widget in list to be generated is generated;
Second sub- view class rendering unit is rendered for the second sub- view class based on target widget in attribute display frame Target widget generates the attribute acquisition frame of target widget, wherein attribute acquisition frame is used to acquire the attribute information of target widget.
Optionally, list generation module 240 further includes:
Initial render unit, for according to default configuration body, the view class based on target widget to be in rendering position to target Control carries out initial render;
Rendering unit is updated, for according to the attribute information acquired in real time, the view class based on target widget to render position It sets and rendering is updated to target widget.
Optionally, list generation module 240 further includes:
Target structure generation unit, for according to the default configuration body of each target widget and the attribute information of acquisition and Corresponding rendering position generates the target structure of each target widget;
List array generation unit generates list for the target structure according to each target widget in list to be generated Array, wherein each element value in list array corresponds to a target structure;
List character string determination unit, the list character string for list array to be converted to the first preset format, goes forward side by side Row storage.
Optionally, which further includes:
Target list character string acquisition module, for after generating list, transferring instruction according to list, obtaining object table Single corresponding target list character string;
Target structure acquisition module obtains each in target list for carrying out de-parsing to target list character string The target structure of target widget;
Workflow form generation module is based on target for the user data according to each target structure and corresponding acquisition The sub- view class of the corresponding third of each target widget in structure renders each target widget, to generate workflow form.
Optionally, workflow form generation module, including:
Initialization flow table list generation unit, for according to each target structure, being based on the corresponding third of target structure Sub- view class carries out initial render to each target widget, generates initialization flow table list;
Workflow form updating unit, for acquiring the corresponding user data of each target widget in target list, and Rendering is updated to each target widget based on third sub- view class;
Data character string determination unit, verifies, and verified successfully in user data for the user data to acquisition When, the data character string for converting user data to the second preset format stores.
Optionally, which further includes:
Target string acquisition module, for after generating workflow form, instruction to be transferred according to workflow form, Obtain the corresponding target list character string of target operation flow table list and target data character string;
Target operation flow table forms data acquisition module, for target list character string and target data character string respectively into Row de-parsing obtains the sub- view class of target structure, third and user data of each target widget in target list;
Target operation flow table list rendering module, for according to each target structure and user data, being based on corresponding third Sub- view class renders each target widget, with display target workflow form.
The generating means of above-mentioned list can perform the generation method for the list that any embodiment of the present invention is provided, and has and holds The corresponding function module of generation method and advantageous effect of row list.
Embodiment three
Fig. 3 is a kind of structural schematic diagram for computer that the embodiment of the present invention four provides.Referring to Fig. 3, which includes:
One or more processors 310;
Memory 320, for storing one or more programs;
When one or more programs are executed by one or more processors 310 so that one or more processors 310 are realized Such as the generation method for the list that any embodiment proposes in above-described embodiment.
In Fig. 3 by taking a processor 310 as an example;Processor 310 and memory 320 in computer can by bus or Other modes connect, in Fig. 3 for being connected by bus.
Memory 320 is used as a kind of computer readable storage medium, can be used for storing software program, computer can perform journey Sequence and module, if the corresponding program instruction/module of the generation method of the list in the embodiment of the present invention is (for example, the life of list At control information acquisition module 210, target widget matching module 220, default configuration body determining module 230 and the list in device Generation module 240).Processor 310 is stored in software program, instruction and module in memory 320 by operation, to hold The generation method of above-mentioned list is realized in the various function application of row computer and data processing.
Memory 320 includes mainly storing program area and storage data field, wherein storing program area can store operation system Application program needed for system, at least one function;Storage data field can be stored uses created data etc. according to computer. Can also include nonvolatile memory in addition, memory 320 may include high-speed random access memory, for example, at least one A disk memory, flush memory device or other non-volatile solid state memory parts.In some instances, memory 320 can be into One step includes the memory remotely located relative to processor 310, these remote memories can pass through network connection to calculating Machine.The example of above-mentioned network includes but not limited to internet, intranet, LAN, mobile radio communication and combinations thereof.
The generation method for the list that the computer that the present embodiment proposes is proposed with above-described embodiment belongs to same inventive concept, The technical detail of detailed description not can be found in above-described embodiment in the present embodiment, and the present embodiment has the life for executing list At the identical advantageous effect of method.
Example IV
The present embodiment provides a kind of computer readable storage mediums, are stored thereon with computer program, which is handled The generation method of the list as described in any embodiment of the present invention is realized when device executes.
By the description above with respect to embodiment, it is apparent to those skilled in the art that, the present invention It can be realized by software and required common hardware, naturally it is also possible to which by hardware realization, but the former is more in many cases Good embodiment.Based on this understanding, technical scheme of the present invention substantially in other words contributes to the prior art Part can be expressed in the form of software products, which can be stored in computer readable storage medium In, such as the floppy disk of computer, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), flash memory (FLASH), hard disk or CD etc., including some instructions are with so that a computer is set Standby (can be personal computer, server or the network equipment etc.) executes the method described in each embodiment of the present invention.
Note that above are only presently preferred embodiments of the present invention and institute's application technology principle.It will be appreciated by those skilled in the art that The present invention is not limited to specific embodiments described here, can carry out for a person skilled in the art it is various it is apparent variation, It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out to the present invention by above example It is described in further detail, but the present invention is not limited only to above example, without departing from the inventive concept, also May include other more equivalent embodiments, and the scope of the present invention is determined by scope of the appended claims.

Claims (10)

1. a kind of generation method of list, which is characterized in that including:
The rendering position of the control identification information and each target widget of at least one target widget in list to be generated is obtained successively;
According to the control identification information of the target widget and the first default mapping table determine the target widget entity class and View class;
The default configuration body of the target widget is determined according to the entity class of the target widget;
According to the attribute information of the default configuration body and the target widget of acquisition, based on the view class in the rendering Position renders corresponding target widget, to generate list.
2. according to the method described in claim 1, it is characterized in that, obtaining the control of at least one target widget in list to be generated The rendering position of part identification information and each target widget, including:
When detecting that control button is clicked and when being pulled, dragged control is determined as target widget, and obtain quilt The corresponding control identification information of control button of dragging;
When detect discharge dragged control button when, the releasing position of control button is determined as to the rendering position of target widget It sets.
3. according to the method described in claim 2, it is characterized in that, the method further includes:
When detecting that control button is clicked and when being pulled, calls and pull view class, to render dragging for the target widget Drag operation.
4. according to the method described in claim 1, being corresponded to it is characterized in that, being rendered in the rendering position based on the view class Target widget, including:
Rendering position of the first sub- view class based on the target widget in list display box renders the target widget, raw At display structure of the target widget in the list to be generated;
The second sub- view class based on the target widget renders the target widget in attribute display frame, generates target widget Attribute acquisition frame, wherein the attribute acquisition frame is used to acquire the attribute information of the target widget.
5. according to the method described in claim 4, it is characterized in that, according to the target control of the default configuration body and acquisition The attribute information of part, rendering corresponding target widget in the rendering position based on the view class includes:
According to the default configuration body, based on the view class of the target widget the rendering position to the target widget into Row initial render;
According to the attribute information acquired in real time, based on the view class of the target widget in the rendering position to the target control Part is updated rendering.
6. according to the method described in claim 1, it is characterized in that, the generation list, including:
According to the attribute information and corresponding rendering position of the default configuration body of each target widget and acquisition, each target control is generated The target structure of part;
According to the target structure of each target widget in the list to be generated, list array is generated, wherein the list array In each element value correspond to a target structure;
The list array is converted to the list character string of the first preset format, and is stored.
7. according to the method described in claim 6, it is characterized in that, after generating list, further include:
Instruction is transferred according to list, obtains the corresponding target list character string of target list;
De-parsing is carried out to the target list character string, obtains the object construction of each target widget in the target list Body;
According to the user data of each target structure and corresponding acquisition, corresponded to based on each target widget in the target structure The sub- view class of third render each target widget, to generate workflow form.
8. a kind of generating means of list, which is characterized in that including:
Control information acquisition module, for obtain successively at least one target widget in list to be generated control identification information and The rendering position of each target widget;
Target widget matching module, for determining institute according to the control identification information of the target widget and the first default mapping table State the entity class and view class of target widget;
Default configuration body determining module, the default configuration for determining the target widget according to the entity class of the target widget Body;
List generation module is based on institute for the attribute information according to the default configuration body and the target widget of acquisition It states view class and renders corresponding target widget in the rendering position, to generate list.
9. a kind of computer, which is characterized in that the computer includes:
One or more processors;
Memory, for storing one or more programs;
When one or more of programs are executed by one or more of processors so that one or more of processors are real The now list generation method as described in any in claim 1-7.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor The list generation method as described in any in claim 1-7 is realized when execution.
CN201810200540.2A 2018-03-12 2018-03-12 A kind of generation method of list, device, computer and storage medium Pending CN108428112A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810200540.2A CN108428112A (en) 2018-03-12 2018-03-12 A kind of generation method of list, device, computer and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810200540.2A CN108428112A (en) 2018-03-12 2018-03-12 A kind of generation method of list, device, computer and storage medium

Publications (1)

Publication Number Publication Date
CN108428112A true CN108428112A (en) 2018-08-21

Family

ID=63157712

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810200540.2A Pending CN108428112A (en) 2018-03-12 2018-03-12 A kind of generation method of list, device, computer and storage medium

Country Status (1)

Country Link
CN (1) CN108428112A (en)

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109460546A (en) * 2018-11-09 2019-03-12 腾讯科技(深圳)有限公司 List generation method, device and electronic equipment
CN110109670A (en) * 2019-05-16 2019-08-09 北京字节跳动网络技术有限公司 Processing method, device, electronic equipment and the storage medium of view list data
CN110472200A (en) * 2019-07-29 2019-11-19 深圳市中兴新云服务有限公司 A kind of data processing method based on list, device and electronic equipment
CN110489070A (en) * 2019-07-25 2019-11-22 贝壳技术有限公司 A kind of display processing method and device of customized content
CN111061478A (en) * 2019-12-11 2020-04-24 政采云有限公司 Page form modification method, device, equipment and readable storage medium
CN111414591A (en) * 2020-03-02 2020-07-14 中国建设银行股份有限公司 Workflow management method and device
CN112068829A (en) * 2020-07-31 2020-12-11 广东飞企互联科技股份有限公司 Method, device, system, equipment and medium for generating single text input control
CN112068911A (en) * 2020-07-31 2020-12-11 广东飞企互联科技股份有限公司 Method, device, system, equipment and medium for generating electronic form
CN112131847A (en) * 2020-09-27 2020-12-25 北京北信源软件股份有限公司 React-based visual form generation method and system
CN112163174A (en) * 2020-09-29 2021-01-01 广州博冠信息科技有限公司 Message display method and device, storage medium and computer equipment
CN112631579A (en) * 2020-12-25 2021-04-09 傲普(上海)新能源有限公司 Method for multiplexing Vue components based on erp approval flow
CN113128187A (en) * 2021-04-19 2021-07-16 上海宜员网络技术有限公司 Form generation method, device and system
CN113407254A (en) * 2021-06-15 2021-09-17 长沙都正生物科技股份有限公司 Form generation method and device, electronic equipment and storage medium
TWI799920B (en) * 2021-07-21 2023-04-21 玉山商業銀行股份有限公司 Method for creating dynamic form with flexible depth and form system
CN116382672A (en) * 2023-06-06 2023-07-04 钱塘科技创新中心 System design method, intelligent terminal and storage medium for travel industry flow
CN116720489A (en) * 2023-08-08 2023-09-08 建信金融科技有限责任公司 Page filling method and device, electronic equipment and computer readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102360290A (en) * 2011-09-29 2012-02-22 用友软件股份有限公司 Form building device and form building method
CN105824647A (en) * 2016-04-05 2016-08-03 浪潮电子信息产业股份有限公司 Form page generating method and device
CN107015958A (en) * 2017-04-14 2017-08-04 东莞中国科学院云计算产业技术创新与育成中心 Report form generation method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102360290A (en) * 2011-09-29 2012-02-22 用友软件股份有限公司 Form building device and form building method
CN105824647A (en) * 2016-04-05 2016-08-03 浪潮电子信息产业股份有限公司 Form page generating method and device
CN107015958A (en) * 2017-04-14 2017-08-04 东莞中国科学院云计算产业技术创新与育成中心 Report form generation method and device

Cited By (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109460546A (en) * 2018-11-09 2019-03-12 腾讯科技(深圳)有限公司 List generation method, device and electronic equipment
CN110109670A (en) * 2019-05-16 2019-08-09 北京字节跳动网络技术有限公司 Processing method, device, electronic equipment and the storage medium of view list data
CN110109670B (en) * 2019-05-16 2020-06-23 北京字节跳动网络技术有限公司 Method and device for processing view list data, electronic equipment and storage medium
CN110489070A (en) * 2019-07-25 2019-11-22 贝壳技术有限公司 A kind of display processing method and device of customized content
CN110472200A (en) * 2019-07-29 2019-11-19 深圳市中兴新云服务有限公司 A kind of data processing method based on list, device and electronic equipment
CN110472200B (en) * 2019-07-29 2023-10-27 深圳市中兴新云服务有限公司 Form-based data processing method and device and electronic equipment
CN111061478A (en) * 2019-12-11 2020-04-24 政采云有限公司 Page form modification method, device, equipment and readable storage medium
CN111061478B (en) * 2019-12-11 2023-08-22 政采云有限公司 Page form modification method, device and equipment and readable storage medium
CN111414591A (en) * 2020-03-02 2020-07-14 中国建设银行股份有限公司 Workflow management method and device
CN111414591B (en) * 2020-03-02 2024-02-20 中国建设银行股份有限公司 Workflow management method and device
CN112068829A (en) * 2020-07-31 2020-12-11 广东飞企互联科技股份有限公司 Method, device, system, equipment and medium for generating single text input control
CN112068911A (en) * 2020-07-31 2020-12-11 广东飞企互联科技股份有限公司 Method, device, system, equipment and medium for generating electronic form
CN112068911B (en) * 2020-07-31 2023-12-26 广东飞企互联科技股份有限公司 Electronic form generation method, device, system, equipment and medium
CN112131847A (en) * 2020-09-27 2020-12-25 北京北信源软件股份有限公司 React-based visual form generation method and system
CN112163174A (en) * 2020-09-29 2021-01-01 广州博冠信息科技有限公司 Message display method and device, storage medium and computer equipment
CN112163174B (en) * 2020-09-29 2024-01-09 广州博冠信息科技有限公司 Message display method and device, storage medium and computer equipment
CN112631579A (en) * 2020-12-25 2021-04-09 傲普(上海)新能源有限公司 Method for multiplexing Vue components based on erp approval flow
CN112631579B (en) * 2020-12-25 2022-08-09 傲普(上海)新能源有限公司 Method for multiplexing Vue components based on erp approval flow
CN113128187A (en) * 2021-04-19 2021-07-16 上海宜员网络技术有限公司 Form generation method, device and system
CN113407254A (en) * 2021-06-15 2021-09-17 长沙都正生物科技股份有限公司 Form generation method and device, electronic equipment and storage medium
TWI799920B (en) * 2021-07-21 2023-04-21 玉山商業銀行股份有限公司 Method for creating dynamic form with flexible depth and form system
CN116382672A (en) * 2023-06-06 2023-07-04 钱塘科技创新中心 System design method, intelligent terminal and storage medium for travel industry flow
CN116720489A (en) * 2023-08-08 2023-09-08 建信金融科技有限责任公司 Page filling method and device, electronic equipment and computer readable storage medium
CN116720489B (en) * 2023-08-08 2023-11-07 建信金融科技有限责任公司 Page filling method and device, electronic equipment and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN108428112A (en) A kind of generation method of list, device, computer and storage medium
US10425501B2 (en) Element mapping and rule building systems and methods for contextual site visitor engagement
EP1577752A2 (en) Software development using visual interfaces
CN101013362B (en) Extensible framework for designing workflows
CN102693127B (en) Data-driven schema for describing and executing management tasks in a graphical user interface
CN108345456A (en) Page code generation method, device, computer equipment and storage medium
US20180081642A1 (en) Connectors framework
US20100088664A1 (en) Design tool and methodology for enterprise software applications
CN109597954A (en) Data item methods of exhibiting, calculates equipment and medium at device
CN107704243A (en) Construction method and device, the computer equipment and storage medium of front-end interface
CN106484393A (en) A kind of visualization view method for designing
CN106708480A (en) Management platform realization method and apparatus
US9459780B1 (en) Documenting interactive graphical designs
CA2637982A1 (en) Method for assessment of uncertainty and risk
CN112464623A (en) RPA flow file generation method and device, computer equipment and storage medium
US20160224338A1 (en) Analyzing Components Related To A Software Application In A Software Development Environment
CN103530338B (en) Frame for carrying out page rendering on calculation equipment and page generation method
CN109408764A (en) Page area division methods, calculate equipment and medium at device
EP3314409B1 (en) Tracing dependencies between development artifacts in a software development project
US20080040677A1 (en) HMI Development Support Apparatus, HMI Development Support Method and HMI Development Support Program
US11175800B2 (en) Element mapping and rule building systems and methods for contextual site visitor engagement
CN107589941A (en) A kind of method of the instant seating maps scheduling based on DragDropMgr singletons
US8327274B2 (en) Method and apparatus for customizing a model entity presentation based on a presentation policy
CN103649912A (en) Method, apparatus, and computer program product for generation of traceability matrices from video media
CN109684779A (en) A kind of simulation model assembly method based on view

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20180821

RJ01 Rejection of invention patent application after publication