修改:多端登录设置,接口速率限制

Signed-off-by: skyselang <215817969@qq.com>
This commit is contained in:
skyselang 2022-09-01 11:31:58 +08:00
parent 3d4fa57d38
commit 8a0f80be45
17 changed files with 47 additions and 20 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -53,7 +53,8 @@ export default {
title: {
text: '内容',
subtext: '分类:' + data.category + ',内容:' + data.content,
left: 'center'
left: 'center',
textStyle: { fontSize: 15 }
},
tooltip: {
trigger: 'axis'

View File

@ -57,7 +57,8 @@ export default {
title: {
text: '文件',
subtext: '文件:' + data.count,
left: 'center'
left: 'center',
textStyle: { fontSize: 15 }
},
legend: {
left: 'center',

View File

@ -171,7 +171,8 @@ export default {
var option = {
title: {
text: '会员',
textStyle: { fontSize: 12 }
left: 'center',
textStyle: { fontSize: 15 }
},
legend: {
top: '20px',

View File

@ -3,7 +3,7 @@
<el-form ref="ref" :model="model" :rules="rules" label-width="120px">
<el-form-item label="Token密钥" prop="token_key">
<el-col :span="8">
<el-input v-model="model.token_key" type="password" clearable show-password />
<el-input v-model="model.token_key" type="password" autocomplete="off" clearable show-password />
</el-col>
<el-col :span="13">
修改后用户登录状态失效需重新登录
@ -16,7 +16,15 @@
</el-input>
</el-col>
<el-col :span="13">
登录成功后超过此时间需重新登录
登录成功后超过有效时间需重新登录
</el-col>
</el-form-item>
<el-form-item label="多端登录" prop="is_multi_login">
<el-col :span="8">
<el-switch v-model="model.is_multi_login" :active-value="1" :inactive-value="0" />
</el-col>
<el-col :span="16">
开启后可以在多个设备浏览器同时登录
</el-col>
</el-form-item>
<el-form-item>
@ -41,7 +49,8 @@ export default {
loading: false,
model: {
token_key: '',
token_exp: 12
token_exp: 12,
is_multi_login: 0
},
rules: {}
}

View File

@ -100,7 +100,7 @@ export default {
loading: false,
count: [],
echart_id: 'echartid',
echart_num: 0,
echart_num: 1,
echart_data: [],
date_type: 'day',
date_range: [],

View File

@ -86,7 +86,7 @@
<pagination v-show="count > 0" :total="count" :page.sync="query.page" :limit.sync="query.limit" @pagination="list" />
<!-- 详情 -->
<el-dialog :title="dialogTitle" :visible.sync="dialog" top="5vh" :before-close="cancel" :close-on-click-modal="false" :close-on-press-escape="false">
<el-form ref="ref" :rules="rules" :model="model" label-width="100px" class="dialog-body" :style="{height:height+'px'}">
<el-form ref="ref" :rules="rules" :model="model" label-width="110px" class="dialog-body" :style="{height:height+'px'}">
<el-form-item label="用户ID" prop="admin_user_id">
<el-input v-model="model.admin_user_id" />
</el-form-item>
@ -126,6 +126,9 @@
<el-form-item label="返回描述" prop="response_msg">
<el-input v-model="model.response_msg" type="textarea" />
</el-form-item>
<el-form-item label="USER_AGENT" prop="user_agent">
<el-input v-model="model.user_agent" type="textarea" />
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button :loading="loading" @click="cancel">取消</el-button>
@ -134,7 +137,7 @@
</el-dialog>
<!-- 清除 -->
<el-dialog :title="clearDialogTitle" :visible.sync="clearDialog" :before-close="clearCancel" :close-on-click-modal="false" :close-on-press-escape="false">
<el-form ref="clearRef" :rules="clearRules" :model="clearModel" label-width="100px" class="dialog-body">
<el-form ref="clearRef" :rules="clearRules" :model="clearModel" label-width="110px" class="dialog-body">
<el-form-item label="用户ID" prop="admin_user_id">
<el-input v-model="clearModel.admin_user_id" placeholder="多个逗号,隔开" clearable />
</el-form-item>

View File

@ -100,7 +100,7 @@ export default {
loading: false,
count: [],
echart_id: 'echartid',
echart_num: 0,
echart_num: 1,
echart_data: [],
date_type: 'day',
date_range: [],

View File

@ -83,7 +83,7 @@
<pagination v-show="count > 0" :total="count" :page.sync="query.page" :limit.sync="query.limit" @pagination="list" />
<!-- 详情 -->
<el-dialog :title="dialogTitle" :visible.sync="dialog" top="5vh" :before-close="cancel" :close-on-click-modal="false" :close-on-press-escape="false">
<el-form ref="ref" :rules="rules" :model="model" label-width="100px" class="dialog-body" :style="{height:height+'px'}">
<el-form ref="ref" :rules="rules" :model="model" label-width="110px" class="dialog-body" :style="{height:height+'px'}">
<el-form-item label="会员ID" prop="member_id">
<el-input v-model="model.member_id" />
</el-form-item>
@ -123,6 +123,9 @@
<el-form-item label="返回描述" prop="response_msg">
<el-input v-model="model.response_msg" />
</el-form-item>
<el-form-item label="USER_AGENT" prop="user_agent">
<el-input v-model="model.user_agent" type="textarea" />
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button @click="cancel">取消</el-button>
@ -131,7 +134,7 @@
</el-dialog>
<!-- 清除 -->
<el-dialog :title="clearDialogTitle" :visible.sync="clearDialog" :before-close="clearCancel" :close-on-click-modal="false" :close-on-press-escape="false">
<el-form ref="clearRef" :rules="clearRules" :model="clearModel" label-width="100px" class="dialog-body">
<el-form ref="clearRef" :rules="clearRules" :model="clearModel" label-width="110px" class="dialog-body">
<el-form-item label="会员ID" prop="member_id">
<el-input v-model="clearModel.member_id" placeholder="多个逗号,隔开" clearable />
</el-form-item>

View File

@ -74,7 +74,7 @@ export default {
loading: false,
count: [],
echart_id: 'echartid',
echart_num: 0,
echart_num: 1,
echart_data: [],
date_type: 'day',
date_range: [],

View File

@ -4,7 +4,7 @@
<el-col :xs="24" :sm="22" :md="20" :lg="16" :xl="12">
<el-form ref="ref" :model="model" :rules="rules" label-width="120px">
<el-form-item label="Token密钥" prop="token_key">
<el-input v-model="model.token_key" type="password" clearable show-password>
<el-input v-model="model.token_key" type="password" autocomplete="off" clearable show-password>
<template slot="append">修改后会员登录状态失效需重新登录</template>
</el-input>
</el-form-item>
@ -13,6 +13,14 @@
<template slot="append">小时登录后超过此时间需重新登录</template>
</el-input>
</el-form-item>
<el-form-item label="多端登录" prop="is_multi_login">
<el-col :span="13">
<el-switch v-model="model.is_multi_login" :active-value="1" :inactive-value="0" />
</el-col>
<el-col :span="11">
开启后可以在多个设备同时登录
</el-col>
</el-form-item>
<el-form-item>
<el-button :loading="loading" @click="refresh()">刷新</el-button>
<el-button :loading="loading" type="primary" @click="submit()">提交</el-button>
@ -37,7 +45,8 @@ export default {
loading: false,
model: {
token_key: '',
token_exp: 720
token_exp: 720,
is_multi_login: 0
},
rules: {}
}