Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: 邮箱长度bug修复 #1044

Merged
merged 1 commit into from
Jul 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/pages/src/views/organization/details/DetailsBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -749,6 +749,7 @@ export default {
padding: 0 30px 0 12px;
font-size: 14px;
color: #63656e;
background: #fff;
}
}
&.leader-input {
Expand Down Expand Up @@ -791,5 +792,8 @@ export default {
.bk-label-text {
font-size: 12px !important;
}
.bk-select-dropdown {
background: #fff;
}
}
</style>
17 changes: 14 additions & 3 deletions src/pages/src/views/organization/details/InputString.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@
:disabled="editStatus && !item.editable"
:placeholder="inputType === 'number' ? $t('请输入数字') : item.holder"
:class="{ 'input-error': item.isError }"
:max="999999999999999"
:min="-999999999999999"
:maxlength="15"
:max="numberRule.max"
:min="numberRule.min"
:maxlength="numberRule.maxlength"
v-model="item.value"
@focus="handleFocus" />
</div>
Expand All @@ -54,6 +54,17 @@ export default {
placeholderText() {
return this.item.key === 'username' ? this.$t('字母、数字、下划线(_)、点(.)、减号(-)字符组成,以字母或数字开头') : this.$t('请输入');
},
numberRule() {
let rules = {};
if (this.item.type === 'number') {
rules = {
max: 999999999999999,
min: -999999999999999,
maxlength: 15,
};
}
return rules;
},
},
methods: {
verifyInput(item) {
Expand Down