Update exp.vue

pull/131/head
StarsL.cn 1 month ago committed by GitHub
parent 33ce6b38f1
commit 7d4d276c30
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -19,10 +19,15 @@
<el-form-item label="采集开关"> <el-form-item label="采集开关">
<el-switch v-model="exp_config.switch" /><br> <el-switch v-model="exp_config.switch" /><br>
<font size="3px" color="#ff0000"> <font size="3px" color="#ff0000">
<li>开启采集每小时会自动采集一次余额与到期资源信息</li> <li>开启采集指定间隔(默认1h)会自动采集一次余额与到期资源信息</li>
<li>开启通知每次采集后检测到余额或到期资源低于设定时会推送通知</li> <li>开启通知每次采集后检测到余额或到期资源低于设定时会推送通知</li>
</font> </font>
</el-form-item> </el-form-item>
<el-form-item v-if="exp_config.switch" label="采集间隔">
<el-input v-model="exp_config.notify_interval" style="width: 220px;" type="number">
<template slot="append">小时</template>
</el-input>
</el-form-item>
<el-form-item v-if="exp_config.switch" label="自动采集"> <el-form-item v-if="exp_config.switch" label="自动采集">
<el-input v-model="exp_config.collect_days" style="width: 220px;" type="number"> <el-input v-model="exp_config.collect_days" style="width: 220px;" type="number">
<template slot="append">天内到期的资源</template> <template slot="append">天内到期的资源</template>
@ -82,7 +87,7 @@
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-dialog title="查询余额(非实时,每小时采集一次,可在配置余额页面点击确认手动更新。)" :visible.sync="amountFormVisible" width="60%"> <el-dialog title="查询余额(非实时,根据采集间隔更新,可在配置余额页面,点击确认手动更新。)" :visible.sync="amountFormVisible" width="60%">
<el-table v-loading="listLoading" :data="amount_list" height="540" :default-sort="{ prop: 'amount', order: 'ascending' }" border fit highlight-current-row style="width: 100%;"> <el-table v-loading="listLoading" :data="amount_list" height="540" :default-sort="{ prop: 'amount', order: 'ascending' }" border fit highlight-current-row style="width: 100%;">
<el-table-column prop="vendor" label="云厂商" sortable align="center" /> <el-table-column prop="vendor" label="云厂商" sortable align="center" />
<el-table-column prop="account" label="账户" sortable align="center" /> <el-table-column prop="account" label="账户" sortable align="center" />
@ -101,7 +106,7 @@ export default {
listLoading: false, listLoading: false,
dialogFormVisible: false, dialogFormVisible: false,
query: { vendor: '', account: '' }, query: { vendor: '', account: '' },
exp_config: { switch: false, collect_days: 15, notify_days: 7, notify_amount: 1000, wecom: false, dingding: false, feishu: false, wecomwh: '', dingdingwh: '', feishuwh: '' }, exp_config: { switch: false, notify_interval: 1, collect_days: 15, notify_days: 7, notify_amount: 1000, wecom: false, dingding: false, feishu: false, wecomwh: '', dingdingwh: '', feishuwh: '' },
exp_list: [], exp_list: [],
vendor_list: [], vendor_list: [],
account_list: [], account_list: [],

Loading…
Cancel
Save