|
@@ -87,7 +87,8 @@ async function getTreeList() {
|
|
|
function selectChange(treeNode) {
|
|
|
console.log(treeNode, 'treeNode--------')
|
|
|
pagination.current = 1
|
|
|
- dataSource.value = dataSource.value.filter(v => v.areaName == treeNode.node.dataRef.title)
|
|
|
+ areaCode.value=treeData.filter(v=>v.areaName==treeNode.node.dataRef.title)[0]['areaCode']
|
|
|
+ getFireWarnHistoryList()
|
|
|
}
|
|
|
//时间选项切换
|
|
|
function onDataChange(value, dateString) {
|
|
@@ -97,9 +98,9 @@ function onDataChange(value, dateString) {
|
|
|
|
|
|
//获取预警记录
|
|
|
async function getFireWarnHistoryList() {
|
|
|
- let ttime_begin = `${dayjs(TimeRange.value[0]).format('YYYY-MM-DD')} 00:00:00`
|
|
|
- let ttime_end = `${dayjs(TimeRange.value[1]).format('YYYY-MM-DD')} 00:00:00`
|
|
|
- let res = await getFireWarnHistory({ pageNo: pagination.current, pageSize: pagination.pageSize, ttime_begin: ttime_begin, ttime_end: ttime_end })
|
|
|
+ let startTime = `${dayjs(TimeRange.value[0]).format('YYYY-MM-DD')} 00:00:00`
|
|
|
+ let endTime = `${dayjs(TimeRange.value[1]).format('YYYY-MM-DD')} 00:00:00`
|
|
|
+ let res = await getFireWarnHistory({ pageNo: pagination.current, pageSize: pagination.pageSize,areaCode:areaCode.value, startTime : startTime, endTime : endTime })
|
|
|
console.log(res, '预警记录------------')
|
|
|
if (res.records.length != 0) {
|
|
|
res.records.forEach(el => {
|