Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

合并 #92

Closed
wants to merge 14 commits into from
Prev Previous commit
Next Next commit
去掉用户行为采集
  • Loading branch information
doulongfei committed Jul 27, 2024
commit 3b1283934e088471daf1af576682133ddf075602
43 changes: 13 additions & 30 deletions admin.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
font-size: xx-large;
position: relative;
">Dashboard


<span style="
position: absolute;
Expand All @@ -49,27 +49,27 @@
<el-button
size="mini"
type="info"
@click="handleLogout()">退出登录</el-button></span></div>
@click="handleLogout()">退出登录</el-button></span></div>
</el-header>
<el-main><el-row :gutter="12">
<el-col :span="24">
<el-card shadow="always">
记录总数量:
{{ Number }}
{{ Number }}
</el-card>
</el-col>
<!--<el-col :span="8">
<el-card shadow="hover">
<el-tooltip class="item" effect="dark" content="白名单数量" placement="top-start">

</el-tooltip>
白名单数量:{{ WhiteList }}
</el-card>
</el-col>
<el-col :span="8">
<el-card shadow="hover">
<el-tooltip class="item" effect="dark" content="黑名单数量" placement="top-start">

</el-tooltip>
黑名单数量:{{ BlackList }}
</el-card>
Expand Down Expand Up @@ -187,7 +187,7 @@
.then(result => {console.log(result);
this.tableData[index].metadata=result;})
.catch(error => {alert("An error occurred while synchronizing data with the server, please check the network connection");console.log('error', error)});

} else {
console.log("No")
}
Expand All @@ -207,7 +207,7 @@
.then(response => response.text())
.then(result => {console.log(result);this.tableData.remove(index);})
.catch(error => {alert("An error occurred while synchronizing data with the server, please check the network connection");console.log('error', error)});

} else {
console.log("No")
}
Expand All @@ -226,7 +226,7 @@
.then(response => response.text())
.then(result => {console.log(result);this.tableData[index].metadata=result;})
.catch(error => {alert("An error occurred while synchronizing data with the server, please check the network connection");console.log('error', error)});

} else {
console.log("No")
}
Expand Down Expand Up @@ -262,7 +262,7 @@
});
},
},

mounted () {
//check if the user is logged in
//read the basic auth credientials from the browser
Expand All @@ -278,7 +278,7 @@
if(result=="true"){
this.showLogoutButton=true;
}else if(result=="Not using basic auth."){

}
else{
window.location.href="./api/manage/login";
Expand All @@ -298,7 +298,7 @@
redirect: 'follow',
//include authorization credientials
credentials: 'include'

};


Expand All @@ -313,29 +313,12 @@
return response;
}
})
.then(response => response.text())
.then(response => response.text())
.then(result => {this.tableData=JSON.parse(result);console.log(result);this.Number=this.tableData.length})
.catch(error => {alert("An error occurred while synchronizing data with the server, please check the network connection");console.log('error', error)});

}
})

</script><!-- Hotjar Tracking Code -->
<script>
(function(h,o,t,j,a,r){
h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};
h._hjSettings={hjid:2531461,hjsv:6};
a=o.getElementsByTagName('head')[0];
r=o.createElement('script');r.async=1;
r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv;
a.appendChild(r);
})(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv=');
</script>
<script type="text/javascript">
(function(c,l,a,r,i,t,y){
c[a]=c[a]||function(){(c[a].q=c[a].q||[]).push(arguments)};
t=l.createElement(r);t.async=1;t.src="https://www.clarity.ms/tag/"+i;
y=l.getElementsByTagName(r)[0];y.parentNode.insertBefore(t,y);
})(window, document, "clarity", "script", "7t5ai7agat");
</script>
</html>