From a0d9faaa51b0264a618015239b45bf55d4814d39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=9C=84?= Date: Tue, 25 Jun 2024 11:31:58 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E7=99=BB=E5=BD=95=E5=AF=86=E7=A0=81?= =?UTF-8?q?=E4=B8=8D=E5=8F=AF=E5=A4=8D=E5=88=B6=EF=BC=9B=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E7=AE=A1=E7=90=86-=E5=B2=97=E4=BD=8D=E8=8B=B1=E6=96=87?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=EF=BC=9B=E6=B7=B7=E5=85=A5=E4=B8=AD=E5=88=86?= =?UTF-8?q?=E9=A1=B5=E6=B7=BB=E5=8A=A0=E7=A9=BA=E6=A0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/lang/en-us.js | 2 +- src/mixins/JeroListMixin.js | 11 +- src/views/user/Login.vue | 279 ++++++++++++++++++++++-------------- 3 files changed, 183 insertions(+), 109 deletions(-) diff --git a/src/common/lang/en-us.js b/src/common/lang/en-us.js index 54816d5..4d1a84e 100644 --- a/src/common/lang/en-us.js +++ b/src/common/lang/en-us.js @@ -235,7 +235,7 @@ module.exports = { heads: 'Heads', account: 'Account', userName: 'User Name', - post: 'post', + post: 'Post', selectedAccount: 'Selected account?', // 新增、编辑用户 loginPassword: 'Login Password', diff --git a/src/mixins/JeroListMixin.js b/src/mixins/JeroListMixin.js index 5fb5d2f..d75a486 100644 --- a/src/mixins/JeroListMixin.js +++ b/src/mixins/JeroListMixin.js @@ -33,7 +33,7 @@ export const JeroListMixin = { pageSize: 10, pageSizeOptions: ['10', '30', '50', '100', '150', '200'], showTotal: (total, range) => { - return range[0] + '-' + range[1] + ' ' + this.$t('total') + total + this.$t('strip') + return range[0] + '-' + range[1] + ' ' + this.$t('total') + ' ' + total + ' ' + this.$t('strip') }, showQuickJumper: true, showSizeChanger: true, @@ -417,7 +417,14 @@ export const JeroListMixin = { if (info.file.response.success) { // this.$message.success(`${info.file.name} 文件上传成功`); if (info.file.response.code === 201) { - const { message, result: { msg, fileUrl, fileName } } = info.file.response + const { + message, + result: { + msg, + fileUrl, + fileName + } + } = info.file.response const href = window._CONFIG.domianURL + fileUrl this.$warning({ title: message, diff --git a/src/views/user/Login.vue b/src/views/user/Login.vue index 1c5637b..029202a 100644 --- a/src/views/user/Login.vue +++ b/src/views/user/Login.vue @@ -12,7 +12,7 @@ v-decorator="['username',{initialValue:'', rules: validatorRules.username.rules,validateTrigger: 'blur'}]" type="text" placeholder="请输入帐号"> - + @@ -28,10 +28,21 @@ :type="passwordType" autocomplete="false" placeholder="请输入密码" + @paste.native.capture.prevent="handleOperate" > - - - + + + @@ -48,13 +59,21 @@ @change="inputCodeChange" autocomplete="off" placeholder="请输入验证码"> - + - - + + @@ -86,7 +105,7 @@ :loading="loginBtn" @click.stop.prevent="handleSubmit" :disabled="loginBtn"> - {{ loginBtn ? "登录中" : "登录" }} + {{ loginBtn ? '登录中' : '登录' }} @@ -94,7 +113,11 @@ -