Browse Source

chore: 修改为每次点击获取数据

master
kiki 2 years ago
parent
commit
aa28df29db
  1. 25
      src/layout/components/Navbar.vue

25
src/layout/components/Navbar.vue

@ -11,13 +11,13 @@
<el-button <el-button
v-hasPermi="['system:merchant:onLineMerchant']" v-hasPermi="['system:merchant:onLineMerchant']"
type="primary" icon="" size="small" style="margin-right:24px" @click="merchantDialogStates.visible = true"> type="primary" icon="" size="small" style="margin-right:24px" @click="onMerchantBalanceClick">
商户余额 商户余额
</el-button> </el-button>
<el-button <el-button
v-hasPermi="['carddealer:carddealer:onLineCarddealer']" v-hasPermi="['carddealer:carddealer:onLineCarddealer']"
type="primary" icon="" size="small" style="margin-right:24px" @click="dialogVisible = true"> type="primary" icon="" size="small" style="margin-right:24px" @click="onCarddealerMarginClick">
码商押金 码商押金
</el-button> </el-button>
@ -173,8 +173,6 @@ export default {
}, },
mounted() { mounted() {
this.getUser(); this.getUser();
this.getList();
this.secondMethod()
}, },
methods: { methods: {
goDataView() { goDataView() {
@ -186,20 +184,21 @@ export default {
}) })
window.open(href.href, '_blank') window.open(href.href, '_blank')
}, },
secondMethod() { //
// this.timer = setInterval(() => { onMerchantBalanceClick() {
// this.getList(); this.merchantDialogStates.visible = true
// }, 30000)
},
getList() {
common_api.onLineCarddealer().then((response) => {
this.tableData = response.data
});
onLineMerchant() onLineMerchant()
.then(res => { .then(res => {
this.merchantDialogStates.data = res.data this.merchantDialogStates.data = res.data
}) })
}, },
//
onCarddealerMarginClick() {
this.dialogVisible = true
common_api.onLineCarddealer().then((response) => {
this.tableData = response.data
});
},
// //
onAutoRefreshChanged(value) { onAutoRefreshChanged(value) {
if (value) { if (value) {

Loading…
Cancel
Save