Auto Commit

上级 82a5d70e
...@@ -4,6 +4,11 @@ ...@@ -4,6 +4,11 @@
<a style="font-size: 24px;font-weight:bolder;">{{ state.title }}</a> <a style="font-size: 24px;font-weight:bolder;">{{ state.title }}</a>
</div> </div>
</div> </div>
<div style="width: 100%;text-align: right;line-height: 80px;">
<a-button @click="initDataSource" type="primary">
重置表格
</a-button>
</div>
<div style="display:flex"> <div style="display:flex">
<div id="barChartId" style="flex:1;width:600px;height:900px;margin: 0 auto;border: 1px solid #333;"></div> <div id="barChartId" style="flex:1;width:600px;height:900px;margin: 0 auto;border: 1px solid #333;"></div>
<div style="width: 700px;height:900px;border: 1px solid #333;"> <div style="width: 700px;height:900px;border: 1px solid #333;">
...@@ -84,14 +89,17 @@ function initDataSource() { ...@@ -84,14 +89,17 @@ function initDataSource() {
} }
function filterName(name) { function filterName(name) {
console.log('name',name)
state.dataSource = [] state.dataSource = []
state.total = 0 state.total = 0
Object.keys(gameJson).forEach(uid => { Object.keys(gameJson).forEach(uid => {
if(name.includes(gameJson[uid].name)){ const locName=gameJson[uid].ip.split('')[1]
if(name.includes(locName)){
state.dataSource.push({ state.dataSource.push({
uid: gameJson[uid].uid, uid: gameJson[uid].uid,
name: gameJson[uid].name, name: gameJson[uid].name,
ip: gameJson[uid].ip.split('')[1] ip: locName
}) })
state.total += 1 state.total += 1
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册