Commit 51031908 authored by wxk's avatar wxk

bug fix

parent 4e5d0bc6
...@@ -722,7 +722,7 @@ ...@@ -722,7 +722,7 @@
//查询充提记录 //查询充提记录
getRecords(params) { getRecords(params) {
this.recordsLoading = true; this.recordsLoading = true;
const Coin = this.checkedCoins ? this.checkedCoins : this.coins; const Coin = this.checkedCoins.length !== 0 ? this.checkedCoins : this.coins;
const baseParams = { const baseParams = {
account: this.robotDetailInfo.account, account: this.robotDetailInfo.account,
coin: Coin, coin: Coin,
...@@ -865,6 +865,7 @@ ...@@ -865,6 +865,7 @@
}, },
watch: { watch: {
$route() { $route() {
this.robotDetailInfo = JSON.parse(sessionStorage.getItem('robotDetailInfo'));
this.init(); this.init();
}, },
robotDetailInfo() { robotDetailInfo() {
......
...@@ -329,6 +329,7 @@ ...@@ -329,6 +329,7 @@
this.getRobotList(ListParams); this.getRobotList(ListParams);
}, },
showDetails(index) { showDetails(index) {
sessionStorage.setItem('robotDetailInfo', JSON.stringify(this.robotList[index]));
this.$router.push(`/monitor/${this.$route.params.name}/RobotDetail`); this.$router.push(`/monitor/${this.$route.params.name}/RobotDetail`);
}, },
clickSwitch(val) { clickSwitch(val) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment