diff --git a/Src/RescueLoad/RescueLoad.pri b/Src/RescueLoad/RescueLoad.pri index 161c2c7..af5e1ec 100644 --- a/Src/RescueLoad/RescueLoad.pri +++ b/Src/RescueLoad/RescueLoad.pri @@ -15,6 +15,7 @@ RESOURCES += \ # 指定库文件的头文件路径 INCLUDEPATH += $$PWD/map/tianditu/include +DEPENDPATH += $$PWD/map/tianditu/include # 指定库文件的路径 CONFIG(debug, debug|release){ diff --git a/Src/RescueLoad/map/places_map.qml b/Src/RescueLoad/map/places_map.qml index b0c358b..d848a8a 100644 --- a/Src/RescueLoad/map/places_map.qml +++ b/Src/RescueLoad/map/places_map.qml @@ -150,15 +150,27 @@ Map{ updateSelect(imsiSelectModel) } } + Connections { + // 数据发生更改是,比如imsi对应的数据位置发生变化,选中的状态也应该随之变化 target: imsiDataModel function onDataChanged(topLeft, bottomRight,roles) { - updateSelect(imsiSelectModel) + var indexs = imsiSelectModel.selectedIndexes + listSelectModel.clear() + if (indexs.length === 0) return; + for (var i = 0; i #include diff --git a/Src/RescueLoad/map/tianditu/include/tigooglemapprovider.h b/Src/RescueLoad/map/tianditu/include/tigooglemapprovider.h index 6b29154..b5d7f19 100644 --- a/Src/RescueLoad/map/tianditu/include/tigooglemapprovider.h +++ b/Src/RescueLoad/map/tianditu/include/tigooglemapprovider.h @@ -1,21 +1,4 @@ -/************************************************************************** - * 文件名 :tigooglemapprovider.h - * ======================================================================= - * 创 建 者 :田小帆 - * 创建日期 :2021-8-30 - * 邮 箱 :499131808@qq.com - * Q Q :499131808 - * 公 司 : - * 功能描述 : - * - * ====================================================================== - * 修改者 : - * 修改日期 : - * 修改内容 : - * ====================================================================== - * - ***************************************************************************/ -#pragma once +#pragma once #include "timapprovider.h" #include diff --git a/Src/RescueLoad/map/tianditu/include/timapcacheworker.h b/Src/RescueLoad/map/tianditu/include/timapcacheworker.h index ef1c182..5aba0fc 100644 --- a/Src/RescueLoad/map/tianditu/include/timapcacheworker.h +++ b/Src/RescueLoad/map/tianditu/include/timapcacheworker.h @@ -1,23 +1,4 @@ -/************************************************************************** - * 文件名 :TiMapCacheWorker.h - * ======================================================================= - * 创 建 者 :田小帆 - * 创建日期 :2021-5-14 - * 邮 箱 :499131808@qq.com - * Q Q :499131808 - * 公 司 : - * 功能描述 : - * 使用说明 - *:任何人或机构要使用、修改、发布本源代码,都必须要获得的授权 - * ====================================================================== - * 修改者 : - * 修改日期 : - * 修改内容 : - * ====================================================================== - * - ***************************************************************************/ - -#pragma once +#pragma once #include #include #include diff --git a/Src/RescueLoad/map/tianditu/include/timapengine.h b/Src/RescueLoad/map/tianditu/include/timapengine.h index 12530f0..9817c6b 100644 --- a/Src/RescueLoad/map/tianditu/include/timapengine.h +++ b/Src/RescueLoad/map/tianditu/include/timapengine.h @@ -1,22 +1,4 @@ -/************************************************************************** - * 文件名 :timapengine.h - * ======================================================================= - * 创 建 者 :田小帆 - * 创建日期 :2021-6-16 - * 邮 箱 :499131808@qq.com - * Q Q :499131808 - * 公 司 : - * 功能描述 : - * 使用说明 - *:任何人或机构要使用、修改、发布本源代码,都必须要获得的授权 - * ====================================================================== - * 修改者 : - * 修改日期 : - * 修改内容 : - * ====================================================================== - * - ***************************************************************************/ -#pragma once +#pragma once #include #include diff --git a/Src/RescueLoad/map/tianditu/include/timapenginedata.h b/Src/RescueLoad/map/tianditu/include/timapenginedata.h index 3ab7e5b..1629a1e 100644 --- a/Src/RescueLoad/map/tianditu/include/timapenginedata.h +++ b/Src/RescueLoad/map/tianditu/include/timapenginedata.h @@ -1,21 +1,4 @@ -/************************************************************************** - * 文件名 :TiMapEngineData.h - * ======================================================================= - * 创 建 者 :田小帆 - * 创建日期 :2021-6-30 - * 邮 箱 :499131808@qq.com - * Q Q :499131808 - * 公 司 : - * 功能描述 : - * - * ====================================================================== - * 修改者 : - * 修改日期 : - * 修改内容 : - * ====================================================================== - * - ***************************************************************************/ -#pragma once +#pragma once #include /** * @brief The TiMapCacheTile class 瓦片数据 diff --git a/Src/RescueLoad/map/tianditu/include/timapjsonengine.h b/Src/RescueLoad/map/tianditu/include/timapjsonengine.h index 9aa340a..cfab07c 100644 --- a/Src/RescueLoad/map/tianditu/include/timapjsonengine.h +++ b/Src/RescueLoad/map/tianditu/include/timapjsonengine.h @@ -1,22 +1,4 @@ -/************************************************************************** - * 文件名 :timapjsonengine.h - * ======================================================================= - * 创 建 者 :田小帆 - * 创建日期 :2021-6-29 - * 邮 箱 :499131808@qq.com - * Q Q :499131808 - * 公 司 : - * 功能描述 : - * - * ====================================================================== - * 修改者 : - * 修改日期 : - * 修改内容 : - * ====================================================================== - * - ***************************************************************************/ - -#pragma once +#pragma once #include #include diff --git a/Src/RescueLoad/map/tianditu/include/timapprovider.h b/Src/RescueLoad/map/tianditu/include/timapprovider.h index d70e3c5..2a7be8e 100644 --- a/Src/RescueLoad/map/tianditu/include/timapprovider.h +++ b/Src/RescueLoad/map/tianditu/include/timapprovider.h @@ -1,21 +1,4 @@ -/************************************************************************** - * 文件名 :timapprovider.h - * ======================================================================= - * 创 建 者 :田小帆 - * 创建日期 :2021-6-16 - * 邮 箱 :499131808@qq.com - * Q Q :499131808 - * 公 司 : - * 功能描述 : - * - * ====================================================================== - * 修改者 : - * 修改日期 : - * 修改内容 : - * ====================================================================== - * - ***************************************************************************/ -#pragma once +#pragma once #include #include #include diff --git a/Src/RescueLoad/map/tianditu/include/timapurlengine.h b/Src/RescueLoad/map/tianditu/include/timapurlengine.h index f97af13..712559b 100644 --- a/Src/RescueLoad/map/tianditu/include/timapurlengine.h +++ b/Src/RescueLoad/map/tianditu/include/timapurlengine.h @@ -1,22 +1,4 @@ -/************************************************************************** - * 文件名 :timapurlengine.h - * ======================================================================= - * 创 建 者 :田小帆 - * 创建日期 :2021-6-17 - * 邮 箱 :499131808@qq.com - * Q Q :499131808 - * 公 司 : - * 功能描述 : - * - * ====================================================================== - * 修改者 : - * 修改日期 : - * 修改内容 : - * ====================================================================== - * - ***************************************************************************/ - -#pragma once +#pragma once #include #include #include diff --git a/Src/RescueLoad/map/tianditu/include/tiqgeocodereply.h b/Src/RescueLoad/map/tianditu/include/tiqgeocodereply.h index 550678b..e4bfef7 100644 --- a/Src/RescueLoad/map/tianditu/include/tiqgeocodereply.h +++ b/Src/RescueLoad/map/tianditu/include/tiqgeocodereply.h @@ -1,22 +1,4 @@ -/************************************************************************** - * 文件名 :tiqgeocodereply.h - * ======================================================================= - * 创 建 者 :田小帆 - * 创建日期 :2021-5-17 - * 邮 箱 :499131808@qq.com - * Q Q :499131808 - * 公 司 : - * 功能描述 : - * - * ====================================================================== - * 修改者 : - * 修改日期 : - * 修改内容 : - * ====================================================================== - * - ***************************************************************************/ - -#pragma once +#pragma once #include #include diff --git a/Src/RescueLoad/map/tianditu/include/tiqgeofiletilecache.h b/Src/RescueLoad/map/tianditu/include/tiqgeofiletilecache.h index dafb96c..9bc7407 100644 --- a/Src/RescueLoad/map/tianditu/include/tiqgeofiletilecache.h +++ b/Src/RescueLoad/map/tianditu/include/tiqgeofiletilecache.h @@ -1,22 +1,4 @@ -/************************************************************************** - * 文件名 :tiqgeofiletilecache.h - * ======================================================================= - * 创 建 者 :田小帆 - * 创建日期 :2021-5-13 - * 邮 箱 :499131808@qq.com - * Q Q :499131808 - * 公 司 : - * 功能描述 : - * - * ====================================================================== - * 修改者 : - * 修改日期 : - * 修改内容 : - * ====================================================================== - * - ***************************************************************************/ - -#pragma once +#pragma once #include diff --git a/Src/RescueLoad/map/tianditu/include/tiqgeoserviceproviderfactory.h b/Src/RescueLoad/map/tianditu/include/tiqgeoserviceproviderfactory.h index e11f6e7..cf9e1f2 100644 --- a/Src/RescueLoad/map/tianditu/include/tiqgeoserviceproviderfactory.h +++ b/Src/RescueLoad/map/tianditu/include/tiqgeoserviceproviderfactory.h @@ -1,21 +1,4 @@ -/************************************************************************** - * 文件名 :tiqeoserviceproviderfactory.h - * ======================================================================= - * 创 建 者 :田小帆 - * 创建日期 :2021-4-27 - * 邮 箱 :499131808@qq.com - * Q Q :499131808 - * 公 司 : - * 功能描述 : - * - * ====================================================================== - * 修改者 : - * 修改日期 : - * 修改内容 : - * ====================================================================== - * - ***************************************************************************/ -#pragma once +#pragma once #include #include #include diff --git a/Src/RescueLoad/map/tianditu/include/tiqgeotiledmappingmanagerengine.h b/Src/RescueLoad/map/tianditu/include/tiqgeotiledmappingmanagerengine.h index 16f5023..33c6987 100644 --- a/Src/RescueLoad/map/tianditu/include/tiqgeotiledmappingmanagerengine.h +++ b/Src/RescueLoad/map/tianditu/include/tiqgeotiledmappingmanagerengine.h @@ -1,21 +1,4 @@ -/************************************************************************** - * 文件名 :tiqgeotiledmappingmanagerengine.h - * ======================================================================= - * 创 建 者 :田小帆 - * 创建日期 :2021-4-27 - * 邮 箱 :499131808@qq.com - * Q Q :499131808 - * 公 司 : - * 功能描述 : - * - * ====================================================================== - * 修改者 : - * 修改日期 : - * 修改内容 : - * ====================================================================== - * - ***************************************************************************/ -#pragma once +#pragma once #include #include diff --git a/Src/RescueLoad/map/tianditu/include/tiqgeotiledmapreply.h b/Src/RescueLoad/map/tianditu/include/tiqgeotiledmapreply.h index 03da7d7..c7faf49 100644 --- a/Src/RescueLoad/map/tianditu/include/tiqgeotiledmapreply.h +++ b/Src/RescueLoad/map/tianditu/include/tiqgeotiledmapreply.h @@ -1,22 +1,4 @@ -/************************************************************************** - * 文件名 :tiqgeotiledmapreply.h - * ======================================================================= - * 创 建 者 :田小帆 - * 创建日期 :2021-5-12 - * 邮 箱 :499131808@qq.com - * Q Q :499131808 - * 公 司 : - * 功能描述 : - * - * ====================================================================== - * 修改者 : - * 修改日期 : - * 修改内容 : - * ====================================================================== - * - ***************************************************************************/ - -#pragma once +#pragma once #include #include #include diff --git a/Src/RescueLoad/map/tianditu/include/titianditumapprovider.h b/Src/RescueLoad/map/tianditu/include/titianditumapprovider.h index 99042c6..ee2abfb 100644 --- a/Src/RescueLoad/map/tianditu/include/titianditumapprovider.h +++ b/Src/RescueLoad/map/tianditu/include/titianditumapprovider.h @@ -1,21 +1,4 @@ -/************************************************************************** - * 文件名 :titianditumapprovider.h - * ======================================================================= - * 创 建 者 :田小帆 - * 创建日期 :2021-6-16 - * 邮 箱 :499131808@qq.com - * Q Q :499131808 - * 公 司 : - * 功能描述 : - * - * ====================================================================== - * 修改者 : - * 修改日期 : - * 修改内容 : - * ====================================================================== - * - ***************************************************************************/ -#pragma once +#pragma once #include "timapprovider.h" class TiTiandituMapProvider : public TiMapProvider diff --git a/Src/RescueLoad/rescueload.cpp b/Src/RescueLoad/rescueload.cpp index 86d3898..e6f8c0d 100644 --- a/Src/RescueLoad/rescueload.cpp +++ b/Src/RescueLoad/rescueload.cpp @@ -24,7 +24,8 @@ ImsiData::ImsiData(const QJsonObject& json) if (json.contains("altitude")) this->altitude = json.value("altitude").toInt(); if (json.contains("create_date")) - this->createDate = json.value("create_date").toString(); + // this->createDate = json.value("create_date").toString(); // 传过来的数据不准 + this->createDate = QDateTime::currentDateTime().toString("yyyy-MM-ddThh:mm:ss"); if (json.contains("rssi")) this->rssi = json.value("rssi").toInt(); if (json.contains("fcn"))