This repository has been archived on 2026-06-20. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
wsh5485 7e47ce238b chore: 添加多个图片和资源文件
添加了管理后台所需的图片资源、Excel文件、安装程序以及设计相关的图片文件
2025-06-15 13:04:37 +08:00

42 lines
2.0 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<title>WebDataRocks</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<link href="webdatarocks.min.css" rel="stylesheet" />
<script src="webdatarocks.toolbar.min.js"></script>
<script src="webdatarocks.js"></script>
</head>
<body>
<div id="wdr-component"></div>
<script>
var pivot = new WebDataRocks({
container: "#wdr-component",
toolbar: true,
beforetoolbarcreated: customizeToolbar,
// report: {
// filename: "admin.csv",
// },
global: {
localization: "./zh.json"
}
});
function customizeToolbar(toolbar) {
var tabs = toolbar.getTabs(); // get all tabs from the toolbar
toolbar.getTabs = function() {
tabs[0].menu=undefined;
tabs[0].id="reflash";
tabs[0].title="更新数据";
tabs[0].icon='<svg t="1629769424436" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3255" width="36" height="36"><path d="M917.8 111.2l-84.6 84.6-2.5-7.4C743.5 106.3 641.5 64 517.1 64s-231.5 42.3-318.6 129.4C111.3 280.5 69 387.5 69 511.9S111.3 740.8 198.4 828c87.1 87.1 194.1 132 318.6 132s229-44.9 316-132c47.2-44.8 79.7-94.6 102-151.8l-208.9-79.7c-10 24.9-29.8 49.8-49.8 72.2-44.8 44.9-97.1 67.3-159.2 67.3s-114.5-22.4-159.3-67.2c-42.3-42.3-64.7-94.5-64.7-156.8s22.4-114.5 64.7-159.3c44.8-42.3 97.1-64.7 159.3-64.7 59.7 0 112 19.9 154.3 59.7l14.9-12.5-14.9 12.5 4.9 4.9-84.6 84.6c-7.4 4.9-7.4 10-10 14.9-2.5 7.5-2.5 10 0 12.5 2.5 4.9 4.9 7.4 10 7.4l333.5 2.5c2.5 0 7.5-2.5 12.5-2.5 4.9-4.9 7.5-10 12.5-14.9 2.5-4.9 4.9-10 4.9-12.5l-4.9-333.5v-2.5c0-4.9-2.5-4.9-4.9-7.4 0 0-2.5 0-2.5-2.5-2.5 0-4.9 2.5-10 2.5-5.1 2.6-12.6 5.1-15 10z" p-id="3256"></path></svg>';
tabs[0].handler=function(){
pivot.updateData({filename: 'admin.csv'});
}
return tabs;
}
}
</script>
</body>
</html>