Search

CN-116484138-B - Window processing method, device, computer equipment and storage medium

CN116484138BCN 116484138 BCN116484138 BCN 116484138BCN-116484138-B

Abstract

The application relates to a window processing method, a window processing device, computer equipment and a storage medium, and relates to the technical field of data processing. The method comprises the steps of responding to a service request of a current window, obtaining sub-window parameters of a sub-window to be created corresponding to the current window and client information of a browser where the current window is located, carrying out standardization processing on the sub-window parameters to obtain the standardization parameters of the sub-window when the browser is identified to be a specific browser according to the client information, further creating the sub-window on the current window according to the standardization parameters, and further generating a mask layer according to the current window parameters of the current window, adopting the mask layer, and carrying out freezing processing on the current window. By adopting the method, when the sub-window corresponding to the current window is created, the mask layer is generated to freeze the current window, so that the repeated operation of a user on the current window is prevented, and the accuracy of service data transferred between the current window and the sub-window is ensured.

Inventors

  • ZHU RUYI

Assignees

  • 中国工商银行股份有限公司

Dates

Publication Date
20260512
Application Date
20230424

Claims (8)

  1. 1. A method of window processing, the method comprising: responding to a service request of a current window, and acquiring sub-window parameters of a sub-window to be created corresponding to the current window and client information of a browser where the current window is located; under the condition that the browser is identified as a specific browser according to the client information, carrying out standardization processing on the sub-window parameters to obtain the standardized parameters of the sub-window, wherein the specific browser is a browser without a function of creating a modal window; creating the sub-window above the current window according to the standardized parameters; creating identification information for the sub-window, and adding the identification information of the sub-window into the attribute information of the current window; Generating a mask layer according to the size parameter in the current window parameters of the current window under the condition that the identification information of the child window exists in the attribute information of the current window, wherein the size parameter of the mask layer is the same as the size parameter of the current window; and placing the mask layer between the current window and the child window to realize freezing treatment on the current window.
  2. 2. The method according to claim 1, wherein the method further comprises: generating service data corresponding to the service request according to the service operation acted on the sub-window; And if a window closing event is detected, updating the service data to the current window.
  3. 3. The method of claim 2, wherein updating the traffic data to the current window if a window closing event is detected comprises: if a sub-window closing event is detected, updating the service data to the current window, thawing the current window, and deleting the identification information of the sub-window in the attribute information of the current window.
  4. 4. The method of claim 2, wherein updating the traffic data to the current window if a window closing event is detected comprises: If a current window closing event is detected, determining whether the identification information of a child window exists in the attribute information of the current window; if yes, closing the sub-window, and updating the service data to the current window; and closing the current window under the condition that the business data is detected to be updated to the current window.
  5. 5. A window treatment apparatus, the apparatus comprising: The acquisition module is used for responding to the service request of the current window and acquiring the sub-window parameters of the sub-window to be created corresponding to the current window and the client information of the browser where the current window is located; The standardized module is used for carrying out standardized processing on the sub-window parameters to obtain standardized parameters of the sub-window when the browser is identified to be a specific browser according to the client information, wherein the specific browser is a browser without a function of creating a modal window; the creation module is used for creating the child window above the current window according to the standardized parameters; The freezing module is used for creating identification information for the sub-window and adding the identification information of the sub-window into the attribute information of the current window, generating a mask layer according to the size parameter in the current window parameter of the current window when the fact that the identification information of the sub-window exists in the attribute information of the current window is detected, wherein the size parameter of the mask layer is identical to the size parameter of the current window, and placing the mask layer between the current window and the sub-window to realize freezing processing of the current window.
  6. 6. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 4 when the computer program is executed.
  7. 7. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 4.
  8. 8. A computer program product comprising a computer program, characterized in that the computer program, when executed by a processor, implements the steps of the method of any of claims 1 to 4.

Description

Window processing method, device, computer equipment and storage medium Technical Field The present application relates to the field of data processing technologies, and in particular, to a method, an apparatus, a computer device, and a storage medium for processing a window. Background Under the condition of keeping the main window and displaying the main window as a background, a new window is opened, so that a user can only operate on the new window, and the main window can be returned after the operation is completed or canceled, which is the expression form of the modal window. Currently, a non-IE browser (Internet Explorer, microsoft browser) does not support multi-level modal windows, however, a large number of nesting of parent windows and child windows often exist in a Web (World Wide Web) system, so that when the non-IE browser is used to access the Web system, after the child windows are opened from the parent window, the parent window can still operate, further, the inheritance relationship between the parent window and the child window disappears, and when the child window is closed, the parent window may be modified or even closed. Therefore, the current non-IE browser cannot determine whether the service data transmitted by the parent window acquired by the child window is outdated or not, and cannot determine whether the service data transmitted by the child window to the parent window is accurate or not, so that the usability of the Web system is seriously affected. Disclosure of Invention In view of the foregoing, it is desirable to provide a window processing method, apparatus, computer device, and storage medium capable of accurately transferring service data between windows of a browser. In a first aspect, the present application provides a window processing method, including: Responding to a service request of a current window, and acquiring sub-window parameters of a sub-window to be created corresponding to the current window and client information of a browser where the current window is located; under the condition that the browser is identified to be a specific browser according to the client information, carrying out standardized processing on the sub-window parameters to obtain standardized parameters of the sub-window, wherein the specific browser is a browser without a function of creating a modal window; creating a child window above the current window according to the standardized parameters; generating a mask layer according to the current window parameters of the current window, and freezing the current window by adopting the mask layer. In one embodiment, generating a mask layer according to a current window parameter of a current window, and freezing the current window by adopting the mask layer, including: Generating a mask layer according to the size parameter in the current window parameters of the current window, wherein the size parameter of the mask layer is the same as the size parameter of the current window; And placing the mask layer between the current window and the child window to realize freezing treatment on the current window. In one embodiment, generating a mask layer according to a size parameter in a current window parameter of a current window includes: Creating identification information for the sub-window, and adding the identification information of the sub-window into the attribute information of the current window; and under the condition that the fact that the sub-window identification information exists in the attribute information of the current window is detected, generating a mask layer according to the size parameter in the current window parameters of the current window. In one embodiment, the method further comprises: generating service data corresponding to the service request according to the service operation acted on the sub-window; and if the window closing event is detected, updating the service data to the current window. In one embodiment, if a window closing event is detected, updating the service data to the current window includes: if the sub-window closing event is detected, the service data is updated to the current window, defrosting processing is carried out on the current window, and the identification information of the sub-window in the attribute information of the current window is deleted. In one embodiment, if a window closing event is detected, updating the service data to the current window includes: if a current window closing event is detected, determining whether the identification information of the child window exists in the attribute information of the current window; if yes, closing the sub-window, and updating the service data to the current window; And closing the current window under the condition that the service data is detected to be updated to the current window. In a second aspect, the present application also provides a window processing apparatus, including: The acquisition module is used for respon