Object selection method, apparatus, device, storage medium, and program product
Patent Information
- Application Number
- CN202210053237.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-18
- Publication Date
- 2026-10-27
- Estimated Expiration
- 2042-01-18
AI Technical Summary
[0004]然而,相关技术中逐个对交互对象进行查找,或逐个打开组织架构树进行对象选择的方式,使得选择多个交互对象所需要的操作较为复杂,进而使得选择多个交互对象的效率较低
[0049]在通过子程序的显示界面触发对象选择时,可以打开与子程序相对应的宿主程序(第一应用程序)的对象选择界面,以在接收到基于对象选择界面中显示的候选群组的群组对象的选择操作时,将接收到选择操作的群组对象确定为子程序所需的目标对象;从而使得子程序在进行对象选择时,可以从宿主程序的群组中集中进行对象选择,提供了一种子程序从宿主程序的群组中进行对象选择的可实现方案,从而简化了对象选择过程,提高了对象选择效率。
Smart Images

Figure CN116501211B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of human-computer interaction technology, and in particular to an object selection method, apparatus, device, storage medium, and program product. Background Technology
[0002] To improve interaction efficiency, when using an application, the first object can often select multiple interaction objects so that it can interact with multiple interaction objects simultaneously.
[0003] In related technologies, in applications containing organizational structures, when a first object selects multiple interactive objects via a computer device, it can expand each organizational structure tree one by one, select objects in the organizational structure tree one by one, or search for the required interactive objects one by one, in order to complete the selection of multiple interactive objects.
[0004] However, the methods used in related technologies, such as searching for interactive objects one by one or opening organizational trees one by one to select objects, make the operation required to select multiple interactive objects more complicated, which in turn makes the efficiency of selecting multiple interactive objects lower. Summary of the Invention
[0005] This application provides an object selection method, apparatus, device, storage medium, and program product, which can simplify the object selection process and improve object selection efficiency. The technical solution is as follows:
[0006] The subroutine's display interface is shown; the subroutine is an application that depends on a first application to run; the first application is an application that contains an organizational structure.
[0007] In response to receiving a target operation performed based on the display interface, an object selection interface of a first application is displayed; the object selection interface displays at least one candidate group; the candidate group is determined based on the interaction update time of each group in the first application;
[0008] In response to receiving a trigger operation on a target group, display the various group objects of the target group; the target group is at least one candidate group among the candidate groups that received the trigger operation;
[0009] The group object that receives the selection operation from each group object in the target group is identified as the target object.
[0010] On the other hand, an object selection device is provided, the device comprising:
[0011] The first interface display module is used to display the display interface of the subroutine; the subroutine is an application that depends on the first application to run; the first application is an application that contains an organizational structure.
[0012] The second interface display module is used to display an object selection interface of the first application in response to receiving a target operation based on the display interface; the object selection interface displays at least one candidate group; the candidate group is determined based on the interaction update time of each group in the first application;
[0013] An object display module is configured to display various group objects of the target group in response to receiving a trigger operation on the target group; the target group is at least one candidate group among the candidate groups that received the trigger operation.
[0014] The object determination module is used to determine the group object that received the selection operation from each group object of the target group as the target object.
[0015] In one possible implementation, the subroutine's display interface includes a target control; the target control is used to invoke the object selection interface of the first application.
[0016] The second display module is used to display the object selection interface of the first application in response to receiving a trigger operation on the target control.
[0017] In one possible implementation, the device further includes:
[0018] The node display module is used to display a group selection node in the object selection interface in response to receiving a target operation performed based on the display interface;
[0019] A group display module is configured to display at least one of the candidate groups in the object selection interface in response to receiving a trigger operation on the group selection node.
[0020] In one possible implementation, the node display module is configured to display a group selection node in the object selection interface in response to the target control having an object selection attribute; the object selection attribute is used to indicate the determination of the target object from the candidate group.
[0021] In one possible implementation, the object display module includes:
[0022] The checkbox display submodule is used to display checkboxes corresponding to each group object of the target group;
[0023] The device further includes:
[0024] The status setting module is used to set the checkbox corresponding to the group object that received the selection operation to the selected state before the object determination module determines the group object that received the selection operation from each group object of the target group as the target object.
[0025] In one possible implementation, the checkbox display submodule includes:
[0026] The identifier acquisition unit is used to acquire the organization identifier of each group object in the target group;
[0027] A checkbox display unit is configured to display the checkbox corresponding to a first group object with a first display attribute; the organization identifier of the first group object indicates that the first group object does not belong to the target organization.
[0028] The checkbox display unit is used to display the checkbox corresponding to the second group object with a second display attribute; the organization identifier of the second group object indicates that the second group object belongs to the target organization; the second display attribute is different from the first display attribute.
[0029] In one possible implementation, the first display attribute is used to indicate that the checkbox is in an unselectable state;
[0030] The second display attribute is used to indicate that the checkbox is in an selectable state.
[0031] In one possible implementation, the device further includes:
[0032] An information display module is configured to display a prompt message in response to receiving a selection operation on the checkbox displayed with the first display attribute; the prompt message is used to indicate that the group object corresponding to the checkbox does not belong to the target organization.
[0033] In one possible implementation, the device further includes:
[0034] The list retrieval module is used to retrieve the interaction list of the first application; the interaction list contains at least two interaction items.
[0035] The type acquisition module is used to acquire the interaction type corresponding to at least two of the interactive items; the interaction type includes group type and non-group type.
[0036] The group determination module is used to determine at least one candidate group based on the interaction type corresponding to each of the at least two interactive items.
[0037] In one possible implementation, the group display module is configured to display at least one of the candidate groups in the object selection interface according to the display order of at least one of the candidate groups in the interaction list.
[0038] In one possible implementation, the object selection interface includes a target object display area and an object selection area; the target object display area is distinct from the object selection area; the object selection area is used to display at least one of the candidate groups.
[0039] The device further includes:
[0040] The object adding module is used to add the target object to the target object display area.
[0041] In one possible implementation, the target object display area includes a determining control; the device further includes:
[0042] The object return module is used to close the object selection interface and return the target object to the subroutine in response to receiving a trigger operation on the determined control.
[0043] In one possible implementation, the device further includes:
[0044] The target object display module is configured to, after the target object is returned to the subroutine, in response to receiving a trigger operation on the target control again, display the target object that has been returned to the subroutine in the target object display area.
[0045] On the other hand, a computer device is provided, the computer device including a processor and a memory, the memory storing at least one computer program, the at least one computer program being loaded and executed by the processor to implement the object selection method described above.
[0046] On the other hand, a computer-readable storage medium is provided, wherein at least one computer program is stored in the computer program, which is loaded and executed by a processor to implement the object selection method described above.
[0047] On the other hand, a computer program product is provided, the computer program product comprising at least one computer program, the computer program being loaded and executed by a processor to implement the object selection method provided in the various alternative implementations described above.
[0048] The technical solution provided in this application may include the following beneficial effects:
[0049] When object selection is triggered through the subroutine's display interface, the object selection interface of the host program (first application) corresponding to the subroutine can be opened. When a selection operation is received based on the candidate groups displayed in the object selection interface, the group object receiving the selection operation is determined as the target object required by the subroutine. This allows the subroutine to select objects from the host program's groups, providing an feasible solution for the subroutine to select objects from the host program's groups, thereby simplifying the object selection process and improving object selection efficiency.
[0050] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and do not limit this application. Attached Figure Description
[0051] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0052] Figure 1 A schematic diagram of an object selection system corresponding to an object selection method illustrated in an exemplary embodiment of this application is shown.
[0053] Figure 2 A flowchart of an exemplary embodiment of this application is shown;
[0054] Figure 3 A flowchart of an exemplary embodiment of this application is shown;
[0055] Figure 4 A schematic diagram of a node of a first application provided in an exemplary embodiment of this application is shown;
[0056] Figure 5 A schematic diagram of an exemplary embodiment of this application is shown.
[0057] Figure 6 A schematic diagram illustrating candidate group filtering in an exemplary embodiment of this application is shown;
[0058] Figure 7 This illustration shows a schematic diagram of a group display area provided in an exemplary embodiment of this application;
[0059] Figure 8 A schematic diagram illustrating the target group is shown in an exemplary embodiment of this application;
[0060] Figure 9 A schematic diagram of a target group provided in an exemplary embodiment of this application is shown;
[0061] Figure 10 A schematic diagram of an object selection interface provided in an exemplary embodiment of this application is shown;
[0062] Figure 11 A schematic diagram of an object selection interface shown in an exemplary embodiment of this application is illustrated;
[0063] Figure 12 An interactive schematic diagram of an object selection method illustrated in an exemplary embodiment of this application is shown;
[0064] Figure 13 A block diagram of an object selection device illustrated in an exemplary embodiment of this application is shown;
[0065] Figure 14 This is a structural block diagram of a computer device according to an exemplary embodiment;
[0066] Figure 15 This is a structural block diagram of a computer device according to an exemplary embodiment. Detailed Implementation
[0067] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.
[0068] Figure 1 A schematic diagram of an object selection system corresponding to an object selection method illustrated in an exemplary embodiment of this application is shown. The system may include a terminal 110 and a server 120.
[0069] The terminal 110 can be a mobile phone, desktop computer, tablet computer, game console, e-book reader, multimedia playback device, wearable MP3 player (Moving Picture Experts Group Audio Layer III), MP4 player (Moving Picture Experts Group Audio Layer IV), laptop computer, or other electronic devices. The terminal 110 can be a terminal with a first application installed. This first application can be an application with organizational structure building capabilities; illustratively, it can be a social networking application, a financial application, a shopping application, a game application, a video application, an audio application, etc.
[0070] Server 120 is used to provide background services for the first application in terminal 110. This server can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms. In this embodiment, server 120 can be used to realize information interaction between the subroutine and the first application, thereby enabling interface switching and display between the subroutine and the first application.
[0071] Optionally, the system described above includes one or more servers 120 and multiple terminals 110. This application embodiment does not limit the number of servers 120 and terminals 110.
[0072] The terminal and server are connected via a communication network. Optionally, the communication network can be a wired network or a wireless network.
[0073] Optionally, the aforementioned wireless or wired networks use standard communication technologies and / or protocols. The network is typically the Internet, but can also be any network, including but not limited to Local Area Networks (LANs), Metropolitan Area Networks (MANs), Wide Area Networks (WANs), mobile, wired or wireless networks, private networks, or any combination of virtual private networks. In some embodiments, technologies and / or formats including Hyper Text Markup Language (HTML), Extensible Markup Language (XML), etc., are used to represent data exchanged over the network. Furthermore, conventional encryption technologies such as Secure Socket Layer (SSL), Transport Layer Security (TLS), Virtual Private Networks (VPNs), and Internet Protocol Security (IPsec) can be used to encrypt all or some links. In other embodiments, customized and / or dedicated data communication technologies can be used to replace or supplement the aforementioned data communication technologies. This application does not impose any limitations.
[0074] Figure 2A flowchart illustrating an exemplary embodiment of this application is shown. This object selection method can be executed by a computer device, which can be implemented as follows: Figure 1 The terminal or server shown. For example... Figure 2 As shown, the object selection method may include the following steps:
[0075] Step 210: Display the subroutine's interface; the subroutine is an application that depends on the first application to run; the first application is an application that contains the organizational structure.
[0076] In this embodiment of the application, the subroutine may be an interactive H5 (HTML 5, the fifth generation of HTML standard specification), or the subroutine may be a mini program; interactive H5 refers to a front-end page made based on the HTML language, which can support video and audio playback events as well as touch screen interaction events.
[0077] In one exemplary embodiment of this application, the interactive H5 can be a front-end page opened in a first application via a browser built into the first application.
[0078] A mini-program is an application that can be used without downloading or installing. To provide users with more diverse business services, developers can create corresponding mini-programs for terminal applications (such as instant messaging applications, shopping applications, email applications, music playback applications, etc.). The mini-program can be embedded as a sub-application into the terminal application, and by running the sub-application (i.e., the corresponding mini-program) within the application, it can provide users with corresponding business services.
[0079] The aforementioned first application is the host program of the subroutine; the first application is an application containing an organizational structure; wherein, the organizational structure can be a specified type of organizational structure, the specified type being used to indicate the functional area corresponding to the organizational structure, illustratively, the organizational structure can be used for information interaction within an enterprise, or the organizational structure can be used for resource scheduling between teams; the specified type can be configured differently for different first applications, and this application does not limit the specified type of organizational structure.
[0080] Optionally, the first application can be an enterprise version of an instant messaging application.
[0081] Step 220: In response to receiving a target operation performed based on the display interface, display an object selection interface of the first application; the object selection interface displays at least one candidate group; the candidate group is determined based on the interaction update time of each group in the first application.
[0082] This target operation is used to trigger the object selection operation.
[0083] In the embodiments of this application, the object selection operation triggered by the target operation can be a single selection operation or a multi-select operation; this application does not impose any restrictions on this.
[0084] In one possible implementation, the interaction update time of each group can be used to indicate the latest interaction time performed by group members in each group. Indicatively, the interactions performed by group members may include group members speaking in the group, uploading files, editing files, posting announcements, and other group interaction items. This application does not limit the interactions performed by group members.
[0085] In one possible implementation, the candidate groups are determined based on the order of the interaction update times of each group in the first application from the most recent to the furthest from the current time.
[0086] Optionally, the time interval between the interaction update time corresponding to at least one candidate group and the current time can be less than the time interval threshold, so as to filter out the groups in the first application that have recently had interaction times.
[0087] Step 230: In response to receiving a trigger operation on a target group, display the various group objects of the target group; the target group is a candidate group that received the trigger operation from at least one candidate group.
[0088] Step 240: Identify the group objects that received the selection operation from each group object in the target group as the target objects.
[0089] In this embodiment, the operation of selecting an object in response to a target operation is a single selection operation, and the number of target objects is one; the operation of selecting an object in response to a target operation is a multi-selection operation, and the number of target objects is at least one.
[0090] When the object selection method provided in this application is executed by the server, the server can send interface display information to the terminal based on the interface display request sent by the terminal based on the received interface display operation or target operation, so that the terminal can display the interface based on the interface display information, including the display interface of the display subroutine and the object selection interface of the first application, etc.; the server can also determine the target object and send the target object to the terminal when it receives the object selection request sent by the terminal based on the received trigger operation or selection operation, so as to realize the contents of steps 210 to 240 above.
[0091] In summary, the object selection method provided in this application, when triggering object selection through the display interface of a subroutine, can open the object selection interface of the host program (first application) corresponding to the subroutine. Upon receiving a selection operation on a group object based on the candidate groups displayed in the object selection interface, the group object receiving the selection operation is determined as the target object required by the subroutine. Since the candidate groups in the object selection interface are determined based on the interaction update time of each group in the first application, when selecting objects in the host program through a subroutine, objects in the most recently interacted groups can be selected first. Generally, the closer the interaction time of a group is to the current time, the greater the probability that objects in that group will be selected. Therefore, the solution shown in this application allows for priority selection of objects within recently interacted groups in the host program through the subroutine, thereby simplifying the object selection process and improving object selection efficiency.
[0092] Figure 3 A flowchart illustrating an exemplary embodiment of this application is shown. This object selection method can be executed by a computer device, which can be implemented as follows: Figure 1 The terminal or server shown. For example... Figure 3 As shown, the object selection method may include the following steps:
[0093] Step 310: Display the subroutine's interface; the subroutine is an application that depends on the first application to run; the first application is an application that contains the organizational structure.
[0094] Optionally, the subroutine's display interface includes a target control; this target control is used to invoke the object selection interface of the first application.
[0095] In this application embodiment, the target control can be a control used to trigger object selection in different application scenarios. For example, when the application scenario involves creating a group based on the subroutine's display interface, the target control can be implemented as a group creation control. When the application scenario involves viewing uploaded content and filtering the upload subject based on the subroutine's display interface, the target control can be implemented as a subject filtering control; for example, the uploaded content may include reports, reference materials, etc. When the application scenario involves initiating a temporary meeting based on the subroutine's display interface, the target control can be implemented as a meeting initiation control. This application does not limit the scenario of object selection triggered by the subroutine, nor does it limit the implementation form of the target control.
[0096] Since the first application is an application that includes an organizational structure, that is, there can be various types of nodes in the organizational structure of the first application; these nodes can include group chat nodes, department nodes, and object nodes, etc.; among them, the department node is a tree structure; an object node in the first application can belong to one or more department nodes. Figure 4 A schematic diagram of a node of a first application provided in an exemplary embodiment of this application is shown, such as... Figure 4 As shown, the organizational structure of the first application may include group chat nodes 410, department nodes 420, and object nodes 430; wherein, a department node may contain multiple object nodes; this application does not limit the number of group chat nodes, department nodes, and object nodes.
[0097] Therefore, when setting the target control, it is appropriate to adapt to the characteristic of having multiple types of nodes in the first application. In some application scenarios, the target control can have an object selection attribute. The target control with the relevant selection attribute is used to trigger object selection in the group nodes of the first application, as well as the selection of object nodes. In other scenarios, the target control can have both an object selection attribute and a department selection attribute. The target control with the department selection attribute is used to trigger the selection of department nodes in the first application.
[0098] In one possible implementation, the subroutine's display interface can show a target control containing at least one of the following attributes: object selection attribute or department selection attribute; or, the subroutine's display interface can also show a target control containing an object selection sub-control and a department selection sub-control; wherein, the object selection sub-control is used to trigger the selection of a target object from a group node when a selection operation is received; the department selection sub-control is used to trigger the selection of a target object from a department node when a selection operation is received; the object selection sub-control and the department selection sub-control can be selected simultaneously; the computer device can determine the node for object selection based on the received selection operation on the sub-control; illustratively, when the sub-control in the target control that receives the selection operation is an object selection sub-control, the computer device determines that the node for object selection includes a group node and displays the corresponding node content; when the sub-control in the target control that receives the selection operation is a department selection sub-control, the computer device determines that the node for object selection includes a department node and displays the corresponding node content; when the sub-control in the target control that receives the selection operation is both an object selection sub-control and a department selection sub-control, the computer device determines that the node for object selection includes both a group node and a department node and displays the corresponding node content. The object node can be any of the nodes mentioned above that determines the object selection; or it can be the node that determines the object selection when the child control in the target control that receives the selection operation is the object selection child control.
[0099] Step 320: In response to receiving the target operation performed based on the display interface, display the group selection node in the object selection interface.
[0100] This target operation is used to trigger the object selection operation.
[0101] In this embodiment, the first application can provide the subroutine with the function of selecting objects from the communication list of the first application through JSAPI (JavaScript Application Programming Interface); correspondingly, when the subroutine receives a target operation based on the display interface, it can invoke the object selection interface of the first application through JSAPI to select the target object in the object selection interface.
[0102] Table 1 shows the parameter definitions of the JSAPI provided in an exemplary embodiment of this application:
[0103] Table 1
[0104]
[0105] When the target operation of a subroutine-based display interface is triggered by a target control contained within the subroutine's display interface, the process of displaying a group selection node in the object selection interface can be implemented as follows:
[0106] In response to receiving a trigger operation on the target control, the object selection interface of the first application is displayed.
[0107] In this embodiment, the content displayed in the object selection interface can be determined by the type array passed to the JSAPI. Based on the trigger operation on the target control, the computer device can generate a type array corresponding to the control in the target control that received the trigger operation, and pass this type array to the JSAPI; thus, the subroutine can invoke the object selection interface corresponding to the type array through the JSAPI; wherein, the type array can include three combinations: [user] (object), [department] (department), and [user, department], representing the ability to select an object, select a department, or select both an object and a department in the object selection interface, respectively; wherein, when the passed type array is [department], the group chat selection node is not displayed.
[0108] As an illustration, when the `type` array passed to the JSAPI contains `[user]`, a group selection node is displayed in the object selection interface. That is, in response to the target control having an `object selection` property, a group selection node is displayed in the object selection interface; this `object selection` property indicates which target object to select from the candidate groups.
[0109] Figure 5 The diagram illustrates an exemplary embodiment of the interface switching process provided in this application, such as... Figure 5 As shown; Figure 5 The subroutine's display interface 510 is for viewing report content. This display interface includes a main filtering control 511, which is a target control with object selection and department selection attributes. When the computer device receives a selection operation based on the main filtering control 511, it can invoke the object selection interface 520 of the first application, which includes a group selection node 521. (Illustrative example, such as...) Figure 5As shown, the object selection interface of the first application can be directly overlaid on the display interface of the subroutine; or, in another possible implementation, the computer device can close the display interface of the subroutine and then display the object selection interface of the first application; or, the computer device can also display the object selection interface of the first application independently of the display interface of the subroutine, that is, the display area of the object selection interface of the first application is different from the display area of the display interface of the subroutine; this application does not limit the display position relationship between the object selection interface of the first application and the display interface of the subroutine.
[0110] Among them, due to Figure 5 The main filtering control 511 is a target control with object selection and department selection attributes. Therefore, while selecting objects in the candidate group corresponding to the group selection node 521, department nodes and object nodes can also be selected as target objects.
[0111] Step 330: In response to receiving a trigger operation on the group selection node, display at least one candidate group in the object selection interface.
[0112] The candidate groups were determined based on the interaction time of each group in the first application.
[0113] Since the number of candidate groups in the first application may be relatively large, in order to reduce the loading time of candidate groups and improve the efficiency of rendering and displaying candidate groups, in this embodiment of the application, the computer device can obtain the interaction list of the first application and cache the interaction list in memory; when it is necessary to display candidate groups in the object selection interface, the computer device can retrieve the cached interaction list from memory, which contains at least two interaction items; before displaying at least one candidate group in the object selection interface, the computer device can obtain at least one candidate group for display based on the interaction type of each interaction item in the interaction list.
[0114] Optionally, the interaction list can be an interaction list already displayed in the main interface of the first application.
[0115] The above process can be implemented as follows:
[0116] Obtain the interaction list of the first application; the interaction list contains at least two interaction items;
[0117] Obtain the interaction type for each of at least two interactive items; the interaction type includes group type and non-group type.
[0118] Based on the interaction types corresponding to at least two interactive items, at least one candidate group is determined.
[0119] The computer device identifies interactive items with a group interaction type as candidate groups; these interactive items can be implemented as interactive boxes in the interaction list of the first application for displaying interactive content; for example, these interactive items can be implemented as dialog boxes in the interaction list of the first application.
[0120] Figure 6 A schematic diagram illustrating candidate group filtering in an exemplary embodiment of this application is shown, such as... Figure 6 As shown, the main interface of the first program displays an interaction list containing multiple interaction items. Among these, there are group-type interaction items 610 and non-group-type interaction items 620. The non-group-type interaction items can include various interaction items such as one-on-one chat, application conversation, aggregated conversation, and system application conversation. Among these, an aggregated conversation refers to an interaction item that aggregates reminders from multiple applications into one entry point, such as the reminder entry point for multiple subscribed public accounts.
[0121] In this embodiment, when the computer device displays at least one candidate group in the object selection interface, the computer device can display at least one candidate group in the object selection interface according to the display order of the at least one candidate group in the interaction list of the main interface. That is, after filtering out non-group type interaction items in the interaction list, the computer device retains the group type interaction items 610 and displays the group type interaction items 610 (at least one candidate content) in the object selection interface 630 according to the order of interaction time.
[0122] To further improve the loading efficiency of candidate groups, in this embodiment of the application, when displaying candidate groups, in response to the number of candidate groups being greater than the group number threshold, the computer device can load and display at least one candidate group in a split-screen manner; the group number threshold is the maximum number of groups that can be displayed in the group display area set in the computer device.
[0123] In response to receiving a group loading operation based on the group display area, candidate groups for the next screen are displayed; illustratively, the group loading operation may include at least one of a sidebar drag operation, a screen swipe operation, and a mouse scroll operation. This application does not limit the implementation form of the group loading operation.
[0124] Figure 7 A schematic diagram of a group display area provided in an exemplary embodiment of this application is shown, such as... Figure 7As shown, the object selection interface includes a group display area 710, which displays at least two candidate groups. When a group loading operation based on the group display area 710 is received, the candidate groups for the next screen are displayed in the group display area. Illustratively, the group display area 710 can display up to 5 candidate groups at a time, and the current group display area displays the 1st to 5th candidate groups. After a group loading operation is received, the 6th to 10th candidate groups are displayed, and so on.
[0125] Step 340: In response to receiving a trigger operation on a target group, display the various group objects of the target group; the target group is a candidate group that received the trigger operation from at least one candidate group.
[0126] Optionally, while displaying the individual group objects of the target group, checkboxes can also be displayed corresponding to the individual group objects of the target group.
[0127] Figure 8 A schematic diagram illustrating the target group is shown in an exemplary embodiment of this application, such as... Figure 8 As shown, when the computer device receives a trigger operation based on the target group 810, the target group 810 is expanded and at least two group objects in the target group 810 are displayed; at the same time, corresponding to each group object, checkboxes 820 for selecting the group object are displayed.
[0128] Optionally, the computer device may also display a select all control corresponding to the target group; in response to receiving a trigger operation based on the select all control, the checkboxes corresponding to all group objects in the target group are set to the selected state, that is, all group objects in the target group are obtained as target objects.
[0129] In this embodiment, each candidate group can be an internal group or an external group; wherein, an internal group refers to a group whose members all belong to the target organization; an external group refers to a group that, in addition to containing group members belonging to the target organization, also contains group members not belonging to the target organization. The target organization refers to the organization corresponding to the login account currently logged into by the first application.
[0130] Optionally, in response to the target group containing group objects that do not belong to the target organization, that is, in response to the target group being an external group, the computer device can obtain the organization identifier of each group object in the target group;
[0131] Display the checkbox corresponding to the first group object using the first display attribute; the organization identifier of the first group object indicates that the first group object does not belong to the target organization.
[0132] Display the checkbox corresponding to the second group object using the second display attribute; the organization identifier of the second group object indicates that the second group object belongs to the target organization.
[0133] The second display attribute differs from the first display attribute; illustratively, the checkboxes corresponding to the first and second display attributes have different colors; or, the checkboxes corresponding to the first and second display attributes have different sizes; or, the checkboxes corresponding to the first and second display attributes have different border types.
[0134] Optionally, the first display attribute can be used to indicate that the checkbox is in an unselectable state;
[0135] The second display attribute can be used to indicate that the checkbox is selectable.
[0136] Indicative, such as Figure 8 As shown, the checkboxes corresponding to the first group object are grayed out (first display property), while the checkboxes corresponding to the second group object are not grayed out (second display property).
[0137] The computer device can obtain a first identity ID of a group object and a second identity ID corresponding to the login account of a first application; based on whether the first identity ID and the second identity ID match, it determines whether the group object belongs to the target organization, wherein the identity ID of the group object is used to indicate the organization of the group object, and the identity ID of the login account is used to indicate the target organization; when the first identity ID and the second identity ID match, it is determined that the group object belongs to the target organization; when the first identity ID and the second identity ID do not match, it is determined that the group object does not belong to the target organization.
[0138] Step 350: Identify the group objects that received the selection operation from each group object in the target group as the target objects.
[0139] Optionally, the computer device may set the checkbox corresponding to the group object that received the selection operation to the selected state.
[0140] Specifically, in response to receiving a selection operation for the checkbox displayed in the second display attribute, the checkbox is set to the selected state.
[0141] Optionally, in response to receiving a selection operation on a checkbox displayed with a first display attribute, a prompt message is displayed; the prompt message indicates that the group object corresponding to the checkbox does not belong to the target organization.
[0142] Figure 9 A schematic diagram of a target group provided in an exemplary embodiment of this application is shown, such as... Figure 9As shown, the target group contains a first group object and a second group object; when a selection operation is received on the checkbox corresponding to the second group object 910, the checkbox is set to the selected state; when a selection operation is received on the checkbox corresponding to the first group object 920, a prompt message is displayed, such as... Figure 9 As shown, the prompt message 930 can be displayed as "This object is not selectable" to indicate that the first group object 920 does not belong to the target organization. This application does not limit the content of the prompt message.
[0143] In this embodiment of the application, the object selection interface includes a target object display area and an object selection area; the target object display area is different from the object selection area; the object selection area is used to display at least one candidate group.
[0144] The object selection area can also be used to display at least two group objects from the target candidate groups.
[0145] Once the target object has been determined based on the selection operation, the computer device can add the target object to the target object display area.
[0146] Optionally, the target object display area contains a specific control; in this case, in response to receiving a trigger operation on the specific control, the object selection interface is closed, and the target object is returned to the subroutine.
[0147] Figure 10 A schematic diagram of an object selection interface provided in an exemplary embodiment of this application is shown, such as... Figure 10 As shown, the object selection interface includes an object selection area 1010 and a target object display area 1020. The target object 1030 determined based on the object selection interface is displayed in the target object display area 1020. The target object display area 1020 includes a confirmation control 1021. When the computer device receives a trigger operation based on the confirmation control 1021, it determines that the current object selection process has ended, closes the object selection interface, and returns to the subroutine's display interface; simultaneously, the target object is returned to the subroutine.
[0148] Optionally, after the target object is passed back to the subroutine, in response to receiving another trigger operation on the target control, the target object that was passed back to the subroutine is displayed in the target object display area.
[0149] Please refer to Table 1. The parameters of this JSAPI include the selected User Ids (list of selected object IDs) parameter and the selected Department Ids (selected department ID) parameter. When selected User Ids or selected Department Ids is in the fill state, after the computer device has returned the target object to the subroutine, if the object selection interface is called again based on the target control in the display interface of the same subroutine, the target object that has been returned to the subroutine can be displayed in the target object display area, including group objects or departments. Figure 11 The illustration shows a schematic diagram of an object selection interface according to an exemplary embodiment of this application, taking an example where the target object includes a group of objects. Figure 11 As shown, if group member 1, group member 5, and group member 6 were selected as target objects in the previous object selection interface, clicking the OK control will confirm the end of the previous object selection process. Subsequently, if the object selection interface is launched again, the parameter selected User Ids = {group member 1, group member 5, group member 6} will be passed in so that group member 1, group member 5, and group member 6 are displayed in the target object display area of the object selection interface launched this time.
[0150] Optionally, after determining the target object, the computer device can automatically perform subsequent operations based on the application scenario that triggered the object selection; illustratively, when the application scenario is a group creation scenario based on the subroutine's display interface, the computer device can automatically construct a group containing the target object after determining the target object; when the application scenario is a subroutine's display program viewing uploaded content, the uploaded content of the target object can be automatically displayed in the subroutine's display interface after determining the target object.
[0151] In summary, the object selection method provided in this application, when triggering object selection through the display interface of a subroutine, can open the object selection interface of the host program (first application) corresponding to the subroutine. Upon receiving a selection operation on a group object based on the candidate groups displayed in the object selection interface, the group object receiving the selection operation is determined as the target object required by the subroutine. Since the candidate groups in the object selection interface are determined based on the interaction update time of each group in the first application, when selecting objects in the host program through a subroutine, objects in the most recently interacted groups can be selected first. Generally, the closer the interaction time of a group is to the current time, the greater the probability that objects in that group will be selected. Therefore, the solution shown in this application allows for priority selection of objects within recently interacted groups in the host program through the subroutine, thereby simplifying the object selection process and improving object selection efficiency.
[0152] At the same time, by setting the JSAPI parameters, the target object determined in the previous object selection can be preloaded into the object selection interface when repeatedly selecting objects, which reduces the process of repeatedly selecting target objects and improves the efficiency of object selection.
[0153] The object selection method provided in this application embodiment can be implemented based on the JSAPI call flow; Figure 12 This illustration shows an interactive diagram of an object selection method according to an exemplary embodiment of this application; the method can be executed interactively by a subroutine and a first application; such as Figure 12 As shown, the object selection method includes:
[0154] S1201, the subroutine invokes the object selection interface of the first application via JSAPI.
[0155] S1202, the first application pops up the object selection interface.
[0156] S1203, the first application determines the target object based on the object selection operation received in the object selection interface.
[0157] S1204, the first application returns the target object to the subroutine.
[0158] S1205, the first application closes the object selection interface.
[0159] S1205 can be executed synchronously with S1204.
[0160] It is understood that the specific implementation of this application involves user-related data such as interactive lists, login accounts, and interactive items. When the above implementation of this application is applied to specific products or technologies, user permission or consent is required, and the collection, use, and processing of related data must comply with the relevant laws, regulations, and standards of the relevant countries and regions.
[0161] Figure 13 A block diagram of an object selection device illustrated in an exemplary embodiment of this application is shown. The object selection device includes:
[0162] The first interface display module 1310 is used to display the display interface of the subroutine; the subroutine is an application that depends on the first application to run; the first application is an application that contains an organizational structure.
[0163] The second interface display module 1320 is used to display an object selection interface of the first application in response to receiving a target operation based on the display interface; the object selection interface displays at least one candidate group; the candidate group is determined based on the interaction update time of each group in the first application;
[0164] The object display module 1330 is configured to display each group object of the target group in response to receiving a trigger operation on the target group; the target group is at least one candidate group among the candidate groups that received the trigger operation;
[0165] The object determination module 1340 is used to determine the group object that has received the selection operation from each group object of the target group as the target object.
[0166] In one possible implementation, the display interface of the subroutine includes a target control; the target control is used to invoke the object selection interface of the first application.
[0167] The second display module is used to display the object selection interface of the first application in response to receiving a trigger operation on the target control.
[0168] In one possible implementation, the device further includes:
[0169] The node display module is used to display a group selection node in the object selection interface in response to receiving a target operation performed based on the display interface;
[0170] A group display module is configured to display at least one of the candidate groups in the object selection interface in response to receiving a trigger operation on the group selection node.
[0171] In one possible implementation, the node display module is configured to display a group selection node in the object selection interface in response to the target control having an object selection attribute; the object selection attribute is used to indicate the determination of the target object from the candidate group.
[0172] In one possible implementation, the object display module 1330 includes:
[0173] The checkbox display submodule is used to display checkboxes corresponding to each group object of the target group;
[0174] The device further includes:
[0175] The status setting module is used to set the checkbox corresponding to the group object that received the selection operation to the selected state before the object determination module 1340 determines the group object that received the selection operation from each group object of the target group as the target object.
[0176] In one possible implementation, the checkbox display submodule includes:
[0177] The identifier acquisition unit is used to acquire the organization identifier of each group object in the target group;
[0178] A checkbox display unit is configured to display the checkbox corresponding to a first group object with a first display attribute; the organization identifier of the first group object indicates that the first group object does not belong to the target organization.
[0179] The checkbox display unit is used to display the checkbox corresponding to the second group object with a second display attribute; the organization identifier of the second group object indicates that the second group object belongs to the target organization; the second display attribute is different from the first display attribute.
[0180] In one possible implementation, the first display attribute is used to indicate that the checkbox is in an unselectable state;
[0181] The second display attribute is used to indicate that the checkbox is in an selectable state.
[0182] In one possible implementation, the device further includes:
[0183] An information display module is configured to display a prompt message in response to receiving a selection operation on the checkbox displayed with the first display attribute; the prompt message is used to indicate that the group object corresponding to the checkbox does not belong to the target organization.
[0184] In one possible implementation, the device further includes:
[0185] The list retrieval module is used to retrieve the interaction list of the first application; the interaction list contains at least two interaction items;
[0186] The type acquisition module is used to acquire the interaction type corresponding to at least two of the interactive items; the interaction type includes group type and non-group type.
[0187] The group determination module is used to determine at least one candidate group based on the interaction type corresponding to each of the at least two interaction items.
[0188] In one possible implementation, the group display module is configured to display at least one of the candidate groups in the object selection interface according to the display order of at least one of the candidate groups in the interaction list.
[0189] In one possible implementation, the object selection interface includes a target object display area and an object selection area; the target object display area is distinct from the object selection area; the object selection area is used to display at least one of the candidate groups.
[0190] The device further includes:
[0191] The object adding module is used to add the target object to the target object display area.
[0192] In one possible implementation, the target object display area includes a determining control; the device further includes:
[0193] The object return module is used to close the object selection interface and return the target object to the subroutine in response to receiving a trigger operation on the determined control.
[0194] In one possible implementation, the device further includes:
[0195] The target object display module is configured to, after the target object is returned to the subroutine, in response to receiving a trigger operation on the target control again, display the target object that has been returned to the subroutine in the target object display area.
[0196] In summary, the object selection device provided in this application, when triggering object selection through the display interface of a subroutine, can open the object selection interface of the host program (first application) corresponding to the subroutine. Upon receiving a selection operation on a group object based on the candidate groups displayed in the object selection interface, the device determines the group object receiving the selection operation as the target object required by the subroutine. Since the candidate groups in the object selection interface are determined based on the interaction update time of each group in the first application, when selecting objects in the host program through a subroutine, objects in the most recently interacted groups can be selected first. Generally, the closer the interaction time of a group is to the current time, the greater the probability that objects in that group will be selected. Therefore, through the solution shown in the embodiments of this application, objects can be selected first from groups in the host program that have recently interacted through the subroutine, thereby simplifying the object selection process and improving object selection efficiency.
[0197] Figure 14 A structural block diagram of a computer device 1400 illustrating an exemplary embodiment of this application is shown. This computer device can be implemented as various servers described in the above-described schemes of this application. The computer device 1400 includes a Central Processing Unit (CPU) 1401, a system memory 1404 including Random Access Memory (RAM) 1402 and Read-Only Memory (ROM) 1403, and a system bus 1405 connecting the system memory 1404 and the CPU 1401. The computer device 1400 also includes a mass storage device 1406 for storing an operating system 1409, a client 1410, and other program modules 1411.
[0198] The mass storage device 1406 is connected to the central processing unit 1401 via a mass storage controller (not shown) connected to the system bus 1405. The mass storage device 1406 and its associated computer-readable media provide non-volatile storage for the computer device 1400. That is, the mass storage device 1406 may include computer-readable media (not shown) such as a hard disk or a compact disc read-only memory (CD-ROM) drive.
[0199] Without loss of generality, the computer-readable medium may include computer storage media and communication media. Computer storage media include volatile and non-volatile, removable and non-removable media implemented using any method or technology for storing information such as computer-readable instructions, data structures, program modules, or other data. Computer storage media include RAM, ROM, erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other solid-state storage technologies, CD-ROM, digital versatile disc (DVD) or other optical storage, magnetic tape cassettes, magnetic tape, disk storage, or other magnetic storage devices. Of course, those skilled in the art will recognize that the computer storage media are not limited to the above-mentioned types. The system memory 1404 and mass storage device 1406 described above can be collectively referred to as memory.
[0200] According to various embodiments of this disclosure, the computer device 1400 can also be connected to a remote computer on a network, such as the Internet. That is, the computer device 1400 can be connected to a network 1408 via a network interface unit 1407 connected to the system bus 1405, or it can use the network interface unit 1407 to connect to other types of networks or remote computer systems (not shown).
[0201] The memory also includes at least one instruction, at least one program, code set, or instruction set, which are stored in the memory. The central processing unit 1401 executes the at least one instruction, at least one program, code set, or instruction set to implement all or part of the steps in the object selection method shown in the above embodiments.
[0202] Figure 15 A structural block diagram of a computer device 1500 illustrating an exemplary embodiment of this application is shown. The computer device 1500 can be implemented as the aforementioned terminal, such as a smartphone, tablet computer, laptop computer, or desktop computer. The computer device 1500 may also be referred to as user equipment, portable terminal, laptop terminal, desktop terminal, or other names.
[0203] Typically, computer device 1500 includes a processor 1501 and a memory 1502.
[0204] Processor 1501 may include one or more processing cores, such as a 4-core processor, a 15-core processor, etc. Processor 1501 may be implemented using at least one hardware form selected from DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). Processor 1501 may also include a main processor and a coprocessor. The main processor, also known as a CPU (Central Processing Unit), is used to process data in the wake-up state; the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, processor 1501 may integrate a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed on the screen. In some embodiments, processor 1501 may also include an AI (Artificial Intelligence) processor, which is used to handle computational operations related to machine learning.
[0205] Memory 1502 may include one or more computer-readable storage media, which may be non-transitory. Memory 1502 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices or flash memory devices. In some embodiments, the non-transitory computer-readable storage media in memory 1502 is used to store at least one instruction, which is executed by processor 1501 to implement all or part of the steps in the object selection method shown in the method embodiments of this application.
[0206] In some embodiments, the computer device 1500 may also optionally include a peripheral device interface 1503 and at least one peripheral device. The processor 1501, memory 1502, and peripheral device interface 1503 can be connected via a bus or signal line. Each peripheral device can be connected to the peripheral device interface 1503 via a bus, signal line, or circuit board. Specifically, the peripheral device includes at least one of the following: a radio frequency circuit 1504, a display screen 1505, a camera assembly 1506, an audio circuit 1507, and a power supply 1508.
[0207] In some embodiments, the computer device 1500 further includes one or more sensors 1509. The one or more sensors 1509 include, but are not limited to, an accelerometer 1510, a gyroscope 1511, a pressure sensor 1512, an optical sensor 1513, and a proximity sensor 1514.
[0208] Those skilled in the art will understand that Figure 15 The structure shown does not constitute a limitation on the computer device 1500, and may include more or fewer components than shown, or combine certain components, or use different component arrangements.
[0209] In one exemplary embodiment, a computer-readable storage medium is also provided, which stores at least one computer program that is loaded and executed by a processor to implement all or part of the steps in the object selection method described above. For example, the computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a compact disc read-only memory (CD-ROM), magnetic tape, floppy disk, or optical data storage device, etc.
[0210] In one exemplary embodiment, a computer program product is also provided, comprising at least one computer program that is loaded and executed by a processor. Figure 2 , Figure 3 ,or Figure 12 All or part of the steps of the object selection method shown in any embodiment.
[0211] Other embodiments of this application will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of this application that follow the general principles of this application and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this application are indicated by the following claims.
[0212] It should be understood that this application is not limited to the precise structure described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this application is limited only by the appended claims.
Claims
1. An object selection method, characterized in that, The method includes: The subroutine's display interface is shown; the subroutine is an application that depends on a first application to run; the first application is an application that contains an organizational structure. In response to receiving a target operation performed based on the display interface, an object selection interface of a first application is displayed; the object selection interface displays at least one candidate group; the candidate group is determined based on the interaction update time of each group in the first application; In response to receiving a trigger operation on a target group, display the various group objects of the target group; the target group is at least one candidate group among the candidate groups that received the trigger operation. The group object that receives the selection operation from each group object in the target group is determined as the target object required by the subroutine.
2. The method according to claim 1, characterized in that, The subroutine's display interface includes a target control; the target control is used to invoke the object selection interface of the first application. The step of displaying an object selection interface of the first application in response to receiving a target operation performed based on the display interface includes: In response to receiving a trigger operation on the target control, the object selection interface of the first application is displayed.
3. The method according to claim 2, characterized in that, The method further includes: In response to receiving a target operation performed based on the display interface, a group selection node is displayed in the object selection interface; In response to receiving a trigger operation on the group selection node, at least one of the candidate groups is displayed in the object selection interface.
4. The method according to claim 3, characterized in that, Displaying the group selection node in the object selection interface includes: In response to the target control having an object selection attribute, a group selection node is displayed in the object selection interface; the object selection attribute is used to indicate the target object to be determined from the candidate group.
5. The method according to claim 1, characterized in that, The display of each group object of the target group includes: For each group object corresponding to the target group, a checkbox is displayed; Before determining the group object that received the selection operation from each group object of the target group as the target object, the method further includes: Set the checkbox corresponding to the group object that received the selection operation to the selected state.
6. The method according to claim 5, characterized in that, In response to the target group containing group objects that do not belong to the target organization, each group object corresponding to the target group displays a checkbox, including: Obtain the organization identifier of each group object in the target group; The checkbox corresponding to the first group object is displayed with a first display attribute; the organization identifier of the first group object indicates that the first group object does not belong to the target organization. The checkbox corresponding to the second group object is displayed with a second display attribute; the organization identifier of the second group object indicates that the second group object belongs to the target organization; the second display attribute is different from the first display attribute.
7. The method according to claim 6, characterized in that, The first display attribute is used to indicate that the checkbox is in an unselectable state; The second display attribute is used to indicate that the checkbox is in an selectable state.
8. The method according to claim 7, characterized in that, The method further includes: In response to receiving a selection operation on the checkbox displayed with the first display attribute, a prompt message is displayed; the prompt message indicates that the group object corresponding to the checkbox does not belong to the target organization.
9. The method according to claim 3, characterized in that, Before displaying at least one candidate group in the object selection interface, the method further includes: Obtain the interaction list of the first application; the interaction list contains at least two interaction items; Obtain the interaction type corresponding to at least two of the interactive items; the interaction type includes group type and non-group type. At least one candidate group is determined based on the interaction type corresponding to each of the at least two interactive items.
10. The method according to claim 9, characterized in that, Displaying at least one candidate group in the object selection interface includes: At least one of the candidate groups is displayed in the object selection interface in the order in which the candidate groups are displayed in the interaction list.
11. The method according to claim 2, characterized in that, The object selection interface includes a target object display area and an object selection area; the target object display area is distinct from the object selection area. The object selection area is used to display at least one of the candidate groups; The method further includes: Add the target object to the target object display area.
12. The method according to claim 10, characterized in that, The target object display area contains a determination control; the method further includes: In response to receiving a trigger operation on the determined control, the object selection interface is closed, and the target object is returned to the subroutine.
13. The method according to claim 12, characterized in that, The method further includes: After the target object is returned to the subroutine, in response to receiving another trigger operation on the target control, the target object that has been returned to the subroutine is displayed in the target object display area.
14. An object selection device, characterized in that, The device includes: The first interface display module is used to display the display interface of the subroutine; the subroutine is an application that depends on the first application to run; the first application is an application that contains an organizational structure. The second interface display module is used to display an object selection interface of the first application in response to receiving a target operation based on the display interface; the object selection interface displays at least one candidate group; the candidate group is determined based on the interaction update time of each group in the first application; An object display module is configured to display various group objects of the target group in response to receiving a trigger operation on the target group; the target group is at least one candidate group among the candidate groups that received the trigger operation. The object determination module is used to determine the group objects that have received the selection operation from each group object of the target group as the target objects required by the subroutine.
15. A computer device, characterized in that, The computer device includes a processor and a memory, the memory storing at least one computer program, which is loaded and executed by the processor to implement the object selection method as described in any one of claims 1 to 13.
16. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores at least one computer program, which is loaded and executed by a processor to implement the object selection method as described in any one of claims 1 to 13.
17. A computer program product, characterized in that, The computer program product includes at least one computer program, which is loaded and executed by a processor to implement the object selection method as described in any one of claims 1 to 13.
Citation Information
Patent Citations
Task processing method and device and electronic equipment
CN112650430A
Team creating method, team joining method and device, and storage medium in virtual scene
CN113663325A