CN110618773B - Menu processing method and device, electronic equipment and readable storage medium - Google Patents

Menu processing method and device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN110618773B
CN110618773B CN201910810002.XA CN201910810002A CN110618773B CN 110618773 B CN110618773 B CN 110618773B CN 201910810002 A CN201910810002 A CN 201910810002A CN 110618773 B CN110618773 B CN 110618773B
Authority
CN
China
Prior art keywords
menu
user
web
web front
items
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910810002.XA
Other languages
Chinese (zh)
Other versions
CN110618773A (en
Inventor
张洋
庾少华
袁占涛
王艳辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Visionvera Information Technology Co Ltd
Original Assignee
Visionvera Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Visionvera Information Technology Co Ltd filed Critical Visionvera Information Technology Co Ltd
Priority to CN201910810002.XA priority Critical patent/CN110618773B/en
Publication of CN110618773A publication Critical patent/CN110618773A/en
Application granted granted Critical
Publication of CN110618773B publication Critical patent/CN110618773B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention provides a menu processing method, a device, electronic equipment and a storage medium, which are applied to a geographic information GIS system, wherein the GIS system comprises a web front end configured to a terminal and a web back end configured to a GIS server, and the method comprises the following steps: the web front end generates a user-defined menu signaling according to user-defined menu operation performed by a current login user; the web back end receives the user-defined menu signaling through the GIS server and sends a preset default menu to the web front end; the web front end generates menu data through modification operation aiming at the arrangement sequence of the menu items on the default menu by the user; the web back end generates a user-defined menu according to the menu data, and stores the user-defined menu in an association table corresponding to the current login user; the web back end acquires the user-defined menu from the association table and sends the user-defined menu to the web front end; the web front end displays a custom menu. The method and the device realize that the user can customize the menu of the user, and optimize the user experience.

Description

Menu processing method and device, electronic equipment and readable storage medium
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a menu processing method, a menu processing apparatus, an electronic device, and a computer-readable storage medium.
Background
With the popularization and development of the video networking service in the whole country, the video networking high-definition video networking interaction technology plays a significant role in various industries.
The video networking adopts the most advanced real-time high-definition video exchange technology in the world, realizes the real-time transmission of the high-definition video in the whole network which can not be realized by the Internet at present, integrates dozens of services such as high-definition video conference, video monitoring, remote training, intelligent monitoring and analysis, emergency command, video telephone, live broadcast, television mail, information distribution and the like into a system platform, and realizes the real-time interconnection and intercommunication of high-definition quality video communication through various terminal devices.
In the existing video networking service System, improvement on the existing GIS System (Geographic Information System or Geo-Information System, Geographic Information System) has been realized, so that a GIS sky-eye scheduling application System (GIS System for short) used in the video networking is formed when being applied to the video networking, and functions of remote alarm, positioning, trajectory tracking and the like are realized. The functions provided by the GIS are numerous, and a plurality of menu items are correspondingly provided, however, the existing GIS user can only use the default menu of the GIS system when logging in the GIS system, the frequently-used system functions of different GIS users are different, and the frequently-used menu items are also different, so that the fixed default menu is inconvenient for the GIS user to use the frequently-used menu items, the interaction between the GIS system and the user is not flexible enough, and the user experience is poor.
Disclosure of Invention
In view of the above problems, embodiments of the present invention are provided to provide a menu processing method, a menu processing apparatus, an electronic device, and a computer-readable storage medium that overcome or at least partially solve the above problems.
In a first aspect of the embodiments of the present invention, a menu processing method is provided, where the method is applied to a geographic information GIS system, the GIS system includes a web front end configured to a terminal and a web back end configured to a GIS server, and the method includes:
the web front end generates a user-defined menu signaling according to user-defined menu operation performed by a current login user, and sends the user-defined menu signaling to the GIS server through the terminal;
the web back end receives the self-defined menu signaling through the GIS server, and sends a preset default menu to the web front end through the GIS server aiming at the self-defined menu signaling; the default menu comprises a plurality of menu items;
the web front end receives the default menu through the terminal, generates menu data according to the modification operation of the arrangement sequence of the menu items on the default menu by the user, and sends the menu data to the GIS server through the terminal;
the web back end receives the menu data through the GIS server, generates a user-defined menu according to the menu data, and stores the user-defined menu into an association table corresponding to the current login user;
the web back end acquires the user-defined menu from the association table and sends the user-defined menu to the web front end through the GIS server;
and the web front end receives the user-defined menu through the terminal and displays the user-defined menu.
Optionally, before the web front end generates a user-defined menu signaling according to a user-defined menu operation performed by a currently logged-in user and sends the user-defined menu signaling to the GIS server through the terminal, the method further includes:
after determining that the current login user successfully logs in, the web back end judges whether a customized menu exists in the association table corresponding to the current login user;
if so, the web back end sends the customized menu to the web front end through the GIS server;
if not, the web back end sends the default menu to the web front end through the GIS server;
the web back end stores the user-defined menu in an association table corresponding to the current user, and the method comprises the following steps:
and when the web back end determines that the customized menu exists in the association table, updating the customized menu in the association table into the self-defined menu.
Optionally, the generating, by the web front end, menu data according to a modification operation of the user on the default menu with respect to the arrangement order of the plurality of menu items, and sending, by the terminal, the menu data to the GIS server includes:
the web front end generates a first menu data set and a second menu data set according to a plurality of first menu items to be preferentially displayed selected by a current login user on the default menu; wherein the first menu data set includes the plurality of first menu items, and the second menu data set includes all second menu items in the default menu that are not selected;
the web front end sends the first menu data set and the second menu data set to the GIS server;
generating a self-defined menu according to the menu data, comprising:
the web back end generates a user-defined menu by adopting the first menu data set and the second menu data set; in the custom menu, the plurality of first menu items are arranged before the plurality of second menu items;
the web front end displays the custom menu, including:
the web front end displays the plurality of first menu items arranged in the user-defined menu in the front by adopting a first display mode, and displays the plurality of second menu items in the user-defined menu by adopting a second display mode.
Optionally, for the user-defined menu signaling, sending a preset default menu to the web front end through the GIS server, including:
the web back end packages the preset default menu into default menu data in a JSON data format and sends the default menu data in the JSON data format to the web front end;
the web back end obtains the user-defined menu from the association table and sends the user-defined menu to the web front end, and the method comprises the following steps:
the web back end encapsulates the custom menu obtained from the association table into custom menu data in a JSON data format;
the web back end sends the user-defined menu data in the JSON data format to the web front end;
the web front end receives the user-defined menu data through the terminal, and displays the user-defined menu in a preset display mode, wherein the method comprises the following steps:
and the web front end analyzes the user-defined menu data in the JSON data format to obtain the user-defined menu, and displays the user-defined menu.
Optionally, the web front end displays the plurality of first menu items in the custom menu in a first display mode, and displays the plurality of second menu items in the custom menu in a second display mode, including:
the web front end displays respective menu names of the plurality of first menu items, and displays the menu names
Displaying menu icons of the plurality of second menu items;
or,
and the web front end displays the menu names of the first menu items respectively and hides and displays the menu icons of the second menu items respectively.
Optionally, the web front end generates a first menu data set and a second menu data set according to a plurality of first menu items to be preferentially displayed selected by a current login user on the default menu, including:
the web front end marks respective serial numbers of the first menu items according to the sequence of the plurality of first menu items selected by the current login user;
the web front end generates the first menu data set according to the sequence of the serial numbers of the first menu items, and generates a second data set by adopting the plurality of second menu items which are not selected by the current login user;
the web front end displays the plurality of first menu items in the user-defined menu in a first display mode, including:
and the web front end displays the plurality of first menu items based on the sequence of the serial numbers of the first menu items.
In a second aspect of the embodiments of the present invention, there is provided a menu processing apparatus, which is applied to a geographic information GIS system, where the GIS system includes a web front end configured to a terminal and a web back end configured to a GIS server, and the apparatus includes:
the user-defined menu signaling module is used for generating a user-defined menu signaling according to user-defined menu operation performed by a current login user and sending the user-defined menu signaling to the GIS server through the terminal;
the default menu sending module is used for receiving the self-defined menu signaling through the GIS server and sending a preset default menu to the web front end through the GIS server aiming at the self-defined menu signaling; the default menu comprises a plurality of menu items;
the menu modification module is used for receiving the default menu through the terminal, generating menu data according to modification operation of the arrangement sequence of the menu items on the default menu by a user, and sending the menu data to the GIS server through the terminal;
the user-defined menu association module is used for receiving the menu data through the GIS server, generating a user-defined menu according to the menu data and storing the user-defined menu into an association table corresponding to the current user;
the user-defined menu sending module is used for acquiring the user-defined menu from the association table and sending the user-defined menu to the web front end through the GIS server;
a user-defined menu display module for receiving the user-defined menu data through the terminal and
and displaying the self-defined menu.
Optionally, the apparatus further comprises:
the judging module is used for judging whether a customized menu exists in the association table corresponding to the current login user after the login of the current login user is successful;
the menu sending module is used for sending the customized menu to the web front end through the GIS server if the customized menu exists in the association table corresponding to the current login user; if the customized menu does not exist in the association table corresponding to the current login user; sending the default menu to the web front end through the GIS server;
the self-defined menu association module comprises:
and the menu updating unit is used for updating the customized menu in the association table into the self-defined menu when the customized menu is determined to exist in the association table.
In a third aspect of the embodiments of the present invention, there is provided an electronic device, including: one or more processors; and one or more machine readable media having instructions stored thereon, which when executed by the one or more processors, cause the apparatus to perform the menu processing method.
In a fourth aspect of the embodiments of the present invention, a computer-readable storage medium is provided, which stores a computer program for causing a processor to execute the menu processing method.
The embodiment of the invention has the following advantages:
in the embodiment of the invention, when the web front end detects that a user needs to customize a menu, the generated user-defined menu signaling is sent to a GIS server, the web back end returns the default menu to the web front end aiming at the user-defined menu signaling, the web front end returns menu data aiming at the modification operation to the web back end according to the modification operation of the user to the arrangement sequence of a plurality of menu items in the default menu, so that the web back end can store the user-defined menu generated according to the menu data into the association table corresponding to the current login user, and further the web back end returns the user-defined menu extracted from the association table to the web front end, so that the web front end can display the user-defined menu, the GIS user can customize the menu according to own habits, and the user experience of the GIS user is optimized. Because the web front end of the GIS system is deployed on the terminal, the web rear end is deployed on the GIS server, and the web front end and the web rear end communicate through the network, a GIS user can customize a menu and obtain the customized menu through the web front end when logging in any terminal, and the user experience is further optimized.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments of the present application will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive exercise.
FIG. 1 is a schematic networking diagram of a video network of the present invention;
FIG. 2 is a schematic diagram of a hardware architecture of a node server according to the present invention;
fig. 3 is a schematic diagram of a hardware structure of an access switch of the present invention;
fig. 4 is a schematic diagram of a hardware structure of an ethernet protocol conversion gateway according to the present invention;
FIG. 5 is a diagram of an application environment of a menu processing method according to an embodiment of the present invention;
FIG. 6 is a flow chart of steps of a method of menu processing according to an embodiment of the present invention;
fig. 7 is a flowchart of the step of step S63 in a menu processing method according to an embodiment of the present invention;
fig. 8 is a GIS system interface diagram when the method described in step S661 shows the custom menu in the menu processing method according to the embodiment of the present invention;
fig. 9 is a GIS system interface diagram when the method described in step S662 is used to display the custom menu in the menu processing method according to the embodiment of the present invention;
fig. 10 is a flowchart of steps included before step S61 in a menu processing method of an embodiment of the present invention;
fig. 11 is a schematic structural diagram of a menu processing apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
The video networking is an important milestone for network development, is a real-time network, can realize high-definition video real-time transmission, and pushes a plurality of internet applications to high-definition video, and high-definition faces each other.
The video networking adopts a real-time high-definition video exchange technology, can integrate required services such as dozens of services of video, voice, pictures, characters, communication, data and the like on a system platform on a network platform, such as high-definition video conference, video monitoring, intelligent monitoring analysis, emergency command, digital broadcast television, delayed television, network teaching, live broadcast, VOD on demand, television mail, Personal Video Recorder (PVR), intranet (self-office) channels, intelligent video broadcast control, information distribution and the like, and realizes high-definition quality video broadcast through a television or a computer.
To better understand the embodiments of the present invention, the following description refers to the internet of view:
some of the technologies applied in the video networking are as follows:
network Technology (Network Technology)
Network technology innovation in video networking has improved the traditional Ethernet (Ethernet) to face the potentially huge first video traffic on the network. Unlike pure network Packet Switching (Packet Switching) or network Circuit Switching (Circuit Switching), the Packet Switching is adopted by the technology of the video networking to meet the Streaming requirement. The video networking technology has the advantages of flexibility, simplicity and low price of packet switching, and simultaneously has the quality and safety guarantee of circuit switching, thereby realizing the seamless connection of the whole network switching type virtual circuit and the data format.
Switching Technology (Switching Technology)
The video network adopts two advantages of asynchronism and packet switching of the Ethernet, eliminates the defects of the Ethernet on the premise of full compatibility, has end-to-end seamless connection of the whole network, is directly communicated with a user terminal, and directly bears an IP data packet. The user data does not require any format conversion across the entire network. The video networking is a higher-level form of the Ethernet, is a real-time exchange platform, can realize the real-time transmission of the whole-network large-scale high-definition video which cannot be realized by the existing Internet, and pushes a plurality of network video applications to high-definition and unification.
Server Technology (Server Technology)
The server technology on the video networking and unified video platform is different from the traditional server, the streaming media transmission of the video networking and unified video platform is established on the basis of connection orientation, the data processing capacity of the video networking and unified video platform is independent of flow and communication time, and a single network layer can contain signaling and data transmission. For voice and video services, the complexity of video networking and unified video platform streaming media processing is much simpler than that of data processing, and the efficiency is greatly improved by more than one hundred times compared with that of a traditional server.
Storage Technology (Storage Technology)
The super-high speed storage technology of the unified video platform adopts the most advanced real-time operating system in order to adapt to the media content with super-large capacity and super-large flow, the program information in the server instruction is mapped to the specific hard disk space, the media content is not passed through the server any more, and is directly sent to the user terminal instantly, and the general waiting time of the user is less than 0.2 second. The optimized sector distribution greatly reduces the mechanical motion of the magnetic head track seeking of the hard disk, the resource consumption only accounts for 20% of that of the IP internet of the same grade, but concurrent flow which is 3 times larger than that of the traditional hard disk array is generated, and the comprehensive efficiency is improved by more than 10 times.
Network Security Technology (Network Security Technology)
The structural design of the video network completely eliminates the network security problem troubling the internet structurally by the modes of independent service permission control each time, complete isolation of equipment and user data and the like, generally does not need antivirus programs and firewalls, avoids the attack of hackers and viruses, and provides a structural carefree security network for users.
Service Innovation Technology (Service Innovation Technology)
The unified video platform integrates services and transmission, and is not only automatically connected once whether a single user, a private network user or a network aggregate. The user terminal, the set-top box or the PC are directly connected to the unified video platform to obtain various multimedia video services in various forms. The unified video platform adopts a menu type configuration table mode to replace the traditional complex application programming, can realize complex application by using very few codes, and realizes infinite new service innovation.
Networking of the video network is as follows:
the video network is a centralized control network structure, and the network can be a tree network, a star network, a ring network and the like, but on the basis of the centralized control node, the whole network is controlled by the centralized control node in the network.
As shown in fig. 1, the video network is divided into an access network and a metropolitan network.
The devices of the access network part can be mainly classified into 3 types: node server, access switch, terminal (including various set-top boxes, coding boards, memories, etc.). The node server is connected to an access switch, which may be connected to a plurality of terminals and may be connected to an ethernet network.
The node server is a node which plays a centralized control function in the access network and can control the access switch and the terminal. The node server can be directly connected with the access switch or directly connected with the terminal.
Similarly, devices of the metropolitan network portion may also be classified into 3 types: a metropolitan area server, a node switch and a node server. The metro server is connected to a node switch, which may be connected to a plurality of node servers.
The node server is a node server of the access network part, namely the node server belongs to both the access network part and the metropolitan area network part.
The metropolitan area server is a node which plays a centralized control function in the metropolitan area network and can control a node switch and a node server. The metropolitan area server can be directly connected with the node switch or directly connected with the node server.
Therefore, the whole video network is a network structure with layered centralized control, and the network controlled by the node server and the metropolitan area server can be in various structures such as tree, star and ring.
The access network part can form a unified video platform (the part in the dotted circle), and a plurality of unified video platforms can form a video network; each unified video platform may be interconnected via metropolitan area and wide area video networking.
Video networking device classification
1.1 devices in the video network of the embodiment of the present invention can be mainly classified into 3 types: server, exchanger (including Ethernet protocol conversion gateway), terminal (including various set-top boxes, code board, memory, etc.). The video network as a whole can be divided into a metropolitan area network (or national network, global network, etc.) and an access network.
1.2 wherein the devices of the access network part can be mainly classified into 3 types: node server, access exchanger (including Ethernet protocol conversion gateway), terminal (including various set-top boxes, coding board, memory, etc.).
The specific hardware structure of each access network device is as follows:
a node server:
as shown in fig. 2, the system mainly includes a network interface module 201, a switching engine module 202, a CPU module 203, and a disk array module 204;
the network interface module 201, the CPU module 203, and the disk array module 204 all enter the switching engine module 202; the switching engine module 202 performs an operation of looking up the address table 205 on the incoming packet, thereby obtaining the direction information of the packet; and stores the packet in a queue of the corresponding packet buffer 206 based on the packet's steering information; if the queue of the packet buffer 206 is nearly full, it is discarded; the switching engine module 202 polls all packet buffer queues for forwarding if the following conditions are met: 1) the port send buffer is not full; 2) the queue packet counter is greater than zero. The disk array module 204 mainly implements control over the hard disk, including initialization, read-write, and other operations on the hard disk; the CPU module 203 is mainly responsible for protocol processing with an access switch and a terminal (not shown in the figure), configuring an address table 205 (including a downlink protocol packet address table, an uplink protocol packet address table, and a data packet address table), and configuring the disk array module 204.
The access switch:
as shown in fig. 3, the network interface module mainly includes a network interface module (a downlink network interface module 301 and an uplink network interface module 302), a switching engine module 303 and a CPU module 304;
wherein, the packet (uplink data) coming from the downlink network interface module 301 enters the packet detection module 305; the packet detection module 305 detects whether the Destination Address (DA), the Source Address (SA), the packet type, and the packet length of the packet meet the requirements, and if so, allocates a corresponding stream identifier (stream-id) and enters the switching engine module 303, otherwise, discards the stream identifier; the packet (downstream data) coming from the upstream network interface module 302 enters the switching engine module 303; the incoming data packet of the CPU module 304 enters the switching engine module 303; the switching engine module 303 performs an operation of looking up the address table 306 on the incoming packet, thereby obtaining the direction information of the packet; if the packet entering the switching engine module 303 is from the downstream network interface to the upstream network interface, the packet is stored in the queue of the corresponding packet buffer 307 in association with the stream-id; if the queue of the packet buffer 307 is nearly full, it is discarded; if the packet entering the switching engine module 303 is not from the downlink network interface to the uplink network interface, the data packet is stored in the queue of the corresponding packet buffer 307 according to the guiding information of the packet; if the queue of the packet buffer 307 is nearly full, it is discarded.
The switching engine module 303 polls all packet buffer queues and may include two cases:
if the queue is from the downlink network interface to the uplink network interface, the following conditions are met for forwarding: 1) the port send buffer is not full; 2) the queued packet counter is greater than zero; 3) obtaining a token generated by a code rate control module;
if the queue is not from the downlink network interface to the uplink network interface, the following conditions are met for forwarding: 1) the port send buffer is not full; 2) the queue packet counter is greater than zero.
The rate control module 308 is configured by the CPU module 304, and generates tokens for packet buffer queues from all downstream network interfaces to upstream network interfaces at programmable intervals to control the rate of upstream forwarding.
The CPU module 304 is mainly responsible for protocol processing with the node server, configuration of the address table 306, and configuration of the code rate control module 308.
Ethernet protocol conversion gateway
As shown in fig. 4, the apparatus mainly includes a network interface module (a downlink network interface module 401 and an uplink network interface module 402), a switching engine module 403, a CPU module 404, a packet detection module 405, a rate control module 408, an address table 406, a packet buffer 407, a MAC adding module 409, and a MAC deleting module 410.
Wherein, the data packet coming from the downlink network interface module 401 enters the packet detection module 405; the packet detection module 405 detects whether the ethernet MAC DA, the ethernet MAC SA, the ethernet length or frame type, the video network destination address DA, the video network source address SA, the video network packet type, and the packet length of the packet meet the requirements, and if so, allocates a corresponding stream identifier (stream-id); then, the MAC deletion module 410 subtracts MAC DA, MAC SA, length or frame type (2byte) and enters the corresponding receiving buffer, otherwise, discards it;
the downlink network interface module 401 detects the sending buffer of the port, and if there is a packet, obtains the ethernet MAC DA of the corresponding terminal according to the destination address DA of the packet, adds the ethernet MAC DA of the terminal, the MAC SA of the ethernet protocol gateway, and the ethernet length or frame type, and sends the packet.
The other modules in the ethernet protocol gateway function similarly to the access switch.
A terminal:
the system mainly comprises a network interface module, a service processing module and a CPU module; for example, the set-top box mainly comprises a network interface module, a video and audio coding and decoding engine module and a CPU module; the coding board mainly comprises a network interface module, a video and audio coding engine module and a CPU module; the memory mainly comprises a network interface module, a CPU module and a disk array module.
1.3 devices of the metropolitan area network part can be mainly classified into 2 types: node server, node exchanger, metropolitan area server. The node switch mainly comprises a network interface module, a switching engine module and a CPU module; the metropolitan area server mainly comprises a network interface module, a switching engine module and a CPU module.
2. Video networking packet definition
2.1 Access network packet definition
The data packet of the access network mainly comprises the following parts: destination Address (DA), Source Address (SA), reserved bytes, payload (pdu), CRC.
As shown in the following table, the data packet of the access network mainly includes the following parts:
DA SA Reserved Payload CRC
wherein:
the Destination Address (DA) is composed of 8 bytes (byte), the first byte represents the type of the data packet (such as various protocol packets, multicast data packets, unicast data packets, etc.), there are 256 possibilities at most, the second byte to the sixth byte are metropolitan area network addresses, and the seventh byte and the eighth byte are access network addresses;
the Source Address (SA) is also composed of 8 bytes (byte), defined as the same as the Destination Address (DA);
the reserved byte consists of 2 bytes;
the payload part has different lengths according to different types of datagrams, and is 64 bytes if the datagram is various types of protocol packets, and is 32+1024 or 1056 bytes if the datagram is a unicast packet, of course, the length is not limited to the above 2 types;
the CRC consists of 4 bytes and is calculated in accordance with the standard ethernet CRC algorithm.
2.2 metropolitan area network packet definition
The topology of a metropolitan area network is a graph and there may be 2, or even more than 2, connections between two devices, i.e., there may be more than 2 connections between a node switch and a node server, a node switch and a node switch, and a node switch and a node server. However, the metro network address of the metro network device is unique, and in order to accurately describe the connection relationship between the metro network devices, parameters are introduced in the embodiment of the present invention: a label to uniquely describe a metropolitan area network device.
In this specification, the definition of the Label is similar to that of the Label of MPLS (Multi-Protocol Label Switch), and assuming that there are two connections between the device a and the device B, there are 2 labels for the packet from the device a to the device B, and 2 labels for the packet from the device B to the device a. The label is classified into an incoming label and an outgoing label, and assuming that the label (incoming label) of the packet entering the device a is 0x0000, the label (outgoing label) of the packet leaving the device a may become 0x 0001. The network access process of the metro network is a network access process under centralized control, that is, address allocation and label allocation of the metro network are both dominated by the metro server, and the node switch and the node server are both passively executed, which is different from label allocation of MPLS, and label allocation of MPLS is a result of mutual negotiation between the switch and the server.
As shown in the following table, the data packet of the metro network mainly includes the following parts:
DA SA Reserved label (R) Payload CRC
Namely Destination Address (DA), Source Address (SA), Reserved byte (Reserved), tag, payload (pdu), CRC. The format of the tag may be defined by reference to the following: the tag is 32 bits with the upper 16 bits reserved and only the lower 16 bits used, and its position is between the reserved bytes and payload of the packet.
Referring to fig. 5, an application environment diagram of a menu processing method according to an embodiment of the present invention is shown, where the method is applied to a geographic information GIS system, and in fig. 5, the GIS system includes a web front end configured to a terminal and a web back end configured to a GIS server, and the GIS system is located in a video network, and both the terminal and the GIS server may be in communication connection with the video network server, and in practice, both the terminal and the GIS server may be registered in the video network server in advance to obtain a video network number that can be communicated in the video network, so that the terminal and the GIS server may communicate with each other using a video network protocol.
The terminal may be a pc (personal computer), and the configuration of the web front end to the terminal may be understood as a web front end in which a GIS system runs in a browser on the terminal. The GIS server provides background services such as positioning, trajectory tracking, alarming and the like for users in the GIS system. The web back end interacts with the web front end to process corresponding business logic, and then the work of the GIS system such as function, data access, and stability and performance of maintenance is realized. The configuration of the web backend to the GIS server can be understood as running the web backend on the GIS server.
The menu processing method provided by the embodiment of the invention can be carried out based on a GIS server and a browser end on a PC, the web front end renders a user interactive interface of the GIS system through an HTML technology, and the web rear end adopts a java technology as a bottom-layer service framework.
Referring to fig. 6, a flowchart illustrating steps of a menu processing method according to an embodiment of the present invention is shown, where the method may specifically include the following steps:
and step S61, the web front end generates a user-defined menu signaling according to the user-defined menu operation performed by the current login user, and sends the user-defined menu signaling to the GIS server through the terminal.
In practice, the current login user may log in the GIS system using a browser installed on a PC, and after the login is successful, a GIS system interface is displayed on a browser page, where the system interface may include a home page and the management page. The user-defined menu operation can be an operation of clicking a 'setting' menu key after the current login user enters the GIS system management page. The generated self-defined menu signaling is a signaling conforming to the video networking protocol, and in practice, the web front end generates the self-defined menu signaling and then sends the self-defined menu signaling to the self-defined menu signaling by the terminal where the web front end is located.
And step S62, the web back end receives the self-defined menu signaling through the GIS server, and sends a preset default menu to the web front end through the GIS server aiming at the self-defined menu signaling. Wherein the default menu comprises a plurality of menu items.
In this embodiment, the default menu may be a system default menu of the GIS system, and the default menu includes a plurality of menu items, where a hierarchical structure does not exist among the menu items, that is, the default menu of the embodiment of the present invention is a non-hierarchical menu, and each menu item is unrelated to each other and is responsible for an independent GIS function.
Illustratively, taking an existing GIS system as an example, the default menu includes the following menu items: conference scheduling, one-key click-to-call, cross-domain telephone, unmanned aerial vehicle historical track, favorites, ongoing services, system management and the like, wherein each menu item corresponds to the function of a GIS system.
Step S63, the web front end receives the default menu through the terminal, generates menu data according to the modification operation of the arrangement order of the plurality of menu items performed by the user on the default menu, and sends the menu data to the GIS server through the terminal.
In this embodiment, the web front end may display the default menu on the GIS system interface when receiving the default menu, where each menu item in the default menu is arranged in sequence according to the default order of the system, and the user may modify the arrangement order of each menu item, and after the modification is completed, the web front end may return the menu data of the new modified menu item order to the GIS server.
Referring to fig. 7, a flowchart of the steps involved in step S63 in an alternative embodiment is shown, including the steps of:
step S71, the web front end generates a first menu data set and a second menu data set according to a plurality of first menu items to be preferentially displayed selected by the current login user on the default menu.
In the optional embodiment, when the web front end displays the default menu, all menu items in the default menu displayed on the display interface are arranged in sequence according to the default order of the system, a user can directly select a plurality of first menu items to be arranged in the displayed default menu for preferential display, and the rest second menu items which are not required to be arranged in the displayed default menu for preferential display can not be selected. In this way, the web front end may form a first menu data set with a plurality of first menu items selected by the user and a second menu data set with a plurality of second menu items not selected by the user. Such that the plurality of first menu items is included in a first menu data set and all second menu items in the default menu that are not selected are included in a second menu data set.
In practice, the number of the first menu items may be preset, so that the number of the menu items that are arranged in the previous priority display may be controlled within a certain range, for example, the number of the preset first menu items may be 3, and then the user selects three first menu items to be displayed preferentially on the default menu item.
Illustratively, the following menu items are included in the default menu: conference scheduling, one-key click-to-call, cross-domain telephone, unmanned aerial vehicle historical track, favorites, ongoing service and system management are taken as examples, when the default menu is displayed at the front end of the web, the arrangement sequence of the menu items is as follows: the method comprises the following steps that an unmanned aerial vehicle history track, conference scheduling, favorites, one-key call, cross-domain telephone, ongoing services and system management are conducted, a user selects the conference scheduling, the cross-domain telephone and the one-key call from the menu items, and then a first menu data set generated by the web front end according to the selection of the user comprises the menu items: conference scheduling, cross-domain telephony and one-touch-tone; and the second menu data set comprises menu items: the system comprises a user-computer historical track, favorites, ongoing services and system management.
Step S72, the web front end sends the first menu data set and the second menu data set to the GIS server.
The first menu data set and the second menu data set are the menu data set in step S63. By adopting the steps S71 and S72, the user can directly check the menu items needing to be arranged in the front in the default menu through the mouse to modify the arrangement sequence of the menu items in the menu, so that the operation of the user is facilitated, and thus, the web front end can record the arrangement sequence of the menu items modified by the user in a mode of generating two menu data sets according to the check operation of the user on the menu items, and thus, the bottom development of the web front end on realizing the self-defined menu function is simplified.
And step S64, the web back end receives the menu data through the GIS server, generates a user-defined menu according to the menu data, and stores the user-defined menu in an association table corresponding to the current login user.
In this embodiment, the web backend may directly generate the custom menu by using the menu data, where the association table is a table that has a storage function and corresponds to the current login user in a one-to-one manner, and is used to store the customized menu customized by each user, and the association table may use the user ID of the current login user as an identifier and uniquely characterize the association table as the association table of the current login user.
With reference to the flowchart of step S63 shown in fig. 7, correspondingly, in step S64, the method described in the following steps may be specifically adopted to generate the custom menu according to the menu data:
and step S64', the web back end generates a user-defined menu by adopting the first menu data set and the second menu data set.
In this optional embodiment, because a plurality of first menu items included in the first menu data set are menu items that need to be arranged in front for preferential display, and a plurality of second menu items included in the second menu data set are menu items that do not need to be preferentially displayed, the web backend may integrate the plurality of first menu items included in the first menu data set and the plurality of second menu items included in the second menu data set into one customized menu, specifically, the plurality of first menu items in the first menu data set may be arranged in front, and the second menu items are all spliced behind the plurality of first menu items, so that, in the generated customized menu, the plurality of first menu items are arranged in front of the plurality of second menu items.
Illustratively, the first menu data set generated by the web front end according to the user's selection includes menu items: conference scheduling, cross-domain telephony and one-touch-tone; and the second menu data set comprises menu items: taking unmanned aerial vehicle history track, ongoing service, favorite and system management as examples, the web backend arranges 3 menu items such as meeting scheduling, cross-domain telephone, one-key click scheduling and the like in the first menu data set in front, splices 4 menu items such as unmanned aerial vehicle history track, ongoing service, favorite, and system management and the like in the second menu data set behind the 3 menu items, and finally generates a user-defined menu in which the sequence of each menu item is: conference scheduling, cross-domain telephone, one-touch scheduling, unmanned aerial vehicle historical track, ongoing service, favorites and system management. The conference scheduling, cross-domain telephone and one-key-click scheduling are menu items which are selected by the user and arranged in the front for preferential display, so that the user can modify the default menu in a self-defined manner.
And step S65, the web back end acquires the user-defined menu from the association table and sends the user-defined menu to the web front end through the GIS server.
In this embodiment, the web backend may obtain the regenerated custom menu from the association table, and may encapsulate the custom menu with the packet header of the video networking protocol, so as to send the custom menu to the web frontend through the GIS server.
And step S66, the web front end receives the user-defined menu through the terminal and displays the user-defined menu.
In this embodiment, the web front end may display the custom menu on the GIS system page by using the existing display rendering technology, specifically, when displaying the custom menu, the custom menu is also displayed according to the order of the menu items in the custom menu, that is, the menu item arranged in front in the displayed custom menu is the first menu item, and the menu item arranged in back is the second menu item.
In an alternative embodiment, in combination with the above steps S71, S72 and S64 ', the method for displaying the custom menu in step S66 of this embodiment may be as follows in step S66':
step S66', the web front end displays the plurality of first menu items arranged in the user-defined menu in the first display mode, and displays the plurality of second menu items in the user-defined menu in the second display mode.
In the embodiment, the first display mode and the second display mode can be understood as displaying a plurality of first menu items and a plurality of second menu items through different presentation modes, so that a user can clearly distinguish the first menu items to be preferentially displayed and the second menu items which are not preferentially displayed, which are selected by the user, thus the friendliness of a menu interface of the GIS system is improved, and the user experience is optimized.
In fact, in a possible implementation, in step S71, when the user selects a first menu item, each first menu item in the corresponding first menu data set has a tag that can be identified as being selected by the user, and a second menu item in the second menu data set has no tag, and the first menu item included in the customized menu generated at the web backend has a tag, and the second menu item has no tag. Therefore, when the self-defined menu is displayed at the front end of the web, the first menu item with the label can be displayed in the first display mode, and the second menu item without the label can be displayed in the second display mode.
In combination with this embodiment, in an alternative embodiment, step S66' may be specifically the following step S661 or step S662:
step S661, the web front end displays the menu names of the first menu items, and displays the menu icons of the second menu items.
Displaying that the menu name of each first menu item is the first display mode, and displaying that the menu icon of each second menu item is the second display mode, therefore, in step S661, the first display mode presents the selected menu item to the user in the form of displaying the menu name of each first menu item, and the first display mode presents the unselected menu item to the user in the form of displaying the menu icon of each second menu item, which realizes that the GIS system presents different forms of menu items according to the usage habits of the user, so as to optimize the experience.
Fig. 8 is a diagram illustrating a GIS system interface when the method described in step S661 is used to display the custom menu in a specific example. In fig. 8, the left conference schedule, the one-touch-tone cross-domain phone, and the first menu item to be displayed in advance, which is selected by the user and arranged in sequence, are displayed as menu names of the first menu item, four icons included under the right console are respectively a history track of the drone, a favorite, an ongoing service, and system management, and are displayed as menu icons of the second menu item.
In step S662, the web front end displays the menu names of the first menu items, and displays the menu icons of the second menu items in a hidden manner.
The hidden display in the embodiment means that the menu icon of each second menu item is hidden in a GIS system interface, and when a user mouse moves to the hidden position of the menu icon of each second menu item, the second menu item is displayed.
As shown in fig. 9, a GIS system interface diagram when the user-defined menu is presented by using the method described in step S662 in a specific example is shown. In fig. 9, the left conference schedule, the one-touch-tone cross-domain phone, and the first menu items that are arranged in the preceding priority order and selected by the user are hidden in the console, and when the user clicks the console, the hidden menu icons of the second menu items are displayed, and the obtained system interface may be as shown in fig. 8.
Referring to fig. 10, it is shown that in an alternative embodiment, before step S61, the method may further include the steps of:
step S101, after the web back end determines that the current login user successfully logs in, whether a customized menu exists in the association table corresponding to the current login user is judged; if yes, go to step S102; if not, go to step S103.
Before step S61, the customized menu in the association table may be a customized menu generated by the GIS system according to the method described in the above step S61 to step S66, that is, before the current login user logs in, the default menu may be modified according to the method described in the above step S61 to step S66 to form a customized menu suitable for the use habit of the user.
In practice, the current login user may or may not set the customized menu before the current login. In specific implementation, when the user logs in, the sessionID in the user login request can be analyzed through the interceptor of the GIS system each time, the cache information of the user is acquired from the Redis cache service of the GIS system according to the sessionID, the user abstract object class is analyzed according to the cache information, so that the user ID of the user is acquired, and the association table is queried according to the user ID. If the customized menu is set, the process may proceed to step S102, and if the customized menu is not set, the process may proceed to step S103.
And step S102, the web back end sends the customized menu to the web front end through the GIS server.
And step S103, the web back end sends the default menu to the web front end through the GIS server.
In practice, if the customized menu is set, the web backend acquires the customized menu from the association table and returns the customized menu to the web frontend, so that the web frontend can display the customized menu on the GIS system homepage. If the customized menu is not set in advance, the web back end returns the default menu to the web front end, and therefore the web front end can display the customized menu on the GIS system home page.
Correspondingly, if a customized menu is pre-selected and stored in the association, in step S64, the method further includes the following steps:
step S641, when determining that the customized menu exists in the association table, the web backend updates the customized menu in the association table to the customized menu.
The customized menu is updated to the user-defined menu, which can be understood as that the customized menu is replaced by the user-defined menu, so that the user-defined menu newly set by the current login user can be kept in the association, and the user-defined menu newly set by the user can be returned to the user when the user logs in next time.
With reference to the foregoing embodiment, in an optional embodiment, the step S71 may specifically include the following steps:
step S711, the web front end marks respective serial numbers of the first menu items according to the sequence in which the current login user selects the plurality of first menu items.
In practice, the user selects a plurality of first menus at the current login
During item selection, a serial number can be marked for each first menu item according to the sequence of the first menu items selected by the user. Wherein the unselected second menu items may not be marked with serial numbers. In specific implementation, if the user modifies each first menu item to be selected for many times in the selection process, the sequence of each first menu item finally selected by the user is taken as the standard, and the respective serial numbers are marked.
Illustratively, the order of the menu items in the default menu is: for example, when a user selects 3 menu items needing to be arranged in front, the conference schedule is selected, then the one-click call is selected, and finally the cross-domain phone is selected, then correspondingly, the serial number of the conference schedule is 1, the serial number of the one-click call is 2, and the serial number of the cross-domain phone is 3.
For another example, if the user selects the meeting schedule, the one-click reconciliation and the cross-domain telephone in the default menu in the order, then removes the option of the meeting schedule, and re-selects the system management, taking the order of the first menu items finally selected by the user as the reference, the serial numbers of the first menu items are respectively: one-key call is 1, cross-domain phone is 2, and system management is 3.
Step S712, the web front end generates the first menu data set according to the sequence of the respective serial numbers of the first menu items, and generates a second data set by using the plurality of second menu items that are not selected by the currently logged-in user.
When the first menu items are marked with respective serial numbers, each first menu item in the generated first menu data set also has a respective serial number, and therefore each first menu item in the custom menu also can have the serial number.
Accordingly, in steps S661 and S662, the menu names of the plurality of first menu items may be displayed according to the method described in step S663 as follows:
in step S663, the web front end displays the plurality of first menu items based on the sequence of the serial numbers of the first menu items.
In specific implementation, the arrangement mode of the first menu items on the GIS system interface may be determined first, and then, on the basis of the arrangement mode, the sequence of arranging the first menu items with their own serial numbers on the GIS system interface is determined, and the first menu items are displayed according to the sequence.
Exemplarily, the serial numbers of the first menu items are respectively: for example, the one-key click is 1, the cross-domain phone is 2, and the system management is 3, if it is determined that the first menu item is arranged from left to right on the GIS system interface, the first menu item finally displayed on the GIS system interface is respectively from left to right: one-touch-tone, cross-domain telephony, system management. If the first menu items are determined to be arranged from top to bottom on the GIS system interface, the first menu items finally displayed on the GIS system interface sequentially from top to bottom are: one-touch-tone, cross-domain telephony, system management.
With reference to the foregoing embodiment, in an optional implementation manner, in step S62, for the user-defined menu signaling, sending a preset default menu to the web front end through the GIS server, which may specifically include the following steps:
step S621, the web backend encapsulates the preset default menu into default menu data in the JSON data format, and sends the default menu data in the JSON data format to the web front end.
The JSON (JSON Object notification, JS Object Notation) data format is a lightweight data exchange format. It stores and represents data in a text format that is completely independent of the programming language, based on a subset of ECMAScript (js specification set by the european computer association). The network transmission method is easy to read and write by people, is easy to analyze and generate by machines, and effectively improves the network transmission efficiency. In the application, after the web back end acquires the default menu, the default menu can be transmitted to the web front end in a JSON data format. The Web front end can analyze the JSON data format to obtain a default menu, and can display the default menu on a GIS system interface.
Correspondingly, step S65 may specifically include the following steps:
step S651, the web backend encapsulates the custom menu obtained from the association table into custom menu data in the JSON data format.
And step S65, the web back end sends the user-defined menu data in the JSON data format to the web front end.
Correspondingly, step S66 may specifically include the following steps:
and step S661, the web front end analyzes the user-defined menu data in the JSON data format to obtain the user-defined menu, and displays the user-defined menu.
By adopting the technical scheme, the self-defined menu and the default menu are transmitted by adopting the JSON data format, so that the network transmission speed between the web back end and the web front end is improved, the time from the time when the user modifies the order of the menu items in the default menu to the time when the user views the modified self-defined menu on the GIS system home page is shortened, and the user experience is optimized.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
Referring to fig. 11, a schematic diagram of a framework of a menu processing apparatus according to an embodiment of the present invention is shown, the apparatus being applied to a geographic information GIS system including a web front end configured to a terminal and a web back end configured to a GIS server, and the apparatus may include the following modules:
the user-defined menu signaling module 111 is configured to generate a user-defined menu signaling according to a user-defined menu operation performed by a currently logged-in user, and send the user-defined menu signaling to the GIS server through the terminal;
a default menu sending module 112, configured to receive the user-defined menu signaling through the GIS server, and send a preset default menu to the web front end through the GIS server for the user-defined menu signaling; the default menu comprises a plurality of menu items;
a menu modification module 113, configured to receive the default menu through the terminal, generate menu data according to modification operation of the arrangement sequence performed by the user on the default menu for the plurality of menu items, and send the menu data to the GIS server through the terminal;
a custom menu association module 114, configured to receive the menu data through the GIS server, generate a custom menu according to the menu data, and store the custom menu in an association table corresponding to the current user;
a custom menu sending module 115, configured to obtain the custom menu from the association table, and send the custom menu to the web front end through the GIS server;
a user-defined menu display module 116, configured to receive the user-defined menu data through the terminal, and
and displaying the self-defined menu.
Optionally, the apparatus may further include the following modules:
the judging module is used for judging whether a customized menu exists in the association table corresponding to the current login user after the login of the current login user is successful;
the menu sending module is used for sending the customized menu to the web front end through the GIS server if the customized menu exists in the association table corresponding to the current login user; if the customized menu does not exist in the association table corresponding to the current login user; sending the default menu to the web front end through the GIS server;
the self-defined menu association module comprises:
and the menu updating unit is used for updating the customized menu in the association table into the self-defined menu when the customized menu is determined to exist in the association table.
Optionally, the menu modification module 112 may include:
the data set generating unit is used for generating a first menu data set and a second menu data set according to a plurality of first menu items to be preferentially displayed selected on the default menu by the current login user; wherein the first menu data set includes the plurality of first menu items, and the second menu data set includes all second menu items in the default menu that are not selected;
the data set sending unit is used for sending the first menu data set and the second menu data set to the GIS server;
the custom menu association module 114 may include:
the user-defined menu generating unit is used for generating a user-defined menu by adopting the first menu data set and the second menu data set; in the custom menu, the plurality of first menu items are arranged before the plurality of second menu items;
the user-defined menu display module 116 is specifically configured to display the plurality of first menu items arranged in the user-defined menu in the first display mode, and display the plurality of second menu items in the user-defined menu in the second display mode.
Optionally, the default menu sending module 112 is specifically configured to encapsulate the preset default menu into default menu data in a JSON data format, and send the default menu data in the JSON data format to the web front end;
the custom menu sending module 115 is specifically configured to encapsulate the custom menu acquired from the association table into custom menu data in a JSON data format, and send the custom menu data in the JSON data format to the web front end;
the custom menu display module 116 is specifically configured to parse the custom menu data in the JSON data format to obtain the custom menu, and display the custom menu.
Optionally, the custom menu display module 116 includes:
a first display unit configured to display menu names of the plurality of first menu items, and display menu icons of the plurality of second menu items;
or,
and the second display unit is used for displaying the menu names of the first menu items and hiding and displaying the menu icons of the second menu items.
Optionally, the data set generating unit may include:
a serial number adding subunit, configured to mark, according to a sequence in which the current login user selects the plurality of first menu items, respective serial numbers for the first menu items;
a data set generating subunit, configured to generate the first menu data set according to a sequence of the serial numbers of the first menu items, and generate a second data set by using the plurality of second menu items that are not selected by the currently logged-in user;
the first display unit or the second display unit includes:
and the sequence display subunit is used for displaying the plurality of first menu items based on the sequence of the serial numbers of the first menu items.
For the embodiment of the menu processing device, since it is basically similar to the embodiment of the menu processing method, the description is relatively simple, and for the relevant points, refer to the partial description of the embodiment of the menu processing method.
An embodiment of the present invention further provides an apparatus, including: one or more processors; and one or more machine readable media having instructions stored thereon, which when executed by the one or more processors, cause the apparatus to perform one or more menu processing methods according to embodiments of the present invention.
Embodiments of the present invention further provide a computer-readable storage medium, which stores a computer program to enable a processor to execute the menu processing method according to the embodiments of the present invention.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The present invention provides a menu processing method, a menu processing apparatus, an electronic device and a computer-readable storage medium, which are described in detail above, and the principles and embodiments of the present invention are explained herein by using specific examples, and the descriptions of the above examples are only used to help understand the method and the core ideas of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A menu processing method is characterized in that the method is applied to a geographic information GIS system, the GIS system comprises a web front end configured to a terminal and a web back end configured to a GIS server, the GIS system is located in a video network, the terminal and the GIS server communicate by adopting a video network protocol, and the method comprises the following steps:
the web front end generates a user-defined menu signaling according to user-defined menu operation performed by a current login user, and sends the user-defined menu signaling to the GIS server through the terminal;
the web back end receives the self-defined menu signaling through the GIS server, and sends a preset default menu to the web front end through the GIS server aiming at the self-defined menu signaling; the default menu comprises a plurality of menu items;
the web front end receives the default menu through the terminal, generates menu data according to the modification operation of the arrangement sequence of the menu items on the default menu by the user, and sends the menu data to the GIS server through the terminal;
the web back end receives the menu data through the GIS server, generates a user-defined menu according to the menu data, and stores the user-defined menu into an association table corresponding to the current login user;
the web back end acquires the user-defined menu from the association table and sends the user-defined menu to the web front end through the GIS server;
and the web front end receives the user-defined menu through the terminal and displays the user-defined menu.
2. The method of claim 1, wherein before the web front end generates a custom menu signaling according to a custom menu operation performed by a currently logged-in user and sends the custom menu signaling to the GIS server through the terminal, the method further comprises:
after determining that the current login user successfully logs in, the web back end judges whether a customized menu exists in the association table corresponding to the current login user;
if so, the web back end sends the customized menu to the web front end through the GIS server;
if not, the web back end sends the default menu to the web front end through the GIS server;
the web back end stores the user-defined menu in an association table corresponding to the current user, and the method comprises the following steps:
and when the web back end determines that the customized menu exists in the association table, updating the customized menu in the association table into the self-defined menu.
3. The method according to claim 1, wherein the web front end generates menu data according to a modification operation of the arrangement sequence of the plurality of menu items on the default menu by the user, and transmits the menu data to the GIS server through the terminal, and the method comprises:
the web front end generates a first menu data set and a second menu data set according to a plurality of first menu items to be preferentially displayed selected by a current login user on the default menu; wherein the first menu data set includes the plurality of first menu items, and the second menu data set includes all second menu items in the default menu that are not selected;
the web front end sends the first menu data set and the second menu data set to the GIS server;
generating a self-defined menu according to the menu data, comprising:
the web back end generates a user-defined menu by adopting the first menu data set and the second menu data set; in the custom menu, the plurality of first menu items are arranged before the plurality of second menu items;
the web front end displays the custom menu, including:
the web front end displays the plurality of first menu items arranged in the user-defined menu in the front by adopting a first display mode, and displays the plurality of second menu items in the user-defined menu by adopting a second display mode.
4. The method of claim 1, wherein sending a preset default menu to the web front end through the GIS server for the custom menu signaling comprises:
the web back end packages the preset default menu into default menu data in a JSON data format and sends the default menu data in the JSON data format to the web front end;
the web back end obtains the user-defined menu from the association table and sends the user-defined menu to the web front end, and the method comprises the following steps:
the web back end encapsulates the custom menu obtained from the association table into custom menu data in a JSON data format;
the web back end sends the user-defined menu data in the JSON data format to the web front end;
the web front end receives the user-defined menu data through the terminal, and displays the user-defined menu in a preset display mode, wherein the method comprises the following steps:
and the web front end analyzes the user-defined menu data in the JSON data format to obtain the user-defined menu, and displays the user-defined menu.
5. The method of claim 3, wherein the web front end displays the first plurality of menu items in the custom menu in a first display mode and the second plurality of menu items in the custom menu in a second display mode, comprising:
the web front end displays the menu names of the first menu items and displays the menu icons of the second menu items;
or,
and the web front end displays the menu names of the first menu items respectively and hides and displays the menu icons of the second menu items respectively.
6. The method of claim 3, wherein the web front end generates a first menu data set and a second menu data set according to a plurality of first menu items to be preferentially shown selected by a current login user on the default menu, comprising:
the web front end marks respective serial numbers of the first menu items according to the sequence of the plurality of first menu items selected by the current login user;
the web front end generates the first menu data set according to the sequence of the serial numbers of the first menu items, and generates a second data set by adopting the plurality of second menu items which are not selected by the current login user;
the web front end displays the plurality of first menu items in the user-defined menu in a first display mode, including:
and the web front end displays the plurality of first menu items based on the sequence of the serial numbers of the first menu items.
7. A menu processing device, which is applied to a geographic information GIS system, wherein the GIS system comprises a web front end configured to a terminal and a web back end configured to a GIS server, the GIS system is located in a video network, and the terminal and the GIS server communicate with each other by adopting a video network protocol, the device comprises:
the user-defined menu signaling module is used for generating a user-defined menu signaling according to user-defined menu operation performed by a current login user and sending the user-defined menu signaling to the GIS server through the terminal;
the default menu sending module is used for receiving the self-defined menu signaling through the GIS server and sending a preset default menu to the web front end through the GIS server aiming at the self-defined menu signaling; the default menu comprises a plurality of menu items;
the menu modification module is used for receiving the default menu through the terminal, generating menu data according to modification operation of the arrangement sequence of the menu items on the default menu by a user, and sending the menu data to the GIS server through the terminal;
the user-defined menu association module is used for receiving the menu data through the GIS server, generating a user-defined menu according to the menu data and storing the user-defined menu into an association table corresponding to the current user;
the user-defined menu sending module is used for acquiring the user-defined menu from the association table and sending the user-defined menu to the web front end through the GIS server;
and the user-defined menu display module is used for receiving the user-defined menu data through the terminal and displaying the user-defined menu.
8. The apparatus of claim 7, further comprising:
the judging module is used for judging whether a customized menu exists in the association table corresponding to the current login user after the login of the current login user is successful;
the menu sending module is used for sending the customized menu to the web front end through the GIS server if the customized menu exists in the association table corresponding to the current login user; if the customized menu does not exist in the association table corresponding to the current login user; sending the default menu to the web front end through the GIS server;
the self-defined menu association module comprises:
and the menu updating unit is used for updating the customized menu in the association table into the self-defined menu when the customized menu is determined to exist in the association table.
9. An electronic device, comprising: one or more processors; and one or more machine readable media having instructions stored thereon that, when executed by the one or more processors, cause the electronic device to perform the menu processing method of any of claims 1-6.
10. A computer-readable storage medium storing a computer program for causing a processor to execute the menu processing method according to any one of claims 1 to 6.
CN201910810002.XA 2019-08-29 2019-08-29 Menu processing method and device, electronic equipment and readable storage medium Active CN110618773B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910810002.XA CN110618773B (en) 2019-08-29 2019-08-29 Menu processing method and device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910810002.XA CN110618773B (en) 2019-08-29 2019-08-29 Menu processing method and device, electronic equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN110618773A CN110618773A (en) 2019-12-27
CN110618773B true CN110618773B (en) 2021-05-28

Family

ID=68922682

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910810002.XA Active CN110618773B (en) 2019-08-29 2019-08-29 Menu processing method and device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN110618773B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111770348B (en) * 2020-05-13 2024-03-15 视联动力信息技术股份有限公司 Menu adapting method, device and readable storage medium
CN114879882B (en) * 2022-05-24 2023-04-07 上海合见工业软件集团有限公司 Software menu system based on JSON configuration

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1988622A (en) * 2005-12-23 2007-06-27 群康科技(深圳)有限公司 Control method for screen display
KR20100032560A (en) * 2008-09-18 2010-03-26 성균관대학교산학협력단 Method for configurating user-defined menu and apparatus for having function for configuration of user-defined menu
CN107256155A (en) * 2017-06-02 2017-10-17 深圳天珑无线科技有限公司 Menu adaptation method, server and the readable storage medium storing program for executing of background management system
CN108614973A (en) * 2018-04-04 2018-10-02 北京大米科技有限公司 A kind of authorization management method comprising menu management, server and management system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007079945A (en) * 2005-09-14 2007-03-29 Hellosystem Ltd Area-based information distribution system
CN102446213A (en) * 2011-09-13 2012-05-09 西安大唐电信有限公司 Geographic information system and positioning storage and track display method based on same

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1988622A (en) * 2005-12-23 2007-06-27 群康科技(深圳)有限公司 Control method for screen display
KR20100032560A (en) * 2008-09-18 2010-03-26 성균관대학교산학협력단 Method for configurating user-defined menu and apparatus for having function for configuration of user-defined menu
CN107256155A (en) * 2017-06-02 2017-10-17 深圳天珑无线科技有限公司 Menu adaptation method, server and the readable storage medium storing program for executing of background management system
CN108614973A (en) * 2018-04-04 2018-10-02 北京大米科技有限公司 A kind of authorization management method comprising menu management, server and management system

Also Published As

Publication number Publication date
CN110618773A (en) 2019-12-27

Similar Documents

Publication Publication Date Title
CN110647698B (en) Page loading method and device, electronic equipment and readable storage medium
CN108965912B (en) A kind of method, client and the server of video data processing
CN109714527B (en) Method and device for controlling video network camera in internet
CN109286826B (en) Information display method and device
CN109413138B (en) File uploading method and device
CN109547731B (en) Video conference display method and system
CN109218093B (en) Method and system for acquiring alarm
CN110191315B (en) Monitoring and checking method and device based on video network
CN109743550B (en) Method and device for monitoring data flow regulation
CN109194915B (en) Video data processing method and system
CN110618773B (en) Menu processing method and device, electronic equipment and readable storage medium
CN109698818B (en) Method and device for acquiring online user and cross-streaming media communication
CN111431966A (en) Service request processing method and device, electronic equipment and storage medium
CN110839142B (en) Monitoring directory sharing method and device
CN110737519A (en) theme switching method and device
CN110022286B (en) Method and device for requesting multimedia program
CN109768964B (en) Audio and video display method and device
CN111654659A (en) Conference control method and device
CN110392275A (en) A kind of sharing method of presentation, device and view networking software terminal
CN108574655B (en) Conference monitoring and broadcasting method and device
CN111147795B (en) Resource scheduling method, server, terminal, electronic device, and storage medium
CN110557372B (en) Data acquisition method and system
CN109450995B (en) Method and system for acquiring server data
CN109756476B (en) User-defined nickname setting method and system based on video network
CN109819209B (en) System, method and device for monitoring resource calling

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant