Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
merchant-manage-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
ui
merchant-manage-ui
Commits
60b371d1
Commit
60b371d1
authored
Aug 25, 2023
by
guang.wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改字段
parent
6f12bd52
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
60 deletions
+2
-60
staticData.js
src/pages/BrandManage/staticData.js
+2
-60
No files found.
src/pages/BrandManage/staticData.js
View file @
60b371d1
...
...
@@ -71,7 +71,7 @@ export const brandColumn = config => {
<
Button
key
=
"
check
"
type
=
"
primary
"
onClick
=
{()
=>
onAction
(
r
,
'
edit
'
)}
>
修改
<
/Button>
,
<
Button
key
=
"
update
"
type
=
"
primary
"
ghost
onClick
=
{()
=>
onAction
(
r
,
'
update
'
)}
>
<
Button
key
=
"
update
"
type
=
"
primary
"
ghost
onClick
=
{()
=>
onAction
(
r
,
'
supplement
'
)}
>
补充资质
<
/Button>
,
],
...
...
@@ -82,7 +82,7 @@ export const brandColumn = config => {
// 品牌信息字段
export
const
brandInfoColumn
=
config
=>
{
const
{
actionStatus
}
=
config
;
const
disabled
=
[
brandActionAudit
,
brandActionFind
].
includes
(
actionStatus
)
;
const
disabled
=
brandActionEdit
!==
actionStatus
;
const
baseInfo
=
[
{
title
:
'
资质证书
'
,
...
...
@@ -90,9 +90,6 @@ export const brandInfoColumn = config => {
formItemProps
:
{
rules
:
[{
required
:
true
,
message
:
'
请选择资质证书
'
}],
},
fieldProps
:
{
disabled
,
},
renderFormItem
:
()
=>
<
UploadImage
limit
=
{
1
}
/>
,
},
{
...
...
@@ -101,9 +98,6 @@ export const brandInfoColumn = config => {
formItemProps
:
{
rules
:
[{
required
:
true
,
message
:
'
请选择授权证书
'
}],
},
fieldProps
:
{
disabled
,
},
renderFormItem
:
()
=>
<
UploadImage
limit
=
{
1
}
/>
,
},
{
...
...
@@ -175,58 +169,6 @@ export const brandInfoColumn = config => {
},
renderFormItem
:
()
=>
<
UploadImage
limit
=
{
1
}
width
=
{
192
}
height
=
{
192
}
/>
,
},
{
title
:
''
,
dataIndex
:
''
,
valueType
:
'
divider
'
,
hideInForm
:
!
[
brandActionAudit
,
brandActionFind
].
includes
(
actionStatus
),
formItemProps
:
{
wrapperCol
:
{
span
:
22
},
},
fieldProps
:
{
children
:
'
品牌审核
'
,
orientation
:
'
left
'
,
},
},
{
title
:
'
审核结果
'
,
dataIndex
:
'
status
'
,
valueType
:
'
radio
'
,
hideInForm
:
!
[
brandActionAudit
,
brandActionFind
].
includes
(
actionStatus
),
valueEnum
:
brandAuditEnum
,
fieldProps
:
{
buttonStyle
:
'
outline
'
,
disabled
:
[
brandActionFind
].
includes
(
actionStatus
),
onChange
:
e
=>
{
if
(
e
.
target
.
value
===
2
)
{
config
.
form
.
setFieldsValue
({
reason
:
''
});
}
},
},
},
{
valueType
:
'
dependency
'
,
name
:
[
'
status
'
],
hideInForm
:
!
[
brandActionAudit
,
brandActionFind
].
includes
(
actionStatus
),
columns
:
({
status
})
=>
{
const
rejectColumn
=
[
{
title
:
'
驳回原因
'
,
dataIndex
:
'
rejectReason
'
,
maxLength
:
200
,
formItemProps
:
{
rules
:
[{
required
:
true
,
message
:
'
请输入驳回原因
'
}],
},
fieldProps
:
{
placeholder
:
'
请输入驳回原因
'
,
disabled
:
[
brandActionFind
].
includes
(
actionStatus
),
},
renderFormItem
:
()
=>
<
Input
/>
,
},
];
return
+
status
===
2
?
rejectColumn
:
[];
},
},
];
return
baseInfo
;
};
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