Method for displaying data in security and protection integrated platform
By obtaining display instructions in the security integration platform and determining the target data display type in the data display type collection, obtaining the field values of its attribute fields and generating display data, the problem of inefficient security data display is solved and more efficient data display is achieved.
Patent Information
- Application Number
- CN202510024221.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-07
- Publication Date
- 2025-06-10
AI Technical Summary
In the prior art, the security integration platform has a large workload when displaying different types of security data, resulting in low efficiency in security data display.
By obtaining presentation instructions for target items in the security integration platform, in response to the presentation instructions, the target data display type to be displayed is determined in the data display type set, the field values of the attribute fields of the target data display type are obtained, and the display data is generated and displayed based on these field values.
It improves the display efficiency of security data, avoids the need to exhaustively display panel statistics modules or custom development each time, and reduces the development workload.
Smart Images

Figure CN120122943A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular, to a method for displaying data in a security integration platform. Background Art
[0002] The security integration platform belongs to the system integration application software platform in the security field. It usually integrates the functions of each subsystem in the security field for unified management, overall scheduling, unified alarm receiving, alarm verification, and alarm handling. The security subsystems involved usually include multiple third-party systems such as video surveillance systems, access control systems, intrusion and emergency alarm systems, security inspection and detection systems, and electronic patrol systems.
[0003] Generally, the security integration platform has a display panel for centralized display and monitoring of the overall security situation. Specifically at the business level and software development level, different projects usually develop different display panels. When different types of security data need to be displayed for different project deliveries, there are mainly two methods in the prior art: one is to exhaustively design the statistical modules of the display panel during the design stage of the security integration platform project, and the other is that when the manufacturer develops the first project, it customizes and develops the statistical modules and content to be displayed on the display panel according to the project requirements. When other projects need to be delivered, if there are inconsistent requirements for the display panel, rapid iterative development is carried out on the basis of the code of the first project to achieve customized upgrade.
[0004] However, both of the above two methods have the problem of large workload when displaying different types of security data for different projects, resulting in low efficiency of security data display. Summary of the Invention
[0005] The present invention provides a method for displaying data in a security integration platform, which is used to solve the defect of low efficiency of security data display in the prior art and achieve the purpose of improving the efficiency of security data display.
[0006] The present invention provides a method for displaying data in a security integration platform, including: Obtaining a display instruction for a target project in the security integration platform; Responding to the display instruction, determining at least one target data display type to be displayed on the display panel in a data display type set, where the data display type set includes all data display types in the security integration platform; For each of the target data display types, obtaining the field value of an attribute field corresponding to the target data display type, where the attribute field includes an attribute label field corresponding to the target data display type and a data source address field of the target data display type; Generate and display display data corresponding to the target data display type of the target project based on the field value of the attribute tag field corresponding to the target data display type and the field value of the data source address field of the target data display type.
[0007] According to a method for displaying data in a security integration platform provided by the present invention, determining at least one target data display type to be displayed on a display panel in a set of data display types includes: Display all data display types in the set of data display types; Receive a selection instruction input by a user; In response to the selection instruction, determine the data display type corresponding to the selection instruction as the target data display type.
[0008] According to a method for displaying data in a security integration platform provided by the present invention, obtaining the field value of an attribute field corresponding to the target data display type includes: Based on the correspondence relationship among the project, the data display type, and the field value of the attribute field, determine the field value of the attribute field corresponding to the target data display type of the target project.
[0009] According to a method for displaying data in a security integration platform provided by the present invention, obtaining the field value of an attribute field corresponding to the target data display type includes: Display a field value input interface, where the field value input interface includes field value input boxes for each attribute field; In the case of receiving a field value input by a user in a first field value input box, determine the input field value as the field value of the attribute field corresponding to the first field value input box; In the case of not receiving a field value input by a user in a second field value input box, determine a default value as the field value of the attribute field corresponding to the second field value input box.
[0010] According to a method for displaying data in a security integration platform provided by the present invention, determining the input field value as the field value of the attribute field corresponding to the first field value input box includes: Perform semantic analysis on the input field value to obtain a semantic analysis result; Match the semantic analysis result with the semantics of the attribute field corresponding to the first field value input box to obtain a matching result; In the case where the matching result indicates that the semantic analysis result and the semantics match, and the data format of the input field value is the same as the data format of the field value of the attribute field corresponding to the first field value input box, determine the input field value as the field value of the attribute field corresponding to the first field value input box.
[0011] A method for displaying data in a security integration platform provided by the present invention, the method further comprising: In the case of receiving a first update instruction for a data display type, in response to the first update instruction, obtaining an update type carried in the first update instruction, the update type including at least one of an addition type, a deletion type, and a change type; Updating the data display type set according to the update type.
[0012] A method for displaying data in a security integration platform provided by the present invention, the method further comprising: In the case of receiving a second update instruction for an attribute field, in response to the second update instruction, obtaining an update field carried in the second update instruction, the update field including at least one of an addition field, a deletion field, and a change field; Updating the attribute field of the security integration platform according to the update field.
[0013] A method for displaying data in a security integration platform provided by the present invention, the method further comprising: Obtaining a target screen size of a display device; For each of the target data display types, based on the correspondence between the screen size, the data display type, and the layout size, determining a target layout size corresponding to the target screen size and the target data display type; Displaying the display data corresponding to the target data display type based on the target layout size.
[0014] According to a method for displaying data in a security integration platform provided by the present invention, the attribute field further includes at least one of a name field corresponding to the target data display type, a field indicating whether time period filtering is supported, and a field indicating the position of the time period filtering box.
[0015] According to a method for displaying data in a security integration platform provided by the present invention, the data display type set includes a digital statistics display type, a static information display type, and a dynamic information display type. The digital statistics display type includes a horizontal data statistics type and a vertical data statistics type. The static information display type includes a list type, a horizontal bar chart type, a vertical bar chart type, a pie chart type, a line chart type, and a scatter plot type. The dynamic information display type includes a trend chart type and a video type.
[0016] The present invention also provides a data display device in a security integration platform, comprising: An obtaining module, configured to obtain a display instruction for a target item in the security integration platform; A determination module, configured to determine, in response to the display instruction, at least one target data display type to be displayed on a display panel from a set of data display types, where the set of data display types includes all data display types in the security integration platform; The acquisition module is further configured to, for each of the target data display types, acquire field values of attribute fields corresponding to the target data display type, where the attribute fields include an attribute label field corresponding to the target data display type and a data source address field of the target data display type; A display module, configured to generate and display display data corresponding to the target data display type of the target project based on the field value of the attribute label field corresponding to the target data display type and the field value of the data source address field of the target data display type.
[0017] The present invention further provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where when the processor executes the computer program, the method for displaying data in the security integration platform as described in any one of the above is implemented.
[0018] The present invention further provides a non-transitory computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the method for displaying data in the security integration platform as described in any one of the above is implemented.
[0019] The present invention further provides a computer program product, including a computer program, and when the computer program is executed by a processor, the method for displaying data in the security integration platform as described in any one of the above is implemented.
[0020] The method for displaying data in the security integration platform provided by the present invention obtains a display instruction for a target project in the security integration platform. In response to the display instruction, at least one target data display type to be displayed on the display panel is determined in the data display type set, and the data display type set includes all data display types in the security integration platform. For each target data display type, the field value of the attribute field corresponding to the target data display type is obtained, and the attribute field includes an attribute label field corresponding to the target data display type and a data source address field of the target data display type. Therefore, based on the field value of the attribute label field corresponding to the target data display type and the field value of the data source address field of the target data display type, the display data corresponding to the target data display type of the target project is generated and displayed. Since the data display type set is set, and the data display type set includes all data display types in the security integration platform, that is, each data display type to be displayed for each project is included in the above data display type set. When it is necessary to display the display data of the target project, the display data corresponding to the target data display type can be automatically generated through the field value of the attribute field corresponding to the target data display type of the target project. By fixing the logic code in the code and performing automated display of the data to be displayed according to the pre-set code logic, instead of exhausting the display panel statistics module in advance or performing customized development each time, the display efficiency of the display data corresponding to the target data display type of the target project can be improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following will briefly introduce the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings in the following description are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0022] Figure 1 It is a schematic flowchart of the method for displaying data in the security integration platform provided by the embodiment of the present invention.
[0023] Figure 2 It is a schematic diagram of the display of the display data provided by the embodiment of the present invention.
[0024] Figure 3 It is a schematic structural diagram of the device for displaying data in the security integration platform provided by the embodiment of the present invention.
[0025] Figure 4 It is a schematic physical structure diagram of an electronic device provided by the embodiment of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0026] To make the objectives, technical solutions, and advantages of the present invention clearer, the following will clearly and completely describe the technical solutions in the present invention in conjunction with the accompanying drawings in the present invention. Obviously, the described embodiments are some, but not all, of the embodiments of the present invention. All other embodiments obtained by those of ordinary skill in the art based on the embodiments in the present invention without making creative efforts fall within the scope of protection of the present invention.
[0027] The security integration platform has a display panel for centrally displaying and monitoring the overall security situation. Specifically at the business level and software development level, usually different projects will develop different display panels. Once the project requirements are confirmed, the display content of this display panel is also determined accordingly. For example, the display panel of Project A needs to display alarm record statistics and alarm trend charts. If there is another Project B to be delivered at this time, the display panel function also needs to be provided, but the display content of this display panel needs to be security inspection package data statistics and security inspection personnel data statistics, or other data statistics content. In the current situation where the deliverables and source code of Project A are available, how to deliver Project B faster, that is, quickly display the security data that needs to be displayed in Project B. For the above problems, the prior art usually adopts the following two methods: The first is by enumerating the display panel statistical modules and adopting them as needed. This design idea enumerates the statistical modules and statistical content involved in the display panel at the design stage of the security integration platform project, prepares the display panel content involved in advance, and adopts it as needed through methods such as permission mechanisms or code shielding according to different project requirements. However, in this method, no matter how much enumeration is done, there will always be situations where the requirements cannot be fully met. Moreover, for many manufacturers, it will waste a lot of energy and time to enumerate all statistical modules and content, resulting in a low development efficiency of the display panel statistical modules, thus causing the problem of low efficiency in security data display.
[0028] The second is by constructing a display panel template and quickly iterating and developing. Under this idea, manufacturers often customize and develop the statistical modules and content to be displayed on the display panel according to project requirements when developing the first Project A. When other projects need to be delivered, if there are inconsistent requirements for the display panel, they quickly iterate and develop and customize and upgrade on the basis of the code of Project A. This method will reduce the efficiency of security data display because it requires continuous customization and development.
[0029] In view of the above problems, an embodiment of the present invention provides a method for displaying data in a security integration platform. In this method, a set of data display types can be set, and all data display types in the security integration platform are included in the set of data display types, that is, the data display types to be displayed for each project are included in the above set of data display types. When displaying data, the field value of the attribute field corresponding to the target data display type can be obtained according to the target data display type of the target project to be displayed, so as to automatically generate and display the display data corresponding to the target data display type according to the field value. Since when it is necessary to display the display data of the target project, the display data corresponding to the target data display type can be automatically generated through the field value of the attribute field corresponding to the target data display type of the target project, and the logic code is fixed in the code, and the data to be displayed is automatically displayed according to the pre-set code logic, without exhausting the display panel statistics module in advance or performing customized development each time, thereby improving the display efficiency of the display data corresponding to the target data display type of the target project.
[0030] The execution subject of this method can be an electronic device with data display functions such as a computer or a terminal device, or a specially designed intelligent device, or a data display device in the security integration platform set in the electronic device or the intelligent device. The data display device in the security integration platform can be implemented through software, hardware, or a combination of both. This method can be applied to scenarios that require displaying security data, such as rail transit, hospitals, power, or enterprise parks.
[0031] Figure 1 It is a schematic flowchart of the method for displaying data in the security integration platform provided by the embodiment of the present invention. As Figure 1 shown, this method includes: Step 101: Obtain a display instruction for a target project in the security integration platform.
[0032] In this step, the security integration platform is a system integration application software platform in the security field, which integrates the functions of each subsystem in the security field for unified management. Therefore, multiple projects are integrated in the security integration platform. Among them, different projects correspond to different display data. Currently, for the security integration platform, its security data includes 7 categories, namely: alarm statistics data, security inspection and detection data, video surveillance data, access control data, intrusion alarm data in the yard section, integrated monitoring data, and operation and maintenance management data, etc.
[0033] In addition, the display instruction can be triggered by the user through voice, click operation, or text. The display instruction carries relevant information of the target project. For example, the display instruction can be "Please display the statistics of the data of passing bags and passing people in security inspection in Project B".
[0034] Step 102: In response to the display instruction, determine at least one target data display type to be displayed on the display panel from the data display type set, where the data display type set includes all data display types in the security integration platform.
[0035] In this step, the electronic device is pre-set with a data display type set, which includes all data display types required to be displayed for all items in the security integration platform. Exemplarily, the data display type set includes digital statistical display types, static information display types, and dynamic information display types. The digital statistical display types include horizontal data statistical types and vertical data statistical types. The static information display types include list types, horizontal bar chart types, vertical bar chart types, pie chart types, line chart types, and scatter plot types. The dynamic information display types include trend chart types and video types. By setting a data display type set that includes all data display types in the security integration platform, when there are new items in the future, the data display types required to be displayed for the new items can be directly found from the data display type set, so that the data display types corresponding to the new items to be displayed on the display panel can be quickly determined.
[0036] When the electronic device receives the display instruction, it can select at least one target data display type to be displayed on the display panel from the data display type set, such as list types and horizontal bar chart types, etc. Among them, the at least one target data display type is the type required to be displayed for the target item.
[0037] Among them, in one embodiment, at least one target data display type can be determined from the data display type set by the user's selection. In another embodiment, the corresponding relationship between each item and the data display type can also be pre-set, so that after the target item is determined, at least one target data display type corresponding to the target item can be found based on the above pre-set corresponding relationship.
[0038] Step 103: For each target data display type, obtain the field values of the attribute fields corresponding to the target data display type, where the attribute fields include the attribute label field corresponding to the target data display type and the data source address field of the target data display type.
[0039] In this step, when there are multiple types of target data display for a target project that need to be displayed on the display panel, for each type of target data display, it is necessary to obtain the field values of the attribute fields corresponding to the type of target data display. Specifically, the user can input the field values of the attribute fields corresponding to the type of target data display according to actual needs, or can preset the corresponding relationships between each project, data display type, and the field values of the attribute fields, so as to find the field values of the attribute fields corresponding to the target project and the type of target data display based on this corresponding relationship. Among them, the attribute fields include the attribute label field "properties" and the data source address field "data_source". The attribute label field "properties" is used to represent that for different data display types, it will provide the corresponding attribute information of this type. For example, for the list display type, the corresponding attribute label field "properties" includes a set of column header fields; for the bar chart display type, the corresponding attribute label field "properties" includes a set of statistical categories. The data source address field "data_source" can also be understood as a data interface, which is the source address of the data to be displayed.
[0040] Exemplarily, the attribute fields further include at least one of the name field corresponding to the type of target data display, the field indicating whether time period filtering is supported, and the field indicating the position of the time period filtering box.
[0041] Among them, the field "is_time_filter" indicating whether time period filtering is supported represents whether the displayed data supports filtering by time period conditions, and it is derived from the input data. The field "time_filter_position" of the time period filtering box has options of the upper left and upper right of the display panel.
[0042] Step 104: Generate and display the display data corresponding to the type of target data display of the target project based on the field values of the attribute label field corresponding to the type of target data display and the field value of the data source address field of the type of target data display.
[0043] In this step, after determining the attribute label field and the data source address field corresponding to the type of target data display, the field values of the attribute label field input by the user can be obtained, or the field values of each attribute label field can be set in advance. For example, assuming that the attribute label fields include the alarm time and the alarm level, the user can flexibly input the time period for which an alarm is required and the alarm level value according to actual needs, or can preset the fixed time period for which an alarm is required and the alarm level value.
[0044] After obtaining the field values of the attribute label fields corresponding to the target data display type and the field values of the data source address fields of the target data display type, the display data corresponding to the target data display type of the target project will be automatically generated based on these field values, so as to display the generated display data on the display panel. For example, if the target data display type is a list type, and the attribute label fields include the alarm time and the alarm level, after obtaining the corresponding field values from the data source address fields, that is, the source data, the alarm information will be determined based on the field values corresponding to the alarm time and the alarm level, so as to generate an alarm list as the display data and display the alarm list on the display panel.
[0045] The method for displaying data in the security integration platform provided by the embodiments of the present invention includes obtaining a display instruction for a target project in the security integration platform, and in response to the display instruction, determining at least one target data display type to be displayed on the display panel from a set of data display types. The set of data display types includes all data display types in the security integration platform. For each target data display type, obtain the field values of the attribute fields corresponding to the target data display type. The attribute fields include the attribute label fields corresponding to the target data display type and the data source address fields of the target data display type, so as to generate and display the display data corresponding to the target data display type of the target project based on the field values of the attribute label fields corresponding to the target data display type and the field values of the data source address fields of the target data display type. Since a set of data display types is set, and the set of data display types includes all data display types in the security integration platform, that is, each data display type to be displayed for each project is included in the above set of data display types. When it is necessary to display the display data of the target project, the display data corresponding to the target data display type can be automatically generated through the field values of the attribute fields corresponding to the target data display type of the target project. By fixing the logic code in the code and performing automated display of the data to be displayed according to the pre-set code logic, instead of exhaustively counting the display panel statistics module in advance or performing custom development each time, the display efficiency of the display data corresponding to the target data display type of the target project can be improved.
[0046] Exemplarily, on the basis of the above embodiments, when determining at least one target data display type to be displayed on the display panel from the set of data display types, all data display types in the set of data display types can be displayed, a selection instruction input by the user is received, and in response to the selection instruction, the data display type corresponding to the selection instruction is determined as the target data display type.
[0047] Specifically, in the user interface, all data display types in the data display type set are displayed in the form of a menu, a drop-down list, or an icon button, etc. In this way, users can clearly see all data display types at a glance, and thus can select the data display types to be displayed according to the actual application or project requirements, thereby triggering a selection instruction. After receiving the selection instruction input by the user, the electronic device will identify the data display type selected by the user and use it as the target data display type.
[0048] In this embodiment, by displaying all data display types in the data display type set through the user interface, users can flexibly select the appropriate target data display type according to actual needs, which can improve the flexibility of determining the target data display type, better meet the needs of different users, and enhance the user experience.
[0049] In addition, the data display types corresponding to each project can be preset. For example, the data display types corresponding to project A include alarm record statistics and alarm trend charts, and the data display types corresponding to project B include security inspection bag-passing data statistics and security inspection personnel-passing data statistics. After determining the target project, the target data display type corresponding to the target project can be determined by querying the above preset corresponding relationship. In this way, the target data display type can be quickly determined, improving the determination efficiency of the target data display type.
[0050] Exemplarily, in one implementation manner, when obtaining the field value of the attribute field corresponding to the target data display type, the field value of the attribute field corresponding to the target data display type of the target project can be determined based on the corresponding relationship among the project, the data display type, and the field value of the attribute field.
[0051] Specifically, in actual applications, different projects will correspond to different data display types, and different data display types may correspond to different field values of attribute fields. Therefore, the corresponding relationship among the project, the data display type, and the field value of the attribute field can be preset. Therefore, after determining the target project and the corresponding target data display type, the field value of the attribute field corresponding to the target data display type of the target project can be quickly determined by querying the above preset corresponding relationship, improving the determination efficiency of the field value.
[0052] Exemplarily, in another implementation, when obtaining the field value of the attribute field corresponding to the target data display type, a field value input interface can be used. The field value input interface includes field value input boxes for each attribute field. When the field value input by the user in the first field value input box is received, the input field value is determined as the field value of the attribute field corresponding to the first field value input box. When the field value input by the user in the second field value input box is not received, the default value is determined as the field value of the attribute field corresponding to the second field value input box.
[0053] Specifically, the field value input interface can be displayed through the user interface of the electronic device. The field value input interface includes field value input boxes for each attribute field, and each input box corresponds to a specific attribute field. Among them, the field value input box can be a text box, a drop-down list, a date selector, a number input box, etc., and the specific form depends on the type and requirements of the attribute field.
[0054] The user can input the field value to be displayed in the field value input box according to actual needs. For example, when a field value is input in a certain first field value input box, the input field value will be used as the field value of the attribute field corresponding to the first field value input box. If no field value is input in a certain second field value input box, it means that the user has no special requirements for the field value of the attribute field corresponding to the second field value input box. At this time, the default value can be determined as the field value of the attribute field corresponding to the second field value input box. For example, if the attribute field corresponding to the target data display type includes a field for whether time period filtering is supported, when the user does not fill in the field value in the field value input box corresponding to this attribute field, the default value "no" is determined as the field value of the field for whether time period filtering is supported.
[0055] In this embodiment, the field values of each attribute field can be obtained by the user input, which improves the flexibility and diversity of obtaining the field values.
[0056] Exemplarily, on the basis of the above embodiment, when determining the input field value as the field value of the attribute field corresponding to the first field value input box, it can be to perform semantic analysis on the input field value to obtain a semantic analysis result, and match the semantic analysis result with the semantics of the attribute field corresponding to the first field value input box to obtain a matching result. When the matching result indicates that the semantic analysis result and the semantics match, and the data format of the input field value is the same as the data format of the field value of the attribute field corresponding to the first field value input box, the input field value is determined as the field value of the attribute field corresponding to the first field value input box.
[0057] Specifically, after receiving the field value input by the user, in order to ensure the accuracy of the field value, it is also necessary to correct the semantics and format of the input field value. Among them, semantic analysis can be performed on the input field value to obtain the semantic analysis result, which can help understand the meaning of the field value input by the user. The semantic analysis result is matched with the semantics of the attribute field corresponding to the first field value input box. If the match is successful, it indicates that the input field value is semantically consistent with the attribute field. For example, if the attribute field corresponding to the first field value input box is the alarm time, when the field value input by the user is "20240101 - 20240131", the semantic analysis result of the input field value matches the semantics of the attribute field "alarm time". If the field value input by the user is "list form", the semantic analysis result of the input field value does not match the semantics of the attribute field "alarm time".
[0058] When the two match successfully, it is also possible to further determine whether the data format of the input field value is the same as the data format of the attribute field value corresponding to the first field value input box. Only when they are the same will it be determined that the input field value is accurate, and the input field value will be determined as the field value of the attribute field corresponding to the first field value input box.
[0059] In this embodiment, by performing semantic analysis and matching on the input field value, it can be ensured that the input field value meets the requirements semantically. In addition, data format matching can be further performed, thereby ensuring the consistency and integrity of the data format and improving the accuracy of the determined field value of the attribute field.
[0060] Exemplarily, on the basis of the above embodiments, in the case of receiving a first update instruction for the data display type, in response to the first update instruction, the update type carried in the first update instruction is obtained. The update type includes at least one of the add type, delete type, and change type, and the data display type set is updated according to the update type.
[0061] Specifically, when the data display type in the security integration platform changes, the user can trigger a first update instruction, which carries the update type that needs to be updated, such as deleting the horizontal bar chart type, or updating the pie chart type to a line chart type, etc. After the electronic device obtains the update type carried in the first update instruction, it will update the corresponding data display type in the data display type set according to the update type.
[0062] In this embodiment, the data display type can be updated according to actual needs. On the one hand, it can make the obtained data display type set better adapt to the changing needs and preferences of users. On the other hand, it can also make the data display type set have strong scalability.
[0063] Exemplarily, based on the above embodiments, when a second update instruction for an attribute field is received, in response to the second update instruction, obtain the update fields carried in the second update instruction, where the update fields include at least one of new fields, deleted fields, and changed fields, and update the attribute fields of the security integration platform according to the update fields.
[0064] Specifically, when the attribute fields corresponding to the data display type in the security integration platform change, the user can trigger a second update instruction, and the second update instruction carries the update fields to be updated, such as deleting the position field of the time period filtering box, or adding a field indicating whether time period filtering is supported, etc. After the electronic device obtains the update fields carried in the second update instruction, it will update the attribute fields of the security integration platform according to the update fields.
[0065] In this embodiment, the attribute fields can be updated according to actual needs, so that not only can different scenario requirements be better adapted, but also the scalability of the security integration platform can be improved.
[0066] Exemplarily, based on the above embodiments, the method of this application further includes: Obtain the target screen size of the display device, and for each target data display type, based on the correspondence between the screen size, data display type, and layout size, determine the target layout size corresponding to the target screen size and the target data display type, and display the display data corresponding to the target data display type based on the target layout size.
[0067] Specifically, since different data display types have different layout sizes, in order to be able to properly layout different data display types on devices with different screen sizes such as mobile phones, tablets, computers, or large-screen display devices, the correspondence between the screen size, data display type, and layout size can be preset. It should be understood that when the display data of the data display type is displayed on a device with the corresponding screen size, a better display effect can be achieved by laying out through the corresponding layout size. After the target screen size of the display device is obtained by automatic system detection or manual user input, for each target data display type, by querying the above correspondence, the target layout size corresponding to the target data display type under the target screen size can be determined, where the target layout size includes the layout size, position, and spacing of the data, etc. Then, the display data corresponding to the target data display type will be displayed on the display screen of the display device based on the determined target layout size.
[0068] In this embodiment, the target layout size corresponding to the target data display type can be dynamically adjusted according to the target screen size of the display device, so as to ensure that the data can achieve the best visual effect when displayed on devices with different screen sizes, making the interface layout reasonable and beautiful, and avoiding the problem of incomplete or unclear data display due to differences in screen sizes.
[0069] It should be understood that in different projects to be delivered, the data display types are different. In this application, only by implementing the business logic in the manner described in the foregoing embodiments, the purpose of quickly and dynamically adjusting the content of the display panel can be achieved. For example, when delivering Project A, an alarm record statistics list needs to be displayed on the display panel. Therefore, based on the methods in the foregoing embodiments, the following attribute fields and corresponding field values as described in Table 1 can be obtained: Table 1
[0070] After determining the field values corresponding to the foregoing attribute fields, the display data generated automatically and dynamically can be displayed according to the pre-set code logic.
[0071] Figure 2 It is a schematic diagram of the display of the display data provided by the embodiment of the present invention. As Figure 2 shown, the display data corresponding to the "field intrusion alarm system" project in the security integration platform can be displayed on the display panel. Among them, the target data display types include "intrusion alarm record" and "intrusion event record". The intrusion alarm record is displayed in the data statistics display type, and the intrusion event record is displayed in the horizontal bar chart type. After determining the field values of the attribute fields corresponding to the target data display types respectively, the display data as shown in Figure 2 can be generated.
[0072] The data display method in the security integration platform provided by the embodiments of the present invention, by setting a data display type set, which includes all data display types in the security integration platform, that is, the data display types to be displayed for each project are included in the above data display type set. Since when it is necessary to display the display data of the target project, the display data corresponding to the target data display type can be automatically generated through the field value of the attribute field corresponding to the target data display type of the target project. By fixing the logic code in the code and performing automated display of the data to be displayed according to the pre-set code logic, instead of exhaustively listing the display panel statistics module in advance or custom-developing each time, it is possible to improve the display efficiency of the display data corresponding to the target data display type of the target project, and solve the problem that when the security integration platform needs to display security data of different categories of attributes in different project deliveries, the requirements for the composition and layout of the display panel are different, so it is necessary to edit and develop the composition and layout form of the platform display panel multiple times, resulting in a large amount of repetitive work, which is not conducive to the rational use of human resources and reduces the platform development efficiency.
[0073] The following describes the data display device in the security integration platform provided by the present invention. The data display device in the security integration platform described below can be correspondingly referred to the data display method in the security integration platform described above.
[0074] Figure 3 It is a schematic structural diagram of the data display device in the security integration platform provided by the embodiments of the present invention. Refer to Figure 3 As shown, the data display device 300 in the security integration platform includes: An acquisition module 11, configured to acquire a display instruction for a target project in the security integration platform; A determination module 12, configured to, in response to the display instruction, determine at least one target data display type to be displayed on the display panel in a data display type set, where the data display type set includes all data display types in the security integration platform; The acquisition module 11 is further configured to, for each of the target data display types, acquire the field value of the attribute field corresponding to the target data display type, where the attribute field includes an attribute label field corresponding to the target data display type and a data source address field corresponding to the target data display type; A display module 13, configured to generate and display the display data corresponding to the target data display type of the target project based on the field value of the attribute label field corresponding to the target data display type and the field value of the data source address field corresponding to the target data display type.
[0075] In an exemplary embodiment, the determination module 12 is specifically configured to: Display all data display types in the set of data display types; Receive a selection instruction input by the user; In response to the selection instruction, determine the data display type corresponding to the selection instruction as the target data display type.
[0076] In one exemplary embodiment, the obtaining module 11 is specifically configured to: Based on the correspondence relationship among the project, the data display type, and the field value of the attribute field, determine the field value of the attribute field corresponding to the target data display type of the target project.
[0077] In one exemplary embodiment, the obtaining module 11 is specifically configured to: Display a field value input interface, where the field value input interface includes field value input boxes for each attribute field; In the case of receiving the field value input by the user in the first field value input box, determine the input field value as the field value of the attribute field corresponding to the first field value input box; In the case of not receiving the field value input by the user in the second field value input box, determine the default value as the field value of the attribute field corresponding to the second field value input box.
[0078] In one exemplary embodiment, the determining module 12 is specifically configured to: Perform semantic analysis on the input field value to obtain a semantic analysis result; Match the semantic analysis result with the semantics of the attribute field corresponding to the first field value input box to obtain a matching result; In the case where the matching result indicates that the semantic analysis result and the semantics match, and the data format of the input field value is the same as the data format of the field value of the attribute field corresponding to the first field value input box, determine the input field value as the field value of the attribute field corresponding to the first field value input box.
[0079] In one exemplary embodiment, the apparatus further includes: an update module, where: The obtaining module 11 is further configured to, in the case of receiving a first update instruction for the data display type, in response to the first update instruction, obtain the update type carried in the first update instruction, where the update type includes at least one of an addition type, a deletion type, and a change type; The update module is configured to update the set of data display types according to the update type.
[0080] In an exemplary embodiment, the obtaining module 11 is further configured to, when receiving a second update instruction for an attribute field, in response to the second update instruction, obtain an update field carried in the second update instruction, where the update field includes at least one of an added field, a deleted field, and a changed field; An update module, configured to update the attribute field of the security integration platform according to the update field.
[0081] In an exemplary embodiment, the obtaining module 11 is further configured to obtain a target screen size of a display device; The determining module 12 is further configured to, for each of the target data display types, based on the correspondence between the screen size, the data display type, and the layout size, determine a target layout size corresponding to the target screen size and the target data display type; The display module 13 is further configured to display display data corresponding to the target data display type based on the target layout size.
[0082] In an exemplary embodiment, the attribute field further includes at least one of a name field corresponding to the target data display type, a field indicating whether time period filtering is supported, and a field indicating the position of the time period filtering box.
[0083] In an exemplary embodiment, the set of data display types includes a digital statistics display type, a static information display type, and a dynamic information display type. The digital statistics display type includes a horizontal data statistics type and a vertical data statistics type. The static information display type includes a list type, a horizontal bar chart type, a vertical bar chart type, a pie chart type, a line chart type, and a scatter plot type. The dynamic information display type includes a trend chart type and a video type.
[0084] The data display device in the security integration platform of this embodiment can be used to execute the method in any of the method embodiments on the data display side of the security integration platform. The specific implementation process and technical effects are similar to those in the method embodiments on the data display side of the security integration platform. For details, reference can be made to the detailed introduction in the method embodiments on the data display side of the security integration platform, which will not be elaborated here.
[0085] Figure 4 The entity structure diagram of an electronic device provided by an embodiment of the present invention is as follows Figure 4As shown in the figure, the electronic device may include: a processor 410, a communications interface 420, a memory 430, and a communication bus 440. Among them, the processor 410, the communications interface 420, and the memory 430 communicate with each other through the communication bus 440. The processor 410 may call the logical instructions in the memory 430 to execute the method for displaying data in the security integration platform. The method includes: obtaining a display instruction for a target item in the security integration platform; in response to the display instruction, determining at least one target data display type to be displayed on the display panel from a set of data display types, where the set of data display types includes all data display types in the security integration platform; for each of the target data display types, obtaining the field value of the attribute field corresponding to the target data display type, where the attribute field includes the attribute label field corresponding to the target data display type and the data source address field of the target data display type; based on the field value of the attribute label field corresponding to the target data display type and the field value of the data source address field of the target data display type, generating and displaying the display data corresponding to the target data display type of the target item.
[0086] In addition, when the logical instructions in the above-mentioned memory 430 are implemented in the form of software functional units and sold or used as independent products, they may be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or a part of this technical solution, may be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of the present invention. The foregoing storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memories (ROM, Read-Only Memory), random access memories (RAM, Random Access Memory), magnetic disks, or optical discs that can store program codes.
[0087] On the other hand, the present invention also provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the data display method in the security integration platform provided by the above-mentioned various methods. The method includes: obtaining a display instruction for a target item in the security integration platform; in response to the display instruction, determining at least one target data display type to be displayed on a display panel from a set of data display types, where the set of data display types includes all data display types in the security integration platform; for each of the target data display types, obtaining the field values of the attribute fields corresponding to the target data display type, where the attribute fields include the attribute label field corresponding to the target data display type and the data source address field of the target data display type; based on the field values of the attribute label field corresponding to the target data display type and the field values of the data source address field of the target data display type, generating and displaying the display data corresponding to the target data display type of the target item.
[0088] In another aspect, the present invention also provides a non-transitory computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, it is configured to execute the data display method in the security integration platform provided by the above-mentioned various methods. The method includes: obtaining a display instruction for a target item in the security integration platform; in response to the display instruction, determining at least one target data display type to be displayed on a display panel from a set of data display types, where the set of data display types includes all data display types in the security integration platform; for each of the target data display types, obtaining the field values of the attribute fields corresponding to the target data display type, where the attribute fields include the attribute label field corresponding to the target data display type and the data source address field of the target data display type; based on the field values of the attribute label field corresponding to the target data display type and the field values of the data source address field of the target data display type, generating and displaying the display data corresponding to the target data display type of the target item.
[0089] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art can understand and implement it without creative efforts.
[0090] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on such an understanding, the above technical solutions, in essence, or the parts that contribute to the prior art can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0091] 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 them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements for some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for displaying data in a security integrated platform, characterized in that: include: Obtain display instructions for target projects in the security integration platform; In response to the display instruction, determining at least one target data display type to be displayed on the display panel in a data display type set, wherein the data display type set includes all data display types in the security integration platform; For each of the target data display types, obtaining a field value of an attribute field corresponding to the target data display type, wherein the attribute field includes an attribute label field corresponding to the target data display type and a data source address field of the target data display type; Based on the field value of the attribute label field corresponding to the target data display type and the field value of the data source address field of the target data display type, the display data corresponding to the target data display type of the target item is generated and displayed.
2. The method for displaying data in the security integrated platform according to claim 1, characterized in that: The determining, from the data display type set, at least one target data display type to be displayed on the display panel comprises: Display all data display types in the data display type set; Receive a selection instruction input by a user; In response to the selection instruction, the data display type corresponding to the selection instruction is determined as the target data display type.
3. The method for displaying data in a security integrated platform according to claim 1, characterized in that: The obtaining of the field value of the attribute field corresponding to the target data display type includes: Based on the correspondence between the project, the data display type and the field value of the attribute field, the field value of the attribute field corresponding to the target data display type of the target project is determined.
4. The method for displaying data in a security integrated platform according to claim 1, characterized in that: The obtaining of the field value of the attribute field corresponding to the target data display type includes: Display a field value input interface, wherein the field value input interface includes a field value input box for each attribute field; In the case of receiving the field value input by the user in the first field value input box, determining the input field value as the field value of the attribute field corresponding to the first field value input box; In the case where the field value input by the user in the second field value input box is not received, a default value is determined as the field value of the attribute field corresponding to the second field value input box.
5. The method for displaying data in a security integrated platform according to claim 4, characterized in that: The step of determining the input field value as the field value of the attribute field corresponding to the first field value input box includes: Perform semantic analysis on the input field value to obtain the semantic analysis result; Matching the semantic analysis result with the semantics of the attribute field corresponding to the first field value input box to obtain a matching result; When the matching result represents the semantic analysis result and the semantic match, and the data format of the input field value is the same as the data format of the field value of the attribute field corresponding to the first field value input box, the input field value is determined as the field value of the attribute field corresponding to the first field value input box.
6. The method for displaying data in a security integrated platform according to claim 1, characterized in that: The method further comprises: In the case of receiving a first update instruction for a data display type, in response to the first update instruction, obtaining an update type carried in the first update instruction, the update type including at least one of a new addition type, a deletion type, and a change type; The data display type set is updated according to the update type.
7. The method for displaying data in a security integrated platform according to claim 1, characterized in that: The method further comprises: In the case of receiving a second update instruction for the attribute field, in response to the second update instruction, obtaining an update field carried in the second update instruction, wherein the update field includes at least one of a newly added field, a deleted field, and a changed field; According to the update field, the attribute field of the security integration platform is updated.
8. The method for displaying data in a security integrated platform according to claim 1, characterized in that: The method further comprises: Get the target screen size of the display device; For each of the target data display types, based on the correspondence between the screen size, the data display type and the layout size, determine the target screen size and the target layout size corresponding to the target data display type; Displaying the display data corresponding to the target data display type based on the target layout size.
9. The method for displaying data in a security integrated platform according to any one of claims 1 to 8, characterized in that: The attribute field also includes at least one of a name field corresponding to the target data display type, a field indicating whether time period filtering is supported, and a field indicating a position of a time period filtering box.
10. The method for displaying data in a security integrated platform according to any one of claims 1 to 8, characterized in that: The data display type set includes digital statistical display type, static information display type and dynamic information display type. The digital statistical display type includes horizontal data statistical type and vertical data statistical type. The static information display type includes list type, horizontal bar chart type, vertical bar chart type, pie chart type, line chart type and scatter chart type. The dynamic information display type includes trend chart type and video type.