fix: 1,修改taptbug
parent
98b5c3caaa
commit
c839bf276f
|
@ -6,4 +6,4 @@ VITE_APP_TITLE = 超管系统
|
||||||
VITE_APP_ENV = 'development'
|
VITE_APP_ENV = 'development'
|
||||||
|
|
||||||
# 代理管理系统/开发环境
|
# 代理管理系统/开发环境
|
||||||
VITE_APP_BASE_API = '/dev-api'
|
VITE_APP_BASE_API = '/ff-api'
|
||||||
|
|
|
@ -119,6 +119,7 @@ function hasTitle(title) {
|
||||||
.submenu-title-noDropdown {
|
.submenu-title-noDropdown {
|
||||||
height: var(--el-menu-item-height) !important;
|
height: var(--el-menu-item-height) !important;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
min-width: 80px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -94,7 +94,7 @@
|
||||||
<el-input v-model="passwordFormData.confirmPassword" placeholder="请确认新密码" type="password" show-password/>
|
<el-input v-model="passwordFormData.confirmPassword" placeholder="请确认新密码" type="password" show-password/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="谷歌验证码" prop="codeGoogle">
|
<el-form-item label="谷歌验证码" prop="codeGoogle">
|
||||||
<CodeInput v-model="passwordFormData.codeGoogle" maxlength="6" placeholder="请输入谷歌验证码"/>
|
<CodeInput v-model="passwordFormData.codeGoogle" maxlength="6" placeholder="请输入6位Google验证码"/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
</el-scrollbar>
|
</el-scrollbar>
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
</div>
|
</div>
|
||||||
<el-form-item prop="username" class="el-form-item-class">
|
<el-form-item prop="username" class="el-form-item-class">
|
||||||
<el-input v-model="loginForm.username" type="text" size="large" style="height: 52px;" class="backgr-class"
|
<el-input v-model="loginForm.username" type="text" size="large" style="height: 52px;" class="backgr-class"
|
||||||
:autocomplete="'new-password'" auto-complete="off" placeholder="账号">
|
:autocomplete="'new-password'" auto-complete="off" placeholder="账号" @keydown.space.prevent>
|
||||||
<template #prefix><svg-icon icon-class="user" class="el-input__icon input-icon" /></template>
|
<template #prefix><svg-icon icon-class="user" class="el-input__icon input-icon" /></template>
|
||||||
</el-input>
|
</el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
@ -70,7 +70,7 @@
|
||||||
<el-dialog v-model="goodDialogVisible" align-center :title="t('温馨提示')" width="418" :before-close="handleClose">
|
<el-dialog v-model="goodDialogVisible" align-center :title="t('温馨提示')" width="418" :before-close="handleClose">
|
||||||
<div style="width: 90%;margin-bottom: 20px;">{{ t('请用手机打开客服端Google身份验证器,输入验证码') }}</div>
|
<div style="width: 90%;margin-bottom: 20px;">{{ t('请用手机打开客服端Google身份验证器,输入验证码') }}</div>
|
||||||
<div class="">
|
<div class="">
|
||||||
<CodeInput v-model="gooleCode" style="width: 90%" :maxlength="6" :placeholder="t('验证码只能为数字')" ></CodeInput>
|
<CodeInput v-model="gooleCode" style="width: 90%" :maxlength="6" :placeholder="t('请输入6位Google验证码')" ></CodeInput>
|
||||||
</div>
|
</div>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<div class="dialog-footer">
|
<div class="dialog-footer">
|
||||||
|
@ -90,7 +90,7 @@
|
||||||
</div>
|
</div>
|
||||||
<el-form ref="authenticatorRef" :model="authenticatorForm" :rules="authenticatorRules">
|
<el-form ref="authenticatorRef" :model="authenticatorForm" :rules="authenticatorRules">
|
||||||
<el-form-item label="谷歌验证码" prop="authenticatorCode">
|
<el-form-item label="谷歌验证码" prop="authenticatorCode">
|
||||||
<CodeInput v-model="authenticatorForm.authenticatorCode" :maxlength="6" style="width: 100%;height: 36px;" :placeholder="t('验证码只能为数字')" ></CodeInput>
|
<CodeInput v-model="authenticatorForm.authenticatorCode" :maxlength="6" style="width: 100%;height: 36px;" :placeholder="t('请输入6位Google验证码')" ></CodeInput>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<div class="" style="margin-top: 20px;margin-bottom: 20px;">
|
<div class="" style="margin-top: 20px;margin-bottom: 20px;">
|
||||||
|
@ -138,8 +138,22 @@ const loginForm = ref({
|
||||||
});
|
});
|
||||||
|
|
||||||
const loginRules = {
|
const loginRules = {
|
||||||
username: [{ required: true, trigger: "change", message: proxy.t('请输入您的账号') }],
|
username: [
|
||||||
password: [{ required: true, trigger: "change", message: proxy.t('请输入您的密码') }],
|
{ required: true, trigger: "change", message: proxy.t('请输入您的账号') },
|
||||||
|
{
|
||||||
|
pattern: /^[A-Za-z0-9!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?]+$/,
|
||||||
|
message: proxy.t('账号只能输入字母、数字和英文符号'),
|
||||||
|
trigger: "change"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
password: [
|
||||||
|
{ required: true, trigger: "change", message: proxy.t('请输入您的密码') },
|
||||||
|
{
|
||||||
|
pattern: /^[A-Za-z0-9!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?]+$/,
|
||||||
|
message: proxy.t('密码只能输入字母、数字和英文符号'),
|
||||||
|
trigger: "change"
|
||||||
|
}
|
||||||
|
],
|
||||||
code: [{ required: true, trigger: "change", message: proxy.t('请输入验证码') }],
|
code: [{ required: true, trigger: "change", message: proxy.t('请输入验证码') }],
|
||||||
isShowEnabled: [
|
isShowEnabled: [
|
||||||
{
|
{
|
||||||
|
@ -165,7 +179,7 @@ const register = ref(false);
|
||||||
const redirect = ref(undefined);
|
const redirect = ref(undefined);
|
||||||
const goodDialogVisible = ref(false);
|
const goodDialogVisible = ref(false);
|
||||||
const goodDialogShow = ref(false);
|
const goodDialogShow = ref(false);
|
||||||
const gooleCode = ref('666666');// google验证码
|
const gooleCode = ref('');// google验证码
|
||||||
const tokenCode = ref('');
|
const tokenCode = ref('');
|
||||||
|
|
||||||
watch(route, (newRoute) => {
|
watch(route, (newRoute) => {
|
||||||
|
@ -230,6 +244,8 @@ const clickVisible = () => {
|
||||||
function handleLogin() {
|
function handleLogin() {
|
||||||
proxy.$refs.loginRef.validate(valid => {
|
proxy.$refs.loginRef.validate(valid => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
|
gooleCode.value = '';
|
||||||
|
authenticatorForm.value.authenticatorCode = '';
|
||||||
loading.value = true;
|
loading.value = true;
|
||||||
// 勾选了需要记住密码设置在 cookie 中设置记住用户名和密码
|
// 勾选了需要记住密码设置在 cookie 中设置记住用户名和密码
|
||||||
if (loginForm.value.rememberMe) {
|
if (loginForm.value.rememberMe) {
|
||||||
|
|
|
@ -55,17 +55,21 @@
|
||||||
{{ row.siteName }}
|
{{ row.siteName }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column :label="t('账变类型')" width="100" align="center" prop="changeType" >
|
<el-table-column :label="t('账变类型')" width="100" align="center" prop="changeType" >
|
||||||
<template #default="{row}">
|
<template #default="{row}">
|
||||||
{{ row.changeType }}
|
<dict-text :optionsArr="changeTypeArr" :value="row.changeType"></dict-text>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column :label="t('账变细项')" width="70" align="center" prop="operationType" >
|
<el-table-column :label="t('账变细项')" min-width="130" align="center" prop="operationType" >
|
||||||
<template #default="{row}">
|
<template #default="{row}">
|
||||||
{{ row.operationType }}
|
<dict-text :optionsArr="operationTypeArr" :value="row.operationType"></dict-text>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column :label="t('交易对象')" width="180" align="center" prop="changeTarget" />
|
<el-table-column :label="t('交易对象')" width="180" align="center" prop="changeTarget" >
|
||||||
|
<template #default="{row}">
|
||||||
|
<dict-text :optionsArr="changeTargetArr" :value="row.changeTarget"></dict-text>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
<el-table-column :label="t('变动前余额')" align="center" width="160" prop="balanceBefore" :show-overflow-tooltip="true">
|
<el-table-column :label="t('变动前余额')" align="center" width="160" prop="balanceBefore" :show-overflow-tooltip="true">
|
||||||
<template #default="scope">{{ scope.row.balanceBefore||'--' }}</template>
|
<template #default="scope">{{ scope.row.balanceBefore||'--' }}</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
@ -98,6 +102,7 @@
|
||||||
<script setup name="BillingRecords">
|
<script setup name="BillingRecords">
|
||||||
import {getSiteFlowQuotasList} from "@/api/report";
|
import {getSiteFlowQuotasList} from "@/api/report";
|
||||||
import CustomSelect from '@/components/CustomSelect';
|
import CustomSelect from '@/components/CustomSelect';
|
||||||
|
import DictText from '@/components/DictText';
|
||||||
import CheckboxSelect from "@/components/CheckboxSelect"; // 多选框
|
import CheckboxSelect from "@/components/CheckboxSelect"; // 多选框
|
||||||
import TableSearchDate from '@/components/TableSearchDate'
|
import TableSearchDate from '@/components/TableSearchDate'
|
||||||
import AddSiteDialog from "./components/AddSiteDialog"; // 新增站点弹窗
|
import AddSiteDialog from "./components/AddSiteDialog"; // 新增站点弹窗
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
</template>
|
</template>
|
||||||
<el-form :model="formGoogle" :rules="rulesGoogle" ref="googleRef" label-width="130px">
|
<el-form :model="formGoogle" :rules="rulesGoogle" ref="googleRef" label-width="130px">
|
||||||
<el-form-item label="Google验证码" prop="googleCode">
|
<el-form-item label="Google验证码" prop="googleCode">
|
||||||
<CodeInput v-model="formGoogle.googleCode" placeholder="请输入您的Google验证码" maxlength="6" />
|
<CodeInput v-model="formGoogle.googleCode" placeholder="请输入6位Google验证码" maxlength="6" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
|
@ -53,7 +53,7 @@ const formGoogle = reactive({
|
||||||
|
|
||||||
//数据更新区域
|
//数据更新区域
|
||||||
nextTick(() => {
|
nextTick(() => {
|
||||||
|
formGoogle.googleCode = '';
|
||||||
})
|
})
|
||||||
const submitGoogle = () => {
|
const submitGoogle = () => {
|
||||||
proxy.$refs["googleRef"].validate(valid => {
|
proxy.$refs["googleRef"].validate(valid => {
|
||||||
|
|
|
@ -24,25 +24,25 @@ export default defineConfig(({ mode, command }) => {
|
||||||
port: 80,
|
port: 80,
|
||||||
host: true,
|
host: true,
|
||||||
open: true,
|
open: true,
|
||||||
proxy: {
|
|
||||||
'/dev-api': {
|
|
||||||
// target: 'http://192.168.50.139:9080',
|
|
||||||
target: 'http://192.168.50.234:8081',
|
|
||||||
// target: 'http://192.168.50.178:8080',
|
|
||||||
// target: 'http://192.168.50.11:8081',
|
|
||||||
changeOrigin: true,
|
|
||||||
rewrite: (p) => p.replace(/^\/dev-api/, '')
|
|
||||||
}
|
|
||||||
},
|
|
||||||
// proxy: {
|
// proxy: {
|
||||||
// '/ff-api': {
|
// '/dev-api': {
|
||||||
// target: 'https://osssuper.kk9game.com', // 线上接口地址
|
// // target: 'http://192.168.50.139:9080',
|
||||||
// changeOrigin: true, // 是否允许跨域
|
// target: 'http://192.168.50.234:8081',
|
||||||
// pathRewrite: {
|
// // target: 'http://192.168.50.178:8080',
|
||||||
// '^/ff-api': '' // 如果你需要去掉前缀,例如将 /api/xxx 替换为 /xxx
|
// // target: 'http://192.168.50.11:8081',
|
||||||
// }
|
// changeOrigin: true,
|
||||||
|
// rewrite: (p) => p.replace(/^\/dev-api/, '')
|
||||||
// }
|
// }
|
||||||
// }
|
// },
|
||||||
|
proxy: {
|
||||||
|
'/ff-api': {
|
||||||
|
target: 'https://osssuper.kk9game.com', // 线上接口地址
|
||||||
|
changeOrigin: true, // 是否允许跨域
|
||||||
|
pathRewrite: {
|
||||||
|
'^/ff-api': '' // 如果你需要去掉前缀,例如将 /api/xxx 替换为 /xxx
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
css: {
|
css: {
|
||||||
postcss: {
|
postcss: {
|
||||||
|
|
Loading…
Reference in New Issue