CN117112654B - City data display method, device, computer equipment and storage medium - Google Patents
City data display method, device, computer equipment and storage medium Download PDFInfo
- Publication number
- CN117112654B CN117112654B CN202311384690.0A CN202311384690A CN117112654B CN 117112654 B CN117112654 B CN 117112654B CN 202311384690 A CN202311384690 A CN 202311384690A CN 117112654 B CN117112654 B CN 117112654B
- Authority
- CN
- China
- Prior art keywords
- data
- city
- user
- city data
- data corresponding
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 47
- 238000013499 data model Methods 0.000 claims description 15
- 238000004590 computer program Methods 0.000 claims description 14
- 238000012545 processing Methods 0.000 claims description 12
- 238000012216 screening Methods 0.000 claims description 9
- 238000013500 data storage Methods 0.000 claims description 5
- 230000008569 process Effects 0.000 claims description 2
- 238000010586 diagram Methods 0.000 description 7
- 230000006870 function Effects 0.000 description 6
- 230000000007 visual effect Effects 0.000 description 3
- 230000001360 synchronised effect Effects 0.000 description 2
- 241000282373 Panthera pardus Species 0.000 description 1
- 238000013523 data management Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000001747 exhibiting effect Effects 0.000 description 1
- 230000000977 initiatory effect Effects 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000002955 isolation Methods 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000004806 packaging method and process Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 238000013515 script Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/248—Presentation of query results
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/245—Query processing
- G06F16/2455—Query execution
- G06F16/24552—Database cache management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/953—Querying, e.g. by the use of web search engines
- G06F16/9538—Presentation of query results
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/604—Tools and structures for managing or administering access control systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2221/00—Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F2221/21—Indexing scheme relating to G06F21/00 and subgroups addressing additional information or applications relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F2221/2141—Access rights, e.g. capability lists, access control lists, access tables, access matrices
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- Computational Linguistics (AREA)
- Automation & Control Theory (AREA)
- Health & Medical Sciences (AREA)
- Bioethics (AREA)
- General Health & Medical Sciences (AREA)
- Computer Hardware Design (AREA)
- Computer Security & Cryptography (AREA)
- Software Systems (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The application relates to a city data display method, a city data display device, computer equipment and a storage medium. The method comprises the following steps: acquiring hierarchical structure configuration information and data source configuration information configured by a user; obtaining city data corresponding to a user according to the data source configuration information, and storing the city data corresponding to the user according to the hierarchical structure configuration information; responding to a received city data display request of a user, and acquiring prestored city data corresponding to the user; and carrying out hierarchical display on the city data corresponding to the user at the front-end interface. The embodiment of the invention can support the user to customize the range of the city data, support the user to customize the corresponding hierarchy according to the service requirement, and display the city data corresponding to the user by the hierarchy.
Description
Technical Field
The present disclosure relates to the field of urban data management, and in particular, to a method and apparatus for displaying urban data, a computer device, and a storage medium.
Background
The existing city data management software, such as vant (an open source mobile terminal component library), can only support city data in a specific range (such as a national range) basically, and can only display city data in a fixed level (such as province-city-county), so that the requirement of users for flexibly displaying the data cannot be met.
Disclosure of Invention
Aiming at the defects or shortcomings, the application provides a city data display method, a city data display device, a computer device and a storage medium, which can support a user to customize a range of city data, support the user to customize a corresponding hierarchy according to service requirements, and display the city data corresponding to the user in the hierarchy.
The present application provides, according to a first aspect, a method of urban data presentation, in some embodiments, the method comprising:
acquiring hierarchical structure configuration information and data source configuration information configured by a user;
obtaining city data corresponding to a user according to the data source configuration information, and storing the city data corresponding to the user according to the hierarchical structure configuration information;
responding to a received city data display request of a user, and acquiring prestored city data corresponding to the user;
and carrying out hierarchical display on the city data corresponding to the user at the front-end interface.
In some embodiments, the data source configuration information is used to specify a data range of the city data; when the data range specified by the data source configuration information comprises a national range and a personal authority range, acquiring city data corresponding to the user according to the data source configuration information, wherein the city data comprises the following steps:
requesting national city data from a city data server through a base;
requesting personal rights city data from a data source specified by a user through a city component;
and taking the requested national city data and personal authority city data as city data corresponding to the user.
In some embodiments, storing city data corresponding to a user according to hierarchical configuration information includes:
carrying out format processing on city data corresponding to the user;
defining a hierarchical structure of city data corresponding to a user according to the hierarchical structure configuration information, and establishing a data model for representing city hierarchical relations according to the hierarchical structure;
and storing the city data corresponding to the user after format processing into a cache according to the data model.
In some embodiments, the hierarchical presentation of the city data corresponding to the user at the front-end interface includes:
traversing city data corresponding to the user step by step according to the data model to determine the hierarchical relationship among all cities;
and displaying the data corresponding to each city according to the hierarchical relationship among the cities.
In some embodiments, the above method further comprises:
responding to the received city data searching request of the user, and acquiring searching information in the request;
obtaining city data matched with the search information from prestored city data corresponding to the user as target city data;
and displaying the target city data on the front-end interface.
In some embodiments, obtaining city data matched with the search information from prestored city data corresponding to the user as target city data includes:
extracting search key information from the search information;
traversing each data item pre-stored in the cached city data corresponding to the user, and detecting whether the data item is matched with the search key information or not for each data item;
screening all data items matched with the search key information according to a preset screening rule;
and taking the screened data as target city data.
In some embodiments, the above method further comprises:
responding to a comparison request sent by a user, and acquiring a plurality of cities and data comparison requirement information selected by the user and carried by the comparison request;
acquiring specific field information of each city according to the data comparison demand information;
comparing the specific field information of each city, and displaying the comparison result on the front-end interface.
The present application provides, according to a second aspect, a city data display device, in some embodiments, comprising:
the configuration information acquisition module is used for acquiring hierarchical structure configuration information and data source configuration information configured by a user;
the data storage module is used for acquiring city data corresponding to the user according to the data source configuration information and storing the city data corresponding to the user according to the hierarchical structure configuration information;
the data acquisition module is used for responding to the received urban data display request of the user and acquiring prestored urban data corresponding to the user;
and the data display module is used for carrying out hierarchical display on the city data corresponding to the user at the front-end interface.
According to a third aspect, the present application provides a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the urban data presentation method provided in any of the embodiments described above when the computer program is executed by the processor.
According to a fourth aspect, the present application provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the urban data presentation method provided in any of the embodiments described above.
According to the embodiment of the application, the range of the urban data can be customized by the user, the user is supported to customize a corresponding level according to service requirements, and the urban data corresponding to the user is displayed in the level, wherein the hierarchical structure configuration information and the data source configuration information configured by the user are acquired, then the urban data corresponding to the user is acquired according to the data source configuration information, the urban data corresponding to the user is stored according to the hierarchical structure configuration information, and then when a urban data display request of the user is received, the prestored urban data corresponding to the user can be acquired, and the urban data corresponding to the user is displayed in the level at a front end interface.
Drawings
FIG. 1 is a flow diagram of a method for displaying urban data according to one or more embodiments of the present application;
FIG. 2 is a schematic diagram of a system architecture provided herein in accordance with one or more embodiments;
FIG. 3 is a schematic diagram of a visual interface for multiple choice functionality provided herein in accordance with one or more embodiments;
FIG. 4 is a block diagram of a city data display device provided in accordance with one or more embodiments of the present application;
FIG. 5 is an internal block diagram of a computer device provided in accordance with one or more embodiments of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, the following detailed description of the embodiments of the present application will be given with reference to the accompanying drawings. It should be understood that the described embodiments are merely some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present application as detailed in the accompanying claims.
In the description of this application, it should be understood that the terms "first," "second," "third," and the like are used merely to distinguish between similar objects and are not necessarily used to describe a particular order or sequence, nor should they be construed to indicate or imply relative importance. The specific meaning of the terms in this application will be understood by those of ordinary skill in the art as the case may be. Furthermore, in the description of the present application, unless otherwise indicated, "a plurality" means two or more. "and/or", describes an association relationship of an association object, and indicates that there may be three relationships, for example, a and/or B, and may indicate: a exists alone, A and B exist together, and B exists alone. The character "/" generally indicates that the context-dependent object is an "or" relationship.
Aiming at the problems that the current city data management software can only support city data in a specific range and can only display fixed levels and cannot meet the requirement of users for flexibly displaying data, the application provides a city data display method which can support the range of customizing city data by users and support the users to customize corresponding levels according to business requirements and display the city data corresponding to the users by the levels.
In some embodiments, the method includes steps as shown in FIG. 1, namely steps S110-S140. The method can meet the customization requirement of each tenant in the network appointment vehicle SaaS platform. SaaS (Software as a Service ) is a cloud computing-based software delivery mode in which a user can use a software application on demand over the internet, and in which a software provider is responsible for the installation, configuration, maintenance of software, and security of data, while the user only needs to access and use the software through a web browser or mobile application. The working principle of SaaS is that a software provider deploys software on a cloud server and is responsible for running and maintaining the software, while a user can obtain access rights to the software through a subscription mode, and the user can access the software through a web browser or a special mobile application program on a computer device (such as a computer, a smart phone or a tablet computer). By means of the software deployment mode in the cloud, the software provider can update and upgrade the software in real time, so that users can be ensured to use the latest version of the software all the time.
SaaS is generally a standardized software solution, in order to support a scope of customizing urban data by a user and support the user to customize a corresponding hierarchy according to a service requirement and display the urban data corresponding to the user in the hierarchy, the embodiment embeds a customized urban component (hereinafter simply referred to as a urban component) in a SaaS platform, where the urban component is developed based on a cascade selector capability provided by an Element-UI component library according to an actual service requirement (for example, the scope of supporting customizing urban data by a user and support the user to customize a corresponding hierarchy according to a service requirement and display the urban data corresponding to the user in the hierarchy). The Element-UI component library is a vue.js-based front-end component library in which rich UI components and tools are provided for building modern Web applications.
In some embodiments, the city component can store and manage city data corresponding to each user with high efficiency, and can realize hierarchical display of the city data through a front-end interface, and further, the city component can support the user to search related city data, and support the user to select data of a plurality of cities for comparison. Specifically, the interior of the city component may be divided into a plurality of function modules, for example, a data processing module for storing and managing city data, a search function module for quickly searching city data required by a user, and a multi-choice function module for acquiring and comparing related data of each city selected by the user, according to the implementation functions.
In some embodiments, the system architecture of the method may be as shown in fig. 2, and the system architecture is constructed based on a leopard (a back-end open source framework packaged on a Spring basis), where blm-uteis a tool library that collects many practical packaging tools by which developers can more efficiently complete development tasks. The leopard-web-base is a base that is the main application of a micro-application, like a central hub in a micro-ecosystem, that is responsible for handling the overall logic and flow control of the entire micro-application system. The leopard-web-component is the urban component described above. A sub-platform is a sub-module of a particular application or system in which the urban assembly is embedded. The classification kin represents different data ranges, such as ALL (representing nationwide range), openCity (representing open city range), openAuthCity (representing personal authority range), and the hierarchy level includes three layers, namely, a province, a city, and an area, respectively. In the whole system architecture, based on a blm-utes library, the acquisition and processing of data are realized by calling a request method of a thrown instance object in a base, the base serves as a central processing unit of the data, is responsible for initiating a data request, and transmits the acquired data to a sub-platform for storage and use. At the same time, the instance object is also thrown to the city component, which can accomplish specific functional operations by calling methods in the instance object. The instance object can be an object created after instantiating a city class, wherein the city class defines the attribute and the method of the object, different instance objects can be created for different users based on the city class in order to serve different users, and the different instance objects do not affect each other, so that data isolation and customized hierarchical display among different users are realized. Under the support of the system architecture, the urban assembly can realize the operations of visual hierarchical display of data, searching, screening, comparing and the like of urban data.
The steps involved in the method are described in detail below.
S110: and acquiring hierarchical structure configuration information and data source configuration information configured by a user.
The user refers to a tenant of the SaaS platform, and may specifically be a network taxi service provider, where the network taxi service provider may access the network taxi SaaS platform, and provide network taxi service for its own user (refer to passengers and drivers) by using software of the platform. Each user can customize the hierarchy of the corresponding city data and the scope of the city data according to the own business processes and requirements.
In the related art, the city data management software generally supports only city data of a nationwide scope, and only city data exhibiting a fixed hierarchy (e.g., province-city-county), while the present embodiment supports configuring a personalized hierarchy and a range of the city data, specifically, a user can configure hierarchy configuration information and data source configuration information through a city component, wherein the hierarchy configuration information is used for specifying the hierarchy of the city data, and the data source configuration information is used for specifying the data range of the city data.
In this embodiment, the city component supports a user to configure a one-level or multi-level hierarchy, such as a three-level hierarchy of province-city-county, a two-level hierarchy of province-city, city-county, a one-level hierarchy of province-level city, city-level city, and the like.
In this embodiment, the user may select city data in a nationwide range, and may configure city data in a personal authority range according to his own data source. All users can use city data in a national range, and the city data in a personal authority range configured by the users is only used by the users, so that the safety of the users is ensured. In some embodiments, besides city data of a whole country range and city data of a personal authority range, city data of an open city range can be further included, and the open city refers to a city which a user has started to operate, and it is understood that the city data of the open city range of different users is different. The open city range city data may be obtained from nationwide city data.
S120: and obtaining city data corresponding to the user according to the data source configuration information, and storing the city data corresponding to the user according to the hierarchical structure configuration information.
As described above, the data source configuration information is used to specify the data scope of the city data, which is nationwide and can be obtained through the internal interface of the city component, while the personal authority scope city data is required to be obtained through the data source information (which may include information of database links, ports, etc.) configured by the user.
When the data range specified by the data source configuration information includes a national range and a personal authority range, the operation of obtaining city data corresponding to the user according to the data source configuration information may include the following steps: requesting national city data from a city data server through a base; requesting personal rights city data from a data source specified by a user through a city component; and taking the requested national city data and personal authority city data as city data corresponding to the user.
The base refers to the base, and the urban assembly is the customized urban assembly leopard-web-component.
Correspondingly, the operation of storing the city data corresponding to the user according to the hierarchical structure configuration information comprises the following steps of carrying out format processing on the city data corresponding to the user; defining a hierarchical structure of city data corresponding to a user according to the hierarchical structure configuration information, and establishing a data model for representing city hierarchical relations according to the hierarchical structure; and storing the city data corresponding to the user after format processing into a cache according to the data model.
The formats of the national city data and the personal authority city data may not be consistent, so after the two types of data are obtained, format processing is required to ensure the format consistency of the two types of data. The formatted city data is stored in a cache, such as an IndexDB cache. Where the index db is a browser-provided local database that can be created and manipulated by web scripts, allows for the storage of large amounts of data, provides a lookup interface, and also enables indexing.
For the city data corresponding to the user, the embodiment organizes and stores the city data through a hierarchy architecture, wherein the hierarchy structure of the city data is defined in advance according to the hierarchy structure customized by the user (namely the hierarchy structure configuration information), such as city, province-city-county and the like, and it is understood that each hierarchy represents different granularity and relationship; then, a corresponding data model is built according to the above-defined hierarchical structure, and the data model is used for representing the hierarchical relationship in the city data corresponding to the user, specifically, the data model can be built by using a graph structure so as to better represent the hierarchical relationship.
S130: and responding to the received city data display request of the user, and acquiring prestored city data corresponding to the user.
The city data display request can carry user identifiers (such as user names, user IDs and the like) for distinguishing different users, so that the city component determines a corresponding data range and a hierarchy structure through the user identifiers, and obtains prestored city data corresponding to the users according to the data range and the hierarchy structure.
S140: and carrying out hierarchical display on the city data corresponding to the user at the front-end interface.
When the front-end interface displays the city data corresponding to the user in a hierarchical manner, the city data corresponding to the user can be traversed step by step according to the data model so as to determine the hierarchical relationship among all cities; and displaying the data corresponding to each city according to the hierarchical relationship among the cities.
In some embodiments, the above method further comprises:
responding to the received city data searching request of the user, and acquiring searching information in the request;
obtaining city data matched with the search information from prestored city data corresponding to the user as target city data;
and displaying the target city data on the front-end interface.
In this embodiment, a user may search for city data through a city component, wherein the user may input search information at a search box of a front-end interface. After the back end obtains the search information, key information, such as keywords, may be extracted from the search information, and then the key information may be preprocessed, such as space removal, punctuation removal, and the like, to obtain search key information.
In some embodiments, obtaining city data matched with the search information from prestored city data corresponding to the user as target city data includes:
extracting search key information from the search information;
traversing each data item pre-stored in the cached city data corresponding to the user, and detecting whether the data item is matched with the search key information or not for each data item;
screening all data items matched with the search key information according to a preset screening rule;
and taking the screened data as target city data.
The present embodiment obtains relevant city data by linear search, for example, traversing each data item in city data corresponding to a user one by one, and judging whether each data item matches with search key information to find a matching item (refer to a data item matching with search key information). And after the searching is completed, returning the searched matching items to the front end, and displaying the matching items to a user through a front end interface.
On the basis of the embodiment, the data index can be built for the city data corresponding to the user in advance, so that when the search request of the user is received, the search key information extracted from the search information can be mapped to the index through the hash function, and then the corresponding city data can be obtained from the cache through the index, thereby improving the data search speed.
In some embodiments, the above method further comprises:
responding to a comparison request sent by a user, and acquiring a plurality of cities and data comparison requirement information selected by the user and carried by the comparison request;
acquiring specific field information of each city according to the data comparison demand information;
comparing the specific field information of each city, and displaying the comparison result on the front-end interface.
In this embodiment, a user may compare specific data of multiple cities through a city component. The user may select multiple cities through a check box or related interaction components capable of implementing multiple selection functions on the front-end interface, for example, the visual effect of multiple selections may be shown in fig. 3, the user may select multiple cities with the same or different provinces for comparison, and after the selection is completed, clicking the "ok" button may indicate that specific data of the multiple cities are compared. The data comparison requirement information is used for determining fields needing to be compared, the information can be determined according to the requirement of a user, and for example, the information can specify fields such as city names, city codes and the like as the fields needing to be compared.
It should be noted that, regarding the steps included in the city data display method provided in any of the above embodiments, the steps are not strictly limited to the order of execution unless explicitly stated herein, and may be executed in other orders. Moreover, at least some of these steps may include multiple sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, nor does the order in which the sub-steps or stages are performed necessarily performed in sequence, but may be performed alternately or alternately with at least a portion of other steps or sub-steps of other steps.
Based on the same inventive concept, the application also provides a city data display device. In some embodiments, as shown in fig. 4, the city data display device comprises the following modules:
a configuration information obtaining module 110, configured to obtain hierarchical configuration information and data source configuration information configured by a user;
the data storage module 120 is configured to obtain city data corresponding to the user according to the data source configuration information, and store the city data corresponding to the user according to the hierarchical structure configuration information;
the data acquisition module 130 is configured to acquire prestored city data corresponding to a user in response to receiving a city data display request of the user;
and the data display module 140 is used for carrying out hierarchical display on the city data corresponding to the user at the front-end interface.
In some embodiments, the data source configuration information is used to specify a data range of the city data; when the data range specified by the data source configuration information includes a national range and a personal authority range, the data storage module 120 is configured to, when acquiring city data corresponding to the user according to the data source configuration information: requesting national city data from a city data server through a base; requesting personal rights city data from a data source specified by a user through a city component; and taking the requested national city data and personal authority city data as city data corresponding to the user.
In some embodiments, the data storage module 120 is configured to, when storing city data corresponding to a user according to the hierarchical configuration information: carrying out format processing on city data corresponding to the user; defining a hierarchical structure of city data corresponding to a user according to the hierarchical structure configuration information, and establishing a data model for representing city hierarchical relations according to the hierarchical structure; and storing the city data corresponding to the user after format processing into a cache according to the data model.
In some embodiments, when the front-end interface displays the city data corresponding to the user in a hierarchical manner, the data display module 140 is configured to: traversing city data corresponding to the user step by step according to the data model to determine the hierarchical relationship among all cities; and displaying the data corresponding to each city according to the hierarchical relationship among the cities.
In some embodiments, the apparatus further comprises a search module (not shown). The searching module is used for responding to the received urban data searching request of the user and acquiring searching information in the request; and acquiring city data matched with the search information from prestored city data corresponding to the user as target city data. Accordingly, the data display module 140 is further configured to display the target city data on the front-end interface.
In some embodiments, when the searching module acquires city data matched with the searching information from prestored city data corresponding to the user as target city data, the searching module is used for: extracting search key information from the search information; traversing each data item pre-stored in the cached city data corresponding to the user, and detecting whether the data item is matched with the search key information or not for each data item; screening all data items matched with the search key information according to a preset screening rule; and taking the screened data as target city data.
In some embodiments, the apparatus further comprises a city comparison module (not shown). The city comparison module is used for responding to a comparison request sent by a user and acquiring a plurality of cities selected by the user and data comparison requirement information carried by the comparison request; acquiring specific field information of each city according to the data comparison demand information; and comparing the specific field information of each city, and displaying the comparison result on the front-end interface.
For specific limitations of the city data display device, reference may be made to the above limitation of the city data display method, and no further description is given here. The various modules in the above-described urban data presentation device may be implemented in whole or in part by software, hardware, and combinations thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In some embodiments, the present application further provides a computer device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor executes the computer program to implement the steps of the city data display method provided in any of the foregoing embodiments.
In some embodiments, an internal structural diagram of a computer device provided herein may be as shown in fig. 5. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer device is used for storing city data and other data corresponding to each user, and the specific stored data can also be referred to the limitation in the embodiment of the method. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a city data presentation method.
It will be appreciated by those skilled in the art that the structure shown in fig. 5 is merely a block diagram of some of the structures associated with the present application and is not limiting of the computer device to which the present application may be applied, and that a particular computer device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
In yet other embodiments, the present application further provides a computer readable storage medium having a computer program stored thereon, which when executed by a processor, implements the steps of the urban data presentation method provided in any of the above embodiments.
In the foregoing embodiments of the present application, the descriptions of the embodiments are emphasized, and for a portion of this disclosure that is not described in detail in this embodiment, reference is made to the related descriptions of other embodiments.
Those skilled in the art will appreciate that implementing all or part of the above-described method embodiments may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the method embodiments described above. Any reference to memory, storage, database, or other medium used in the various embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus (Rambus), direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples merely represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the invention. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application is to be determined by the claims appended hereto.
Claims (8)
1. The city data display method is characterized by being applied to a SaaS platform, wherein a system architecture of the SaaS platform is constructed based on a rear-end open source framework, and the system architecture comprises a base and a customized city component; the customized city component is developed based on cascade selector capability provided by an Element-UI component library; in the whole system architecture, based on a blm-utiles library, the base calls a request method of a thrown instance object to acquire and process national city data, the customized city component completes specific functional operation by calling the method in the instance object, and the functional operation comprises the steps of storing and managing city data corresponding to each user and realizing hierarchical display of the city data through a front-end interface; the instance object is an object created after an instantiation of a city class, the city class is used for creating different instance objects for different users, and the users refer to tenants of the SaaS platform; the method comprises the following steps:
acquiring hierarchical structure configuration information and data source configuration information of each user configuration;
obtaining city data corresponding to each user according to the data source configuration information configured by each user, and storing the city data corresponding to each user according to the hierarchical structure configuration information configured by each user; storing city data corresponding to any one user according to the hierarchical structure configuration information, wherein the city data comprises: carrying out format processing on the city data corresponding to the user; defining a hierarchical structure of city data corresponding to the user according to the hierarchical structure configuration information, and establishing a data model for representing city hierarchical relations according to the hierarchical structure; storing the city data corresponding to the user after format processing into a cache according to the data model;
responding to a city data display request of any user, determining a data range and a hierarchical structure corresponding to the user through a user identifier carried by the city data display request, and acquiring prestored city data corresponding to the user according to the data range and the hierarchical structure; performing hierarchical display on the city data corresponding to the user on a front-end interface, wherein the hierarchical display comprises: traversing city data corresponding to the user step by step according to the data model of the user so as to determine the hierarchical relationship among all cities; and displaying the data corresponding to each city according to the hierarchical relationship among the cities.
2. The method of claim 1, wherein the data source configuration information is used to specify a data range of city data; when the data range specified by the data source configuration information includes a national range and a personal authority range, the obtaining city data corresponding to the user according to the data source configuration information includes:
requesting national city data from a city data server through a base;
requesting personal rights city data from a data source specified by a user through a city component;
and taking the requested national city data and personal authority city data as city data corresponding to the user.
3. The method of claim 1, wherein the method further comprises:
responding to the received city data searching request of the user, and acquiring searching information in the request;
obtaining city data matched with the search information from prestored city data corresponding to the user as target city data;
and displaying the target city data on a front-end interface.
4. The method of claim 3, wherein acquiring city data matching the search information from prestored city data corresponding to the user as target city data, comprises:
extracting search key information from the search information;
traversing each data item pre-stored in the cached city data corresponding to the user, and detecting whether the data item is matched with the search key information or not for each data item;
screening all data items matched with the search key information according to a preset screening rule;
and taking the screened data as target city data.
5. The method of claim 1, wherein the method further comprises:
responding to a comparison request sent by the user, and acquiring a plurality of cities selected by the user and data comparison requirement information carried by the comparison request;
acquiring specific field information of each city according to the data comparison demand information;
comparing the specific field information of each city, and displaying the comparison result on a front-end interface.
6. An apparatus for implementing a method for displaying urban data according to claim 1, characterized in that it comprises:
the configuration information acquisition module is used for acquiring hierarchical structure configuration information and data source configuration information configured by a user;
the data storage module is used for acquiring city data corresponding to the user according to the data source configuration information and storing the city data corresponding to the user according to the hierarchical structure configuration information;
the data acquisition module is used for responding to the received urban data display request of the user and acquiring prestored urban data corresponding to the user;
and the data display module is used for carrying out hierarchical display on the city data corresponding to the user on the front-end interface.
7. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any one of claims 1 to 5 when the computer program is executed by the processor.
8. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311384690.0A CN117112654B (en) | 2023-10-24 | 2023-10-24 | City data display method, device, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311384690.0A CN117112654B (en) | 2023-10-24 | 2023-10-24 | City data display method, device, computer equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN117112654A CN117112654A (en) | 2023-11-24 |
CN117112654B true CN117112654B (en) | 2024-01-16 |
Family
ID=88811435
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311384690.0A Active CN117112654B (en) | 2023-10-24 | 2023-10-24 | City data display method, device, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117112654B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20110065586A (en) * | 2009-12-10 | 2011-06-16 | 에스케이 텔레콤주식회사 | Method and system for managing an indicator of the city based on geography information |
CN106815357A (en) * | 2017-01-20 | 2017-06-09 | 泰华智慧产业集团股份有限公司 | Configurable city operations sign monitoring method and system |
CN116011322A (en) * | 2022-12-16 | 2023-04-25 | 北京百度网讯科技有限公司 | Urban information display method, device, equipment and medium based on digital twinning |
CN116522272A (en) * | 2023-02-17 | 2023-08-01 | 中国测绘科学研究院 | Multi-source space-time data transparent fusion method based on urban information unit |
-
2023
- 2023-10-24 CN CN202311384690.0A patent/CN117112654B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20110065586A (en) * | 2009-12-10 | 2011-06-16 | 에스케이 텔레콤주식회사 | Method and system for managing an indicator of the city based on geography information |
CN106815357A (en) * | 2017-01-20 | 2017-06-09 | 泰华智慧产业集团股份有限公司 | Configurable city operations sign monitoring method and system |
CN116011322A (en) * | 2022-12-16 | 2023-04-25 | 北京百度网讯科技有限公司 | Urban information display method, device, equipment and medium based on digital twinning |
CN116522272A (en) * | 2023-02-17 | 2023-08-01 | 中国测绘科学研究院 | Multi-source space-time data transparent fusion method based on urban information unit |
Also Published As
Publication number | Publication date |
---|---|
CN117112654A (en) | 2023-11-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107861870B (en) | Interface test and test data generation method, device, terminal and storage medium | |
CN111596965A (en) | Project engineering initialization method, device, computer equipment and storage medium | |
CN107133309B (en) | Method and device for storing and querying process example, storage medium and electronic equipment | |
CN103049515A (en) | Method, device and equipment for classifying application programs | |
CN111538872A (en) | Visualization method and device of service node information, computer equipment and medium | |
CN112433712B (en) | Report display method, report display device, computer equipment and storage medium | |
CN110399448B (en) | Chinese place name address searching and matching method, terminal and computer readable storage medium | |
US20110252049A1 (en) | Function execution using sql | |
CN111258565A (en) | Method, system, server and storage medium for generating small program | |
CN110825395B (en) | Multi-plug-in layered deployment system, device and medium | |
CN113326264A (en) | Data processing method, server and storage medium | |
CN114296833B (en) | Service interface component configuration method, device, equipment and medium thereof | |
CN110941779A (en) | Page loading method and device, storage medium and electronic equipment | |
CN114238808A (en) | Page display method and device, computer equipment and storage medium | |
CN114493185A (en) | Approval processing method, device, system, electronic equipment, storage medium and product | |
CN115328611A (en) | Virtual machine management method, device, server and readable storage medium | |
CN111722881B (en) | Resource expansion method, system and device of container cloud platform | |
CN113987337A (en) | Search method, system, equipment and storage medium based on componentized dynamic arrangement | |
US11755631B2 (en) | Workflow-based dynamic data model and application generation | |
KR20130126012A (en) | Method and apparatusfor providing report of business intelligence | |
CN117112654B (en) | City data display method, device, computer equipment and storage medium | |
CN113722337B (en) | Service data determination method, device, equipment and storage medium | |
CN115543428A (en) | Simulated data generation method and device based on strategy template | |
CN117009397A (en) | Data query method, data query device, electronic equipment and storage medium | |
CN109117133B (en) | Menu configuration method and device, electronic equipment and readable storage medium |
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 |