From ce85e6d09eaafa4758ffeccacf8867969dca54ac Mon Sep 17 00:00:00 2001
From: YYC <1833023622@qq.com>
Date: 星期五, 09 六月 2023 15:01:00 +0800
Subject: [PATCH] apk
---
igds-app/js/admin/security-patrol.js | 54 +++++++++++++++++++++++++++++-------------------------
1 files changed, 29 insertions(+), 25 deletions(-)
diff --git a/igds-app/js/admin/security-patrol.js b/igds-app/js/admin/security-patrol.js
index 1e58491..92b80bd 100644
--- a/igds-app/js/admin/security-patrol.js
+++ b/igds-app/js/admin/security-patrol.js
@@ -52,7 +52,6 @@
data1.data.deptId = selectDeptId;
dateTime = getDate(new Date())
document.getElementById("date").value = dateTime;
- console.log(JSON.stringify(data.data),"鐢靛瓙宸℃洿璁板綍","security-patrol")
//鑾峰彇宸℃洿璁板綍
getPatrolList()
@@ -90,17 +89,22 @@
type: "date", //璁剧疆鏃ュ巻鍒濆瑙嗗浘妯″紡
// beginDate: new Date(2015, 04, 25), //璁剧疆寮�濮嬫棩鏈�
// endDate: new Date(2016, 04, 25), //璁剧疆缁撴潫鏃ユ湡
+ value: dateTime
})
+ var time = dateTime;
dtpicker.show(function(e) {
dateTime = e.value;
document.getElementById("date").value = e.value
- getPatrolList();
+ if(time != dateTime){
+ getPatrolList();
+ }
})
}
//鑾峰彇宸℃洿璁板綍
function getPatrolList() {
//璧嬪�煎弬鏁扮殑鏃ユ湡
data.data.dataTime = dateTime;
+ console.log(JSON.stringify(data.data),"鐢靛瓙宸℃洿璁板綍","security-patrol")
mui.ajax(url, {
type: "POST",
dataType: "json",
@@ -122,28 +126,28 @@
}
})
- PatrolList = [{
- "id": "57",
- "userName": "绋嬪",
- "longitude": "34.585",
- "latitude": "114.235",
- "createTime": "1976-03-03 16:41:41"
- },
- {
- "id": "1",
- "userName": "鍐啗",
- "longitude": "34.585",
- "latitude": "114.235",
- "createTime": "1981-01-06 17:40:24"
- },
- {
- "id": "99",
- "userName": "榛庢磱",
- "longitude": "114.235",
- "latitude": "34.585",
- "createTime": "1991-04-04 23:06:09"
- }
- ]
+ // PatrolList = [{
+ // "id": "57",
+ // "userName": "绋嬪",
+ // "longitude": "34.585",
+ // "latitude": "114.235",
+ // "createTime": "1976-03-03 16:41:41"
+ // },
+ // {
+ // "id": "1",
+ // "userName": "鍐啗",
+ // "longitude": "34.585",
+ // "latitude": "114.235",
+ // "createTime": "1981-01-06 17:40:24"
+ // },
+ // {
+ // "id": "99",
+ // "userName": "榛庢磱",
+ // "longitude": "114.235",
+ // "latitude": "34.585",
+ // "createTime": "1991-04-04 23:06:09"
+ // }
+ // ]
}
@@ -167,7 +171,7 @@
}
mui('.mui-scroll-wrapper').scroll({
- indicators: false, //鏄惁鏄剧ず婊氬姩鏉�
+ indicators: true, //鏄惁鏄剧ず婊氬姩鏉�
deceleration: 0.0006, //闃诲凹绯绘暟,绯绘暟瓒婂皬婊戝姩瓒婄伒鏁�
bounce: false, //鏄惁鍚敤鍥炲脊
deceleration: 0.0005 //flick 鍑忛�熺郴鏁帮紝绯绘暟瓒婂ぇ锛屾粴鍔ㄩ�熷害瓒婃參锛屾粴鍔ㄨ窛绂昏秺灏忥紝榛樿鍊�0.0006
--
Gitblit v1.9.3