Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
黄庭坚
jinfa-platform
Commits
e364a352
Commit
e364a352
authored
Dec 04, 2021
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
系统能力漏掉的翻译
parent
e05f1c1b
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
211 additions
and
162 deletions
+211
-162
accountSetting.ts
src/locales/zh-CN/system/accountSetting.ts
+48
-40
authConfig.ts
src/locales/zh-CN/system/authConfig.ts
+65
-44
systemSetting.ts
src/locales/zh-CN/system/systemSetting.ts
+53
-40
index.tsx
src/pages/accountSetting/components/TypeVerify/index.tsx
+10
-9
memberDetail.tsx
src/pages/authConfig/memberSystem/memberDetail.tsx
+3
-3
index.ts
src/pages/authConfig/userSystem/schema/index.ts
+16
-14
userDetail.tsx
src/pages/authConfig/userSystem/userDetail.tsx
+5
-4
index.tsx
src/pages/systemSetting/parameterSetting/constant/index.tsx
+11
-8
No files found.
src/locales/zh-CN/system/accountSetting.ts
View file @
e364a352
export
default
{
'accountSetting.twoPasswordsDifferent'
:
'两次密码不一样'
,
'accountSetting.inputCorrentPhoneNumble'
:
'请填写正确的手机号'
,
'accountSetting.unvalidEmail'
:
'无效的邮箱'
,
'accountSetting.loginPsw'
:
'登录密码'
,
'accountSetting.pswLength'
:
'密码长度8-20个字符'
,
'accountSetting.pswNotEmptySymbol'
:
'密码不能包含空格'
,
'accountSetting.pswDiverse'
:
'密码必须包含大小写、小写字母和数字'
,
'accountSetting.confirmPsw'
:
'确认密码'
,
'accountSetting.emailAddress'
:
'邮箱地址'
,
'accountSetting.emailCode'
:
'邮箱验证码'
,
'accountSetting.inputEmailCode'
:
'请填写邮箱验证码'
,
'accountSetting.newPhoneNumble'
:
'新的手机号码'
,
'accountSetting.inputPhoneNumble'
:
'请填写手机号'
,
'accountSetting.code'
:
'验证码'
,
'accountSetting.inputCode'
:
'请填写验证码'
,
'accountSetting.getVerificationCode'
:
'获取验证码'
,
'accountSetting.clickVerify'
:
'点击进行验证'
,
'accountSetting.verifyError'
:
'验证失败'
,
'accountSetting.verifyRightSlide'
:
'向右滑动验证'
,
'accountSetting.currentlyBoundPhoneNumble'
:
'当前绑定手机号码'
,
'accountSetting.CurrentlyAuthenticatedMailbox'
:
'当前已认证邮箱'
,
'accountSetting.notBoundEmail'
:
'你还没有绑定邮箱'
,
'accountSetting.notSettingPsw'
:
'您未设置支付密码'
,
'accountSetting.modify'
:
'修改'
,
'accountSetting.setEmail'
:
'设置邮箱'
,
'accountSetting.setPayPsw'
:
'设置支付密码'
,
'accountSetting.resetPayPsw'
:
'重置支付密码'
,
'accountSetting.verifyOk'
:
'验证成功'
,
'accountSetting.submit'
:
'提交'
,
'accountSetting.phoneCodeVerify'
:
'手机校验码验证'
,
'accountSetting.emailVerify'
:
'邮箱验证'
,
'accountSetting.payPswVerify'
:
'支付密码验证'
,
'accountSetting.inputPayPsw'
:
'请填写支付密码'
,
'accountSetting.payPsw'
:
'支付密码'
,
'accountSetting.setSixNumblePsw'
:
'请设置6位数字的密码'
,
'accountSetting.setNewPayPsw'
:
'设置新的支付密码'
,
'accountSetting.back'
:
'返回'
,
'accountSetting.modifyLoginPsw'
:
'修改登录密码'
,
'accountSetting.modifyEmail'
:
'修改邮箱'
,
'accountSetting.modifyPhone'
:
'修改手机'
'accountSetting.twoPasswordsDifferent'
:
'两次密码不一样'
,
'accountSetting.inputCorrentPhoneNumble'
:
'请填写正确的手机号'
,
'accountSetting.unvalidEmail'
:
'无效的邮箱'
,
'accountSetting.loginPsw'
:
'登录密码'
,
'accountSetting.pswLength'
:
'密码长度8-20个字符'
,
'accountSetting.pswNotEmptySymbol'
:
'密码不能包含空格'
,
'accountSetting.pswDiverse'
:
'密码必须包含大小写、小写字母和数字'
,
'accountSetting.confirmPsw'
:
'确认密码'
,
'accountSetting.emailAddress'
:
'邮箱地址'
,
'accountSetting.emailCode'
:
'邮箱验证码'
,
'accountSetting.inputEmailCode'
:
'请填写邮箱验证码'
,
'accountSetting.newPhoneNumble'
:
'新的手机号码'
,
'accountSetting.inputPhoneNumble'
:
'请填写手机号'
,
'accountSetting.code'
:
'验证码'
,
'accountSetting.inputCode'
:
'请填写验证码'
,
'accountSetting.getVerificationCode'
:
'获取验证码'
,
'accountSetting.clickVerify'
:
'点击进行验证'
,
'accountSetting.verifyError'
:
'验证失败'
,
'accountSetting.verifyRightSlide'
:
'向右滑动验证'
,
'accountSetting.currentlyBoundPhoneNumble'
:
'当前绑定手机号码'
,
'accountSetting.CurrentlyAuthenticatedMailbox'
:
'当前已认证邮箱'
,
'accountSetting.notBoundEmail'
:
'你还没有绑定邮箱'
,
'accountSetting.notSettingPsw'
:
'您未设置支付密码'
,
'accountSetting.modify'
:
'修改'
,
'accountSetting.setEmail'
:
'设置邮箱'
,
'accountSetting.setPayPsw'
:
'设置支付密码'
,
'accountSetting.resetPayPsw'
:
'重置支付密码'
,
'accountSetting.verifyOk'
:
'验证成功'
,
'accountSetting.submit'
:
'提交'
,
'accountSetting.phoneCodeVerify'
:
'手机校验码验证'
,
'accountSetting.emailVerify'
:
'邮箱验证'
,
'accountSetting.payPswVerify'
:
'支付密码验证'
,
'accountSetting.inputPayPsw'
:
'请填写支付密码'
,
'accountSetting.payPsw'
:
'支付密码'
,
'accountSetting.setSixNumblePsw'
:
'请设置6位数字的密码'
,
'accountSetting.setNewPayPsw'
:
'设置新的支付密码'
,
'accountSetting.back'
:
'返回'
,
'accountSetting.modifyLoginPsw'
:
'修改登录密码'
,
'accountSetting.modifyEmail'
:
'修改邮箱'
,
'accountSetting.modifyPhone'
:
'修改手机'
,
"accountSetting.French"
:
"法国"
,
"accountSetting.mobileVerify"
:
"手机验证"
,
"accountSetting.adviseChangePsw"
:
"互联网账号存在被盗风险,建议您定期更改密码以保护账号安全"
,
"accountSetting.yourVerifyEmail"
:
"您验证的邮箱:"
,
"accountSetting.yourVerifyPhone"
:
"您验证的手机:"
,
"accountSetting.ifLossTochange"
:
"若丢失或已停用,请立刻更换,避免账号被盗"
,
"accountSetting.pswStartToUpdate"
:
"您的支付密码已开启,建议您定期更换新的支付密码,提高安全性"
}
\ No newline at end of file
src/locales/zh-CN/system/authConfig.ts
View file @
e364a352
// 权限管理
export
default
{
'authConfig.chooseProject'
:
'选择要编辑的项目'
,
'authConfig.tempNoStarAdd'
:
'暂无菜单, 开始新增'
,
'authConfig.saveSeting'
:
'保存设置'
,
'authConfig.confirmDelete'
:
'确定要删除吗?'
,
export
default
{
'authConfig.chooseProject'
:
'选择要编辑的项目'
,
'authConfig.tempNoStarAdd'
:
'暂无菜单, 开始新增'
,
'authConfig.saveSeting'
:
'保存设置'
,
'authConfig.confirmDelete'
:
'确定要删除吗?'
,
// 角色管理
'authConfig.baseInfo'
:
'基本信息'
,
'authConfig.roleName'
:
'角色名称'
,
'authConfig.secondName'
:
'备注'
,
'authConfig.ifHasIM'
:
'是否具有IM通讯权限'
,
'authConfig.state'
:
'状态'
,
'authConfig.operationAuthority'
:
'操作权限'
,
'authConfig.menuAccess'
:
'菜单访问权限'
,
'authConfig.MenuInterfaceAccess'
:
'菜单接口访问权限'
,
'authConfig.dataAccess'
:
'数据权限'
,
'authConfig.ifHasDataAccess'
:
'是否需要数据权限'
,
'authConfig.OrganizationAuthorization'
:
'组织机构授权'
,
'authConfig.orientation'
:
'关联'
,
'authConfig.OrganizationName'
:
'组织机构名称'
,
'authConfig.close'
:
'关闭'
,
'authConfig.confirm'
:
'确认'
,
'authConfig.baseInfo'
:
'基本信息'
,
'authConfig.roleName'
:
'角色名称'
,
'authConfig.secondName'
:
'备注'
,
'authConfig.ifHasIM'
:
'是否具有IM通讯权限'
,
'authConfig.state'
:
'状态'
,
'authConfig.operationAuthority'
:
'操作权限'
,
'authConfig.menuAccess'
:
'菜单访问权限'
,
'authConfig.MenuInterfaceAccess'
:
'菜单接口访问权限'
,
'authConfig.dataAccess'
:
'数据权限'
,
'authConfig.ifHasDataAccess'
:
'是否需要数据权限'
,
'authConfig.OrganizationAuthorization'
:
'组织机构授权'
,
'authConfig.orientation'
:
'关联'
,
'authConfig.OrganizationName'
:
'组织机构名称'
,
'authConfig.close'
:
'关闭'
,
'authConfig.confirm'
:
'确认'
,
// 用户管理
'authConfig.createNew'
:
'新建'
,
'authConfig.enterAccount'
:
'请输入账号'
,
'authConfig.enterUsername'
:
'请输入用户姓名'
,
'authConfig.chooseState'
:
'请选择状态'
,
'authConfig.roleID'
:
'角色ID'
,
'authConfig.describe'
:
'描述'
,
'authConfig.relation'
:
'关联'
,
'authConfig.addRole'
:
'添加角色'
,
'authConfig.back'
:
'返回'
,
'authConfig.submit'
:
'提交'
,
'authConfig.cancel'
:
'取消'
,
'authConfig.chooseRole'
:
'选择角色'
,
'authConfig.inputRoleName'
:
'请输入角色名称'
,
'authConfig.chooseOrganization'
:
'选择组织机构'
,
'authConfig.account'
:
'账号'
,
'authConfig.name'
:
'用户姓名'
,
'authConfig.orgName'
:
'所属机构'
,
'authConfig.phone'
:
'绑定手机号码'
,
'authConfig.belongRoleName'
:
'所属角色'
,
'authConfig.lastLoginTime'
:
'最后登录时间'
,
'authConfig.status'
:
'状态'
,
'authConfig.option'
:
'操作'
,
'authConfig.delete'
:
'删除'
,
'authConfig.modify'
:
'修改'
'authConfig.createNew'
:
'新建'
,
'authConfig.enterAccount'
:
'请输入账号'
,
'authConfig.enterUsername'
:
'请输入用户姓名'
,
'authConfig.chooseState'
:
'请选择状态'
,
'authConfig.roleID'
:
'角色ID'
,
'authConfig.describe'
:
'描述'
,
'authConfig.relation'
:
'关联'
,
'authConfig.addRole'
:
'添加角色'
,
'authConfig.back'
:
'返回'
,
'authConfig.submit'
:
'提交'
,
'authConfig.cancel'
:
'取消'
,
'authConfig.chooseRole'
:
'选择角色'
,
'authConfig.inputRoleName'
:
'请输入角色名称'
,
'authConfig.chooseOrganization'
:
'选择组织机构'
,
'authConfig.account'
:
'账号'
,
'authConfig.name'
:
'用户姓名'
,
'authConfig.orgName'
:
'所属机构'
,
'authConfig.phone'
:
'绑定手机号码'
,
'authConfig.belongRoleName'
:
'所属角色'
,
'authConfig.lastLoginTime'
:
'最后登录时间'
,
'authConfig.status'
:
'状态'
,
'authConfig.option'
:
'操作'
,
'authConfig.delete'
:
'删除'
,
'authConfig.modify'
:
'修改'
,
// 漏掉的
"authConfig.add"
:
"新增"
,
"authConfig.edit"
:
"编辑"
,
"authConfig.previewLook"
:
"预览"
,
"authConfig.origanCode"
:
"组织代码"
,
"authConfig.origanJiGou"
:
"组织机构"
,
"authConfig.loginAccount"
:
"登录账号"
,
"authConfig.loginPsw"
:
"登录密码"
,
"authConfig.tel"
:
"手机号"
,
"authConfig.correntTel"
:
"请输入正确的手机号"
,
"authConfig.indentifyCode"
:
"身份证号"
,
"authConfig.email"
:
"邮箱"
,
"authConfig.correntEmail"
:
"请输入正确的邮箱"
,
"authConfig.zhiwei"
:
"职位"
,
"authConfig.inputzhiwei"
:
"请输入职位"
,
"authConfig.belongOrigan"
:
"所属组织机构"
,
"authConfig.relatePerson"
:
"关联角色"
,
"authConfig.lookUser"
:
"查看用户"
,
"authConfig.addUser"
:
"新增用户"
,
"authConfig.editUser"
:
"编辑用户"
}
\ No newline at end of file
src/locales/zh-CN/system/systemSetting.ts
View file @
e364a352
export
default
{
// 秘钥管理
'systemSetting.key.decryptionKey'
:
'解密密钥'
,
'systemSetting.key.copyKey'
:
'复制密钥'
,
'systemSetting.key.resettingKey'
:
'到期后系统将自动重置解密密钥'
,
'systemSetting.key.keyUsefulTime'
:
'当前解密密钥有效时间'
,
'systemSetting.key.decryptionKey'
:
'解密密钥'
,
'systemSetting.key.copyKey'
:
'复制密钥'
,
'systemSetting.key.resettingKey'
:
'到期后系统将自动重置解密密钥'
,
'systemSetting.key.keyUsefulTime'
:
'当前解密密钥有效时间'
,
// 收藏管理
'systemSetting.collection.itemTakenOffShelf'
:
'该商品已下架'
,
'systemSetting.collection.buyAgain'
:
'再次购买'
,
'systemSetting.collection.redeemNow'
:
'立即兑换'
,
'systemSetting.collection.InquiryNow'
:
'立即询价'
,
'systemSetting.collection.integral'
:
'积分'
,
'systemSetting.collection.onlineInquiry'
:
'在线询价'
,
'systemSetting.collection.cancelCollection'
:
'是否要取消收藏?'
,
'systemSetting.collection.collection'
:
'收藏'
,
'systemSetting.collection.commodityCollection'
:
'商品收藏'
,
'systemSetting.collection.shopCollection'
:
'店铺收藏'
,
'systemSetting.collection.newsCollection'
:
'资讯收藏'
,
'systemSetting.collection.doorCollection'
:
'门户收藏'
,
'systemSetting.collection.logisticsCollection'
:
'物流商收藏'
,
'systemSetting.collection.processorCollection'
:
'加工商收藏'
,
'systemSetting.collection.articleTakenOffShelf'
:
'该文章已下架'
,
'systemSetting.collection.logisticsProvidersFrozen'
:
'物流商已被冻结'
,
'systemSetting.collection.processorFrozen'
:
'加工商已被冻结'
,
'systemSetting.collection.doorFrozen'
:
'该门户已被冻结'
,
'systemSetting.collection.shopFrozen'
:
'该店铺已冻结'
,
'systemSetting.collection.satisfaction'
:
'满意度'
,
'systemSetting.collection.itemTakenOffShelf'
:
'该商品已下架'
,
'systemSetting.collection.buyAgain'
:
'再次购买'
,
'systemSetting.collection.redeemNow'
:
'立即兑换'
,
'systemSetting.collection.InquiryNow'
:
'立即询价'
,
'systemSetting.collection.integral'
:
'积分'
,
'systemSetting.collection.onlineInquiry'
:
'在线询价'
,
'systemSetting.collection.cancelCollection'
:
'是否要取消收藏?'
,
'systemSetting.collection.collection'
:
'收藏'
,
'systemSetting.collection.commodityCollection'
:
'商品收藏'
,
'systemSetting.collection.shopCollection'
:
'店铺收藏'
,
'systemSetting.collection.newsCollection'
:
'资讯收藏'
,
'systemSetting.collection.doorCollection'
:
'门户收藏'
,
'systemSetting.collection.logisticsCollection'
:
'物流商收藏'
,
'systemSetting.collection.processorCollection'
:
'加工商收藏'
,
'systemSetting.collection.articleTakenOffShelf'
:
'该文章已下架'
,
'systemSetting.collection.logisticsProvidersFrozen'
:
'物流商已被冻结'
,
'systemSetting.collection.processorFrozen'
:
'加工商已被冻结'
,
'systemSetting.collection.doorFrozen'
:
'该门户已被冻结'
,
'systemSetting.collection.shopFrozen'
:
'该店铺已冻结'
,
'systemSetting.collection.satisfaction'
:
'满意度'
,
// 消息中心
'systemSetting.message.systemMessage'
:
'系统消息'
,
'systemSetting.message.plaformMessage'
:
'平台消息'
,
'systemSetting.message.total'
:
'共'
,
'systemSetting.message.numble'
:
'条'
,
'systemSetting.message.messageList'
:
'消息列表'
,
'systemSetting.message.allRead'
:
'全部已读'
,
'systemSetting.message.systemMessage'
:
'系统消息'
,
'systemSetting.message.plaformMessage'
:
'平台消息'
,
'systemSetting.message.total'
:
'共'
,
'systemSetting.message.numble'
:
'条'
,
'systemSetting.message.messageList'
:
'消息列表'
,
'systemSetting.message.allRead'
:
'全部已读'
,
// 参数配置
'systemSetting.parameterSetting.DoNotConfigureRepeatPeriods'
:
'请勿配置重复时间段'
,
'systemSetting.parameterSetting.type'
:
'类型'
,
'systemSetting.parameterSetting.all'
:
'全部'
,
'systemSetting.parameterSetting.commodityRelated'
:
'商品相关'
,
'systemSetting.parameterSetting.orderRelated'
:
'订单相关'
,
'systemSetting.parameterSetting.setApplicableMall'
:
'设置适用商城'
,
'systemSetting.parameterSetting.ApplicableMall'
:
'适用商城'
,
'systemSetting.parameterSetting.DaysOfReceipt'
:
'收货天数'
,
'systemSetting.parameterSetting.orderTime'
:
'预约时长(天)'
,
'systemSetting.parameterSetting.add'
:
'添加'
'systemSetting.parameterSetting.DoNotConfigureRepeatPeriods'
:
'请勿配置重复时间段'
,
'systemSetting.parameterSetting.type'
:
'类型'
,
'systemSetting.parameterSetting.all'
:
'全部'
,
'systemSetting.parameterSetting.commodityRelated'
:
'商品相关'
,
'systemSetting.parameterSetting.orderRelated'
:
'订单相关'
,
'systemSetting.parameterSetting.setApplicableMall'
:
'设置适用商城'
,
'systemSetting.parameterSetting.ApplicableMall'
:
'适用商城'
,
'systemSetting.parameterSetting.DaysOfReceipt'
:
'收货天数'
,
'systemSetting.parameterSetting.orderTime'
:
'预约时长(天)'
,
'systemSetting.parameterSetting.add'
:
'添加'
,
// 漏
"systemSetting.year"
:
"年"
,
"systemSetting.priceQuxian"
:
"商品价格曲线"
,
"systemSetting.zidongshouhuo"
:
"自动确认收货"
,
"systemSetting.DeliveryAppointmentDuration"
:
"送货预约时长"
,
"systemSetting.DeliveryTimePeriod"
:
"配送时间段"
,
"systemSetting.pleaseChoosePeriod"
:
"请选择时间段"
,
"systemSetting.priceLineCommodity"
:
"启用显示商品价格曲线。鼠标移到价格一栏时,显示当前规格商品的历史价格变化。"
,
"systemSetting.autoReceiveOrder"
:
"启用自动确认收货。当发货后超过收货天数后未确认收货,系统默认收货。"
,
"systemSetting.forcastTimeOrder"
:
"启用送货预约时长。可预约下单时间后可预约时长(天数)内送货。"
,
"systemSetting.expressTimeOrder"
:
"启用配送时间段。可选择配送时间段内的时间。"
}
\ No newline at end of file
src/pages/accountSetting/components/TypeVerify/index.tsx
View file @
e364a352
...
...
@@ -7,24 +7,25 @@ import { ReactComponent as TelephoneIcon } from '@/assets/securityIcons/telephon
import
{
ReactComponent
as
PasswordIcon
}
from
'@/assets/securityIcons/password.svg'
;
import
{
ReactComponent
as
PaycodeIcon
}
from
'@/assets/securityIcons/paycode.svg'
;
import
Icon
from
'@ant-design/icons'
;
import
{
useIntl
}
from
'umi'
import
{
getIntl
,
useIntl
}
from
'umi'
const
intl
=
getIntl
();
const
TITLE_NAP
=
{
'loginPwd'
:
{
title
:
'登录密码'
,
desc
:
"互联网账号存在被盗风险,建议您定期更改密码以保护账号安全"
title
:
`
${
intl
.
formatMessage
({
id
:
'accountSetting.loginPsw'
})}
`
,
desc
:
`
${
intl
.
formatMessage
({
id
:
'accountSetting.adviseChangePsw'
})}
`
},
'email'
:
{
title
:
'邮箱验证'
,
desc
:
"您验证的邮箱:{{email}}"
title
:
`
${
intl
.
formatMessage
({
id
:
'accountSetting.emailVerify'
})}
`
,
desc
:
`
${
intl
.
formatMessage
({
id
:
'accountSetting.yourVerifyEmail'
})}
{{email}}`
},
'phone'
:
{
title
:
'手机验证'
,
desc
:
"您验证的手机:{{phone}}, 若丢失或已停用,请立刻更换,避免账号被盗"
title
:
`
${
intl
.
formatMessage
({
id
:
'accountSetting.mobileVerify'
})}
`
,
desc
:
`
${
intl
.
formatMessage
({
id
:
'accountSetting.yourVerifyPhone'
})}
{{phone}},
${
intl
.
formatMessage
({
id
:
'accountSetting.ifLossTochange'
})}
`
}
,
'paycode'
:
{
title
:
'支付密码'
,
desc
:
"您的支付密码已开启,建议您定期更换新的支付密码,提高安全性"
title
:
`
${
intl
.
formatMessage
({
id
:
'accountSetting.payPsw'
})}
`
,
desc
:
`
${
intl
.
formatMessage
({
id
:
'accountSetting.pswStartToUpdate'
})}
`
}
}
...
...
src/pages/authConfig/memberSystem/memberDetail.tsx
View file @
e364a352
...
...
@@ -21,7 +21,7 @@ import {
Tag
,
}
from
'antd'
;
import
{
IntegrateTree
}
from
'god'
;
import
{
history
,
useIntl
}
from
'umi'
;
import
{
history
,
useIntl
,
getIntl
}
from
'umi'
;
import
{
historyContainer
}
from
'@/hooks/useHistoryContainer'
;
import
NiceForm
from
'@/components/NiceForm'
;
import
TabTree
,
{
...
...
@@ -42,8 +42,8 @@ import FieldHeader from '@/components/FieldHeader';
import
OrgModal
from
'./orgModal'
;
import
{
PlusOutlined
}
from
'@ant-design/icons'
;
import
{
useTreeTabs
}
from
'@/hooks/useTreeTabs'
;
const
pageTitles
=
[
'新增'
,
'编辑'
,
'预览'
];
const
intl
=
getIntl
();
const
pageTitles
=
[
`
${
intl
.
formatMessage
({
id
:
'authConfig.add'
})}
`
,
`
${
intl
.
formatMessage
({
id
:
'authConfig.edit'
})}
`
,
`
${
intl
.
formatMessage
({
id
:
'authConfig.previewLook'
})}
`
];
const
TabFormErrors
=
props
=>
{
return
(
...
...
src/pages/authConfig/userSystem/schema/index.ts
View file @
e364a352
import
{
ISchema
}
from
'@formily/antd'
;
import
{
PATTERN_MAPS
}
from
'@/constants/regExp'
;
import
{
getIntl
}
from
'umi'
const
intl
=
getIntl
();
export
const
UserDetailSchema
:
ISchema
=
{
type
:
'object'
,
...
...
@@ -16,36 +18,36 @@ export const UserDetailSchema:ISchema = {
properties
:
{
account
:
{
type
:
'string'
,
title
:
'登录账号'
,
title
:
intl
.
formatMessage
({
id
:
'authConfig.loginAccount'
})
,
"x-rules"
:
[
{
pattern
:
/^
\w{6,20}
$/
,
message
:
'请输入由数字字母或者下划线组成的6-20位账号'
message
:
intl
.
formatMessage
({
id
:
'authConfig.inputbetween6and20'
})
}
],
required
:
true
},
password
:
{
type
:
'password'
,
title
:
'登录密码'
,
title
:
intl
.
formatMessage
({
id
:
'authConfig.loginPsw'
})
,
"x-rules"
:
[
{
pattern
:
PATTERN_MAPS
.
password
,
message
:
'请输入由大小写字母和数字组成的8位密码'
message
:
intl
.
formatMessage
({
id
:
'authConfig.input8Psw'
})
}
],
required
:
true
},
name
:
{
type
:
'string'
,
title
:
'姓名'
,
title
:
intl
.
formatMessage
({
id
:
'authConfig.personName'
})
,
maxLength
:
16
,
required
:
true
},
phoneLayout
:
{
type
:
'object'
,
"x-component"
:
'flex-box'
,
title
:
'手机号'
,
title
:
intl
.
formatMessage
({
id
:
'authConfig.tel'
})
,
"x-component-props"
:
{
labelcol
:
6
,
wrappercol
:
12
...
...
@@ -75,7 +77,7 @@ export const UserDetailSchema:ISchema = {
"x-rules"
:
[
{
pattern
:
PATTERN_MAPS
.
phone
,
message
:
'请输入正确的手机号'
message
:
intl
.
formatMessage
({
id
:
'authConfig.correntTel'
})
}
],
"x-component-props"
:
{
...
...
@@ -88,32 +90,32 @@ export const UserDetailSchema:ISchema = {
},
idCardNo
:
{
type
:
'string'
,
title
:
'身份证号'
title
:
intl
.
formatMessage
({
id
:
'authConfig.indentifyCode'
})
},
email
:
{
type
:
'string'
,
title
:
'邮箱'
,
title
:
intl
.
formatMessage
({
id
:
'authConfig.email'
})
,
"x-rules"
:
[
{
pattern
:
PATTERN_MAPS
.
email
,
message
:
'请输入正确的邮箱'
message
:
intl
.
formatMessage
({
id
:
'authConfig.correntEmail'
})
}
]
},
jobTitle
:
{
type
:
'string'
,
title
:
'职位'
,
title
:
intl
.
formatMessage
({
id
:
'authConfig.zhiwei'
})
,
maxLength
:
20
,
"x-rules"
:
[
{
required
:
true
,
message
:
'请输入职位'
message
:
intl
.
formatMessage
({
id
:
'authConfig.inputzhiwei'
})
}
]
},
orgName
:
{
type
:
'string'
,
title
:
'所属组织机构'
,
title
:
intl
.
formatMessage
({
id
:
'authConfig.belongOrigan'
})
,
required
:
true
,
'x-component-props'
:
{
disabled
:
true
,
...
...
@@ -132,7 +134,7 @@ export const UserDetailSchema:ISchema = {
extra
:
"{{addRoles}}"
,
callback
:
"{{callback}}"
},
title
:
'关联角色'
title
:
intl
.
formatMessage
({
id
:
'authConfig.relatePerson'
})
},
}
...
...
src/pages/authConfig/userSystem/userDetail.tsx
View file @
e364a352
...
...
@@ -4,7 +4,7 @@ import { createFormActions, FormButtonGroup } from '@formily/antd'
import
{
LinkOutlined
}
from
'@ant-design/icons'
;
import
{
ColumnType
}
from
'antd/lib/table/interface'
;
import
{
getMemberOrgTree
,
postMemberUserUpdate
,
postMemberUserAdd
,
getMemberUserGet
,
getMemberRolePageByname
,
}
from
'@/services/MemberV2Api'
;
import
{
history
,
useIntl
}
from
'umi'
;
import
{
history
,
useIntl
,
getIntl
}
from
'umi'
;
import
{
usePageStatus
,
PageStatus
}
from
'@/hooks/usePageStatus'
;
import
NiceForm
from
'@/components/NiceForm'
;
...
...
@@ -20,10 +20,11 @@ import { PageHeaderWrapper } from '@ant-design/pro-layout';
import
ReutrnEle
from
'@/components/ReturnEle'
;
import
{
encryptedByAES
}
from
'@/utils/cryptoAes'
;
const
intl
=
getIntl
();
const
titleRender
=
(
title
)
=>
{
if
(
title
===
PageStatus
.
PREVIEW
)
return
'查看用户'
if
(
title
===
PageStatus
.
ADD
)
return
'新增用户'
if
(
title
===
PageStatus
.
EDIT
)
return
'编辑用户'
if
(
title
===
PageStatus
.
PREVIEW
)
return
`
${
intl
.
formatMessage
({
id
:
'authConfig.lookUser'
})}
`
if
(
title
===
PageStatus
.
ADD
)
return
`
${
intl
.
formatMessage
({
id
:
'authConfig.addUser'
})}
`
if
(
title
===
PageStatus
.
EDIT
)
return
`
${
intl
.
formatMessage
({
id
:
'authConfig.editUser'
})}
`
return
''
}
...
...
src/pages/systemSetting/parameterSetting/constant/index.tsx
View file @
e364a352
import
{
getIntl
}
from
'umi'
;
import
React
from
'react'
;
import
auto_receive
from
'@/assets/imgs/auto_receive.png'
import
express_time
from
'@/assets/imgs/express_time.png'
;
...
...
@@ -13,35 +14,37 @@ export interface IConfigSource {
isSettting
:
boolean
,
}
const
intl
=
getIntl
();
export
const
configSourceData
:
IConfigSource
[]
=
[
{
id
:
1
,
title
:
'商品价格曲线'
,
description
:
'启用显示商品价格曲线。鼠标移到价格一栏时,显示当前规格商品的历史价格变化。'
,
title
:
`
${
intl
.
formatMessage
({
id
:
'systemSetting.priceQuxian'
})}
`
,
description
:
`
${
intl
.
formatMessage
({
id
:
'systemSetting.priceLineCommodity'
})}
`
,
icon
:
price_line
,
type
:
'commodity'
,
isSettting
:
true
},
{
id
:
2
,
title
:
'自动确认收货'
,
description
:
'启用自动确认收货。当发货后超过收货天数后未确认收货,系统默认收货。'
,
title
:
`
${
intl
.
formatMessage
({
id
:
'systemSetting.zidongshouhuo'
})}
`
,
description
:
`
${
intl
.
formatMessage
({
id
:
'systemSetting.autoReceiveOrder'
})}
`
,
icon
:
auto_receive
,
type
:
'order'
,
isSettting
:
true
},
{
id
:
3
,
title
:
'送货预约时长'
,
description
:
'启用送货预约时长。可预约下单时间后可预约时长(天数)内送货。'
,
title
:
`
${
intl
.
formatMessage
({
id
:
'systemSetting.DeliveryAppointmentDuration'
})}
`
,
description
:
`
${
intl
.
formatMessage
({
id
:
'systemSetting.forcastTimeOrder'
})}
`
,
icon
:
forcast_time
,
type
:
'order'
,
isSettting
:
true
},
{
id
:
4
,
title
:
'配送时间段'
,
description
:
'启用配送时间段。可选择配送时间段内的时间。'
,
title
:
`
${
intl
.
formatMessage
({
id
:
'systemSetting.DeliveryTimePeriod'
})}
`
,
description
:
`
${
intl
.
formatMessage
({
id
:
'systemSetting.expressTimeOrder'
})}
`
,
icon
:
express_time
,
type
:
'order'
,
isSettting
:
true
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment