|
|
@ -119,10 +119,11 @@ |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
layui.use(['form', 'table', 'laydate'], function () { |
|
|
layui.use(['form', 'table', 'laydate', 'util'], function () { |
|
|
var $ = layui.jquery, |
|
|
var $ = layui.jquery, |
|
|
form = layui.form, |
|
|
form = layui.form, |
|
|
table = layui.table, |
|
|
table = layui.table, |
|
|
|
|
|
util = layui.util, |
|
|
laydate = layui.laydate; |
|
|
laydate = layui.laydate; |
|
|
|
|
|
|
|
|
// 用于打开仓库树形菜单 |
|
|
// 用于打开仓库树形菜单 |
|
|
@ -178,7 +179,12 @@ |
|
|
, dataName: 'data' //规定数据列表的字段名称,默认:data |
|
|
, dataName: 'data' //规定数据列表的字段名称,默认:data |
|
|
}, |
|
|
}, |
|
|
toolbar: '#toolbarDemo', |
|
|
toolbar: '#toolbarDemo', |
|
|
defaultToolbar: ['filter', 'exports', 'print'], |
|
|
defaultToolbar: ['filter', 'exports', 'print', { |
|
|
|
|
|
title: '图表展示' |
|
|
|
|
|
, layEvent: 'showEchart' |
|
|
|
|
|
, icon: 'layui-icon-chart-screen' |
|
|
|
|
|
, id: "showEchart" |
|
|
|
|
|
}], |
|
|
//这里layui和thymeleaf冲突了,要加个空格 |
|
|
//这里layui和thymeleaf冲突了,要加个空格 |
|
|
cols: [ |
|
|
cols: [ |
|
|
[ |
|
|
[ |
|
|
@ -206,6 +212,7 @@ |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 监听搜索操作 |
|
|
// 监听搜索操作 |
|
|
form.on('submit(data-search-btn)', function (data) { |
|
|
form.on('submit(data-search-btn)', function (data) { |
|
|
var req = {}; |
|
|
var req = {}; |
|
|
@ -311,9 +318,23 @@ |
|
|
layer.msg("未选中记录,请确认!"); |
|
|
layer.msg("未选中记录,请确认!"); |
|
|
return false; |
|
|
return false; |
|
|
} |
|
|
} |
|
|
|
|
|
} else if (obj.event === 'showEchart') { |
|
|
|
|
|
let listItem = `<ul class="layui-table-tool-panel" style="max-height: 685px;"> |
|
|
|
|
|
<li lay-event="showLineEchart">查看面积图</li> |
|
|
|
|
|
<li lay-event="showSunburstEchart">查看旭日图</li> |
|
|
|
|
|
</ul>`; |
|
|
|
|
|
|
|
|
|
|
|
$("#showEchart").append(listItem) |
|
|
|
|
|
}else if(obj.event === 'showLineEchart'){ |
|
|
|
|
|
console.log("showLineEchart") |
|
|
|
|
|
}else if(obj.event === "showSunburstEchart"){ |
|
|
|
|
|
console.log("showSunburstEchart") |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//监听表格复选框选择 |
|
|
//监听表格复选框选择 |
|
|
table.on('checkbox(currentTableFilter)', function (obj) { |
|
|
table.on('checkbox(currentTableFilter)', function (obj) { |
|
|
console.log(obj) |
|
|
console.log(obj) |
|
|
@ -386,9 +407,6 @@ |
|
|
}); |
|
|
}); |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
$('body').on('click', '[data-refresh]', function () { |
|
|
|
|
|
location.reload(); |
|
|
|
|
|
}) |
|
|
|
|
|
}); |
|
|
}); |
|
|
</script> |
|
|
</script> |
|
|
|
|
|
|
|
|
|