Skip to content

Commit

Permalink
Merge pull request #138 from xyzshen/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
mingzhenliu authored Dec 20, 2019
2 parents ecb90ee + 401db80 commit 03a94fb
Show file tree
Hide file tree
Showing 52 changed files with 294 additions and 239 deletions.
2 changes: 1 addition & 1 deletion dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
vertical-align: -0.15em;
fill: currentColor;
overflow: hidden;
}</style></head><body><body><div id=app style="height: 100% !important;"></div><script type=text/javascript src=./static/js/0.5f382d4bbdce165a10a1.js></script><script type=text/javascript src=./static/js/3.9c092f672f77b90833bc.js></script><script type=text/javascript src=./static/js/runtime.3b3ce3a07b1ffbe27563.js></script><script type=text/javascript src=./static/js/5.a3fd349a55a77c83539a.js></script></body><script src=./static/js/web3.min.js type=text/javascript></script><script>if (self == top) {
}</style></head><body><body><div id=app style="height: 100% !important;"></div><script type=text/javascript src=./static/js/0.3f65ef61a61bc77183ed.js></script><script type=text/javascript src=./static/js/3.5c960abf693ec7e03ff0.js></script><script type=text/javascript src=./static/js/runtime.84bc8915eb5048723ed0.js></script><script type=text/javascript src=./static/js/5.19a6f88148f8266d07b4.js></script></body><script src=./static/js/web3.min.js type=text/javascript></script><script>if (self == top) {
var antiClickjack = document.getElementById("antiClickjack");
antiClickjack.parentNode.removeChild(antiClickjack);
} else {
Expand Down
53 changes: 53 additions & 0 deletions dist/static/js/0.3f65ef61a61bc77183ed.js

Large diffs are not rendered by default.

53 changes: 0 additions & 53 deletions dist/static/js/0.5f382d4bbdce165a10a1.js

This file was deleted.

Large diffs are not rendered by default.

File renamed without changes.
File renamed without changes.
File renamed without changes.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions dist/static/js/3.5c960abf693ec7e03ff0.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion dist/static/js/3.9c092f672f77b90833bc.js

This file was deleted.

File renamed without changes.
51 changes: 51 additions & 0 deletions dist/static/js/5.19a6f88148f8266d07b4.js

Large diffs are not rendered by default.

51 changes: 0 additions & 51 deletions dist/static/js/5.a3fd349a55a77c83539a.js

This file was deleted.

1 change: 1 addition & 0 deletions dist/static/js/6.312279e4a1e186dc40e9.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion dist/static/js/6.c2382be11c4754a725a0.js

This file was deleted.

Large diffs are not rendered by default.

File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion dist/static/js/runtime.3b3ce3a07b1ffbe27563.js

This file was deleted.

1 change: 1 addition & 0 deletions dist/static/js/runtime.84bc8915eb5048723ed0.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 16 additions & 16 deletions src/components/changePasswordDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,19 @@
*/
<template>
<div>
<el-form :model="rulePasswordForm" status-icon :rules="rules2" ref="rulePasswordForm" label-width="100px" class="demo-ruleForm">
<el-form-item label="旧密码" prop="oldPass">
<el-form :model="rulePasswordForm" status-icon :rules="rules2" ref="rulePasswordForm" label-width="130px" class="demo-ruleForm">
<el-form-item :label="$t('main.oldPassword')" prop="oldPass">
<el-input type="password" v-model="rulePasswordForm.oldPass" autocomplete="off"></el-input>
</el-form-item>
<el-form-item label="新密码" prop="pass">
<el-form-item :label="$t('main.newPassword')" prop="pass">
<el-input type="password" v-model="rulePasswordForm.pass" autocomplete="off"></el-input>
</el-form-item>
<el-form-item label="确认密码" prop="checkPass">
<el-form-item :label="$t('main.confirmPassword')" prop="checkPass">
<el-input type="password" v-model="rulePasswordForm.checkPass" autocomplete="off"></el-input>
</el-form-item>
<el-form-item>
<el-button type="primary" @click="submitForm('rulePasswordForm')">提交</el-button>
<el-button @click="resetForm('rulePasswordForm')">重置</el-button>
<el-button type="primary" @click="submitForm('rulePasswordForm')">{{$t('main.submit')}}</el-button>
<el-button @click="resetForm('rulePasswordForm')">{{$t('main.reset')}}</el-button>
</el-form-item>
</el-form>
</div>
Expand All @@ -42,7 +42,7 @@ export default {
data() {
var validatePass = (rule, value, callback) => {
if (value === "") {
callback(new Error("请输入密码"));
callback(new Error(this.$t('main.inputPassword')));
} else {
if (this.rulePasswordForm.checkPass !== "") {
this.$refs.rulePasswordForm.validateField("checkPass");
Expand All @@ -52,9 +52,9 @@ export default {
};
var validatePass2 = (rule, value, callback) => {
if (value === "") {
callback(new Error("请再次输入密码"));
callback(new Error(this.$t('main.againPassword')));
} else if (value !== this.rulePasswordForm.pass) {
callback(new Error("两次输入密码不一致!"));
callback(new Error(this.$t('main.passwordError')));
} else {
callback();
}
Expand All @@ -69,13 +69,13 @@ export default {
oldPass: [
{
required: true,
message: "请输入旧密码",
message: this.$t('main.inputOldPassword'),
trigger: "blur"
},
{
min: 6,
max: 12,
message: "长度在 6 到 12 个字符",
message: this.$t('main.longPassword'),
trigger: "blur"
}
],
Expand All @@ -88,12 +88,12 @@ export default {
{
min: 6,
max: 12,
message: "长度在 6 到 12 个字符",
message: this.$t('main.longPassword'),
trigger: "blur"
},
{
pattern: /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)[a-zA-Z\d]{6,12}$/,
message: "字母,数字组成,且至少包含一个大写字母和一个小写字母",
message: this.$t('main.passwordPattern'),
trigger: "blur"
}
],
Expand All @@ -106,7 +106,7 @@ export default {
{
min: 6,
max: 12,
message: "长度在 6 到 12 个字符",
message: this.$t('main.longPassword'),
trigger: "blur"
}
]
Expand Down Expand Up @@ -138,7 +138,7 @@ export default {
if (res.data.code === 0) {
this.$message({
type: "success",
message: "密码修改成功"
message: this.$t('main.updatePsdSuccess')
});
this.rulePasswordForm = {
oldPass: "",
Expand All @@ -158,7 +158,7 @@ export default {
.catch(err => {
this.$message({
type: "error",
message: "密码修改失败"
message: this.$t('text.systemError'),
});
});
}
Expand Down
4 changes: 2 additions & 2 deletions src/components/contentHead.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<span :class="{ 'font-color-9da2ab': headSubTitle}">{{title}}</span>
<span v-show="headSubTitle" class="font-color-9da2ab">/</span>
<span>{{headSubTitle}}</span>
<el-tooltip effect="dark" placement="bottom-start" v-if="headTooltip">
<el-tooltip effect="dark" placement="bottom-start" v-if="headTooltip" offset='0'>
<div slot="content">{{headTooltip}}</div>
<i class="el-icon-info contract-icon font-15" ></i>
</el-tooltip>
Expand Down Expand Up @@ -55,7 +55,7 @@
<div class="content-head-lang">
<lang-select class="right-menu-item hover-effect" />
</div>
<el-dialog title="修改密码" :visible.sync="changePasswordDialogVisible" width="30%" style="text-align: center;">
<el-dialog :title="$t('head.changePassword')" :visible.sync="changePasswordDialogVisible" width="30%" style="text-align: center;">
<change-password-dialog @success="success"></change-password-dialog>
</el-dialog>
<!-- <v-dialog v-if="dialogShow" :show="dialogShow" @success="changeNetwork" @close='close' @changGroupSucess="changGroupSucess"></v-dialog> -->
Expand Down
Loading

0 comments on commit 03a94fb

Please sign in to comment.