图表更新、提现限制

This commit is contained in:
墨大叔 2024-09-13 15:44:53 +08:00
parent 6380bb1079
commit 6c9440f8af
4 changed files with 32 additions and 7 deletions
src/views

View File

@ -279,7 +279,7 @@ export default {
position: relative;
height: 100%;
flex: 1;
padding: 44px 16px 20px 10px;
padding: 0;
.panel-chart {
float: right;

View File

@ -80,10 +80,10 @@ export default {
setOptions(data) {
let option = {
grid: {
top: 4,
left: 4,
right: 4,
bottom: 4,
top: 42,
left: 16,
right: 16,
bottom: 24,
show: false,
},
tooltip: {
@ -107,7 +107,25 @@ export default {
color: this.color,
data: data.map(item => item.value),
type: this.type,
smooth: true
smooth: true,
// label: {
// show: true,
// position: 'top'
// }
markPoint: {
symbol: 'pin',
symbolSize: 10,
data: [
{ type: 'max', name: '最大值' },
{ type: 'min', name: '最小值' }
]
},
// markLine: {
// data: [
// {type: 'max', name: ''},
// {type: 'min', name: ''}
// ]
// }
}]
};
this.chart.setOption(option)

View File

@ -71,13 +71,14 @@ export default {
series: [
{
left: '-50%',
top: '10%',
name: '用户组成',
type: 'pie',
color: [
'#8D4EDA',
'#00B2FF'
],
radius: ['50%', '80%'],
radius: ['30%', '50%'],
avoidLabelOverlap: false,
itemStyle: {
borderRadius: 0,

View File

@ -250,6 +250,12 @@
<form-col :span="span * 2" label="备注" prop="remark">
<el-input v-model="form.remark" placeholder="请输入备注" :maxlength="500" show-word-limit type="textarea"/>
</form-col>
<form-col :span="8" label="限制提现" prop="limitWithdraw">
<el-switch v-model="form.limitWithdraw" active-text="限制" inactive-text="不限制"/>
</form-col>
<form-col :span="16" label="限制原因" prop="limitWithdraw">
<el-input v-model="form.limitWithdrawReason" type="textarea" placeholder="请输入限制提现的原因(展示给用户查看)" show-word-limit maxlength="200"/>
</form-col>
<form-col :span="span" label="是否设备管理员" prop="deviceAdmin" label-width="9em">
<el-switch v-model="form.deviceAdmin" active-text="" inactive-text="" @change="onChangeDeviceAdmin"/>
</form-col>