Authored by 高磊

Merge branch 'master-mj-yuanjinpeng' into 'master-mj'

fix: 工作日志加载日志列表优化



See merge request !1253
@@ -256,14 +256,7 @@ layui.define(['table', 'form', 'admin', 'layer', 'common', 'sessions', 'xmSelect @@ -256,14 +256,7 @@ layui.define(['table', 'form', 'admin', 'layer', 'common', 'sessions', 'xmSelect
256 , {field: 'alarmTime', title: '首次告警时间', align: 'center', minWidth: 180} 256 , {field: 'alarmTime', title: '首次告警时间', align: 'center', minWidth: 180}
257 ] 257 ]
258 258
259 - where = {  
260 - access_token: accessToken,  
261 - dateTime: $('#add-workReport-form').find("input[name='createTime']").val()  
262 - }  
263 -  
264 - url = domainName + '/api-web/home/alarm/getAlarm'  
265 259
266 - getAlarmInfo(where,cols, url)  
267 260
268 261
269 /** 262 /**
@@ -344,9 +337,18 @@ layui.define(['table', 'form', 'admin', 'layer', 'common', 'sessions', 'xmSelect @@ -344,9 +337,18 @@ layui.define(['table', 'form', 'admin', 'layer', 'common', 'sessions', 'xmSelect
344 , {field: 'clearUserId', title: '消除人', align: 'center', minWidth: 100,} 337 , {field: 'clearUserId', title: '消除人', align: 'center', minWidth: 100,}
345 , {field: 'clearTime', title: '消除时间', align: 'center', minWidth: 180,} 338 , {field: 'clearTime', title: '消除时间', align: 'center', minWidth: 180,}
346 , {field: 'clearReason', title: '消除原因', align: 'center', minWidth: 250}) 339 , {field: 'clearReason', title: '消除原因', align: 'center', minWidth: 250})
347 - where = {access_token: accessToken, reportId: data.id, time: time} 340 + where = {accessToken: accessToken, reportId: data.id, time: time}
348 url = domainName + '/api-web/workreport/getAlarmListByReportId' 341 url = domainName + '/api-web/workreport/getAlarmListByReportId'
349 getAlarmInfo(where, cols, url) 342 getAlarmInfo(where, cols, url)
  343 + }else {
  344 + where = {
  345 + accessToken: accessToken,
  346 + dateTime: $('#add-workReport-form').find("input[name='createTime']").val()
  347 + }
  348 +
  349 + url = domainName + '/api-web/home/alarm/getAlarm'
  350 +
  351 + getAlarmInfo(where,cols, url)
350 } 352 }
351 } 353 }
352 354