mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-01-23 10:50:24 +08:00
commit
40117c700d
@ -9,9 +9,10 @@ import (
|
|||||||
"bytes"
|
"bytes"
|
||||||
"context"
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"strings"
|
||||||
|
|
||||||
"hotgo/internal/dao"
|
"hotgo/internal/dao"
|
||||||
"hotgo/internal/model/input/sysin"
|
"hotgo/internal/model/input/sysin"
|
||||||
"strings"
|
|
||||||
|
|
||||||
"github.com/gogf/gf/v2/database/gdb"
|
"github.com/gogf/gf/v2/database/gdb"
|
||||||
"github.com/gogf/gf/v2/errors/gerror"
|
"github.com/gogf/gf/v2/errors/gerror"
|
||||||
@ -175,9 +176,9 @@ func makeValidatorFunc(field *sysin.GenCodesColumnListModel) (err error, rule st
|
|||||||
} else if field.FormRole == FormRolePercentage {
|
} else if field.FormRole == FormRolePercentage {
|
||||||
rule = fmt.Sprintf(EditInpValidatorGenerally, "min:0|max:100", field.GoName, field.Dc+"必须0-100之间")
|
rule = fmt.Sprintf(EditInpValidatorGenerally, "min:0|max:100", field.GoName, field.Dc+"必须0-100之间")
|
||||||
} else if field.FormRole == FormRoleTel {
|
} else if field.FormRole == FormRoleTel {
|
||||||
rule = fmt.Sprintf(EditInpValidatorGenerally, "phone", field.GoName, field.Dc+"不是手机号码")
|
|
||||||
} else if field.FormRole == FormRolePhone {
|
|
||||||
rule = fmt.Sprintf(EditInpValidatorGenerally, "telephone", field.GoName, field.Dc+"不是座机号码")
|
rule = fmt.Sprintf(EditInpValidatorGenerally, "telephone", field.GoName, field.Dc+"不是座机号码")
|
||||||
|
} else if field.FormRole == FormRolePhone {
|
||||||
|
rule = fmt.Sprintf(EditInpValidatorGenerally, "phone", field.GoName, field.Dc+"不是手机号码")
|
||||||
} else if field.FormRole == FormRoleQq {
|
} else if field.FormRole == FormRoleQq {
|
||||||
rule = fmt.Sprintf(EditInpValidatorGenerally, "qq", field.GoName, field.Dc+"不是QQ号码")
|
rule = fmt.Sprintf(EditInpValidatorGenerally, "qq", field.GoName, field.Dc+"不是QQ号码")
|
||||||
} else if field.FormRole == FormRoleEmail {
|
} else if field.FormRole == FormRoleEmail {
|
||||||
|
@ -63,7 +63,7 @@
|
|||||||
type="primary"
|
type="primary"
|
||||||
@click="handleExport"
|
@click="handleExport"
|
||||||
class="min-left-space"
|
class="min-left-space"
|
||||||
v-if="hasPermission(['/@{.apiPrefix}/delete'])"
|
v-if="hasPermission(['/@{.apiPrefix}/export'])"
|
||||||
>
|
>
|
||||||
<template #icon>
|
<template #icon>
|
||||||
<n-icon>
|
<n-icon>
|
||||||
|
Loading…
Reference in New Issue
Block a user