Search

CN-121980099-A - Method, device, equipment and storage medium for showing tab

CN121980099ACN 121980099 ACN121980099 ACN 121980099ACN-121980099-A

Abstract

The application belongs to the technical field of computers, and provides a method, a device, equipment and a storage medium for displaying a tab. The embodiment of the application acquires context information related to a target service in a user terminal from a tab display request sent by the user terminal by intercepting the tab display request aiming at the target service, performs tab matching based on the context information and a tab rule set to obtain a matched tab list, performs tab assembly based on tab meta information of each matched tab in the matched tab list to obtain tab assembly information, sends the tab assembly information to the user terminal, and the user terminal performs on-demand rendering and displays corresponding matched tabs based on the tab assembly information. The embodiment of the application can reduce the function development cost and the tab operation and maintenance complexity aiming at tab display.

Inventors

  • HUANG YOUMING
  • LI HUAIGEN
  • LIU XIAOJUN
  • LI YILIANG
  • GU CHAO

Assignees

  • 金蝶软件(中国)有限公司

Dates

Publication Date
20260505
Application Date
20251208

Claims (12)

  1. 1. A method of displaying a tab, comprising: Intercepting a tab display request aiming at a target service and sent by a user terminal, and acquiring context information related to the target service in the user terminal from the tab display request; performing tab matching based on the context information and the tab rule set to obtain a matched tab list; performing tab assembly based on tab element information of each matched tab in the matched tab list to obtain tab assembly information; And sending the tab assembly information to the user terminal, and rendering and displaying the corresponding matched tab on demand by the user terminal based on the tab assembly information.
  2. 2. The tab presentation method according to claim 1, wherein the performing tab matching based on the context information and the tab rule set to obtain a matching tab list includes: analyzing the context information to obtain at least one service dimension; acquiring a tab rule set corresponding to the context information; Performing tab matching based on each business dimension and the tab rule set to obtain a candidate tab list; Pre-inquiring the data source corresponding to each candidate tab in the candidate tab list to obtain a pre-inquiring result; And updating the candidate tab list based on the pre-query result to obtain the matching tab list.
  3. 3. The tab presentation method of claim 2, wherein the performing dimension rule matching based on each of the service dimensions and the tab rule set to obtain a candidate tab list includes: Determining each tab rule in the tab rule set, which is matched with any service dimension respectively, to obtain a tab rule subset, wherein the tab rule is used for indicating the relationship among the tab dimension, the tab and the corresponding matching weight; And screening each tab indicated by the tab rule subset based on each matching weight indicated by the tab rule subset to obtain the candidate tab list.
  4. 4. The tab presentation method as claimed in claim 3, wherein the screening each tab indicated by the tab rule subset based on each matching weight indicated by the tab rule subset to obtain the candidate tab list includes: Acquiring priority weights of the service dimensions; Determining target matching weights of tabs indicated by the tab rule subset based on the matching weights indicated by the tab rule subset and the priority weights of the corresponding service dimensions; And screening each tab indicated by the tab rule subset based on each target matching weight to obtain the candidate tab list.
  5. 5. The tab presentation method of claim 4, wherein the determining the target matching weight for each tab indicated by the tab rule subset based on each matching weight indicated by the tab rule subset and the priority weight for the corresponding business dimension comprises: grouping each tab rule in the tab rule subset according to the tab identifier corresponding to each tab rule respectively to obtain at least one tab rule group; Based on the matching weights indicated by the tab rule groups and the priority weights of the service dimensions to which the tab rule groups belong, determining the middle matching weights of tabs to which the tab rule groups belong; And acquiring a weight adjustment factor, and respectively adjusting the corresponding intermediate matching weights based on the number of tab rules in each tab rule group and the rule adjustment factor to obtain target matching weights of the tabs indicated by the tab rule subset.
  6. 6. The tab presentation method as claimed in claim 4, wherein the screening each tab indicated by the tab rule subset based on each target matching weight to obtain the candidate tab list includes: acquiring a tab matching threshold, and determining each target matching weight which is larger than the tab matching threshold in the tab rule subset as screening matching weight; And sorting all tabs corresponding to the screening matching weight according to the size sequence of the screening matching weight to obtain the candidate tab list.
  7. 7. The tab presentation method according to any one of claims 2 to 6, wherein the updating the candidate tab list based on the pre-query result to obtain the matching tab list includes: Under the condition that a pre-query result of a first candidate tab in the candidate tab list indicates that no effective data exists, adjusting down target matching weight of the first candidate tab, and updating the arrangement sequence of tabs in the candidate tab list based on the adjusted target matching weight to obtain the matching tab list; And/or, the pre-query result of the second candidate tab in the candidate tab list indicates that no valid data exists, and the second candidate tab is deleted from the candidate tab list to obtain the matching tab list.
  8. 8. The tab presentation method according to any one of claims 2 to 6, wherein the obtaining the tab rule set corresponding to the context information includes: Acquiring a full quantity tab rule from a rule base; determining a matching template corresponding to the context information, wherein the matching template is at least used for configuring the hierarchical relationship between the tab set and each tab; And screening the full-quantity tab rule based on the tab set configured by the matching template to obtain the tab rule set.
  9. 9. The method for displaying a tab according to claim 8, wherein the step of assembling the tab based on the tab meta information of each matching tab in the matching tab list to obtain tab assembly information includes: Obtaining a target hierarchical relationship of each matching tab in the matching tab list from the matching template; and according to the tab arrangement sequence indicated by the matching tab list and the target hierarchical relationship, tab assembly is carried out on the tab meta information of each matching tab, and the tab assembly information is obtained.
  10. 10. An electronic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the tab presentation method of any one of claims 1 to 9 when the computer program is executed.
  11. 11. A computer readable storage medium storing a computer program, wherein the computer program when executed by a processor implements the steps of the tab presentation method of any one of claims 1 to 9.
  12. 12. A computer program product, characterized in that the computer program product, when run on a processor, causes the processor to carry out the steps of the tab presentation method of any one of claims 1 to 9.

Description

Method, device, equipment and storage medium for showing tab Technical Field The application belongs to the technical field of computers, and particularly relates to a tab display method, a device, equipment and a storage medium. Background The report is an important display mode of business information processing results. The generation and processing of financial statements, tax statements, and the like, which are typically made up of a plurality of tabs, is an important task for an enterprise. For the generation and processing of complex report forms, a mode of predefining and writing codes by developers to show fixed report forms tabs is generally adopted, or a mode of loading and generating tabs configured by administrators is adopted. However, in some situations of service scene changes, complicated tab entries need to be manually developed or maintained, which increases the cost of function development and the complexity of tab operation and maintenance. Disclosure of Invention In view of this, the embodiments of the present application provide a method, apparatus, device, and storage medium for displaying a tab, which can reduce the cost of developing functions and complexity of tab operation and maintenance for tab display. A first aspect of an embodiment of the present application provides a tab display method, including: Intercepting a tab display request aiming at a target service and sent by a user terminal, and acquiring context information related to the target service in the user terminal from the tab display request; performing tab matching based on the context information and the tab rule set to obtain a matched tab list; performing tab assembly based on tab element information of each matched tab in the matched tab list to obtain tab assembly information; And sending the tab assembly information to the user terminal, and rendering and displaying the corresponding matched tab on demand by the user terminal based on the tab assembly information. In some embodiments, the performing tab matching based on the context information and the tab rule set to obtain a matching tab list includes: analyzing the context information to obtain at least one service dimension; acquiring a tab rule set corresponding to the context information; Performing tab matching based on each business dimension and the tab rule set to obtain a candidate tab list; Pre-inquiring the data source corresponding to each candidate tab in the candidate tab list to obtain a pre-inquiring result; And updating the candidate tab list based on the pre-query result to obtain the matching tab list. In some embodiments, the performing dimension rule matching based on each service dimension and the tab rule set to obtain a candidate tab list includes: Determining each tab rule in the tab rule set, which is matched with any service dimension respectively, to obtain a tab rule subset, wherein the tab rule is used for indicating the relationship among the tab dimension, the tab and the corresponding matching weight; And screening each tab indicated by the tab rule subset based on each matching weight indicated by the tab rule subset to obtain the candidate tab list. In some embodiments, the filtering each tab indicated by the tab rule subset based on each matching weight indicated by the tab rule subset to obtain the candidate tab list includes: Acquiring priority weights of the service dimensions; Determining target matching weights of tabs indicated by the tab rule subset based on the matching weights indicated by the tab rule subset and the priority weights of the corresponding service dimensions; And screening each tab indicated by the tab rule subset based on each target matching weight to obtain the candidate tab list. In some embodiments, the determining the target matching weight of each tab indicated by the tab rule subset based on each matching weight indicated by the tab rule subset and the priority weight of the corresponding service dimension includes: grouping each tab rule in the tab rule subset according to the tab identifier corresponding to each tab rule respectively to obtain at least one tab rule group; Based on the matching weights indicated by the tab rule groups and the priority weights of the service dimensions to which the tab rule groups belong, determining the middle matching weights of tabs to which the tab rule groups belong; And acquiring a weight adjustment factor, and respectively adjusting the corresponding intermediate matching weights based on the number of tab rules in each tab rule group and the rule adjustment factor to obtain target matching weights of the tabs indicated by the tab rule subset. In some embodiments, the filtering each tab indicated by the tab rule subset based on each target matching weight to obtain the candidate tab list includes: acquiring a tab matching threshold, and determining each target matching weight which is larger than the tab matching threshold in the tab rule subset as s