CN111813282B - Data form display method and device - Google Patents

Data form display method and device Download PDF

Info

Publication number
CN111813282B
CN111813282B CN202010477764.5A CN202010477764A CN111813282B CN 111813282 B CN111813282 B CN 111813282B CN 202010477764 A CN202010477764 A CN 202010477764A CN 111813282 B CN111813282 B CN 111813282B
Authority
CN
China
Prior art keywords
data form
target
button
displaying
display
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.)
Active
Application number
CN202010477764.5A
Other languages
Chinese (zh)
Other versions
CN111813282A (en
Inventor
马仲
朱江
杨彪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Kingsoft Cloud Network Technology Co Ltd
Original Assignee
Beijing Kingsoft Cloud 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 Beijing Kingsoft Cloud Network Technology Co Ltd filed Critical Beijing Kingsoft Cloud Network Technology Co Ltd
Priority to CN202010477764.5A priority Critical patent/CN111813282B/en
Publication of CN111813282A publication Critical patent/CN111813282A/en
Application granted granted Critical
Publication of CN111813282B publication Critical patent/CN111813282B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • G06F9/44526Plug-ins; Add-ons

Abstract

The application relates to a method and a device for displaying a data form, wherein the method comprises the following steps: under the condition of receiving a screening request sent by a target account, responding to the screening request and displaying a screening interface; under the condition that a display request triggered by a target account on a screening interface is received, responding to the display request to display a form page; responding to the operation of the adding button, executing the adding operation on the first data form to obtain a second data form, and displaying the second data form; and in the case of detecting the saving operation performed on the second data form, displaying target prompt information, wherein the target prompt information is used for indicating that the saving of the second data form is refused. The method and the device solve the technical problem that the operation authority of the account requesting to display the data form cannot be controlled in the related technology.

Description

Data form display method and device
Technical Field
The present application relates to the field of computers, and in particular, to a method and an apparatus for displaying a data form.
Background
The existing display mode of the data form is to nest the display page of the data form into an application program, and because the application program and the display page of the data form use different user systems, a user needing the application program logs in the display page of the data form in an anonymous login mode. The user who has logged in the display page of the dataform anonymously can perform any editing operation on the display page of the dataform, which results in that the authority of the user cannot be effectively controlled.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The application provides a method and a device for displaying a data form, which are used for at least solving the technical problem that the operation authority of an account requesting to display the data form in the related technology cannot be controlled.
According to an aspect of the embodiments of the present application, there is provided a method for displaying a data form, including:
under the condition of receiving a screening request sent by a target account, responding to the screening request to display a screening interface, wherein the screening request is used for requesting to screen a data form which is allowed to be displayed, a new button on the screening interface is set to be hidden, and the new button is used for triggering new operation of the data form;
under the condition that a display request triggered by the target account on the screening interface is received, responding to the display request to display a form page, wherein the form page is used for displaying a first data form requested to be displayed by the display request, the data form allowed to be displayed comprises the first data form, and an adding button is displayed on the form page and used for performing adding operation on the first data form;
responding to the operation of the adding button, performing adding operation on the first data form to obtain a second data form, and displaying the second data form;
and under the condition that the saving operation performed on the second data form is detected, displaying target prompt information, wherein the target prompt information is used for indicating that the saving of the second data form is refused.
Optionally, before displaying the screening interface in response to the screening request, the method further includes:
acquiring a code file of the screening interface, wherein the code file is used for displaying the screening interface;
and modifying a first code corresponding to the newly-built button in the code file into a second code, wherein the first code is used for indicating that the button attribute of the newly-built button is in a display state, and the second code is used for indicating that the button attribute of the newly-built button is in a hidden state.
Optionally, before the form page is displayed in response to the display request, the method further includes:
acquiring a configuration file corresponding to the adding button;
and configuring the editing attribute corresponding to the adding button in the configuration file as a target attribute, wherein the editing attribute configured as the target attribute is used for indicating that the adding operation executed on the data form displayed on the display form page is not allowed to be saved.
Optionally, before displaying a screening interface in response to the screening request, the method further includes:
acquiring a module code of an initial data form display module, wherein the initial data form display module is used for displaying a data form;
modifying the target code corresponding to the newly-built button in the module code to obtain an intermediate data form display module, wherein the button attribute of the newly-built button in the initial data form display module is set to be in a display state, and the button attribute of the newly-built button in the intermediate data form display module is set to be in a hidden state;
deploying a configuration file of the intermediate data form display module;
configuring a target configuration item in the configuration file into a target attribute to obtain a target data form display module, wherein the target configuration item configured into the target attribute is used for indicating that the data form is not allowed to be edited;
and embedding the target data form display module into a target application, wherein the target data form display module is used for displaying the data form in the target application.
Optionally, in a case that a screening request sent by a target account is received, responding to the screening request to display a screening interface includes:
starting the target application, wherein a starting button is displayed on the target application and is used for starting the target data form display module;
under the condition that the triggering operation executed by the target account on the starting button is detected, the target data form display module is called in response to the triggering operation;
and operating the target data form display module and displaying the screening interface.
Optionally, after the target prompt message is displayed, the method further includes:
receiving a modification request sent by the target account, wherein the modification request is used for requesting to modify the configuration file;
detecting the login mode of the target account;
refusing the modification request under the condition that the login mode of the target account is a first login mode, wherein the first login mode is used for indicating that a preset account is used for logging in the target data form display module;
and under the condition that the login mode of the target account is a second login mode, releasing the modification operation of the target account on the configuration file, wherein the account logged in by adopting the second login mode is used for managing the configuration file.
According to another aspect of the embodiments of the present application, there is also provided a device for displaying a data form, including:
the display module is used for responding to a screening request and displaying a screening interface under the condition of receiving the screening request sent by a target account, wherein the screening request is used for requesting to screen a data form which is allowed to be displayed, a new button on the screening interface is set to be hidden, and the new button is used for triggering new construction operation of the data form;
the first display module is used for responding to the display request to display a form page under the condition that the display request triggered by the target account on the screening interface is received, wherein the form page is used for displaying a first data form requested to be displayed by the display request, the data form allowed to be displayed comprises the first data form, an adding button is displayed on the form page, and the adding button is used for performing adding operation on the first data form;
the execution module is used for responding to the operation of the adding button, executing the adding operation on the first data form to obtain a second data form, and displaying the second data form;
and the second display module is used for displaying target prompt information under the condition that the saving operation performed on the second data form is detected, wherein the target prompt information is used for indicating that the saving of the second data form is refused.
Optionally, the apparatus further comprises:
the first obtaining module is used for obtaining module codes of an initial data form display module before responding to the screening request and displaying a screening interface, wherein the initial data form display module is used for displaying a data form;
a first modification module, configured to modify a target code corresponding to the new button in the module code to obtain an intermediate data form presentation module, where a button attribute of the new button in the initial data form presentation module is set in a display state, and a button attribute of the new button in the intermediate data form presentation module is set in a hidden state;
the deployment module is used for deploying the configuration file of the intermediate data form display module;
the first configuration module is used for configuring a target configuration item in the configuration file into a target attribute to obtain a target data form display module, wherein the target configuration item configured into the target attribute is used for indicating that the data form is not allowed to be edited;
and the embedding module is used for embedding the target data form display module into a target application, wherein the target data form display module is used for displaying a data form in the target application.
According to another aspect of the embodiments of the present application, there is also provided a storage medium including a stored program which, when executed, performs the above-described method.
According to another aspect of the embodiments of the present application, there is also provided an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor executes the above method through the computer program.
In the embodiment of the application, a screening interface is displayed in response to a screening request under the condition that the screening request sent by a target account is received, wherein the screening request is used for requesting to screen a data form which is allowed to be displayed, a new button on the screening interface is set to be hidden, and the new button is used for triggering new operation of the data form; under the condition that a display request triggered by a target account on a screening interface is received, responding to the display request to display a form page, wherein the form page is used for displaying a first data form requested to be displayed by the display request, the displayed data form is allowed to comprise the first data form, and an adding button is displayed on the form page and used for performing adding operation on the first data form; responding to the operation of the adding button, executing the adding operation on the first data form to obtain a second data form, and displaying the second data form; and in the case of detecting the saving operation performed on the second data form, displaying target prompt information, wherein the target prompt information is used for indicating the mode of refusing to save the second data form.
The new button is set to be in a hidden state on a screening interface displayed in response to the screening request sent by the target account, therefore, the new button is not displayed on the interface, the target account can not operate the new button, that is, the target account can not create the new data form at will, which achieves the purpose of recovering the new authority of the data form, on the other hand, the target account can perform the adding operation on the displayed first data form, so that the target account can flexibly view the data form, if the saving operation performed on the second data form obtained after the addition is detected, then displaying the target prompt information for indicating to refuse to store the second data form, achieving the purpose of recovering the editing authority of the data form, thereby realizing the technical effect of controlling and requesting the operation authority of the account of the display data form, and the technical problem that the operation authority of the account requesting to display the data form in the related technology cannot be controlled is solved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
FIG. 1 is a schematic diagram of a hardware environment for a method of presentation of data forms according to an embodiment of the present application;
FIG. 2 is a flow chart of an alternative data form presentation method according to an embodiment of the present application;
FIG. 3 is a schematic illustration of a screening interface according to an alternative embodiment of the present application;
FIG. 4 is a schematic diagram of a form page in accordance with an alternative embodiment of the present application;
FIG. 5 is a schematic illustration of a target reminder message according to an alternative embodiment of the present application;
FIG. 6 is a schematic diagram of an alternative dataform display apparatus according to an embodiment of the present application;
fig. 7 is a block diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
According to an aspect of embodiments of the present application, an embodiment of a method for presentation of a data form is provided.
Optionally, in this embodiment, the method for presenting the dataform may be applied to a hardware environment formed by the terminal 101 and the server 103 as shown in fig. 1. As shown in fig. 1, a server 103 is connected to a terminal 101 through a network, which may be used to provide services (such as game services, application services, etc.) for the terminal or a client installed on the terminal, and a database may be provided on the server or separately from the server for providing data storage services for the server 103, and the network includes but is not limited to: the terminal 101 is not limited to a PC, a mobile phone, a tablet computer, and the like. The method for displaying the dataform in the embodiment of the present application may be executed by the server 103, the terminal 101, or both the server 103 and the terminal 101. The terminal 101 may also be configured to execute the method for displaying the data form according to the embodiment of the present application by a client installed thereon.
Fig. 2 is a flowchart of an optional data form presentation method according to an embodiment of the present application, and as shown in fig. 2, the method may include the following steps:
step S202, under the condition that a screening request sent by a target account is received, responding to the screening request and displaying a screening interface, wherein the screening request is used for requesting to screen a data form which is allowed to be displayed, a new button on the screening interface is set to be hidden, and the new button is used for triggering new operation of the data form;
step S204, under the condition that a display request triggered by the target account on the screening interface is received, responding to the display request to display a form page, wherein the form page is used for displaying a first data form requested to be displayed by the display request, the data form allowed to be displayed comprises the first data form, an adding button is displayed on the form page, and the adding button is used for performing adding operation on the first data form;
step S206, responding to the operation of the adding button, executing adding operation on the first data form to obtain a second data form, and displaying the second data form;
step S208, in a case that the saving operation performed on the second data form is detected, displaying target prompt information, where the target prompt information is used to indicate that saving the second data form is rejected.
Through the above steps S202 to S208, the new button is set to be in a hidden state on the screening interface displayed in response to the screening request sent by the target account, so that the new button is not displayed on the interface, and the target account cannot operate the new button, that is, the target account cannot freely create a new dataform, so as to achieve the purpose of recovering the new permission of the dataform, on the other hand, the target account can perform an adding operation on the displayed first dataform, so that the target account can flexibly view the dataform, but if the saving operation performed on the second dataform obtained after the adding operation is detected, the target prompt information for indicating to refuse to save the second dataform is displayed, so as to achieve the purpose of recovering the editing permission of the dataform, thereby achieving the technical effect of controlling the operation permission of requesting to display the account of the dataform, and the technical problem that the operation authority of the account requesting to display the data form in the related technology cannot be controlled is solved.
In the technical solution provided in step S202, the target account is an account registered on a plug-in for displaying the data form, and the filtering request may be generated by triggering a start button.
Optionally, in this embodiment, the data form may be, but is not limited to, display data in the form of a table, a chart, a Dashboard (Dashboard), and the like.
Optionally, in this embodiment, the data form allowed to be displayed may be, but is not limited to, a data form template pre-made according to data stored in the database. The user may filter the target data form desired to be viewed at the filtering interface. Such as: the user can check the corresponding data form by inputting the information such as the name, the identification and the like of the data form, and can also filter the data form needing to be displayed by selecting a container, a structure, a node and the like.
In an alternative embodiment, a style of a filtering interface is provided, and fig. 3 is a schematic diagram of a filtering interface according to an alternative embodiment of the present application, and as shown in fig. 3, a user may display the filtering interface by clicking a start button, a newly built button in the filtering interface is set to be hidden and not displayed, and the user cannot trigger a new operation of a data form. The user may filter the Dashboard by inputting the name of the Dashboard in the input box, or may filter the Dashboard to be displayed by using a container (docker), a structure (fabric), a node (node), or the like. The new authority is recovered by removing the new button on the screening interface, so that the operation authority of the user is effectively controlled.
In the technical solution provided in step S204, the target account may trigger the display request on the screening interface by clicking a confirmation button displayed on the screening interface or pressing an enter key after selecting the first data form.
Optionally, in this embodiment, after the target account triggers the presentation request on the filtering interface, the display interface jumps from the filtering interface to the form interface, the first data form selectable by the user is displayed on the form interface, and the add button is displayed, and the user may define, by operating the add button, the display form of the first data form as follows, for example: the user wants to see some self-defined index information sometimes, and the displayed first data form can be edited by operating the adding button, so that the information can be flexibly viewed in a self-defined mode.
In an alternative embodiment, a style of a form page is provided, and fig. 4 is a schematic diagram of a form page according to an alternative embodiment of the present application, and as shown in fig. 4, a target account triggers a presentation request on a screening interface through selection of a node (node), the display interface jumps from the screening interface to the form page, and a Dashboard1-5 of the target account selection and an add button are displayed on the form page. The target account can be in a Dashboard form displayed in a customized mode through the operation of the adding button.
In the technical solution provided in step S206, according to the adding operation executed by the target account, the first data form may be edited and modified correspondingly to obtain the second data form, so that the data form may be flexibly displayed according to the user requirement.
In the technical solution provided in step S208, the operation of storing the second data form in the target account is rejected by displaying the target prompt information, so as to receive back the editing right of the data form, thereby effectively controlling the operation right of the user.
Optionally, in this embodiment, a code corresponding to the adding operation may also be displayed in the target prompt information.
Alternatively, in this embodiment, the save operation performed on the second data form may be, but is not limited to, an operation for triggering a save button, such as clicking a save button.
In an optional implementation manner, a style of target prompt information is provided, and fig. 5 is a schematic diagram of target prompt information according to an optional implementation manner of the present application, and as shown in fig. 5, after a form of a Dashboard displayed by a target account is customized through an operation of adding a button, a save operation performed on the Dashboard by the target account is detected, and a prompt box of the target prompt information is skipped out to prompt that editing of the Dashboard by the target account cannot be saved. JSON codes corresponding to operations such as adding, editing, modifying and the like are also provided in the target prompt information, and the target account can store the codes, so that the JSON codes can be used when upgrading operation is performed on the display plug-in of the data form.
As an optional embodiment, before displaying the screening interface in response to the screening request, the method further includes:
s11, acquiring a code file of the screening interface, wherein the code file is used for displaying the screening interface;
s12, modifying a first code corresponding to the new button in the code file into a second code, wherein the first code is used for indicating that the button attribute of the new button is in a display state, and the second code is used for indicating that the button attribute of the new button is in a hidden state.
Optionally, in this embodiment, the new permission of the data form may be recovered, but not limited to, by modifying the code file of the filtering interface.
Optionally, in this embodiment, the code file may be, but is not limited to, a source code file of a presentation plug-in of a dataform. And hiding the new button by modifying the plug-in source code, thereby recovering the new authority.
As an optional embodiment, before the presenting the form page in response to the presentation request, the method further includes:
s21, acquiring a configuration file corresponding to the adding button;
s22, configuring the editing attribute corresponding to the adding button in the configuration file as a target attribute, wherein the editing attribute configured as the target attribute is used for indicating that the adding operation executed on the data form displayed on the display form page is not allowed to be saved.
Optionally, in this embodiment, the retraction of the editing right may be implemented, but is not limited to, by modifying a configuration item in a configuration file.
Optionally, in this embodiment, the manner of configuring the edit property corresponding to the add button in the configuration file as the target property may be, but is not limited to, setting the editable configuration item of the configuration file to false, so as to withdraw the editing authority of the dataform.
As an optional embodiment, before displaying the screening interface in response to the screening request, the method further includes:
s31, obtaining module codes of an initial data form display module, wherein the initial data form display module is used for displaying data forms;
s32, modifying the target code corresponding to the new button in the module code to obtain an intermediate data form display module, wherein the button attribute of the new button in the initial data form display module is set to be in a display state, and the button attribute of the new button in the intermediate data form display module is set to be in a hidden state;
s33, deploying the configuration file of the intermediate data form display module;
s34, configuring the target configuration items in the configuration files into target attributes to obtain a target data form display module, wherein the target configuration items configured into the target attributes are used for indicating that editing of the data form is not allowed;
s35, embedding the target data form display module into a target application, wherein the target data form display module is used for displaying a data form in the target application.
Optionally, in this embodiment, the data form presentation module for presenting the data form may be, but is not limited to being, embedded in the target application. The spreadsheet presentation module and the target application may, but are not limited to, employ different user architectures. The manner in which the dataform presentation module is logged into the target application may be, but is not limited to, an anonymous login manner.
Optionally, in this embodiment, the permission to add the data form is recovered by modifying the module code, the permission to edit the data form is recovered by modifying the configuration file, and the modified target data form display module is obtained and embedded into the target application.
Optionally, in this embodiment, the target application may include, but is not limited to, a monitoring platform system and the like, which is used to monitor the blockchain system, the database system, the management system and the like.
Optionally, in this embodiment, the configuration file may be deployed in a Provisioning manner, but is not limited to.
As an optional embodiment, in a case that a filtering request sent by a target account is received, displaying a filtering interface in response to the filtering request includes:
s41, starting the target application, wherein a starting button is displayed on the target application and is used for starting the target data form display module;
s42, under the condition that the trigger operation executed by the target account on the start button is detected, responding to the trigger operation and calling the target data form display module;
and S43, operating the target data form display module and displaying the screening interface.
Optionally, in this embodiment, the data form is exposed in the target application by calling the target data form exposing module.
Optionally, in this embodiment, a start button may be displayed on the target application, and the target account instructs the target application to invoke the target data form presentation module by clicking the start button. The target data form display module firstly displays a screening interface, and the target account can select the data form to be displayed on the screening interface for viewing.
As an optional embodiment, after displaying the target prompt message, the method further includes:
s51, receiving a modification request sent by the target account, wherein the modification request is used for requesting to modify the configuration file;
s52, detecting the login mode of the target account;
s53, when the login mode of the target account is a first login mode, rejecting the modification request, wherein the first login mode is used for indicating that a preset account is used for logging in the target data form display module;
and S54, under the condition that the login mode of the target account is a second login mode, releasing the modification operation of the target account on the configuration file, wherein the account logged in by the second login mode is used for managing the configuration file.
Optionally, in this embodiment, the target data form presentation module and the target application may, but are not limited to, employ different user systems, and the login manner of the target data form presentation module may, but is not limited to, include anonymous login (i.e., a first login manner) and administrator account (a second login manner) login.
Optionally, in this embodiment, the target account logged in by using the first login method does not have the authority to create, modify, add, and edit the data form. And only the target account logged in by the second login mode can modify the configuration file under the Provisioning according to the target prompt information to achieve the purpose of modifying the Dashboard template.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present application.
According to another aspect of the embodiment of the application, a data form display device for implementing the data form display method is further provided. Fig. 6 is a schematic diagram of an alternative apparatus for displaying data forms according to an embodiment of the present application, and as shown in fig. 6, the apparatus may include:
the display module 62 is configured to, in a case that a screening request sent by a target account is received, respond to the screening request and display a screening interface, where the screening request is used to request to screen a data form that is allowed to be displayed, a new button on the screening interface is set to be hidden, and the new button is used to trigger a new operation of the data form;
a first display module 64, configured to, in a case that a display request triggered by the target account on the screening interface is received, display a form page in response to the display request, where the form page is used to display a first data form requested to be displayed by the display request, the data forms allowed to be displayed include the first data form, and an add button is displayed on the form page and is used to perform an add operation on the first data form;
the execution module 66 is configured to respond to the operation on the add button, perform an add operation on the first data form to obtain a second data form, and display the second data form;
a second display module 68, configured to display target prompt information in a case that a save operation performed on the second data form is detected, where the target prompt information is used to indicate that saving the second data form is rejected.
It should be noted that the display module 62 in this embodiment may be configured to execute step S202 in this embodiment, the first display module 64 in this embodiment may be configured to execute step S204 in this embodiment, the execution module 66 in this embodiment may be configured to execute step S206 in this embodiment, and the second display module 68 in this embodiment may be configured to execute step S208 in this embodiment.
It should be noted here that the modules described above are the same as the examples and application scenarios implemented by the corresponding steps, but are not limited to the disclosure of the above embodiments. It should be noted that the modules described above as a part of the apparatus may operate in a hardware environment as shown in fig. 1, and may be implemented by software or hardware.
Through the module, the new button is set to be in a hidden state on the screening interface displayed in response to the screening request sent by the target account, so that the new button cannot be displayed on the interface, the target account cannot operate the new button, that is, the target account cannot freely create the data form, and the purpose of recovering the new permission of the data form is achieved, on the other hand, the target account can perform adding operation on the displayed first data form, so that the target account can flexibly view the data form, but if the storing operation performed on the second data form obtained after adding is detected, the target prompt message for indicating that the second data form is rejected to be stored is displayed, the purpose of recovering the editing permission of the data form is achieved, and the technical effect of controlling the operation permission of requesting to display the data form account is achieved, and the technical problem that the operation authority of the account requesting to display the data form in the related technology cannot be controlled is solved.
As an alternative embodiment, the apparatus further comprises:
a second obtaining module, configured to obtain a code file of the screening interface before the screening interface is displayed in response to the screening request, where the code file is used to display the screening interface;
and the second modification module is used for modifying the first code corresponding to the newly-built button in the code file into a second code, wherein the first code is used for indicating that the button attribute of the newly-built button is in a display state, and the second code is used for indicating that the button attribute of the newly-built button is in a hidden state.
As an alternative embodiment, the apparatus further comprises:
a third obtaining module, configured to obtain a configuration file corresponding to the add button before the form page is displayed in response to the display request;
and the second configuration module is used for configuring the editing attribute corresponding to the adding button in the configuration file as a target attribute, wherein the editing attribute configured as the target attribute is used for indicating that the adding operation executed on the data form displayed on the display form page is not allowed to be saved.
As an alternative embodiment, the apparatus further comprises:
the first obtaining module is used for obtaining module codes of an initial data form display module before responding to the screening request and displaying a screening interface, wherein the initial data form display module is used for displaying a data form;
a first modification module, configured to modify a target code corresponding to the new button in the module code to obtain an intermediate data form presentation module, where a button attribute of the new button in the initial data form presentation module is set in a display state, and a button attribute of the new button in the intermediate data form presentation module is set in a hidden state;
the deployment module is used for deploying the configuration file of the intermediate data form display module;
the first configuration module is used for configuring a target configuration item in the configuration file into a target attribute to obtain a target data form display module, wherein the target configuration item configured into the target attribute is used for indicating that the data form is not allowed to be edited;
and the embedding module is used for embedding the target data form display module into a target application, wherein the target data form display module is used for displaying a data form in the target application.
As an alternative embodiment, the display module includes:
the starting unit is used for starting the target application, wherein a starting button is displayed on the target application and is used for starting the target data form display module;
the calling unit is used for responding to the triggering operation to call the target data form display module under the condition that the triggering operation executed by the target account on the starting button is detected;
and the operation unit is used for operating the target data form display module and displaying the screening interface.
As an alternative embodiment, the apparatus further comprises:
the receiving module is used for receiving a modification request sent by the target account after the target prompt message is displayed, wherein the modification request is used for requesting to modify the configuration file;
the detection module is used for detecting the login mode of the target account;
a rejecting module, configured to reject the modification request when a login manner of the target account is a first login manner, where the first login manner is used to indicate that a preset account is used to login the target data form displaying module;
and the releasing module is used for releasing the modification operation executed by the target account on the configuration file under the condition that the login mode of the target account is a second login mode, wherein the account logged in by adopting the second login mode is used for managing the configuration file.
It should be noted here that the modules described above are the same as the examples and application scenarios implemented by the corresponding steps, but are not limited to the disclosure of the above embodiments. It should be noted that the modules described above as a part of the apparatus may be operated in a hardware environment as shown in fig. 1, and may be implemented by software, or may be implemented by hardware, where the hardware environment includes a network environment.
According to another aspect of the embodiments of the present invention, there is also provided an electronic device for implementing the method for presenting a dataform, as shown in fig. 7, the electronic device includes a memory 702 and a processor 704, the memory 702 stores a computer program therein, and the processor 704 is configured to execute the steps in any one of the method embodiments through the computer program.
Optionally, in this embodiment, the electronic apparatus may be located in at least one network device of a plurality of network devices of a computer network.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s1, in a case that a display request triggered by the target account on the screening interface is received, displaying a form page in response to the display request, where the form page is used to display a first data form requested to be displayed by the display request, the data form allowed to be displayed includes the first data form, and an add button is displayed on the form page and used to perform an add operation on the first data form;
s2, responding to the operation of the adding button, executing adding operation on the first data form to obtain a second data form, and displaying the second data form;
s3, when the saving operation executed on the second data form is detected, displaying target prompt information, wherein the target prompt information is used for indicating that the saving of the second data form is refused.
Alternatively, it can be understood by those skilled in the art that the structure shown in fig. 7 is only an illustration, and the electronic device may also be a terminal device such as a smart phone (e.g., an Android phone, an iOS phone, etc.), a tablet computer, a palm computer, and a Mobile Internet Device (MID), a PAD, and the like. Fig. 7 is a diagram illustrating a structure of the electronic device. For example, the electronic device may also include more or fewer components (e.g., network interfaces, etc.) than shown in FIG. 7, or have a different configuration than shown in FIG. 7.
The memory 702 may be used to store software programs and modules, such as program instructions/modules corresponding to the method and apparatus for displaying a data form in the embodiment of the present invention, and the processor 704 executes various functional applications and data processing by running the software programs and modules stored in the memory 702, that is, implements the above-described method for displaying a data form. The memory 702 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 702 can further include memory located remotely from the processor 704, which can be connected to the terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof. The memory 702 may be specifically, but not limited to, used to store information such as feature information and probability result of the account to be processed. As an example, as shown in fig. 7, the memory 702 may include, but is not limited to, a first obtaining unit 7022, a processing unit 7024, and an output unit 7026 of the display apparatus for the dataform. In addition, the display device may further include, but is not limited to, other module units in the display device of the data form, which is not described in detail in this example.
Optionally, the transmitting device 706 is used for receiving or sending data via a network. Examples of the network may include a wired network and a wireless network. In one example, the transmission device 706 includes a network adapter (NIC) that can be connected to a router via a network cable and other network devices to communicate with the internet or a local area network. In one example, the transmission device 706 is a Radio Frequency (RF) module, which is used to communicate with the internet in a wireless manner.
In addition, the electronic device further includes: a display 708, configured to display the characteristic information and the probability result of the account to be processed; and a connection bus 710 for connecting the respective module parts in the above-described electronic apparatus.
According to a further aspect of embodiments of the present invention, there is also provided a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the above-mentioned method embodiments when executed.
Alternatively, in the present embodiment, the storage medium may be configured to store a computer program for executing the steps of:
s1, in a case that a display request triggered by the target account on the screening interface is received, displaying a form page in response to the display request, where the form page is used to display a first data form requested to be displayed by the display request, the data form allowed to be displayed includes the first data form, and an add button is displayed on the form page and used to perform an add operation on the first data form;
s2, responding to the operation of the adding button, executing adding operation on the first data form to obtain a second data form, and displaying the second data form;
s3, when the saving operation executed on the second data form is detected, displaying target prompt information, wherein the target prompt information is used for indicating that the saving of the second data form is refused.
Alternatively, in this embodiment, a person skilled in the art may understand that all or part of the steps in the methods of the foregoing embodiments may be implemented by a program instructing hardware associated with the terminal device, where the program may be stored in a computer-readable storage medium, and the storage medium may include: flash disks, Read-only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
The integrated unit in the above embodiments, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in the above computer-readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing one or more computer devices (which may be personal computers, servers, network devices, etc.) to execute all or part of the steps of the method according to the embodiments of the present invention.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed client may be implemented in other manners. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (8)

1. A method for displaying a data form is characterized by comprising the following steps:
under the condition of receiving a screening request sent by a target account, responding to the screening request to display a screening interface, wherein the screening request is used for requesting to screen a data form which is allowed to be displayed, a new button on the screening interface is set to be hidden, and the new button is used for triggering new operation of the data form;
under the condition that a display request triggered by the target account on the screening interface is received, responding to the display request to display a form page, wherein the form page is used for displaying a first data form requested to be displayed by the display request, the data form allowed to be displayed comprises the first data form, and an adding button is displayed on the form page and used for performing adding operation on the first data form;
responding to the operation of the adding button, performing adding operation on the first data form to obtain a second data form, and displaying the second data form;
under the condition that the saving operation performed on the second data form is detected, displaying target prompt information, wherein the target prompt information is used for indicating that the saving of the second data form is refused;
wherein, prior to displaying a screening interface in response to the screening request, the method further comprises: acquiring a module code of an initial data form display module, wherein the initial data form display module is used for displaying a data form; modifying the target code corresponding to the newly-built button in the module code to obtain an intermediate data form display module, wherein the button attribute of the newly-built button in the initial data form display module is set to be in a display state, and the button attribute of the newly-built button in the intermediate data form display module is set to be in a hidden state; deploying a configuration file of the intermediate data form display module; configuring a target configuration item in the configuration file into a target attribute to obtain a target data form display module, wherein the target configuration item configured into the target attribute is used for indicating that the data form is not allowed to be edited; and embedding the target data form display module into a target application, wherein the target data form display module is used for displaying the data form in the target application.
2. The method of claim 1, wherein prior to displaying the screening interface in response to the screening request, the method further comprises:
acquiring a code file of the screening interface, wherein the code file is used for displaying the screening interface;
and modifying a first code corresponding to the newly-built button in the code file into a second code, wherein the first code is used for indicating that the button attribute of the newly-built button is in a display state, and the second code is used for indicating that the button attribute of the newly-built button is in a hidden state.
3. The method of claim 1, wherein prior to presenting the form page in response to the presentation request, the method further comprises:
acquiring a configuration file corresponding to the adding button;
and configuring the editing attribute corresponding to the adding button in the configuration file as a target attribute, wherein the editing attribute configured as the target attribute is used for indicating that the adding operation executed on the data form displayed on the display form page is not allowed to be saved.
4. The method of claim 1, wherein in the case of receiving a filtering request sent by a target account, displaying a filtering interface in response to the filtering request comprises:
starting the target application, wherein a starting button is displayed on the target application and is used for starting the target data form display module;
under the condition that the triggering operation executed by the target account on the starting button is detected, the target data form display module is called in response to the triggering operation;
and operating the target data form display module and displaying the screening interface.
5. The method of claim 1, wherein after displaying the target reminder information, the method further comprises:
receiving a modification request sent by the target account, wherein the modification request is used for requesting to modify the configuration file;
detecting the login mode of the target account;
refusing the modification request under the condition that the login mode of the target account is a first login mode, wherein the first login mode is used for indicating that a preset account is used for logging in the target data form display module;
and under the condition that the login mode of the target account is a second login mode, releasing the modification operation of the target account on the configuration file, wherein the account logged in by adopting the second login mode is used for managing the configuration file.
6. An apparatus for displaying a data form, comprising:
the display module is used for responding to a screening request and displaying a screening interface under the condition of receiving the screening request sent by a target account, wherein the screening request is used for requesting to screen a data form which is allowed to be displayed, a new button on the screening interface is set to be hidden, and the new button is used for triggering new construction operation of the data form;
the first display module is used for responding to the display request to display a form page under the condition that the display request triggered by the target account on the screening interface is received, wherein the form page is used for displaying a first data form requested to be displayed by the display request, the data form allowed to be displayed comprises the first data form, an adding button is displayed on the form page, and the adding button is used for performing adding operation on the first data form;
the execution module is used for responding to the operation of the adding button, executing the adding operation on the first data form to obtain a second data form, and displaying the second data form;
the second display module is used for displaying target prompt information under the condition that the saving operation performed on the second data form is detected, wherein the target prompt information is used for indicating that the saving of the second data form is refused;
the device further comprises: the first obtaining module is used for obtaining module codes of an initial data form display module before responding to the screening request and displaying a screening interface, wherein the initial data form display module is used for displaying a data form; a first modification module, configured to modify a target code corresponding to the new button in the module code to obtain an intermediate data form presentation module, where a button attribute of the new button in the initial data form presentation module is set in a display state, and a button attribute of the new button in the intermediate data form presentation module is set in a hidden state; the deployment module is used for deploying the configuration file of the intermediate data form display module; the first configuration module is used for configuring a target configuration item in the configuration file into a target attribute to obtain a target data form display module, wherein the target configuration item configured into the target attribute is used for indicating that the data form is not allowed to be edited; and the embedding module is used for embedding the target data form display module into a target application, wherein the target data form display module is used for displaying a data form in the target application.
7. A storage medium, characterized in that the storage medium comprises a stored program, wherein the program when executed performs the method of any of the preceding claims 1 to 5.
8. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor executes the method of any of the preceding claims 1 to 5 by means of the computer program.
CN202010477764.5A 2020-05-29 2020-05-29 Data form display method and device Active CN111813282B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010477764.5A CN111813282B (en) 2020-05-29 2020-05-29 Data form display method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010477764.5A CN111813282B (en) 2020-05-29 2020-05-29 Data form display method and device

Publications (2)

Publication Number Publication Date
CN111813282A CN111813282A (en) 2020-10-23
CN111813282B true CN111813282B (en) 2021-12-10

Family

ID=72848428

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010477764.5A Active CN111813282B (en) 2020-05-29 2020-05-29 Data form display method and device

Country Status (1)

Country Link
CN (1) CN111813282B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112966204B (en) * 2021-03-18 2023-11-03 北京金山云网络技术有限公司 Website record information submitting method and device
CN114003329A (en) * 2021-11-02 2022-02-01 浙江三维万易联科技有限公司 Data display component creating method and device, storage medium and electronic device
CN114895812A (en) * 2022-05-09 2022-08-12 杭州云合智网技术有限公司 Method for rapidly increasing multiple pieces of data

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9031957B2 (en) * 2010-10-08 2015-05-12 Salesforce.Com, Inc. Structured data in a business networking feed
CN102902767A (en) * 2012-09-25 2013-01-30 北京科东电力控制系统有限责任公司 Method and system for rapidly creating forms
CN106294760B (en) * 2016-08-11 2020-02-14 东软集团股份有限公司 Form processing method, server and client
US10216494B2 (en) * 2016-12-03 2019-02-26 Thomas STACHURA Spreadsheet-based software application development
CN108280353B (en) * 2017-01-05 2021-12-28 珠海金山办公软件有限公司 Method and device for judging security document operation
CN107230044B (en) * 2017-06-14 2020-12-29 象和文化科技(深圳)有限公司 Method and device for realizing digital media online collaboration data processing and storage equipment
CN108228762B (en) * 2017-12-25 2021-06-25 石化盈科信息技术有限责任公司 Method and system for configuring master database universal templates
CN108646965B (en) * 2018-05-14 2021-06-25 平安科技(深圳)有限公司 Service line processing method, terminal device and medium
CN109522533A (en) * 2018-10-12 2019-03-26 平安科技(深圳)有限公司 Table edit method, apparatus, equipment and medium based on web data
CN110837369A (en) * 2019-10-24 2020-02-25 山东中创软件工程股份有限公司 Form generation method and device, electronic equipment and storage medium
CN110955872A (en) * 2019-12-12 2020-04-03 北京金山云科技有限公司 Authority control method, device, terminal and medium

Also Published As

Publication number Publication date
CN111813282A (en) 2020-10-23

Similar Documents

Publication Publication Date Title
CN111813282B (en) Data form display method and device
US10868818B1 (en) Systems and methods for generation of signature generation using interactive infection visualizations
WO2021040994A1 (en) Systems, method, and media for determining security compliance of continuous build software
CN108255847B (en) Page generation method and device
CN106951335B (en) Process daemon method and mobile terminal
CN107643932B (en) Data acquisition method, acquisition device and storage device
CN104750550A (en) Mobile terminal application management system and method and use time record generating method
CN110515679B (en) Data acquisition method, device, equipment and storage medium
US20170295217A1 (en) Method and system of application development for multiple device client platforms
CN111367562A (en) Data acquisition method and device, storage medium and processor
CN107545048A (en) The processing method and processing device of ciphered compressed file
CN112148607A (en) Interface testing method and device for service scene
CN116127420A (en) Watermark adding method and device, storage medium and electronic device
CN111984248B (en) Page editing method and device, storage medium and electronic device
CN104375831A (en) Method, device and system realizing communication between webpage and applications on terminal equipment
CN115795203A (en) Menu page construction method and device, electronic equipment and storage medium
CN111125205A (en) Signboard data display method, terminal and storage medium
CN115543152A (en) Method and device for determining file state
CN112817493B (en) Content sharing method and device, computer equipment and storage medium
CN110264654B (en) Security-based monitoring management method and device, readable storage medium and system
CN111124390B (en) Rechecking page generation method and device, storage medium and electronic equipment
CN112486484A (en) Webpage version generation method and device
CN113760688A (en) Remote debugging method, system, webpage server, equipment and storage medium
CN112163204A (en) Method for managing application account, storage medium and terminal device
CN110673879A (en) One-key adjustment method and device for element style of configuration software

Legal Events

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