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
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
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>
@ -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) {

Loading…
Cancel
Save