diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue index fd6ad44..2af0c87 100644 --- a/src/layout/components/Navbar.vue +++ b/src/layout/components/Navbar.vue @@ -11,13 +11,13 @@ + type="primary" icon="" size="small" style="margin-right:24px" @click="onMerchantBalanceClick"> 商户余额 + type="primary" icon="" size="small" style="margin-right:24px" @click="onCarddealerMarginClick"> 码商押金 @@ -173,8 +173,6 @@ export default { }, mounted() { this.getUser(); - this.getList(); - this.secondMethod() }, methods: { goDataView() { @@ -186,20 +184,21 @@ export default { }) window.open(href.href, '_blank') }, - secondMethod() { - // this.timer = setInterval(() => { - // this.getList(); - // }, 30000) - }, - getList() { - common_api.onLineCarddealer().then((response) => { - this.tableData = response.data - }); + // 点击商户余额 + onMerchantBalanceClick() { + this.merchantDialogStates.visible = true onLineMerchant() .then(res => { this.merchantDialogStates.data = res.data }) }, + // 点击码商押金 + onCarddealerMarginClick() { + this.dialogVisible = true + common_api.onLineCarddealer().then((response) => { + this.tableData = response.data + }); + }, // 改变自动刷新的状态 onAutoRefreshChanged(value) { if (value) {