CN111966352A - Form generation method and device, storage medium and electronic equipment - Google Patents

Form generation method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN111966352A
CN111966352A CN202010773819.7A CN202010773819A CN111966352A CN 111966352 A CN111966352 A CN 111966352A CN 202010773819 A CN202010773819 A CN 202010773819A CN 111966352 A CN111966352 A CN 111966352A
Authority
CN
China
Prior art keywords
control
authority
source code
target
information
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
CN202010773819.7A
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.)
Dongsoft Group Dalian Co ltd
Neusoft Corp
Original Assignee
Dongsoft Group Dalian Co ltd
Neusoft Corp
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 Dongsoft Group Dalian Co ltd, Neusoft Corp filed Critical Dongsoft Group Dalian Co ltd
Priority to CN202010773819.7A priority Critical patent/CN111966352A/en
Publication of CN111966352A publication Critical patent/CN111966352A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Storage Device Security (AREA)

Abstract

The disclosure relates to a form generation method, a form generation device, a storage medium and an electronic device, wherein the method comprises the following steps: responding to a form generation instruction of a target object, and acquiring target authority information of a control in a form to be generated corresponding to the target object from a form source code; and generating a form with the control having authority limit according to the form source code and the target authority information. By adopting the technical scheme, the form does not need to be subjected to a large amount of data interaction with a background database during generation, so that the generation access speed of the form can be improved. In addition, since the authority information can be obtained through the source code, the form can be generated at one time according to the form source code and the authority information, and the generation access speed of the form is further improved.

Description

Form generation method and device, storage medium and electronic equipment
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a form generation method and apparatus, a storage medium, and an electronic device.
Background
The form is a common user interface element, provides a simple and intuitive expression mode for data input and output, and can complete functions of data display, data collection and the like in many scenes with the development of artificial intelligence technology and mobile information systems.
Generally, when a form is defined, the form can also be subjected to authority control. For example, the approval comment column can only be filled in by an approver, and confidential information is only displayed for related personnel, and the like. In the related art, in order to realize authority control for the form, a large amount of authorization data is generated, and such a manner may cause a reduction in the generation access speed of the form in some scenarios.
Disclosure of Invention
The present disclosure is directed to a form generation method, apparatus, storage medium and electronic device, so as to solve the above related technical problems.
In order to achieve the above object, according to a first aspect of the embodiments of the present disclosure, there is provided a form generation method, including:
responding to a form generation instruction of a target object, and acquiring target authority information of a control in a form to be generated corresponding to the target object from a form source code;
and generating a form with the control having authority limit according to the form source code and the target authority information.
Optionally, the authority information in the form source code is obtained by:
acquiring authority configuration information of a control in a form to be generated aiming at different objects;
for each control, coding all authority configuration information corresponding to the control to obtain an authority coding set of each control;
and generating the authority information in a matrix form according to the authority code sets corresponding to all the controls, and adding the authority information into the form source code.
Optionally, the obtaining, from the form source code, target authority information of the target object corresponding to the control in the form to be generated includes:
for each control, determining the position of the authority coding set corresponding to the control in the authority information in a matrix form;
and acquiring target authority information corresponding to the target object from the authority coding set corresponding to the control according to the position.
Optionally, the form processing flow includes a plurality of transfer objects, and the encoding, for each control, all right configuration information corresponding to the control to obtain a right encoding set of each control includes:
for each control, coding all the authority configuration information corresponding to the control according to the sequence of each transfer object corresponding to the control in the processing flow to obtain an authority coding set of each control;
the acquiring, according to the position, the target permission information corresponding to the target object from the permission code set corresponding to the control includes:
and acquiring target permission information corresponding to the target object from the permission coding set corresponding to the control according to the position and the target sequence of the target object in the processing flow.
Optionally, the generating a form with a control having an authority limit according to the form source code and the target authority information includes:
and according to the form source code and the authority information of each control corresponding to the target object, performing asynchronous rendering on each control to generate a form with authority limit on the control.
In a second aspect of the embodiments of the present disclosure, there is provided a form generating apparatus, including:
the first acquisition module is used for responding to a form generation instruction of a target object and acquiring target authority information of a control in a form to be generated, which corresponds to the target object, from a form source code;
and the generating module is used for generating a form with the control having the authority limit according to the form source code and the target authority information.
Optionally, the apparatus further comprises:
a second obtaining module, configured to obtain permission information in the form source code, where the second obtaining module includes:
the first obtaining sub-module is used for obtaining authority configuration information of the control in the form to be generated aiming at different objects;
the coding submodule is used for coding all right configuration information corresponding to each control to obtain a right coding set of each control;
and the execution submodule is used for generating the authority information in a matrix form according to the authority code sets corresponding to all the controls and adding the authority information into the form source code.
Optionally, the first obtaining module includes:
the determining submodule is used for determining the position of the authority coding set corresponding to each control in the authority information in a matrix form;
and the second obtaining submodule is used for obtaining the target authority information corresponding to the target object from the authority coding set corresponding to the control according to the position.
Optionally, the processing flow of the form includes a plurality of delivery objects, and the encoding sub-module includes:
the coding subunit is configured to, for each control, code all the permission configuration information corresponding to the control according to an order of each transfer object corresponding to the control in the processing flow, so as to obtain a permission coding set of each control;
the second obtaining sub-module includes:
and the obtaining subunit is configured to obtain, according to the position and a target order of the target object in the processing flow, target permission information corresponding to the target object from the permission code set corresponding to the control.
Optionally, the generating module includes:
and the generation submodule is used for performing asynchronous rendering on each control according to the form source code and the authority information of each control corresponding to the target object to generate a form with the control limited by the authority.
In a third aspect of the embodiments of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored, which when executed by a processor implements the steps of the method of any one of the above first aspects.
In a fourth aspect of the embodiments of the present disclosure, an electronic device is provided, including:
a memory having a computer program stored thereon;
a processor for executing the computer program in the memory to implement the steps of the method of any of the first aspects above.
In the above technical solution, the form source code includes authority information of the corresponding control. Therefore, when a form generation instruction of a target object is received, target authority information corresponding to the target object and a related control can be obtained from the form source code according to the identity of the target object. And generating a form with the control having authority limit according to the form source code and the target authority information. That is to say, by adopting the technical scheme, the form does not need to be subjected to a large amount of data interaction with a background database during generation, so that the generation access speed of the form can be improved. In addition, since the authority information can be obtained through the source code, the form can be generated at one time according to the form source code and the authority information, and the generation access speed of the form is further improved.
Additional features and advantages of the disclosure will be set forth in the detailed description which follows.
Drawings
The accompanying drawings, which are included to provide a further understanding of the disclosure and are incorporated in and constitute a part of this specification, illustrate embodiments of the disclosure and together with the description serve to explain the disclosure without limiting the disclosure. In the drawings:
FIG. 1 is a flowchart illustrating a method of form generation according to an exemplary embodiment of the present disclosure.
Fig. 2 is a flowchart illustrating an exemplary embodiment of generating rights information according to the present disclosure.
FIG. 3 is a schematic diagram of a form processing flow shown in an exemplary embodiment of the present disclosure.
Fig. 4 is a block diagram of a form generation apparatus according to an exemplary embodiment of the present disclosure.
Fig. 5 is a block diagram of an electronic device shown in an exemplary embodiment of the present disclosure.
Detailed Description
The following detailed description of specific embodiments of the present disclosure is provided in connection with the accompanying drawings. It should be understood that the detailed description and specific examples, while indicating the present disclosure, are given by way of illustration and explanation only, not limitation.
Before introducing the form generation method, apparatus, storage medium, and electronic device provided by the present disclosure, an application scenario of the present disclosure is first introduced. Embodiments of the present disclosure can be applied to various form generation scenarios, in which a form, as a common user interface element, can provide a simple and intuitive expression for data input and output.
In a related scene, authority control can be performed on the form when the form is generated. These rights may include, for example, viewing rights, editing rights, printing rights, and the like. In some embodiments, to perform rights control on a form, corresponding authorization data may be generated for the form. This data may be stored in a database and when the user accesses the form, the system may generate the form from its form source code. And searching the authorization data corresponding to the user from the database according to the identity ID of the user and the form information. In this way, after the authorization data is obtained, the system can sequentially set the authority of each control in the form according to the authorization data, and finally generate the form with the authority limit of the controls.
The applicant finds that, because the technical scheme generates more authorization data for the form during implementation, more background data interaction processes exist during the form generation. Thus, when the server faces large concurrent requests, the phenomenon that the form access speed is low can occur by adopting the technical scheme. In addition, because the technical scheme can include two steps of rendering the form and setting the authority when the form is generated, in some implementation scenes, the phenomenon that the invisible form control is displayed when the front end is rendered and is hidden after the authority is set may occur, so that certain safety risk exists.
To this end, the present disclosure provides a form generation method, which, with reference to the flowchart of a form generation method shown in fig. 1, includes:
s11, responding to a form generation instruction of a target object, and acquiring target authority information of a control in a form to be generated corresponding to the target object from a form source code;
and S12, generating a form with the control having authority limit according to the form source code and the target authority information.
In particular, the method can be applied to terminal equipment such as computers and tablet computers. In step S11, the target object may be a user, and the form generation instruction may be generated according to an operation of viewing a form by the user. In this way, the terminal can respond to the form generation instruction so as to acquire the target authority information. Of course, the target object may also be a device, and correspondingly, the terminal may also respond to the form generation instruction sent by the device, so as to obtain the target permission information, which is not limited in this disclosure.
For the target authority information, the authority information of each control in the form may be stored in the form source code. For example, for the authority information of the target control, in specific implementation, the authority information state selectable by the target control may be encoded, and a mapping relationship between the encoding and the corresponding authority is set. Therefore, when the terminal acquires the authority code of the target control from the form source code, the authority of the corresponding target control can be determined through the mapping relation between the code and the corresponding authority.
Name (I) Age (age)
Identity card number Sex
TABLE 1
Taking table 1 as an example for illustration, the permissions of the control may include, for example, viewing, modifying, and printing, wherein each permission may include both enabling and disabling the result. That is, each control may include 8 privilege state combinations. Thus, in specific implementation, for each control, the 8 permission state combinations may be encoded, and a mapping relationship between the encoding and the corresponding permission state may be set. Illustratively, the 8 combinations of states of authority can be encoded as A, B, C, D, E, F, G and stored into the form source code. Where the code a may indicate, for example, viewing prohibition, modification prohibition, and printing prohibition, and the code B may indicate, for example, viewing prohibition, modification prohibition, and printing permission. Of course, the above-mentioned code is only an example, and in a specific implementation, the code may further include an identifier set for different objects and/or controls, and the code may also be presented in a digital manner, for example, which is not limited in this disclosure.
Thus, after the target authority information is obtained, in step S12, a form with control having authority limit may be generated according to the form source code and the target authority information.
Following the above example, when the encoding of the target control of the target object corresponding to the "name" is determined to be a through the form source code, the authority of the target object for the control of the "name" can be determined to be viewing prohibition, modification prohibition and printing prohibition according to the encoding a. Thus, the "name" control may not be displayed in the form when the form is generated from the form source code and the target authority information.
By adopting the technical scheme, the permission information corresponding to the control is stored in the form source code, so that when a form generation instruction of a target object is received, the target permission information corresponding to the target object and the related control can be obtained from the form source code according to the identity of the target object. And generating a form with the control having authority limit according to the form source code and the target authority information. That is to say, by adopting the technical scheme, the form does not need to be subjected to a large amount of data interaction with a background database during generation, so that the generation access speed of the form can be improved. In addition, since the authority information can be obtained through the source code, the form can be generated at one time according to the form source code and the authority information, and the generation access speed of the form is further improved.
In a possible implementation manner, referring to a flow chart of generating the authority information shown in fig. 2, the authority information in the form source code is obtained by the following steps:
and S21, acquiring authority configuration information of the control in the form to be generated aiming at different objects.
Figure BDA0002617619790000081
TABLE 2
Wherein, the authority configuration information of the control for different objects can be set when the form is defined. Referring to table 1, table 2 is an exemplary table of rights configuration information of an object, which includes rights configurations of the object 1 and the object 2 when corresponding to the 4 kinds of controls shown in table 1.
In this way, in step S22, for each control, all the permission configuration information corresponding to the control may be encoded, so as to obtain a permission encoding set for each control.
It should be understood that the permission configuration for each control may include both enabled and disabled states. Thus, in some embodiments, the privilege configuration state of the control may be represented by a one-bit binary number. Referring to table 2, taking the control "name" as an example, in specific implementation, the permission options may be viewed, modified, and printed by encoding with three-digit binary numbers in sequence. For example, for a certain permission option, the permission may be encoded as 1 and the prohibition may be encoded as 0. Thus, the "name" control of object 1 may be encoded as 111 and the "name" control of object 2 may be encoded as 011. Thus, the encodings for the control "name" for different objects may constitute a set of permission encodings corresponding to the control.
Of course, the above encoding method is still an example, and other binary systems may be used to encode the authority configuration information in specific implementation. For example, two bits may be selected from an 8-ary number to represent the enable or disable state of the rights item. Alternatively, in some embodiments, after the authority configuration information is encoded by a multi-bit binary number, the binary authority encoding may be further converted into a decimal number for storage, which is not limited by the present disclosure.
In addition, in step S23, the authority information in a matrix form may also be generated according to the authority code sets corresponding to all the controls, and the authority information is added to the form source code.
Following the example above, for the set of encodings for the name control, it may include encoding 111 for object 1 and encoding 011 for object 2. In some embodiments, the encoding of objects 1 and 2 may be converted to decimal numbers and represented by a matrix. For example, the encoding of object 1 translates to a decimal number of 7 and the encoding of object 2 translates to a decimal number of 3, so the encoded set of name controls can be represented as a matrix [7,3 ]. In addition, a matrix representation form of the coding set of each control can be used as an element of another matrix, so that the authority information in a matrix form can be obtained.
In this way, by adding the authority information in the form of the matrix to the form source code, the authority of the control under the corresponding object can be searched through the authority matrix according to the position information of the control when the form is generated, so that a large amount of authorization data can be prevented from being generated. In addition, the authority information is stored in the form source code, so that data interaction with a background database can be reduced when the form is generated, and the form generation speed is improved.
Optionally, the obtaining, from the form source code, target authority information of the target object corresponding to the control in the form to be generated includes:
for each control, determining the position of the authority coding set corresponding to the control in the authority information in a matrix form;
and acquiring target authority information corresponding to the target object from the authority coding set corresponding to the control according to the position.
For example, in some embodiments, the rendering source code of each control may also store the position information of the control in the form. The position information may be represented by, for example, a row and column number where the control is located in the form, so that a matrix representation form of the coding set of the control may be used as an element of an authority matrix according to the position information of different controls, thereby obtaining the authority information in a matrix form. Following the example of Table 1 and Table 2, the name control is positioned in Table 1 in the first row and column, and thus is represented in the form of a matrix of its encoded set [7,3]]May be an element of the first row and the first column in the matrix of permissions. Thus, the authority matrix corresponding to Table 2 can be
Figure BDA0002617619790000101
Therefore, when the authority information of the corresponding control is searched, the element corresponding to the row and column label can be searched in the authority matrix according to the row and column label of the control, so that the matrix representation form of the coding set of the control is obtained, and the authority information of the control corresponding to the target object is determined from the matrix representation form of the coding set of the control according to the information of the target object.
Referring to fig. 3, a schematic diagram of a form processing flow is shown, and in one possible implementation, the form processing flow includes a plurality of delivery objects. In this case, the encoding, for each control, all right configuration information corresponding to the control to obtain a right encoding set of each control includes:
and for each control, coding all the authority configuration information corresponding to the control according to the sequence of each transfer object corresponding to the control in the processing flow to obtain an authority coding set of each control.
As described with reference to table 2, the delivery object 1 may be an object 1 in table 2, and the delivery object 2 may be an object 2 in table 2. In this way, when the authority configuration information corresponding to the control "age" is encoded, the authority information of the object 1 is encoded to 6, and the authority information of the object 2 is encoded to 2. Referring to fig. 3, the object 1 is located in front of the object 2 in the processing flow of the form, so when the authority configuration information corresponding to the control "age" is encoded, the authority information of the object 1 may be located in front of the authority information encoding of the object 2, that is, the authority configuration information corresponding to the control "age" may be encoded as [6,2 ″]. Similarly, the form shown in Table 2 may be encoded as
Figure BDA0002617619790000102
Thus, the obtaining of the target authority information corresponding to the target object from the authority code set corresponding to the control according to the position includes:
and acquiring target permission information corresponding to the target object from the permission coding set corresponding to the control according to the position and the target sequence of the target object in the processing flow.
Taking the form generation of the object 2 as an example, in the form processing flow, the terminal may respond to the form generation instruction of the object 2, and acquire the authority information of each control through the source code of the form. When the authority of the control 'identity card number' corresponding to the object 2 is searched, the position of the control 'identity card number' in the form is a second row and a first column, so that the element of the second row and the first column can be determined to be the authority coding set corresponding to the control from the authority information in the form of a matrix in the source code of the form, namely the authority coding set [4,5 ]. Further, the terminal may also obtain the identity information of the current object through the front-end page, thereby determining that the current object is the object 2. Referring to fig. 3, an object 2 is located behind the object 1 in the processing flow, so that the permission code of the object 2 can be determined to be 5 in the permission code set [4,5 ]. That is, the authority code of the object 2 is 101, and the corresponding authority is display permission, editing prohibition, and printing permission.
By adopting the technical scheme, the authority of the target control corresponding to the object can be acquired through the spatial position information and the sequence of the object in the processing flow, and the acquisition speed of the authority data is improved.
It should be noted that, since the authority information of the control is stored in the form source code, the authority acquisition process may be performed synchronously. That is, each control in the form can synchronously acquire its own authority information when the form is generated.
In this way, since the controls can synchronously acquire their own authority information, each of the controls can also perform asynchronous rendering when rendering the form. In this case, the generating a form with a control having an authority limit according to the form source code and the target authority information includes:
and according to the form source code and the authority information of each control corresponding to the target object, performing asynchronous rendering on each control to generate a form with authority limit on the control. For example, the permission control engine may read the relevant controls, and call back the rendering method of the current control according to the read permission coding value of the corresponding control in the current link, so as to asynchronously render each control, generate a form with permission limitation for the control, and implement control of the form permission. By adopting the rendering mode, each control can asynchronously perform self-rendering, so that the rendering speed of the form can be increased, and the generation speed of the form can be increased.
The present disclosure also provides a form generation apparatus, and referring to a block diagram of a form generation apparatus shown in fig. 4, the form generation apparatus 400 includes:
the first obtaining module 401 is configured to, in response to a form generation instruction of a target object, obtain, from a form source code, target permission information of a control in a form to be generated, where the control corresponds to the target object;
and a generating module 402, configured to generate a form with a control having permission limitation according to the form source code and the target permission information.
By adopting the technical scheme, the permission information corresponding to the control is stored in the form source code, so that when a form generation instruction of a target object is received, the target permission information corresponding to the target object and the related control can be obtained from the form source code according to the identity of the target object. And generating a form with the control having authority limit according to the form source code and the target authority information. That is to say, by adopting the technical scheme, the form does not need to be subjected to a large amount of data interaction with a background database during generation, so that the generation access speed of the form can be improved. In addition, since the authority information can be obtained through the source code, the form can be generated at one time according to the form source code and the authority information, and the generation access speed of the form is further improved.
Optionally, the apparatus 400 further comprises:
a second obtaining module, configured to obtain permission information in the form source code, where the second obtaining module includes:
the first obtaining sub-module is used for obtaining authority configuration information of the control in the form to be generated aiming at different objects;
the coding submodule is used for coding all right configuration information corresponding to each control to obtain a right coding set of each control;
and the execution submodule is used for generating the authority information in a matrix form according to the authority code sets corresponding to all the controls and adding the authority information into the form source code.
In this way, by adding the authority information in the form of the matrix to the form source code, the authority of the control under the corresponding object can be searched through the authority matrix according to the position information of the control when the form is generated, so that a large amount of authorization data can be prevented from being generated. In addition, the authority information is stored in the form source code, so that data interaction with a background database can be reduced when the form is generated, and the form generation speed is improved.
Optionally, the first obtaining module 401 includes:
the determining submodule is used for determining the position of the authority coding set corresponding to each control in the authority information in a matrix form;
and the second obtaining submodule is used for obtaining the target authority information corresponding to the target object from the authority coding set corresponding to the control according to the position.
Therefore, when the authority information of the corresponding control is searched, the element corresponding to the row and column label can be searched in the authority matrix according to the row and column label of the control, so that the matrix representation form of the coding set of the control is obtained, and the authority information of the control corresponding to the target object is determined from the matrix representation form of the coding set of the control according to the information of the target object.
Optionally, the processing flow of the form includes a plurality of delivery objects, and the encoding sub-module includes:
the coding subunit is configured to, for each control, code all the permission configuration information corresponding to the control according to an order of each transfer object corresponding to the control in the processing flow, so as to obtain a permission coding set of each control;
the second obtaining sub-module includes:
and the obtaining subunit is configured to obtain, according to the position and a target order of the target object in the processing flow, target permission information corresponding to the target object from the permission code set corresponding to the control.
By adopting the technical scheme, the authority of the target control corresponding to the object can be acquired through the spatial position information and the sequence of the object in the processing flow, and the acquisition speed of the authority data is improved.
Optionally, the generating module 402 includes:
and the generation submodule is used for performing asynchronous rendering on each control according to the form source code and the authority information of each control corresponding to the target object to generate a form with the control limited by the authority.
By adopting the rendering mode, each control can asynchronously perform self-rendering, so that the rendering speed of the form can be increased, and the generation speed of the form can be increased.
The present disclosure also provides a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the steps of the method described in the above embodiments.
The present disclosure also provides an electronic device, comprising:
a memory having a computer program stored thereon;
a processor for executing the computer program in the memory to implement the steps of the method in the above embodiments.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
It should be noted that, for convenience and brevity of description, all the embodiments described in the specification belong to the preferred embodiments, and the related portions are not necessarily essential to the present invention, for example, the first obtaining module 401 and the second obtaining module may be independent devices or may be the same device when being implemented specifically, and the disclosure is not limited thereto.
Fig. 5 is a block diagram illustrating an electronic device 500 in accordance with an example embodiment. As shown in fig. 5, the electronic device 500 may include: a processor 501 and a memory 502. The electronic device 500 may also include one or more of a multimedia component 503, an input/output (I/O) interface 504, and a communication component 505.
The processor 501 is configured to control the overall operation of the electronic device 500, so as to complete all or part of the steps in the above-mentioned form generation method. The memory 502 is used to store various types of data to support operations at the electronic device 500, such as instructions for any application or method operating on the electronic device 500, and application-related data, such as object data, form data, pictures, audio, video, and so forth. The Memory 502 may be implemented by any type of volatile or non-volatile Memory device or combination thereof, such as Static Random Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read-Only Memory (EPROM), Programmable Read-Only Memory (PROM), Read-Only Memory (ROM), magnetic Memory, flash Memory, magnetic disk or optical disk. The multimedia component 503 may include a screen and an audio component. Wherein the screen may be, for example, a touch screen and the audio component is used for outputting and/or inputting audio signals. For example, the audio component may include a microphone for receiving external audio signals. The received audio signal may further be stored in the memory 502 or transmitted through the communication component 505. The audio assembly also includes at least one speaker for outputting audio signals. The I/O interface 504 provides an interface between the processor 501 and other interface modules, such as a keyboard, mouse, buttons, etc. These buttons may be virtual buttons or physical buttons. The communication component 505 is used for wired or wireless communication between the electronic device 500 and other devices. Wireless Communication, such as Wi-Fi, bluetooth, Near Field Communication (NFC), 2G, 3G, 4G, NB-IOT, eMTC, or other 5G, etc., or a combination of one or more of them, which is not limited herein. The corresponding communication component 505 may thus comprise: Wi-Fi module, Bluetooth module, NFC module, etc.
In an exemplary embodiment, the electronic Device 500 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components for performing the above-described form generation method.
In another exemplary embodiment, there is also provided a computer readable storage medium comprising program instructions which, when executed by a processor, implement the steps of the form generation method described above. For example, the computer readable storage medium may be the memory 502 described above comprising program instructions executable by the processor 501 of the electronic device 500 to perform the form generation method described above.
In another exemplary embodiment, a computer program product is also provided, which comprises a computer program executable by a programmable apparatus, the computer program having code portions for performing the above-described form generation method when executed by the programmable apparatus.
The preferred embodiments of the present disclosure are described in detail with reference to the accompanying drawings, however, the present disclosure is not limited to the specific details of the above embodiments, and various simple modifications may be made to the technical solution of the present disclosure within the technical idea of the present disclosure, and these simple modifications all belong to the protection scope of the present disclosure.
It should be noted that, in the foregoing embodiments, various features described in the above embodiments may be combined in any suitable manner, and in order to avoid unnecessary repetition, various combinations that are possible in the present disclosure are not described again.
In addition, any combination of various embodiments of the present disclosure may be made, and the same should be considered as the disclosure of the present disclosure, as long as it does not depart from the spirit of the present disclosure.

Claims (10)

1. A form generation method, comprising:
responding to a form generation instruction of a target object, and acquiring target authority information of a control in a form to be generated corresponding to the target object from a form source code;
and generating a form with the control having authority limit according to the form source code and the target authority information.
2. The method of claim 1, wherein the authority information in the form source code is obtained by:
acquiring authority configuration information of a control in a form to be generated aiming at different objects;
for each control, coding all authority configuration information corresponding to the control to obtain an authority coding set of each control;
and generating the authority information in a matrix form according to the authority code sets corresponding to all the controls, and adding the authority information into the form source code.
3. The method according to claim 2, wherein the obtaining target permission information of the target object corresponding to the control in the form to be generated from the form source code comprises:
for each control, determining the position of the authority coding set corresponding to the control in the authority information in a matrix form;
and acquiring target authority information corresponding to the target object from the authority coding set corresponding to the control according to the position.
4. The method according to claim 3, wherein the form processing flow includes a plurality of transfer objects, and the encoding all right configuration information corresponding to each control to obtain the right encoding set of each control includes:
for each control, coding all the authority configuration information corresponding to the control according to the sequence of each transfer object corresponding to the control in the processing flow to obtain an authority coding set of each control;
the acquiring, according to the position, the target permission information corresponding to the target object from the permission code set corresponding to the control includes:
and acquiring target permission information corresponding to the target object from the permission coding set corresponding to the control according to the position and the target sequence of the target object in the processing flow.
5. The method according to any one of claims 1 to 4, wherein the generating a form with a control having a permission limitation according to the form source code and the target permission information comprises:
and according to the form source code and the authority information of each control corresponding to the target object, performing asynchronous rendering on each control to generate a form with authority limit on the control.
6. A form generation apparatus, comprising:
the first acquisition module is used for responding to a form generation instruction of a target object and acquiring target authority information of a control in a form to be generated, which corresponds to the target object, from a form source code;
and the generating module is used for generating a form with the control having the authority limit according to the form source code and the target authority information.
7. The apparatus of claim 6, further comprising:
a second obtaining module, configured to obtain permission information in the form source code, where the second obtaining module includes:
the first obtaining sub-module is used for obtaining authority configuration information of the control in the form to be generated aiming at different objects;
the coding submodule is used for coding all right configuration information corresponding to each control to obtain a right coding set of each control;
and the execution submodule is used for generating the authority information in a matrix form according to the authority code sets corresponding to all the controls and adding the authority information into the form source code.
8. The apparatus of any one of claims 5 or 6, wherein the generating means comprises:
and the generation submodule is used for performing asynchronous rendering on each control according to the form source code and the authority information of each control corresponding to the target object to generate a form with the control limited by the authority.
9. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 5.
10. An electronic device, comprising:
a memory having a computer program stored thereon;
a processor for executing the computer program in the memory to carry out the steps of the method of any one of claims 1 to 5.
CN202010773819.7A 2020-08-04 2020-08-04 Form generation method and device, storage medium and electronic equipment Pending CN111966352A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010773819.7A CN111966352A (en) 2020-08-04 2020-08-04 Form generation method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010773819.7A CN111966352A (en) 2020-08-04 2020-08-04 Form generation method and device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN111966352A true CN111966352A (en) 2020-11-20

Family

ID=73363488

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010773819.7A Pending CN111966352A (en) 2020-08-04 2020-08-04 Form generation method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN111966352A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112905943A (en) * 2020-12-09 2021-06-04 广州市玄武无线科技股份有限公司 Dynamic chart display method and system based on mobile terminal
CN113741866A (en) * 2021-09-14 2021-12-03 挂号网(杭州)科技有限公司 Form generation method and device, electronic equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112905943A (en) * 2020-12-09 2021-06-04 广州市玄武无线科技股份有限公司 Dynamic chart display method and system based on mobile terminal
CN113741866A (en) * 2021-09-14 2021-12-03 挂号网(杭州)科技有限公司 Form generation method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
KR102132504B1 (en) Secure identification of computing device and secure identification methods
CN111538980B (en) Account binding method, device and system for application program
CN111966352A (en) Form generation method and device, storage medium and electronic equipment
CN110610352B (en) Flow processing method and device, electronic equipment and computer readable storage medium
CN107580013B (en) Method and device for requesting data in cross-domain mode
CN108255952B (en) Data loading method and device, storage medium and electronic equipment
CN111090582A (en) Error code positioning method and device, storage medium and electronic equipment
US20190369938A1 (en) Information processing method and related electronic device
CN113177190A (en) Document content sharing method and electronic equipment
CN111984239A (en) Page configuration method, device, server and storage medium
CN111708431A (en) Human-computer interaction method and device, head-mounted display equipment and storage medium
CN110719590A (en) One-key login method, device, equipment and storage medium based on mobile phone number
CN111784263B (en) Authorization processing method and device and logistics object processing method and device
CN117725062A (en) Database table processing method and device, storage medium and computer equipment
WO2023202618A1 (en) Data sending method and apparatus
CN112486492A (en) Page generation method and device, storage medium and electronic equipment
CN104680083A (en) Method and device for managing image
CN116931807A (en) Virtual keyboard character layout control method and device, storage medium and electronic equipment
CN107992740B (en) Mask processing method and client
CN112860625B (en) Data acquisition method, data storage method, device, equipment and storage medium
CN107315970B (en) Sensitive data interaction method and device
CN110084065B (en) Data desensitization method and device
CN112487032A (en) Data query method and device, storage medium and electronic equipment
CN110324236B (en) Event record sharing method and device and computer equipment
CN116360859B (en) Power domain access method, device, equipment and storage medium

Legal Events

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