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
978bf3d6
Commit
978bf3d6
authored
Mar 16, 2023
by
张子雨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 中台一期
parent
27cb99be
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
62 deletions
+32
-62
style.css
src/pages/businessManage/dist/style.css
+0
-44
index.jsx
src/pages/businessManage/info/index.jsx
+11
-18
utils.js
src/utils/utils.js
+21
-0
No files found.
src/pages/businessManage/dist/style.css
deleted
100644 → 0
View file @
27cb99be
.table
:global
.ant-table-row-expand-icon-cell
{
visibility
:
hidden
;
}
.table
:global
.ant-table-expanded-row
.ant-pro-table
{
margin-left
:
-17px
;
}
.logBtn
{
display
:
inherit
;
margin
:
20px
auto
;
}
.pageHeader
{
background-color
:
#fff
;
border
:
1px
solid
#ebedf0
;
}
.listHeader
{
display
:
flex
;
}
.listHeader--item
{
position
:
relative
;
display
:
flex
;
align-items
:
center
;
width
:
40px
;
height
:
40px
;
text-align
:
center
;
justify-content
:
center
;
box-sizing
:
border-box
;
margin-right
:
20px
;
font-size
:
14px
;
line-height
:
14px
;
border
:
1px
solid
#333
;
border-radius
:
50%
;
}
.listHeader--item
::after
{
position
:
absolute
;
right
:
-21px
;
width
:
20px
;
height
:
1px
;
background-color
:
#333
;
content
:
''
;
}
.listHeader--item
:last-child::after
{
width
:
0
;
height
:
0
;
}
src/pages/businessManage/info/index.jsx
View file @
978bf3d6
...
@@ -335,21 +335,14 @@ class BusinessInfo extends Component {
...
@@ -335,21 +335,14 @@ class BusinessInfo extends Component {
loading
:
true
,
loading
:
true
,
});
});
console
.
log
(
'
obj :>>提交
'
,
obj
);
console
.
log
(
'
obj :>>提交
'
,
obj
);
// const [res, error] = await api(obj);
const
data
=
await
api
(
obj
);
// if (!error) {
if
(
data
.
businessCode
===
'
0000
'
)
{
// console.log('res :>> ', res);
// const msg = this.state.type === infoTypeChecked ? '审核完成' : '保存成功';
// const msg = this.state.type === infoTypeChecked ? '审核完成' : '保存成功';
notification
.
success
({
message
:
`
${
data
.
msg
}
!~`
});
// notification.success({ message: `${msg}!~` });
}
// if (this.state.id) {
this
.
setState
({
// this.onCancel();
loading
:
false
,
// } else {
});
// // 如果是新增 则返回商户审核页面
// history.push('/businessManage');
// }
// }
// this.setState({
// loading: false,
// });
}
else
{
}
else
{
const
message
=
getErrorMessage
(
err
);
const
message
=
getErrorMessage
(
err
);
notification
.
warning
({
message
});
notification
.
warning
({
message
});
...
@@ -400,14 +393,14 @@ class BusinessInfo extends Component {
...
@@ -400,14 +393,14 @@ class BusinessInfo extends Component {
)
}
)
}
</
FormItem
>
</
FormItem
>
</
Col
>
</
Col
>
{
/*
<Col span={24}>
<
Col
span=
{
24
}
>
<
FormItem
label=
"商户名称"
labelCol=
{
{
span
:
4
}
}
>
<
FormItem
label=
"商户名称"
labelCol=
{
{
span
:
4
}
}
>
{
getFieldDecorator
(
'
name
'
,
{
{
getFieldDecorator
(
'
name
'
,
{
rules
:
[{
required
:
true
,
message
:
'
请输入商户名称!
'
}],
rules
:
[{
required
:
true
,
message
:
'
请输入商户名称!
'
}],
initialValue
:
businessInfo
.
name
,
initialValue
:
businessInfo
.
name
,
})(<Input maxLength={32}
disabled={disabled || }
/>)}
})(<
Input
maxLength=
{
32
}
/>)
}
</
FormItem
>
</
FormItem
>
</Col>
*/
}
</
Col
>
<
Col
span=
{
24
}
>
<
Col
span=
{
24
}
>
<
FormItem
label=
"店铺区域"
labelCol=
{
{
span
:
4
}
}
>
<
FormItem
label=
"店铺区域"
labelCol=
{
{
span
:
4
}
}
>
{
getFieldDecorator
(
'
addr
'
,
{
{
getFieldDecorator
(
'
addr
'
,
{
...
...
src/utils/utils.js
View file @
978bf3d6
...
@@ -127,3 +127,24 @@ export const getClientInfo = () => {
...
@@ -127,3 +127,24 @@ export const getClientInfo = () => {
};
};
export
const
getObjectType
=
v
=>
Object
.
prototype
.
toString
.
call
(
v
).
replace
(
/
\[
object |]/g
,
''
);
export
const
getObjectType
=
v
=>
Object
.
prototype
.
toString
.
call
(
v
).
replace
(
/
\[
object |]/g
,
''
);
// 获取长表单错误提示
export
const
getErrorMessage
=
err
=>
{
const
message
=
'
请检查表单数据!
'
;
// (function getMsg(v) {
// if (Array.isArray(v)) {
// getMsg(v[0]);
// } else {
// const keys = Object.keys(v);
// if (Array.isArray(v[keys[0]])) {
// getMsg(v[keys[0]][0]);
// } else if (v[keys[0]].errors && v[keys[0]].errors.length) {
// // eslint-disable-next-line no-const-assign
// message = v[keys[0]].errors[0].message;
// } else {
// getMsg(v);
// }
// }
// })(err);
return
message
;
};
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