CN113094048A - Data display rule determining method, display method, device, equipment and medium - Google Patents

Data display rule determining method, display method, device, equipment and medium Download PDF

Info

Publication number
CN113094048A
CN113094048A CN202110360070.8A CN202110360070A CN113094048A CN 113094048 A CN113094048 A CN 113094048A CN 202110360070 A CN202110360070 A CN 202110360070A CN 113094048 A CN113094048 A CN 113094048A
Authority
CN
China
Prior art keywords
field
information
client
page
display rule
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
CN202110360070.8A
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.)
Hisense Group Holding Co Ltd
Original Assignee
Hisense Group Holding 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 Hisense Group Holding Co Ltd filed Critical Hisense Group Holding Co Ltd
Priority to CN202110360070.8A priority Critical patent/CN113094048A/en
Publication of CN113094048A publication Critical patent/CN113094048A/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/31Programming languages or programming paradigms
    • G06F8/315Object-oriented languages
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/36Software reuse
    • 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/451Execution arrangements for user interfaces

Abstract

The application discloses a data display rule determining method, a data display device, data display equipment and a data display medium, which are used for rapidly and flexibly determining display rules corresponding to fields in a page of a client. In the application, a server side can read information of a first field written by a client side and a first display rule corresponding to the first field through a Java interface, wherein the information of the first field carries first identification information of a page to which the first field belongs; and updating a second display rule corresponding to the first field in the page corresponding to the stored first identification information of the client according to the first display rule.

Description

Data display rule determining method, display method, device, equipment and medium
Technical Field
The present application relates to the field of data display rule technologies, and in particular, to a method, a device, an apparatus, and a medium for determining a data display rule.
Background
Currently, a client determines a display rule corresponding to a field in a page of the client based on a display rule that can be provided by a server. However, the display rules provided by the server for different service scenarios are relatively customized, and one display rule is usually only adapted to one service scenario, for example, the display rule in the industrial field is usually only applicable to the service scenario in the industrial field, and the display rule in the financial field is usually only applicable to the service scenario in the financial field, and as the service requirements of each service scenario become flexible, the development cost for developing the display rule applicable to one service scenario is relatively high. With the increasing demand of the fields such as the industrial field and the financial field on the integration level of the information system and the high coupling of the display rule itself and the service scene, the mode for determining the display rule corresponding to the field in the page of the client is difficult to meet the demands of different service scenes in a short time, and the mode is also not beneficial to the subsequent information integration construction of an enterprise.
Therefore, a technical solution for quickly and flexibly determining a display rule corresponding to a field in a page of a client is needed.
Disclosure of Invention
The application provides a data display rule determining method, a data display device, data display equipment and a data display medium, which are used for rapidly and flexibly determining a display rule corresponding to a field in a page of a client.
In a first aspect, the present application provides a method for determining a data display rule, where the method includes:
sending information of a Java interface for data interaction with a server to a client;
reading information of a first field written by the client and a first display rule corresponding to the first field through the Java interface, wherein the information of the first field carries first identification information of a page to which the first field belongs;
and updating a second display rule corresponding to the first field in the page corresponding to the first identification information of the client according to the first display rule.
In a second aspect, the present application provides a data display method, the method comprising:
the method comprises the steps that a client receives a display request for a corresponding field in a page, wherein the display request carries second identification information of the page to be displayed and information of the field to be displayed;
acquiring information of a field in a page corresponding to the second identification information of the client and a target display rule corresponding to the field to be displayed, wherein the information is stored by a server;
and displaying the data of the field to be displayed based on the target display rule.
In a third aspect, the present application provides a data display rule determining apparatus, comprising:
the sending module is used for sending information of a Java interface for data interaction with the server to the client;
a reading module, configured to read, through the Java interface, information of a first field written by the client and a first display rule corresponding to the first field, where the information of the first field carries first identification information of a page to which the first field belongs;
and the updating module is used for updating a second display rule corresponding to the first field in the page corresponding to the first identification information of the client according to the first display rule.
In a fourth aspect, the present application provides a data display apparatus, the apparatus comprising:
the receiving module is used for receiving a display request for a corresponding field in a page, wherein the display request carries second identification information of the page to be displayed and information of the field to be displayed;
the acquisition module is used for acquiring the information of the field in the page corresponding to the second identification information stored by the server and the target display rule corresponding to the field to be displayed;
and the display module is used for displaying the data of the field to be displayed based on the target display rule.
In a fifth aspect, the present application provides an electronic device, which at least includes a processor and a memory, where the processor is configured to implement the steps of the data display rule determination method according to any one of the above descriptions when executing a computer program stored in the memory, or implement the steps of the data display method according to any one of the above descriptions.
In a sixth aspect, the present application provides a computer readable storage medium storing a computer program which, when executed by a processor, performs the steps of the data display rule determination method as described in any one of the above, or performs the steps of the data display method as described in any one of the above.
In the application, a server side can read information of a first field written by a client side and a first display rule corresponding to the first field through a Java interface, wherein the information of the first field carries first identification information of a page to which the first field belongs; and updating a second display rule corresponding to the first field in the page corresponding to the stored first identification information of the client according to the first display rule.
Drawings
In order to more clearly illustrate the embodiments of the present application or the implementation manner in the related art, a brief description will be given below of the drawings required for the description of the embodiments or the related art, and it is obvious that the drawings in the following description are some embodiments of the present application, and other drawings can be obtained by those skilled in the art according to the drawings.
FIG. 1 illustrates a data display rule determination process diagram provided by some embodiments;
FIG. 2 illustrates a data display process diagram provided by some embodiments;
FIG. 3 illustrates another data display process diagram provided by some embodiments;
FIG. 4 is a schematic diagram of a data display rule determining apparatus according to some embodiments;
FIG. 5 illustrates a schematic diagram of a data display device provided in some embodiments;
FIG. 6 illustrates an electronic device in accordance with certain embodiments;
fig. 7 is a schematic structural diagram of another electronic device according to some embodiments.
Detailed Description
In order to quickly and flexibly determine a display rule corresponding to a field in a page of a client, embodiments of the present application provide a data display rule determination method, a display method, an apparatus, a device, and a medium.
To make the purpose and embodiments of the present application clearer, the following will clearly and completely describe the exemplary embodiments of the present application with reference to the attached drawings in the exemplary embodiments of the present application, and it is obvious that the described exemplary embodiments are only a part of the embodiments of the present application, and not all of the embodiments.
It should be noted that the brief descriptions of the terms in the present application are only for the convenience of understanding the embodiments described below, and are not intended to limit the embodiments of the present application. These terms should be understood in their ordinary and customary meaning unless otherwise indicated.
The terms "first," "second," "third," and the like in the description and claims of this application and in the above-described drawings are used for distinguishing between similar or analogous objects or entities and not necessarily for describing a particular sequential or chronological order, unless otherwise indicated. It is to be understood that the terms so used are interchangeable under appropriate circumstances.
The terms "comprises" and "comprising," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a product or apparatus that comprises a list of elements is not necessarily limited to all elements expressly listed, but may include other elements not expressly listed or inherent to such product or apparatus.
The term "module" refers to any known or later developed hardware, software, firmware, artificial intelligence, fuzzy logic, or combination of hardware and/or software code that is capable of performing the functionality associated with that element.
Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.
The foregoing description, for purposes of explanation, has been presented in conjunction with specific embodiments. However, the illustrative discussions above are not intended to be exhaustive or to limit the embodiments to the precise forms disclosed above. Many modifications and variations are possible in light of the above teaching. The embodiments were chosen and described in order to best explain the principles and the practical application, to thereby enable others skilled in the art to best utilize the embodiments and various embodiments with various modifications as are suited to the particular use contemplated.
In the actual use process, the server side can read information of a first field written by the client side and a first display rule corresponding to the first field through a Java interface, wherein the information of the first field carries first identification information of a page to which the first field belongs; and the second display rule corresponding to the first field in the page corresponding to the stored first identification information of the client can be updated according to the first display rule.
Fig. 1 is a schematic diagram illustrating a data display rule determination process provided by some embodiments, and as shown in fig. 1, the process includes the following steps:
s101: and sending the information of the Java interface for data interaction with the server to the client.
In a possible implementation manner, the method for determining the data display rule provided in the embodiment of the present application is applied to an electronic device, and the electronic device may be a server-side electronic device, for example, a server.
In order to quickly and flexibly determine the display rule corresponding to the field in the page of the client, the server can firstly send the information of the Java interface capable of performing data interaction with the server to the client. For example, the information may be a toolkit or the like, for example, the server may send, to the client, a toolkit carrying a Java interface that performs data interaction with the server itself, and after receiving the toolkit, the client may install the toolkit, so that the client has the Java interface that can perform data interaction with the server.
S102: and reading information of a first field written by the client and a first display rule corresponding to the first field through the Java interface, wherein the information of the first field carries first identification information of a page to which the first field belongs.
After the client has a Java interface capable of performing data interaction with the server, a user such as a developer can configure the display rule of any field in any page of the client based on the Java interface of the client (for convenience of description, referred to as personalized configuration). Specifically, when the user performs personalized configuration on the display rule of the field in the page of the client based on the Java interface of the client, the information of the first field and the first display rule corresponding to the first field may be written based on the Java interface of the client, where the information of the first field may carry first identification information of the page to which the first field belongs. Specifically, the first field, the first display rule corresponding to the first field, and the first identification information of the page to which the first field belongs may be flexibly set according to requirements, which is not specifically limited in the present application. Illustratively, the first field may include an identification number, name, gender, age, and the like. The first display rule may include information such as a display format (encryption format) of the data corresponding to the first field, an account authorized to view the data corresponding to the first field, and the like. The first identification information of the page to which the first field belongs may include at least one of numbers, letters, words, and the like.
Illustratively, if a user such as a developer needs to perform personalized configuration on a display rule of a first field of the "identity card number" in the page of the "user details" of the client, the "identity card number" (information of the first field) and a first display rule corresponding to the first field may be written based on a Java interface of the client, where the information of the first field may carry first identification information of the page (user details) to which the first field belongs, and the first identification information of the user details may be code100, for example.
In a possible implementation manner, after the client writes the information of the first field and the first display rule corresponding to the first field based on the Java interface, the server may obtain, based on the Java interface, the information of the first field and the client of the first display rule corresponding to the first field, for example, obtain identification information of the client, and may read, through the Java interface, the information of the first field written by the client and the first display rule corresponding to the first field.
S103: and updating a second display rule corresponding to the first field in the page corresponding to the first identification information of the client according to the first display rule.
After the server reads the information of the first field written by the client and the first display rule corresponding to the first field, in order to enable the display rule configured by the client in an individualized manner to take effect, the server may update, according to the first display rule, the second display rule corresponding to the first field in the page corresponding to the first identification information of the client stored by the server itself.
Specifically, in a possible implementation manner, the server may obtain information written in the first field and client identification information of the client of the first display rule corresponding to the first field, and the like, and may determine, according to the client identification information and the like, the client corresponding to the client identification information, and determine identification information of each page of the client that is stored by the server itself. The server may first determine whether first identification information is stored in identification information of each page of the client stored by the server, and if so, may further determine each field in the page corresponding to the first identification information, and further determine whether first field information is stored in information of each field in the page corresponding to the first identification information, and if so, may update, according to a first display rule, a second display rule corresponding to a first field in the page corresponding to the first identification information currently stored by the server.
In a possible implementation manner, if the first identification information is not stored in the identification information of the page of the client stored by the server, or the information of the first field is not stored in the information of each field in the page corresponding to the first identification information, no response may be made, that is, no response may be made to the read information of the first field written by the client and the first display rule corresponding to the first field.
In a possible implementation manner, the second display rule corresponding to the first field stored in the server may be determined based on a related technology, for example, the second display rule may be a display rule that can be provided by the server, and a user or the like may configure the page through the display rule of the server, and select, from the display rules that can be provided by the server, the display rule corresponding to the field in the page of the client (for convenience of description, referred to as a general configuration). In a possible implementation manner, because the server generally needs to manage the display rules of multiple clients, needs to take the requirements of the multiple clients into consideration, and is limited by an application scenario, the display rule provided in the server is generally a display rule that can be commonly used by the multiple clients, for example, for the field of the id number, the universal display rule provided by the server is, for example, to encrypt the first 6 digits of the id number, and each client, when querying the field of the id number, displays the encrypted first 6 digits of the id number with the same display rule.
In the embodiment of the application, a user can perform personalized configuration on the first display rule corresponding to the first field based on the Java interface of the client, for example, the display rule written in the field of the identification number by the user based on the Java interface of the client can be used for encrypting the 7 th digit to the 14 th digit of the identification number, or encrypting the last four digits of the identification number, and the like, compared with the related technology, the client can only determine the display rule corresponding to the field in the page of the client based on the display rule which can be provided by the server generally, and the display rule which can be provided by the server is only suitable for one service scene generally, the application can improve the flexibility of determining the display rule corresponding to the field in the page of the client, and can meet the requirements of different service scenes on the display rule in a short time and in a flexible multi-dimension manner, the development cost of the display rule can be saved, and the follow-up information integration construction of an enterprise is facilitated.
It may be understood that, in a possible implementation manner, the second display rule corresponding to the first field stored in the server may also be a display rule configured in a personalized manner last time, and it may be understood that a developer and other users may update the display rule configured in a personalized manner, and when the developer and other users rewrite the information of the first field and the first display rule corresponding to the first field based on a Java interface of the client, the server may update the second display rule corresponding to the first field currently stored by the server according to the first display rule according to the manner provided in the foregoing embodiment after reading the information of the first field written by the client and the first display rule corresponding to the first field.
In a possible implementation manner, the server may include a control policy module, and the server may store, in the control policy module, the second display rule corresponding to the first field in the page corresponding to the first identification information of the client.
In the application, a server side can read information of a first field written by a client side and a first display rule corresponding to the first field through a Java interface, wherein the information of the first field carries first identification information of a page to which the first field belongs; and updating a second display rule corresponding to the first field in the page corresponding to the stored first identification information of the client according to the first display rule.
In order to quickly and flexibly determine a display rule corresponding to a field in a page of a client, on the basis of the above embodiments, a data display method is provided in an embodiment of the present application, and fig. 2 shows a schematic diagram of a data display process provided in some embodiments, and as shown in fig. 2, the process includes the following steps:
s201: the client receives a display request for a corresponding field in the page, wherein the display request carries second identification information of the page to be displayed and information of the field to be displayed.
In a possible implementation manner, the data display method provided by the embodiment of the present application is applied to an electronic device of a client, where the electronic device may be, for example, a PC, a mobile terminal, and the like.
In a possible implementation manner, a user may log in a client through an account and the like, and may trigger a display request by clicking a "page data query" button and the like in a page when there is a display demand for data of a corresponding field in a page of the client, and the client may receive the display request for the corresponding field in the page, where, in order to accurately respond to the display request, the display request may carry second identification information of the page to be displayed and information of the field to be displayed in the page to be displayed.
S202: and acquiring the information of the field in the page corresponding to the second identification information of the client and the target display rule corresponding to the field to be displayed, which are stored by the server.
In order to accurately determine the display rule corresponding to the field to be displayed, after receiving the display request, the client may obtain, according to the second identification information of the page to be displayed carried in the display request, the page corresponding to the second identification information of the client stored by the server, and obtain information of each field in the page corresponding to the second identification information stored by the server and the display rule corresponding to each field. The client may determine a target display rule corresponding to the field to be displayed according to the acquired information of each field in the page corresponding to the second identification information stored by the server and the display rule corresponding to each field. Specifically, when the target display rule corresponding to the field to be displayed is determined according to the acquired information of each field in the page corresponding to the second identification information stored by the server and the display rule corresponding to each field, the field matched with the field to be displayed in each field in the page corresponding to the second identification information stored by the server may be determined first, and then the display rule corresponding to the field matched with the field to be displayed is determined as the target display rule corresponding to the field to be displayed.
It can be understood that if the display rule corresponding to the field matched with the field to be displayed is the display rule configured by the client in a personalized manner, the target display rule is the display rule configured in a personalized manner; and if the display rule corresponding to the field matched with the field to be displayed is the display rule of the general configuration provided by the server, the target display rule is the display rule of the general configuration.
S203: and displaying the data of the field to be displayed based on the target display rule.
In a possible implementation manner, after the target display rule corresponding to the field to be displayed is determined, the data of the field to be displayed may be displayed based on the target display rule. For example, if the field to be displayed is the identification number and the target display rule is to encrypt the last four digits of the identification number, the last four digits of the identification number may be encrypted and displayed after the identification number of the field to be displayed is obtained in the database. Specifically, the database may be a database stored in the server or a database stored in the client, and data of the field to be displayed may be displayed based on a target display rule in the prior art, which is not described herein again.
The client can receive a display request for a corresponding field in the page, wherein the display request carries second identification information of the page to be displayed and information of the field to be displayed; the client can acquire the information of the field in the page corresponding to the second identification information of the client and the target display rule corresponding to the field to be displayed, which are stored by the server; and displaying the data of the field to be displayed based on the target display rule, wherein the target display rule can be a display rule which is configured for the client in a personalized manner by a user and is not limited by service scenes and the like, so that the flexibility of the target display rule corresponding to the determined field to be displayed can be improved.
In order to improve the accuracy of data display, on the basis of the foregoing embodiments, in an embodiment of the present application, the method further includes:
and if the second identification information is not stored in the identification information of the page of the client stored by the server, or the information of the field to be displayed is not stored in the page corresponding to the second identification information, not responding.
Specifically, in a possible implementation manner, the server is a management side of the client, and in order to correctly display data, it may first determine whether second identification information is stored in the identification information of the page of the client stored by the server, and if the second identification information is not stored in the identification information of the page of the client stored by the server, that is, the identification information of the page of the client stored by the server does not include the second identification information, the server may not respond to the second identification information. If the second identification information is stored in the identification information of the page of the client stored by the server, whether the information of the field to be displayed is stored in the page corresponding to the second identification information can be further judged, and if so, the target display rule corresponding to the field to be displayed can be determined; and if the information of the field to be displayed is not stored in the page corresponding to the second identification information, that is, the page corresponding to the second identification information does not contain the information of the field to be displayed, the field to be displayed may not be responded.
In order to increase flexibility of data display, on the basis of the foregoing embodiments, in an embodiment of the present application, after receiving a display request for a corresponding field in a page, before acquiring information of a field in the page corresponding to the second identification information and a target display rule corresponding to the field to be displayed, which are stored by the server, the method further includes:
and judging whether the use display rule is started at present, and if so, carrying out the subsequent steps.
In a possible embodiment, for example, when the client is in the early development stage, the display rule such as the encryption format set for the data configuration of the field to be displayed may not be needed, and in order to increase the flexibility of data display, whether to start using the display rule may be preset. For example, whether to turn on the usage display rule may be set by using Java comments or configuration attribute information.
Specifically, after receiving a display request for a corresponding field in the page, the client may first determine whether the client currently starts the usage display rule, and if the client currently starts the usage display rule, the client may perform a subsequent step of acquiring information of a field in the page corresponding to the second identification information stored by the server and a target display rule corresponding to the field to be displayed.
If the client does not start the use display rule currently, it may be considered that the client does not acquire the information of the field in the page corresponding to the second identification information stored by the server and the target display rule corresponding to the field to be displayed when the client displays the data currently, and the process of displaying the data of the field to be displayed is performed based on the target display rule. In a possible implementation manner, if the client does not start the usage display rule currently, the data of the field to be displayed can be directly acquired from a database and the like and directly displayed. For example, taking a field to be displayed carried in the display request as the identification number, if it is determined that the usage display rule is not started currently, all the digits of the identification number may be directly displayed after the corresponding identification number is acquired from the database.
For convenience of understanding, the data display process provided in the embodiments of the present application is described below with reference to a specific embodiment. Fig. 3 is a schematic diagram of another data display process provided by some embodiments, and as shown in fig. 3, the process includes the following steps:
s301: the client receives a display request for a corresponding field in the page, wherein the display request carries second identification information of the page to be displayed and information of the field to be displayed.
S302: the client intercepts the display request, judges whether the use display rule is started or not at present, and if not, performs S303; if yes, proceed to S304.
Wherein, whether to start the usage display rule can be set by using Java annotation or configuring attribute information.
S303: and the client acquires the data of the field to be displayed from the database and directly displays the data.
The database may be a database in the client or a database in the server, and the client acquires the data of the field to be displayed from the database in the prior art, which is not described herein again.
S304: the client acquires the identification information of the page of the client stored by the server, judges whether the identification information of the page of the client stored by the server contains second identification information, and if not, performs S305; if yes, proceed to S306.
S305: no response is made.
S306: and the client acquires the information of the field in the page corresponding to the second identification information of the client, which is stored by the server, from the template and the object. The client judges whether the information of the field to be displayed is stored in the information of the field in the page corresponding to the second identification information of the client stored by the server, if so, the step S307 is performed; if not, S305 is performed.
S307: the client acquires a display rule corresponding to a field in a page corresponding to second identification information of the client stored by the server, and determines a target display rule corresponding to a field to be displayed according to the display rule corresponding to the field in the page corresponding to the second identification information of the client stored by the server.
In a possible implementation manner, a System (System) service can be called by a declarative web service client to obtain the display rule of the general configuration provided by the server, and the display rule of the personalized configuration for the client can be obtained by a Java interface. In addition, in a possible implementation, in view of the display rule configured based on the Java interface, an extended function of the display rule may be implemented, and the Java interface may also be referred to as a data display rule range extended interface (data screen extended interface).
S308: and displaying the data of the field to be displayed based on the target display rule.
In a possible implementation manner, the target display rule may carry a rule category to which the target display rule belongs, where the rule category may include row data authority, column data authority, and the like. The client may display the data of the field to be displayed based on the rule category to which the target display rule belongs. For example, if the target display rule belongs to the row data authority, the data of the field to be displayed may be displayed by using a Structured Query Language (SQL) parser or the like based on the limitation of the row data authority of the target display rule on the display number; if the target display rule belongs to the column data authority, the limitation of the column data authority based on the target display rule on the display format of the data can be realized through a reflection mechanism in Java, and the data of the field to be displayed is displayed, wherein the data of the field to be displayed can be displayed by adopting the prior art based on the rule category to which the target display rule belongs, and the description is omitted herein.
On the basis of the foregoing embodiments, embodiments of the present application provide a data display rule determining apparatus, and fig. 4 shows a schematic diagram of a data display rule determining apparatus provided in some embodiments, and as shown in fig. 4, the apparatus includes:
a sending module 41, configured to send information of a Java interface performing data interaction with a server to a client;
a reading module 42, configured to read, through the Java interface, information of a first field written by the client and a first display rule corresponding to the first field, where the information of the first field carries first identification information of a page to which the first field belongs;
an updating module 43, configured to update, according to the first display rule, a second display rule corresponding to the first field in the page corresponding to the first identifier information of the stored client.
In a possible implementation manner, the sending module 41 is specifically configured to send, to a client, a toolkit carrying a Java interface for performing data interaction with the server.
In a possible implementation manner, the updating module 43 is further configured to not respond if the first identification information is not stored in the stored identification information of the page of the client, or the information of the first field is not stored in the information of the field in the page corresponding to the first identification information.
On the basis of the foregoing embodiments, embodiments of the present application provide a data display device, and fig. 5 shows a schematic diagram of a data display device provided in some embodiments, and as shown in fig. 5, the device includes:
the receiving module 51 is configured to receive a display request for a corresponding field in a page, where the display request carries second identification information of the page to be displayed and information of the field to be displayed;
an obtaining module 52, configured to obtain information of a field in the page corresponding to the second identification information stored by the server and a target display rule corresponding to the field to be displayed;
and the display module 53 is configured to display the data of the field to be displayed based on the target display rule.
In a possible implementation manner, the obtaining module 52 is further configured to not respond if the second identification information is not stored in the identification information of the page of the client stored by the server, or the information of the field to be displayed is not stored in the information of the field in the page corresponding to the second identification information.
In a possible implementation manner, the receiving module 51 is further configured to, after receiving the display request for the corresponding field in the page, determine whether to start the usage display rule currently, and if so, trigger the obtaining module 52.
On the basis of the foregoing embodiments, an embodiment of the present application further provides an electronic device, and fig. 6 shows a schematic structural diagram of an electronic device provided in some embodiments, as shown in fig. 6, including: the system comprises a processor 61, a communication interface 62, a memory 63 and a communication bus 64, wherein the processor 61, the communication interface 62 and the memory 63 complete mutual communication through the communication bus 64;
the memory 63 has stored therein a computer program which, when executed by the processor 61, causes the processor 61 to perform the steps of:
sending information of a Java interface for data interaction with a server to a client;
reading information of a first field written by the client and a first display rule corresponding to the first field through the Java interface, wherein the information of the first field carries first identification information of a page to which the first field belongs;
and updating a second display rule corresponding to the first field in the page corresponding to the first identification information of the client according to the first display rule.
In a possible implementation manner, the processor 61 is specifically configured to send a toolkit carrying a Java interface for performing data interaction with the server to the client.
In a possible implementation manner, the processor 61 is further configured to not respond if the first identification information is not stored in the stored identification information of the page of the client, or the information of the first field is not stored in the information of the field in the page corresponding to the first identification information.
Because the principle of the electronic device for solving the problems is similar to the data display rule determination method, the implementation of the electronic device may refer to the implementation of the method, and repeated details are not repeated.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface 62 is used for communication between the above-described electronic apparatus and other apparatuses.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Alternatively, the memory may be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a central processing unit, a Network Processor (NP), and the like; but may also be a Digital instruction processor (DSP), an application specific integrated circuit, a field programmable gate array or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or the like.
On the basis of the foregoing embodiments, an embodiment of the present application further provides an electronic device, and fig. 7 shows a schematic structural diagram of another electronic device provided in some embodiments, as shown in fig. 7, including: the system comprises a processor 71, a communication interface 72, a memory 73 and a communication bus 74, wherein the processor 71, the communication interface 72 and the memory 73 are communicated with each other through the communication bus 74;
the memory 73 has stored therein a computer program which, when executed by the processor 71, causes the processor 71 to perform the steps of:
the method comprises the steps that a client receives a display request for a corresponding field in a page, wherein the display request carries second identification information of the page to be displayed and information of the field to be displayed;
acquiring information of a field in a page corresponding to the second identification information of the client and a target display rule corresponding to the field to be displayed, wherein the information is stored by a server;
and displaying the data of the field to be displayed based on the target display rule.
In a possible implementation manner, the processor 71 is further configured to not respond if the second identification information is not stored in the identification information of the page of the client stored by the server, or the information of the field to be displayed is not stored in the information of the field in the page corresponding to the second identification information.
In a possible implementation manner, the processor 71 is further configured to, after the display request for the corresponding field in the page is received, before the information of the field in the page corresponding to the second identification information and the target display rule corresponding to the field to be displayed, which are stored by the server are acquired, determine whether to start using the display rule currently, and if so, perform the subsequent steps.
Because the principle of the electronic device for solving the problems is similar to the data display method, the implementation of the electronic device can refer to the implementation of the method, and repeated details are not repeated.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface 72 is used for communication between the above-described electronic apparatus and other apparatuses.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Alternatively, the memory may be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a central processing unit, a Network Processor (NP), and the like; but may also be a Digital instruction processor (DSP), an application specific integrated circuit, a field programmable gate array or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or the like.
On the basis of the foregoing embodiments, an embodiment of the present invention provides a computer-readable storage medium, in which a computer program executable by an electronic device is stored, and when the program is run on the electronic device, the electronic device is caused to execute the following steps:
sending information of a Java interface for data interaction with a server to a client;
reading information of a first field written by the client and a first display rule corresponding to the first field through the Java interface, wherein the information of the first field carries first identification information of a page to which the first field belongs;
and updating a second display rule corresponding to the first field in the page corresponding to the first identification information of the client according to the first display rule.
In a possible implementation manner, the sending, to the client, information of a Java interface for data interaction with the electronic device includes:
and sending a tool package carrying a Java interface for data interaction with the server to the client.
In one possible embodiment, the method further comprises:
and if the first identification information is not stored in the stored identification information of the page of the client, or the information of the first field is not stored in the information of the field in the page corresponding to the first identification information, not responding.
The computer readable storage medium may be any available medium or data storage device that can be accessed by a processor in an electronic device, including but not limited to magnetic memory such as floppy disks, hard disks, magnetic tape, magneto-optical disks (MOs), etc., optical memory such as CDs, DVDs, BDs, HVDs, etc., and semiconductor memory such as ROMs, EPROMs, EEPROMs, non-volatile memory (NAND FLASH), Solid State Disks (SSDs), etc.
On the basis of the foregoing embodiments, another computer-readable storage medium is provided in an embodiment of the present invention, in which a computer program executable by an electronic device is stored, and when the program is run on the electronic device, the electronic device is caused to execute the following steps:
the method comprises the steps that a client receives a display request for a corresponding field in a page, wherein the display request carries second identification information of the page to be displayed and information of the field to be displayed;
acquiring information of a field in a page corresponding to the second identification information of the client and a target display rule corresponding to the field to be displayed, wherein the information is stored by a server;
and displaying the data of the field to be displayed based on the target display rule.
In one possible embodiment, the method further comprises:
and if the second identification information is not stored in the identification information of the page of the client stored by the server, or the information of the field to be displayed is not stored in the information of the field in the page corresponding to the second identification information, not responding.
In a possible implementation manner, after receiving the display request for the corresponding field in the page, before the obtaining the information of the field in the page corresponding to the second identification information and the target display rule corresponding to the field to be displayed, which are stored by the server, the method further includes:
and judging whether the use display rule is started at present, and if so, carrying out the subsequent steps.
The computer readable storage medium may be any available medium or data storage device that can be accessed by a processor in an electronic device, including but not limited to magnetic memory such as floppy disks, hard disks, magnetic tape, magneto-optical disks (MOs), etc., optical memory such as CDs, DVDs, BDs, HVDs, etc., and semiconductor memory such as ROMs, EPROMs, EEPROMs, non-volatile memory (NAND FLASH), Solid State Disks (SSDs), etc.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

Claims (10)

1. A method for determining data display rules, the method comprising:
sending information of a Java interface for data interaction with a server to a client;
reading information of a first field written by the client and a first display rule corresponding to the first field through the Java interface, wherein the information of the first field carries first identification information of a page to which the first field belongs;
and updating a second display rule corresponding to the first field in the page corresponding to the first identification information of the client according to the first display rule.
2. The method of claim 1, wherein sending information of a Java interface for data interaction with the electronic device to the client comprises:
and sending a tool package carrying a Java interface for data interaction with the server to the client.
3. The method of claim 1, further comprising:
and if the first identification information is not stored in the stored identification information of the page of the client, or the information of the first field is not stored in the information of the field in the page corresponding to the first identification information, not responding.
4. A method of displaying data, the method comprising:
the method comprises the steps that a client receives a display request for a corresponding field in a page, wherein the display request carries second identification information of the page to be displayed and information of the field to be displayed;
acquiring information of a field in a page corresponding to the second identification information of the client and a target display rule corresponding to the field to be displayed, wherein the information is stored by a server;
and displaying the data of the field to be displayed based on the target display rule.
5. The method of claim 4, further comprising:
and if the second identification information is not stored in the identification information of the page of the client stored by the server, or the information of the field to be displayed is not stored in the information of the field in the page corresponding to the second identification information, not responding.
6. The method according to any one of claims 4 to 5, wherein after receiving the display request for the corresponding field in the page, before the acquiring information of the field in the page corresponding to the second identification information and the target display rule corresponding to the field to be displayed, which are stored by the server, the method further comprises:
and judging whether the use display rule is started at present, and if so, carrying out the subsequent steps.
7. A data display rule determination apparatus, characterized in that the apparatus comprises:
the sending module is used for sending information of a Java interface for data interaction with the server to the client;
a reading module, configured to read, through the Java interface, information of a first field written by the client and a first display rule corresponding to the first field, where the information of the first field carries first identification information of a page to which the first field belongs;
and the updating module is used for updating a second display rule corresponding to the first field in the page corresponding to the first identification information of the client according to the first display rule.
8. A data display device, the device comprising:
the receiving module is used for receiving a display request for a corresponding field in a page, wherein the display request carries second identification information of the page to be displayed and information of the field to be displayed;
the acquisition module is used for acquiring the information of the field in the page corresponding to the second identification information stored by the server and the target display rule corresponding to the field to be displayed;
and the display module is used for displaying the data of the field to be displayed based on the target display rule.
9. An electronic device, characterized in that the electronic device comprises at least a processor and a memory, the processor being adapted to carry out the steps of the data display rule determination method according to any one of claims 1 to 3, or the steps of the data display method according to any one of claims 4 to 6, when executing a computer program stored in the memory.
10. A computer-readable storage medium, characterized in that it stores a computer program which, when executed by a processor, carries out the steps of the data display rule determination method according to any one of claims 1 to 3, or carries out the steps of the data display method according to any one of claims 4 to 6.
CN202110360070.8A 2021-04-02 2021-04-02 Data display rule determining method, display method, device, equipment and medium Pending CN113094048A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110360070.8A CN113094048A (en) 2021-04-02 2021-04-02 Data display rule determining method, display method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110360070.8A CN113094048A (en) 2021-04-02 2021-04-02 Data display rule determining method, display method, device, equipment and medium

Publications (1)

Publication Number Publication Date
CN113094048A true CN113094048A (en) 2021-07-09

Family

ID=76673113

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110360070.8A Pending CN113094048A (en) 2021-04-02 2021-04-02 Data display rule determining method, display method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN113094048A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113626122A (en) * 2021-08-06 2021-11-09 北京奇艺世纪科技有限公司 Service data processing method and device, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109102153A (en) * 2018-07-06 2018-12-28 腾讯科技(深圳)有限公司 A kind of identity management method and device
CN111752968A (en) * 2020-06-12 2020-10-09 支付宝(杭州)信息技术有限公司 Identity file processing method, device, equipment and storage medium
CN112115338A (en) * 2020-09-15 2020-12-22 平安信托有限责任公司 Page query request processing method, device, equipment and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109102153A (en) * 2018-07-06 2018-12-28 腾讯科技(深圳)有限公司 A kind of identity management method and device
CN111752968A (en) * 2020-06-12 2020-10-09 支付宝(杭州)信息技术有限公司 Identity file processing method, device, equipment and storage medium
CN112115338A (en) * 2020-09-15 2020-12-22 平安信托有限责任公司 Page query request processing method, device, equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113626122A (en) * 2021-08-06 2021-11-09 北京奇艺世纪科技有限公司 Service data processing method and device, electronic equipment and storage medium
CN113626122B (en) * 2021-08-06 2023-08-18 北京奇艺世纪科技有限公司 Service data processing method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CA3045571C (en) Blockchain-based commodity claim method and apparatus, and electronic device
CN110121727B (en) Method and system for providing authenticated, auditable and immutable input for intelligent contracts
WO2020233048A1 (en) Customized software generation method and system, and electronic device and storage medium
US9338148B2 (en) Secure distributed information and password management
CN101960464B (en) Information processing device
CN104081713B (en) The long-range trust identification of server and client computer in cloud computing environment and geographical location
US10437708B2 (en) System for refreshing and sanitizing testing data in a low-level environment
CN110569035A (en) Code compiling method, device, equipment and storage medium of software development project
CN112241506A (en) User behavior backtracking method, device, equipment and system
CN107093087B (en) Context inducement in starter applications
CN110688111A (en) Configuration method, device, server and storage medium of business process
CN108965991B (en) Program ordering state verification method and system, terminal device and storage medium
US20200050433A1 (en) Method for programming and terminal device
CN113094048A (en) Data display rule determining method, display method, device, equipment and medium
CN109977692B (en) Data processing method and device, storage medium and electronic equipment
US20180107840A1 (en) Method of restoring a secure element to a factory state
CN110020166B (en) Data analysis method and related equipment
CN115033853A (en) Function access authority control method and device based on intelligent contract
CN112068895B (en) Code configuration method, device, video playing equipment and storage medium
CN115098471A (en) Method and device for history states of twin and subscription events
CN114066277A (en) Business decision method, decision platform, readable medium and electronic device
CN113467782A (en) Method, device and equipment for determining business process
CN110888643A (en) Page processing method and device
CN112306723A (en) Operation information acquisition method and device applied to small program
CN110874305A (en) User operation recording method and device and server

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