-
+
@@ -138,8 +138,22 @@ const loginForm = ref({
});
const loginRules = {
- username: [{ required: true, trigger: "change", message: proxy.t('请输入您的账号') }],
- password: [{ required: true, trigger: "change", message: proxy.t('请输入您的密码') }],
+ username: [
+ { 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('请输入验证码') }],
isShowEnabled: [
{
@@ -165,7 +179,7 @@ const register = ref(false);
const redirect = ref(undefined);
const goodDialogVisible = ref(false);
const goodDialogShow = ref(false);
-const gooleCode = ref('666666');// google验证码
+const gooleCode = ref('');// google验证码
const tokenCode = ref('');
watch(route, (newRoute) => {
@@ -230,6 +244,8 @@ const clickVisible = () => {
function handleLogin() {
proxy.$refs.loginRef.validate(valid => {
if (valid) {
+ gooleCode.value = '';
+ authenticatorForm.value.authenticatorCode = '';
loading.value = true;
// 勾选了需要记住密码设置在 cookie 中设置记住用户名和密码
if (loginForm.value.rememberMe) {
diff --git a/src/views/report/billingRecords/billingRecords/list.vue b/src/views/report/billingRecords/billingRecords/list.vue
index 384d318..5055121 100644
--- a/src/views/report/billingRecords/billingRecords/list.vue
+++ b/src/views/report/billingRecords/billingRecords/list.vue
@@ -55,17 +55,21 @@
{{ row.siteName }}
-
-
- {{ row.changeType }}
-
-
-
-
- {{ row.operationType }}
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
{{ scope.row.balanceBefore||'--' }}
@@ -98,6 +102,7 @@