feat:部门交易记录
This commit is contained in:
1 parent
a264f8abff
commit
abdaa1a557
4 files changed
+142
-8
No files matched your search
@@ -112,15 +112,13 @@ export const resetUserPassword = (userInfo: object) => {
|
||||
}
|
||||
|
||||
export function validateUsername(rule: any, value: any, callback: any, isEdit: boolean) {
|
||||
if (isEdit) {
|
||||
return callback()
|
||||
}
|
||||
const flag = new RegExp(/^([a-z\d]+?)$/).test(value)
|
||||
if (!flag) {
|
||||
callback(new Error("用户名支持小写英文、数字"))
|
||||
}
|
||||
|
||||
if (isEdit) {
|
||||
return callback()
|
||||
}
|
||||
|
||||
getDetails({ username: value }).then((response) => {
|
||||
const result = response.data
|
||||
if (result !== null) {
|
||||
|
||||
Reference in new issue
Block a user