Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-admin
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
project
jinfa-admin
Commits
12e928eb
Commit
12e928eb
authored
Nov 17, 2021
by
Bill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改版本号提示信息
parent
3a7d5333
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
5 deletions
+31
-5
index.tsx
src/pages/systemManage/appVersion/add/index.tsx
+28
-3
schema.tsx
src/pages/systemManage/appVersion/add/schema.tsx
+3
-2
No files found.
src/pages/systemManage/appVersion/add/index.tsx
View file @
12e928eb
...
...
@@ -3,7 +3,7 @@ import NiceForm from '@/components/NiceForm';
import
ReutrnEle
from
'@/components/ReturnEle'
;
import
{
usePageStatus
}
from
'@/hooks/usePageStatus'
;
import
{
PageHeaderWrapper
}
from
'@ant-design/pro-layout'
;
import
{
Button
,
Card
,
message
}
from
'antd'
;
import
{
Button
,
Card
,
message
,
Tooltip
}
from
'antd'
;
import
{
history
}
from
'umi'
;
import
schema
from
'./schema'
;
import
{
Radio
}
from
'@formily/antd-components'
...
...
@@ -15,6 +15,7 @@ import { PublicApi } from '@/services/api';
import
{
GetManageAppVersionFindResponse
}
from
'@/services/PlatformApi'
;
import
{
omit
}
from
'@/utils'
;
import
BraftEditor
from
'braft-editor'
;
import
{
QuestionCircleOutlined
}
from
'@ant-design/icons'
;
const
formActions
=
createFormActions
();
...
...
@@ -46,7 +47,6 @@ function range(start: number, end: number) {
const
AppVersionAdd
=
()
=>
{
const
{
id
,
preview
}
=
usePageStatus
();
console
.
log
(
preview
);
const
isEdit
=
id
&&
!
preview
;
const
isAdd
=
!
id
&&
!
preview
;
const
isView
=
id
&&
preview
;
...
...
@@ -94,6 +94,30 @@ const AppVersionAdd = () => {
}
const
createRichTextUtils
=
()
=>
{
return
{
text
(...
args
)
{
return
React
.
createElement
(
'span'
,
{},
...
args
)
},
help
(
text
,
offset
=
3
)
{
return
React
.
createElement
(
Tooltip
,
{
title
:
text
},
<
QuestionCircleOutlined
style=
{
{
margin
:
'0 3px'
,
cursor
:
'default'
,
marginLeft
:
offset
}
}
/>
)
},
tips
(
text
,
tips
)
{
return
React
.
createElement
(
Tooltip
,
{
title
:
tips
},
<
span
style=
{
{
margin
:
'0 3px'
,
cursor
:
'default'
}
}
>
{
text
}
</
span
>
)
}
}
}
const
disabledDate
=
(
current
:
Moment
)
=>
{
return
current
<
lastDay
.
endOf
(
'day'
);
}
...
...
@@ -123,7 +147,8 @@ const AppVersionAdd = () => {
value=
{
initialValue
}
expressionScope=
{
{
disabledDate
,
disabledTime
disabledTime
,
...
createRichTextUtils
()
}
}
actions=
{
formActions
}
schema=
{
schema
}
...
...
src/pages/systemManage/appVersion/add/schema.tsx
View file @
12e928eb
import
{
QuestionCircleOutlined
}
from
'@ant-design/icons'
;
import
{
ISchema
}
from
'@formily/antd'
;
import
{
Upload
,
message
}
from
'antd'
;
import
{
Upload
,
message
,
Tooltip
}
from
'antd'
;
import
{
UploadFile
}
from
'antd/lib/upload/interface'
;
const
schema
:
ISchema
=
{
...
...
@@ -17,7 +18,7 @@ const schema: ISchema = {
},
properties
:
{
version
:
{
title
:
'版本号'
,
title
:
`{{ text('版本号',help('当前填写的版本号需要跟上传的安装包一致')) }}`
,
type
:
'string'
,
'x-rules'
:
[
{
...
...
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