```feat(money-user): 添加余额预警功能 TODO 待优化
在用户资金页面新增余额预警机制,允许用户设置当账户可用余额低于指定阈值时,系统每日通过短信通知,最多连续通知五天。界面包括输入预警阈值和联系号码的表单,以及相关的对话框组件。```master
parent
d71a20afa8
commit
cedddf065c
|
@ -7,6 +7,32 @@
|
|||
</el-card>
|
||||
|
||||
|
||||
<el-card style="margin-top: 50px">
|
||||
<!-- Form -->
|
||||
<h1>余额预警</h1>
|
||||
<el-button type="text" @click="dialogFormVisible = true">开启</el-button>
|
||||
<el-dialog title="添加预警号码" :visible.sync="dialogFormVisible">
|
||||
<el-divider style="color: #00afff">
|
||||
<el-tag content-position="right" type="warning">
|
||||
账户可用余额小于该值时,每天短信通知一次(最多连续提醒5天)
|
||||
</el-tag>
|
||||
</el-divider>
|
||||
<el-form :model="form">
|
||||
<el-form-item label="预警阈值:" :label-width="formLabelWidth">
|
||||
<el-input v-model="form.name" autocomplete="off"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="预警号码:" :label-width="formLabelWidth">
|
||||
<el-input v-model="form.phone" autocomplete="off"></el-input>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button @click="dialogFormVisible = false">取 消</el-button>
|
||||
<el-button type="primary" @click="dialogFormVisible = false">确 定</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
</el-card>
|
||||
|
||||
|
||||
<el-card style="margin-top: 50px">
|
||||
<div>
|
||||
<!-- 装ECharts的容器 -->
|
||||
|
@ -25,9 +51,14 @@ export default {
|
|||
data() {
|
||||
return {
|
||||
charts: "",
|
||||
opinionData: ["155", "400", "900", "800", "300", "900", "270", "684", "165", "0", "300", "150"], // 数据
|
||||
dialogFormVisible: false,
|
||||
formLabelWidth: '120px',
|
||||
opinionData: ["155", "400", "900", "800", "300", "900", "270","684","165","0","300","150"], // 数据
|
||||
userBalanceData: {
|
||||
userBalance: '加载中...'
|
||||
},
|
||||
form:{
|
||||
|
||||
}
|
||||
};
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue