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