Compare commits
No commits in common. "e8e22205f32d7dcc0304db2e86d2a81ce7f79098" and "998e851d0b10f8aacc545be9c7a2e5d4724b3029" have entirely different histories.
e8e22205f3
...
998e851d0b
|
|
@ -5,24 +5,23 @@ export 'modules/hidden_danger_api.dart';
|
||||||
export 'modules/special_work_api.dart';
|
export 'modules/special_work_api.dart';
|
||||||
|
|
||||||
class ApiService {
|
class ApiService {
|
||||||
|
|
||||||
/// 是否是港务局环境
|
|
||||||
static final bool isGWJProduct = true;
|
|
||||||
/// 是否正式环境
|
/// 是否正式环境
|
||||||
static final bool isProduct = true;
|
static final bool isProduct = true;
|
||||||
|
|
||||||
/// 登录及其他管理后台接口
|
/// 登录及其他管理后台接口
|
||||||
static final String basePath = isGWJProduct ? "https://skqhdg.porthebei.com:9007" :
|
// static final String basePath = "https://skqhdg.porthebei.com:9007";
|
||||||
isProduct
|
static final String basePath =
|
||||||
? "https://gbs-gateway.qhdsafety.com"
|
isProduct
|
||||||
: 'http://192.168.198.8:30140';
|
? "https://gbs-gateway.qhdsafety.com"
|
||||||
|
: "http://192.168.20.100:30140";
|
||||||
|
|
||||||
|
|
||||||
/// 图片文件服务
|
/// 图片文件服务
|
||||||
static final String baseImgPath = isGWJProduct ? "https://skqhdg.porthebei.com:9004/file/uploadFiles2/" :
|
static final String baseImgPath =
|
||||||
isProduct
|
isProduct
|
||||||
? "https://jpfz.qhdsafety.com/gbsFileTest/"
|
? "https://jpfz.qhdsafety.com/gbsFileTest/"
|
||||||
: "https://skqhdg.porthebei.com:9004/file/uploadFiles2/"; //内网图片地址
|
: "http://192.168.20.240:9787/mnt/"; //内网图片地址
|
||||||
|
// static final String baseImgPath = "https://skqhdg.porthebei.com:9004/file/uploadFiles2/";
|
||||||
|
|
||||||
|
|
||||||
static const publicKey =
|
static const publicKey =
|
||||||
|
|
|
||||||
|
|
@ -1120,7 +1120,7 @@ class HomePageState extends RouteAwareState<HomePage>
|
||||||
int keyTasksNum = 0;
|
int keyTasksNum = 0;
|
||||||
int hiddenDangerNum = 0;
|
int hiddenDangerNum = 0;
|
||||||
try {
|
try {
|
||||||
if (FormUtils.hasValue(specialWork, 'success') && specialWork['success']) {
|
if (specialWork['success']) {
|
||||||
List<dynamic> specialWorkList = specialWork['data'] ?? [];
|
List<dynamic> specialWorkList = specialWork['data'] ?? [];
|
||||||
for (var item in specialWorkList) {
|
for (var item in specialWorkList) {
|
||||||
if (item is Map) {
|
if (item is Map) {
|
||||||
|
|
@ -1129,14 +1129,14 @@ class HomePageState extends RouteAwareState<HomePage>
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (FormUtils.hasValue(keyTasksWork, 'success') && keyTasksWork['success']) {
|
if (keyTasksWork['success']) {
|
||||||
int zdzysqCount = int.parse(keyTasksWork['data']['zdzysqCount']??0);
|
int zdzysqCount = int.parse(keyTasksWork['data']['zdzysqCount']??0);
|
||||||
int bjcrqrCount = int.parse(keyTasksWork['data']['bjcrqrCount']??0);
|
int bjcrqrCount = int.parse(keyTasksWork['data']['bjcrqrCount']??0);
|
||||||
int yhdzgCount = int.parse(keyTasksWork['data']['yhdzgCount']??0);
|
int yhdzgCount = int.parse(keyTasksWork['data']['yhdzgCount']??0);
|
||||||
keyTasksNum = bjcrqrCount+yhdzgCount+zdzysqCount;
|
keyTasksNum = bjcrqrCount+yhdzgCount+zdzysqCount;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (FormUtils.hasValue(hiddenDangerWork, 'success') && hiddenDangerWork['success']) {
|
if (hiddenDangerWork['success']) {
|
||||||
List<dynamic> data = hiddenDangerWork['data']?? [] ;
|
List<dynamic> data = hiddenDangerWork['data']?? [] ;
|
||||||
hiddenDangerNum = data.length;
|
hiddenDangerNum = data.length;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue