Skip to content

Commit

Permalink
Merge pull request #346 from yuri0528/dev-login
Browse files Browse the repository at this point in the history
fix: 添加搜索参数/密码规则校验
  • Loading branch information
IMBlues authored Apr 6, 2022
2 parents f818f2f + bf774f6 commit 5631a3c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/pages/src/components/catalog/operation/SetPassword.vue
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,6 @@ export default {
// 提交前验证是否有错误
validate() {
this.validatePasswordLength();
this.validatePasswordRule();
this.validateAutoUnlock();
this.validateFreezeDays();
this.validateInitPassword();
Expand All @@ -476,7 +475,7 @@ export default {
},
// 保存
saveInfo() {
this.validate() && this.$emit('savePassport');
this.validate() && this.$emit('savePassport', this.passwordRuleError);
},
// 展开或隐藏邮件模板
toggleEmailTemplate() {
Expand Down
8 changes: 7 additions & 1 deletion src/pages/src/views/catalog/operation/LocalSet.vue
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,15 @@ export default {
this.isLoading = false;
}
},
async handleSavePassport() {
async handleSavePassport(state) {
try {
this.isLoading = true;
console.log(state);
if (this.passwordInfo.password_rult_length === null) {
this.passwordInfo.password_rult_length = '';
} else {
state = true;
}
const action = this.passwordHasCreated ? 'catalog/ajaxPutPassport' : 'catalog/ajaxPostPassport';
await this.$store.dispatch(action, {
id: this.catalogInfo.id,
Expand Down
2 changes: 1 addition & 1 deletion src/pages/src/views/organization/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,7 @@ export default {
},
// 搜索table
handleTableSearch(list) {
const valueList = [];
const valueList = [`category_id=${this.currentCategoryId}`];
let key = '';
list.forEach((item) => {
const value = [];
Expand Down

0 comments on commit 5631a3c

Please sign in to comment.