|
@@ -415,6 +415,9 @@ $(function () {
|
|
|
|
|
|
window.loadHistoryList = function (params={}) {
|
|
|
let {data=[],clickItem=()=>{}} = params
|
|
|
+ if (!data||data.length<=0) {
|
|
|
+ return $('.histcon').hide()
|
|
|
+ }
|
|
|
let html = ''
|
|
|
|
|
|
for (let i = 0; i < data.length; i++) {
|
|
@@ -425,6 +428,7 @@ $(function () {
|
|
|
$('#hislist').html(html)
|
|
|
$('#hislist').on('click','li',function(e){
|
|
|
let i = $(e.target).data('val')
|
|
|
+ $(e.target).addClass('active').siblings().removeClass('active')
|
|
|
clickItem(data[i])
|
|
|
})
|
|
|
|