List page generation method and device
By configuring the configuration information and encapsulation components of the list page, a list page that meets business needs is generated, which solves the problems of high cost of list page generation and inconsistent data in the prior art, and realizes efficient and simple list page generation and maintenance.
Patent Information
- Application Number
- CN202010431149.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-05-20
- Publication Date
- 2024-11-12
- Estimated Expiration
- 2040-05-20
AI Technical Summary
In the prior art, the new R&D costs of list pages are high, the testing cycle is long, and data inconsistency is likely to occur during maintenance.
By configuring the configuration information of the list page according to business needs, using encapsulated components to generate a list page, including functional permissions, data permissions, default filtering conditions and fuzzy search functions, simplifying the list page generation process, reducing R&D costs and testing cycles, and realizing common attributes sharing and centralized management.
It improves the efficiency and simplicity of list page generation, reduces R&D costs and test cycles, avoids the problem of data inconsistency, and realizes the list page's rapid response to business needs.
Smart Images

Figure CN111767050B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a method and device for generating a list page. Background Art
[0002] As a B-side system, list pages are a very common form of presentation. Previously, the addition of list pages was done by writing code from the interface layer to the data layer, because each list page has different functions, different filtering conditions, and different data ranges that can be presented to the current user. Some list pages are even only available to individual cities. However, this form of adding new list pages has high R&D costs and long testing cycles, and sometimes cannot respond quickly to business needs because all content must be developed from scratch. Moreover, for some common attributes, later maintainers may forget to change another place when changing one place, which will also lead to data inconsistency. Summary of the invention
[0003] Since the existing methods have the above problems, an embodiment of the present invention provides a method and device for generating a list page.
[0004] In a first aspect, an embodiment of the present invention provides a method for generating a list page, comprising:
[0005] According to the business requirements of the list page to be added, corresponding list page configuration information is configured for the list page to be added; the business requirements include functional permissions and data permissions; the list page configuration information is a package component that can meet the business requirements;
[0006] The list page to be added is generated according to the list page configuration information.
[0007] Furthermore, configuring corresponding list page configuration information for the list page to be added according to the business requirements of the list page to be added specifically includes:
[0008] According to the functional permissions and data permissions of the list page to be added, a packaging component corresponding to the functional permissions is configured for the list page to be added, and a packaging component corresponding to the data permissions is configured for the list page to be added.
[0009] Further, generating the list page to be added according to the list page configuration information specifically includes:
[0010] Call the encapsulation component corresponding to the functional permission to obtain the functional information of the list page to be added;
[0011] Call the encapsulation component corresponding to the data permission to obtain the data information of the list page to be added;
[0012] The to-be-added list page is generated according to the function information and the data information.
[0013] Furthermore, the business requirements also include: default screening conditions;
[0014] Accordingly, configuring corresponding list page configuration information for the list page to be added according to the business requirements of the list page to be added specifically includes:
[0015] According to the default filtering condition of the list page to be added, configuring a packaging component corresponding to the default filtering condition for the list page to be added;
[0016] Accordingly, generating the to-be-added list page according to the function information and the data information specifically includes:
[0017] The to-be-added list page is generated according to the function information and the data information, and the function information and data information displayed by the to-be-added list page in a default state are determined according to the configured packaging component corresponding to the default filtering condition.
[0018] Furthermore, the business requirements also include: supporting fuzzy search;
[0019] Accordingly, configuring corresponding list page configuration information for the list page to be added according to the business requirements of the list page to be added specifically includes:
[0020] According to the requirement of supporting fuzzy search for the list page to be added, configuring a packaging component corresponding to the requirement of supporting fuzzy search for the list page to be added;
[0021] Accordingly, generating the to-be-added list page according to the function information and the data information specifically includes:
[0022] The to-be-added list page is generated according to the function information and the data information, and the fuzzy search function is added to the to-be-added list page according to the configured encapsulation component corresponding to the requirement of supporting fuzzy search.
[0023] Furthermore, the business requirements also include: an encapsulation structure type for encapsulating search return data;
[0024] Accordingly, configuring corresponding list page configuration information for the list page to be added according to the business requirements of the list page to be added specifically includes:
[0025] According to the encapsulation structure type for encapsulating search return data of the list page to be added, configuring an encapsulation component corresponding to the requirements of the encapsulation structure type for the list page to be added;
[0026] Accordingly, according to the function information and the data information, the list page to be added is generated, and according to the configured encapsulation component corresponding to the requirement of supporting fuzzy search, the function of fuzzy search is added to the list page to be added, specifically including:
[0027] According to the functional information and the data information, the list page to be added is generated, and according to the configured packaging components corresponding to the requirements of supporting fuzzy search, the function of fuzzy search is added to the list page to be added, and according to the configured packaging components corresponding to the requirements of the packaging structure type, the packaging method of the search return data is determined.
[0028] Furthermore, the list page generation method further includes:
[0029] When an exception occurs in the process of generating the list page to be added according to the list page configuration information, the operation of generating the list page to be added is interrupted, and a default exception result is directly returned.
[0030] In a second aspect, an embodiment of the present invention provides a list page generating device, including:
[0031] A configuration module, configured to configure corresponding list page configuration information for the list page to be added according to the business requirements of the list page to be added; the business requirements include functional permissions and data permissions; the list page configuration information is a package component that can meet the business requirements;
[0032] A generating module is used to generate the list page to be added according to the list page configuration information.
[0033] In a third aspect, an embodiment of the present invention provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the list page generation method as described in the first aspect is implemented.
[0034] In a fourth aspect, an embodiment of the present invention provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the list page generation method as described in the first aspect.
[0035] It can be seen from the above technical scheme that the list page generation method and device provided by the embodiment of the present invention configures the list page configuration information that can meet the business needs of the list page to be added according to the business needs of the list page to be added, and then generates the list page according to the list configuration information. It can be seen that the processing process of generating the list page by configuration provided by this embodiment makes the generation of the list page simple, convenient and efficient, so that there is no need to write codes from the interface layer to the data layer every time a list page is generated as in the prior art. It can be seen that the list page generation method provided by the embodiment of the present invention can reduce the R&D cost and the test cycle, thereby improving the generation efficiency of the list page. In addition, the processing process of generating the list page by configuration provided by the embodiment of the present invention can share some common attributes of the list page by configuration, so these common attributes can be encapsulated for users to call when configuring. At the same time, when these common attributes need to be modified, only the corresponding encapsulation component needs to be changed once to realize the corresponding changes in the list pages using these common attributes, and there will be no data inconsistency caused by the later maintainer changing one place and forgetting to change another place as in the prior art. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0037] Figure 1 is a flow chart of a method for generating a list page provided by an embodiment of the present invention;
[0038] Figure 2 This is a schematic diagram of a list page generation process provided by an embodiment of the present invention;
[0039] Figure 3 It is a structural diagram of a list page generating device provided by an embodiment of the present invention;
[0040] Figure 4 It is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0041] The specific implementation of the present invention is further described below in conjunction with the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present invention, and cannot be used to limit the protection scope of the present invention.
[0042] Figure 1A flowchart of a method for generating a list page according to an embodiment of the present invention is shown. Figure 1 As shown, the list page generation method provided by the embodiment of the present invention specifically includes the following contents:
[0043] Step 101: According to the business requirements of the list page to be added, corresponding list page configuration information is configured for the list page to be added; the business requirements include function permissions and data permissions; the list page configuration information is a package component that can meet the business requirements;
[0044] Step 102: Generate the list page to be added according to the list page configuration information.
[0045] In this embodiment, the corresponding list page is generated by configuring the list page with a package component that can meet the business requirements, so that the generation of the list page becomes simple, convenient and efficient.
[0046] In this embodiment, the business demand can be a functional permission. For example, assuming that the list page to be added is a list page generated for salesperson A, the list page needs to display house transaction information, house historical listing records, house historical rental and sales information, etc. Assuming that the list page to be added is a list page generated for house listing staff B, it is only necessary to display the house historical listing records in the list page. It can be seen that for different roles, the list page functions that need to be displayed are different. Therefore, according to the business needs, the list page can be configured with a package component that can meet the business needs, and then the corresponding list page is generated. For example, for the above example, when generating a list page for salesperson A, the package component for counting house transaction information, the package component for counting house historical listing records, and the package component for counting house historical rental and sales information can be called respectively. When generating a list page for house listing staff B, only the package component for counting house historical listing records can be called.
[0047] In addition, the business demand can also be data permissions. For example, assuming that the list page to be added is a list page generated for a regional manager, the corresponding information of the corresponding area (such as house transaction information, house historical listing records, and house historical rental and sale information) needs to be displayed in the list page. For example, assuming that the list page to be added is a list page generated for a store manager, the corresponding information of the corresponding store (such as house transaction information) needs to be displayed in the list page. For example, assuming that the list page to be added is a list page generated for a store colleague, the corresponding information of the store colleague (such as house transaction information) needs to be displayed in the list page. For example, for the above example, when the list page is generated for the regional manager, the encapsulation components for counting the relevant information of the corresponding area can be called separately. When the list page is generated for the store manager, the encapsulation components for counting the relevant information of the corresponding store can be called separately. When the list page is generated for the store colleague, the encapsulation components for counting the relevant information of the corresponding store colleague can be called separately.
[0048] In addition, the business demand can also be the default filtering condition for the list page. For example, suppose the list page needs to display the house transaction information of the most recent month by default, and the house transaction information of other months can be achieved by further turning pages or inquiries. Therefore, in response to this business demand, it is necessary to display the house transaction information of the most recent month in the list page. For example, for the above example, when generating a list page for house listing person B, the encapsulation components for counting the historical listing records of the house can be called separately, and when displaying information on the list page, the corresponding time encapsulation components are called to display the historical listing records of the house in the most recent month.
[0049] It can be seen from the above technical scheme that the list page generation method provided by the embodiment of the present invention configures the list page configuration information that can meet the business needs of the list page to be added according to the business needs of the list page to be added, and then generates the list page according to the list configuration information. It can be seen that the processing process of generating the list page by configuration provided by this embodiment makes the generation of the list page simple, convenient and efficient, so that there is no need to write codes from the interface layer to the data layer every time a list page is generated as in the prior art. It can be seen that the list page generation method provided by the embodiment of the present invention can reduce the R&D cost and the test cycle, thereby improving the generation efficiency of the list page. In addition, the processing process of generating the list page by configuration provided by the embodiment of the present invention can share some common attributes of the list page by configuration, so these common attributes can be encapsulated for users to call when configuring. At the same time, when these common attributes need to be modified, only the corresponding encapsulation component needs to be changed once to realize the corresponding changes in the list pages using these common attributes, and there will be no data inconsistency caused by the later maintainer changing one place and forgetting to change another place as in the prior art.
[0050] Based on the content of the above embodiment, in this embodiment, according to the business requirements of the list page to be added, the corresponding list page configuration information is configured for the list page to be added, specifically including:
[0051] According to the functional permissions and data permissions of the list page to be added, a packaging component corresponding to the functional permissions is configured for the list page to be added, and a packaging component corresponding to the data permissions is configured for the list page to be added.
[0052] In this embodiment, according to the functional permissions and data permissions corresponding to the list page to be added, the encapsulation components corresponding to the functional permissions are respectively configured for the list page to be added, and the encapsulation components corresponding to the data permissions are configured for the list page to be added, so that when the list page is subsequently generated according to the list page configuration information, the encapsulation components corresponding to the functional permissions and the encapsulation components corresponding to the data permissions can be called to obtain the functional information of the list page to be added and the data information of the list page to be added, so that the list page to be added can be generated according to the functional information and the data information. It can be seen that this embodiment analyzes the functional permissions and data permissions contained in the business requirements of the list page to be added, configures the encapsulation components corresponding to the functional permissions and the encapsulation components corresponding to the data permissions for the list page to be added, thereby completing the process of generating the list page by configuration. The entire process is simple and convenient. It is only necessary to configure the corresponding encapsulation components according to the business requirements. Since the encapsulation components store the code that can realize the corresponding requirements, there is no need to rewrite the corresponding code every time the list page is generated, thereby improving the generation efficiency and difficulty of the list page. In addition, when some common properties of the list page need to be modified, you only need to modify the corresponding packaged components, without having to modify each list page, so subsequent maintenance is also relatively simple and convenient.
[0053] Based on the content of the above embodiment, in this embodiment, generating the list page to be added according to the list page configuration information specifically includes:
[0054] Call the encapsulation component corresponding to the functional permission to obtain the functional information of the list page to be added;
[0055] Call the encapsulation component corresponding to the data permission to obtain the data information of the list page to be added;
[0056] The to-be-added list page is generated according to the function information and the data information.
[0057] In this embodiment, according to the functional permissions and data permissions corresponding to the list page to be added, the encapsulation components corresponding to the functional permissions are respectively configured for the list page to be added, and the encapsulation components corresponding to the data permissions are configured for the list page to be added, so that when the list page is subsequently generated according to the list page configuration information, the encapsulation components corresponding to the functional permissions and the encapsulation components corresponding to the data permissions can be called to obtain the functional information of the list page to be added and the data information of the list page to be added, so that the list page to be added can be generated according to the functional information and the data information. It can be seen that this embodiment analyzes the functional permissions and data permissions contained in the business requirements of the list page to be added, configures the encapsulation components corresponding to the functional permissions and the encapsulation components corresponding to the data permissions for the list page to be added, thereby completing the process of generating the list page by configuration. The entire process is simple and convenient. It is only necessary to configure the corresponding encapsulation components according to the business requirements. Since the encapsulation components store the code that can realize the corresponding requirements, there is no need to rewrite the corresponding code every time the list page is generated, thereby improving the generation efficiency and difficulty of the list page. In addition, when some common properties of the list page need to be modified, you only need to modify the corresponding packaged components, without having to modify each list page, so subsequent maintenance is also relatively simple and convenient.
[0058] Based on the content of the above embodiment, in this embodiment, the business requirements further include: default screening conditions;
[0059] Accordingly, configuring corresponding list page configuration information for the list page to be added according to the business requirements of the list page to be added specifically includes:
[0060] According to the default filtering condition of the list page to be added, configuring a packaging component corresponding to the default filtering condition for the list page to be added;
[0061] Accordingly, generating the to-be-added list page according to the function information and the data information specifically includes:
[0062] The to-be-added list page is generated according to the function information and the data information, and the function information and data information displayed by the to-be-added list page in a default state are determined according to the configured packaging component corresponding to the default filtering condition.
[0063] In this embodiment, the business demand also includes the default filtering conditions of the list page. For example, assuming that the default filtering conditions are that the list page needs to display the data of the most recent month by default and the functions that need to be displayed by default include the function-house transaction information, while the information of other months and other functions can be realized by further turning pages or inquiries. Therefore, in response to this business demand, it is necessary to configure a filtering package component corresponding to the default filtering condition for the list page to be added according to the default filtering condition of the list page to be added, and then generate the list page to be added according to the functional information and the data information, and determine the functional information and data information displayed by the list page to be added in the default state according to the configured filtering package component corresponding to the default filtering condition. For example, it is determined that the list page to be added displays the house transaction information of the most recent month in the default state.
[0064] Based on the content of the above embodiment, in this embodiment, the business requirements also include: supporting fuzzy search;
[0065] Accordingly, configuring corresponding list page configuration information for the list page to be added according to the business requirements of the list page to be added specifically includes:
[0066] According to the requirement of supporting fuzzy search for the list page to be added, configuring a packaging component corresponding to the requirement of supporting fuzzy search for the list page to be added;
[0067] Accordingly, generating the to-be-added list page according to the function information and the data information specifically includes:
[0068] The to-be-added list page is generated according to the function information and the data information, and the fuzzy search function is added to the to-be-added list page according to the configured encapsulation component corresponding to the requirement of supporting fuzzy search.
[0069] In this embodiment, the business requirement also includes supporting fuzzy search, that is, the function of fuzzy search needs to be added to the generated list page. Therefore, after calling the encapsulation component corresponding to the functional authority and the encapsulation component corresponding to the data authority, obtaining the functional information of the list page to be added and the data information of the list page to be added, and generating the list page to be added according to the functional information and the data information, the fuzzy search function is further added to the list page to be added according to the configured encapsulation component corresponding to the requirement of supporting fuzzy search, so that the generated list page has the fuzzy search function.
[0070] Based on the content of the above embodiment, in this embodiment, the business requirement further includes: an encapsulation structure type for encapsulating search return data;
[0071] Accordingly, configuring corresponding list page configuration information for the list page to be added according to the business requirements of the list page to be added specifically includes:
[0072] According to the encapsulation structure type for encapsulating search return data of the list page to be added, configuring an encapsulation component corresponding to the requirements of the encapsulation structure type for the list page to be added;
[0073] Accordingly, according to the function information and the data information, the list page to be added is generated, and according to the configured encapsulation component corresponding to the requirement of supporting fuzzy search, the function of fuzzy search is added to the list page to be added, specifically including:
[0074] According to the functional information and the data information, the list page to be added is generated, and according to the configured packaging components corresponding to the requirements of supporting fuzzy search, the function of fuzzy search is added to the list page to be added, and according to the configured packaging components corresponding to the requirements of the packaging structure type, the packaging method of the search return data is determined.
[0075] In this embodiment, different packaging methods are required according to different business requirements, such as whether to paginate, whether to return only information of a few fixed preset fields, whether to add information not stored in the database, etc. Therefore, in this embodiment, after generating the list page to be added according to the function information and the data information, and adding the fuzzy search function to the list page to be added according to the configured packaging component corresponding to the requirement of supporting fuzzy search, it is also necessary to determine the packaging method of the search return data according to the configured packaging component corresponding to the requirement of the packaging structure type, and encapsulate the search return data according to the determined packaging method, so as to meet the display method of the search return data.
[0076] Based on the content of the above embodiment, in this embodiment, the list page generation method further includes:
[0077] When an exception occurs in the process of generating the list page to be added according to the list page configuration information, the operation of generating the list page to be added is interrupted, and a default exception result is directly returned.
[0078] In this embodiment, in addition to the basic function configuration described in the above embodiment, exception handling can also be performed in the outer layer, and a default return result can be configured, for example, when catching an exception, it is directly caught and the default return result is directly returned. This can avoid machine crashes or other failures.
[0079] Combine the following Figure 2The list page generation process provided by this embodiment is introduced. Before the introduction, the background of the list page generation method provided by this embodiment is explained.
[0080] Usually, a B-end system will be developed around one or several entities, so the list page of the B-end system will also be mainly displayed based on this one or several entities. However, it is not realistic to customize only one list page for an entity, especially when an entity has quite a lot of states that need to be circulated. Different roles using the system may only care about some states of this entity and not others. In this case, it may be necessary to organize several states of the entity into different state sets (that is, different functional permissions) according to the business, and each list page only needs to focus on a fixed state set. On the other hand, different users see different amounts of information in the system. From a geographical point of view, a colleague in a store in a certain district of a city may only see the orders of his own store, while the manager of a certain region needs to see all the orders of the entire region. From the management level, a specialist who needs to follow up on actual business every day may only see the orders of the customers he connects with, but the superior of this specialist may need to see all the orders of a group of people he manages. From the perspective of roles, system developers and maintainers should see all orders on the system, while product operators who connect the system to a certain city only need to see all orders in that city. Moreover, this data range is not controlled by visible filter items, but is determined by the user after logging into the system. Therefore, the information a user can see when opening a list page depends on two aspects: 1. The user's functional permissions, such as which state sets can be seen; 2. The user's data permissions, can they only see their own data, or can they also see the data of subordinates.
[0081] But the list page contains more than just these, there are also filter items and sorting conditions that users can click to select, and it also distinguishes whether fuzzy queries can be supported.
[0082] So at first glance, these list pages don't seem to have many similarities except that they revolve around the same entity. There is no correlation between the list pages, so each list is maintained by an independent set of code, and the reusability between them is low. However, as the system grows larger, more and more list pages are sorted out to match the business scenarios. The horizontal expansion method will definitely make the system very bloated, with a lot of duplicate code, and it is also very unfriendly to new system maintainers. At the same time, as the business expands, there will be some attributes that need to be reused between list pages. If these common attributes are not well encapsulated in a unified manner, they may be missed when performing related iterations later, leading to online problems.
[0083] The list page configuration idea provided by the embodiment of the present invention can solve this problem in combination with the business process. The configurations that the currently implemented list page needs to support include: ① function permission configuration; ② data permission configuration; ③ default filtering conditions defined by the list page; ④ whether to support fuzzy search retrieval method; ⑤ structure encapsulation of returned data, etc.
[0084] In this embodiment, the configuration can be placed anywhere, such as in the code, configuration file, database or cache.
[0085] like Figure 2 As shown, for ① function permission configuration: the interface name of the function entry is the unique identifier for determining a list page. Here, the identifier of the function entry permission can be used as the unique identifier of the function entry, because the identifier of the function permission of a function entry is usually unique. This implementation is achieved by reusing a string as a unique identifier of the interface name of the function entry. If saved through a configuration file, it can be used as the key of the configuration array. If saved through a database, a unique index can be set for the column to ensure the uniqueness of the interface name in a non-manual way while the system is expanding. For the verification of function entry permissions, since a more mature system will definitely have encapsulated verification of permission points, the main thing saved here is also a defined permission point, which is usually also a string. If the verification of function permissions is more complicated, or there are many places that require special calculations and processing, function permissions and data permissions can be processed together.
[0086] Regarding ②Data permission configuration: Data permissions can be defined in many different ways in different usage scenarios. For example, in the current B-side system, there are four common ways: you can only see your own orders, you can only see your own and your subordinates' orders, you can see your own company's orders, and you can see all orders in the current city. These four definitions correspond to four permission points, which are then judged and calculated to be converted into corresponding query conditions. However, not all data permission checks follow this rule. Therefore, considering that this part of the function has a certain computational complexity, it is usually encapsulated as a separate method, which can be directly saved into the configuration through EL expressions or simpler methods. Since data permissions usually refer to the interface related to the current login information and the current login request, the method parameters are also relatively controllable.
[0087] Regarding the default filter conditions defined on the ③ list page: the list page is usually accompanied by filtering and sorting functions, and the default filter items are actually consistent with the filter items entered by the page customer in form, except that one is manually entered by the customer and the other is automatically added by the backend system. The default filter item is usually an array, the array key is the key of the search item, and the array content is the content of the search item. Usually, the filtering relationship between these arrays is an "and" relationship. These default filter items can be used as the default values of the filter conditions in a request. When there are filter conditions entered in the request, they are merged into the default values of the current filter items.
[0088] Regarding ④ whether to support fuzzy search: the query definitely needs a certain query function as support. At present, relational databases are mainly used, but it is difficult to support fuzzy search. Usually some simple fuzzy search can be done, but usually no more than two fields are queried. Therefore, fuzzy search can be performed in other forms. If there is only one query method supported in the current system, then this flag value can be ignored.
[0089] Regarding ⑤ Structural encapsulation of returned data: some simple processing is required before returning the data, such as adding paging information, adding information not stored in the database, filtering and returning only a few fixed fields, etc. Different methods of encapsulation can be used according to the needs of different scenarios.
[0090] In addition to the basic functions, you can also do exception handling in the outer layer, such as configuring a default return result, and directly catch and return the default return result when catching an exception, so as to avoid crashes caused by exceptions.
[0091] Figure 3 A schematic diagram of the structure of a list page generating device provided by an embodiment of the present invention is shown. Figure 3 As shown, the list page generation device provided by the embodiment of the present invention includes: a configuration module 21 and a generation module 22, wherein:
[0092] Configuration module 21, configured to configure corresponding list page configuration information for the list page to be added according to the business requirements of the list page to be added; the business requirements include function permissions and data permissions; the list page configuration information is a package component that can meet the business requirements;
[0093] The generating module 22 is used to generate the list page to be added according to the list page configuration information.
[0094] Since the list page generating device provided in this embodiment can be used to execute the list page generating method described in the above embodiment, its working principle and beneficial effects are similar and will not be described in detail here.
[0095] Based on the same inventive concept, another embodiment of the present invention provides an electronic device, see Figure 4 , the electronic device specifically includes the following contents: a processor 301, a memory 302, a communication interface 303 and a communication bus 304;
[0096] The processor 301, the memory 302, and the communication interface 303 communicate with each other through the communication bus 304; the communication interface 303 is used to realize information transmission between various devices;
[0097] The processor 301 is used to call the computer program in the memory 302. When the processor executes the computer program, all the steps of the above-mentioned list page generation method are implemented. For example, when the processor executes the computer program, the following steps are implemented: according to the business requirements of the list page to be added, the corresponding list page configuration information is configured for the list page to be added; the business requirements include functional permissions and data permissions; the list page configuration information is a packaged component that can meet the business requirements; according to the list page configuration information, the list page to be added is generated.
[0098] Based on the same inventive concept, another embodiment of the present invention provides a non-transitory computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, all the steps of the above-mentioned list page generation method are implemented. For example, when the processor executes the computer program, the following steps are implemented: according to the business requirements of the list page to be added, corresponding list page configuration information is configured for the list page to be added; the business requirements include functional permissions and data permissions; the list page configuration information is a packaged component that can meet the business requirements; according to the list page configuration information, the list page to be added is generated.
[0099] In addition, the logic instructions in the above-mentioned memory can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0100] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the embodiments of the present invention. Those of ordinary skill in the art may understand and implement them without creative effort.
[0101] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, or of course by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., and includes a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the list page generation method described in each embodiment or some parts of the embodiment.
[0102] In addition, in the present invention, terms such as "first" and "second" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0103] In addition, in the present invention, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0104] In addition, in the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0105] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for generating a list page, It is characterized in that include: According to the business requirements of the list page to be added, corresponding list page configuration information is configured for the list page to be added; The business requirements include functional permissions and data permissions; the list page configuration information is a packaged component that can meet the business requirements; wherein the functional permissions are used to limit the list page functions, and the data permissions are used to limit the data display scope; Generating the list page to be added according to the list page configuration information; configuring the list page to be added with corresponding list page configuration information according to the business requirements of the list page to be added, specifically includes: According to the functional authority and data authority of the list page to be added, a package component corresponding to the functional authority is configured for the list page to be added, and a package component corresponding to the data authority is configured for the list page to be added; wherein the package component corresponding to the functional authority is one or more; Generating the list page to be added according to the list page configuration information specifically includes: Call the encapsulation component corresponding to the functional permission to obtain the functional information of the list page to be added; Call the encapsulation component corresponding to the data permission to obtain the data information of the list page to be added; The to-be-added list page is generated according to the function information and the data information.
2. The method for generating a list page according to claim 1, It is characterized in that The business requirements also include: default screening conditions; Accordingly, configuring corresponding list page configuration information for the list page to be added according to the business requirements of the list page to be added specifically includes: According to the default filtering condition of the list page to be added, configuring a packaging component corresponding to the default filtering condition for the list page to be added; Accordingly, generating the to-be-added list page according to the function information and the data information specifically includes: The to-be-added list page is generated according to the function information and the data information, and the function information and data information displayed by the to-be-added list page in a default state are determined according to the configured packaging component corresponding to the default filtering condition.
3. The method for generating a list page according to claim 1, It is characterized in that The business requirements also include: supporting fuzzy search; Accordingly, configuring corresponding list page configuration information for the list page to be added according to the business requirements of the list page to be added specifically includes: According to the requirement of supporting fuzzy search for the list page to be added, configuring a packaging component corresponding to the requirement of supporting fuzzy search for the list page to be added; Accordingly, generating the to-be-added list page according to the function information and the data information specifically includes: The to-be-added list page is generated according to the function information and the data information, and the fuzzy search function is added to the to-be-added list page according to the configured encapsulation component corresponding to the requirement of supporting fuzzy search.
4. The method for generating a list page according to claim 3, It is characterized in that The business requirements also include: an encapsulation structure type for encapsulating search return data; Accordingly, configuring corresponding list page configuration information for the list page to be added according to the business requirements of the list page to be added specifically includes: According to the encapsulation structure type for encapsulating search return data of the list page to be added, configuring an encapsulation component corresponding to the requirements of the encapsulation structure type for the list page to be added; Accordingly, according to the function information and the data information, the list page to be added is generated, and according to the configured encapsulation component corresponding to the requirement of supporting fuzzy search, the function of fuzzy search is added to the list page to be added, specifically including: According to the functional information and the data information, the list page to be added is generated, and according to the configured packaging components corresponding to the requirements of supporting fuzzy search, the function of fuzzy search is added to the list page to be added, and according to the configured packaging components corresponding to the requirements of the packaging structure type, the packaging method of the search return data is determined.
5. The method for generating a list page according to claim 1, It is characterized in that Also includes: When an exception occurs in the process of generating the list page to be added according to the list page configuration information, the operation of generating the list page to be added is interrupted, and a default exception result is directly returned.
6. A list page generating device, It is characterized in that include: A configuration module, used to configure corresponding list page configuration information for the list page to be added according to the business requirements of the list page to be added; The business requirements include functional permissions and data permissions; the list page configuration information is a packaged component that can meet the business requirements; wherein the functional permissions are used to limit the list page functions, and the data permissions are used to limit the data display scope; A generating module, used for generating the list page to be added according to the list page configuration information; When the configuration module is used to configure the corresponding list page configuration information for the list page to be added according to the business requirements of the list page to be added, it is specifically used to: configure the encapsulation component corresponding to the functional authority for the list page to be added according to the functional authority and data authority of the list page to be added, and configure the encapsulation component corresponding to the data authority for the list page to be added; wherein the encapsulation component corresponding to the functional authority is one or more; When the generation module is used to generate the list page to be added according to the list page configuration information, it is specifically used to: call the encapsulation component corresponding to the functional authority to obtain the functional information of the list page to be added; call the encapsulation component corresponding to the data authority to obtain the data information of the list page to be added; generate the list page to be added according to the functional information and the data information.
7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the list page generating method according to any one of claims 1 to 5 is implemented.
8. A non-transitory computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the method for generating a list page according to any one of claims 1 to 5 is implemented.
