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
linweijiong
jinfa-platform
Commits
4c2f499f
Commit
4c2f499f
authored
Feb 20, 2021
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 伪造 label *
parent
a34ef4b2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
2 deletions
+24
-2
index.less
...SellStorage/warehouse/components/WarehouseForm/index.less
+13
-0
index.tsx
...kSellStorage/warehouse/components/WarehouseForm/index.tsx
+10
-1
index.ts
...torage/warehouse/components/WarehouseForm/schema/index.ts
+1
-1
No files found.
src/pages/transaction/stockSellStorage/warehouse/components/WarehouseForm/index.less
View file @
4c2f499f
.label {
font-size: 12px;
color: #909399;
&::after {
margin-left: 4px;
font-size: 12px;
font-family: SimSun, sans-serif;
color: #ff4d4f;
content: '*';
}
}
\ No newline at end of file
src/pages/transaction/stockSellStorage/warehouse/components/WarehouseForm/index.tsx
View file @
4c2f499f
...
...
@@ -9,8 +9,8 @@ import NiceForm from '@/components/NiceForm';
import
{
warehouseDetailSchema
}
from
'./schema'
;
import
{
useLinkEnumEffect
}
from
'@/components/NiceForm/linkages/linkEnum'
;
import
{
useAsyncSelect
}
from
'@/formSchema/effects/useAsyncSelect'
;
import
{
usePageStatus
,
PageStatus
}
from
'@/hooks/usePageStatus'
;
import
{
PublicApi
}
from
'@/services/api'
;
import
styles
from
'./index.less'
;
const
formActions
=
createFormActions
();
const
{
...
...
@@ -117,6 +117,12 @@ const WarehouseForm: React.FC<WarehouseFormProps> = ({
setUnsaved
(
false
);
};
const
AddressLabel
=
(
<
div
className=
{
styles
.
label
}
>
仓库地址
</
div
>
);
return
(
<
Spin
spinning=
{
infoLoading
}
>
<
PageHeaderWrapper
...
...
@@ -152,6 +158,9 @@ const WarehouseForm: React.FC<WarehouseFormProps> = ({
<
NiceForm
previewPlaceholder=
"' '"
editable=
{
isEdit
||
!
id
}
expressionScope=
{
{
AddressLabel
,
}
}
effects=
{
(
$
,
{
setFieldState
})
=>
{
useLinkEnumEffect
(
'areaResponses'
,
result
=>
result
.
map
(
v
=>
({
...
...
src/pages/transaction/stockSellStorage/warehouse/components/WarehouseForm/schema/index.ts
View file @
4c2f499f
...
...
@@ -35,7 +35,7 @@ export const warehouseDetailSchema: ISchema = {
type
:
'object'
,
'x-component'
:
'mega-layout'
,
'x-component-props'
:
{
label
:
'
仓库地址
'
,
label
:
'
{{AddressLabel}}
'
,
wrapperCol
:
24
,
},
required
:
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