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
dbb6e05c
Commit
dbb6e05c
authored
Aug 25, 2023
by
guang.wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 删除无用代码
parent
60b371d1
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
9 deletions
+4
-9
env.config.js
config/env.config.js
+1
-1
BrandInfo.jsx
src/pages/BrandManage/components/BrandInfo.jsx
+1
-1
index.jsx
src/pages/BrandManage/index.jsx
+0
-4
staticData.js
src/pages/BrandManage/staticData.js
+2
-3
No files found.
config/env.config.js
View file @
dbb6e05c
import
RoleType
,
{
isPlatForm
}
from
'
./role.config
'
;
import
RoleType
,
{
isPlatForm
}
from
'
./role.config
'
;
const
isProduction
=
process
.
env
.
NODE_ENV
===
'
production
'
;
const
isProduction
=
process
.
env
.
NODE_ENV
===
'
production
'
;
const
isPre
=
process
.
env
.
PRE_ENV
===
'
pre
'
;
const
isPre
=
process
.
env
.
PRE_ENV
===
'
pre
'
;
const
environment
=
'
yxm2
'
;
const
environment
=
'
sc
'
;
const
envAPi
=
{
const
envAPi
=
{
api
:
`https://security-
${
environment
}
.liangkebang.net`
,
//'https://security-xyqb.liangkebang.net',
api
:
`https://security-
${
environment
}
.liangkebang.net`
,
//'https://security-xyqb.liangkebang.net',
...
...
src/pages/BrandManage/components/BrandInfo.jsx
View file @
dbb6e05c
...
@@ -5,7 +5,7 @@ import { layout } from '@/utils/bll';
...
@@ -5,7 +5,7 @@ import { layout } from '@/utils/bll';
const
BrandInfo
=
props
=>
{
const
BrandInfo
=
props
=>
{
const
refForm
=
React
.
useRef
();
const
refForm
=
React
.
useRef
();
const
{
actionStatus
,
brandId
,
supplierId
}
=
props
;
const
{
actionStatus
,
brandId
}
=
props
;
const
closeModal
=
v
=>
{
const
closeModal
=
v
=>
{
!
v
&&
props
.
onClose
();
!
v
&&
props
.
onClose
();
};
};
...
...
src/pages/BrandManage/index.jsx
View file @
dbb6e05c
...
@@ -11,14 +11,12 @@ import BrandInfo from './components/BrandInfo.jsx';
...
@@ -11,14 +11,12 @@ import BrandInfo from './components/BrandInfo.jsx';
const
BrandManage
=
()
=>
{
const
BrandManage
=
()
=>
{
const
refTable
=
useRef
();
const
refTable
=
useRef
();
const
[
id
,
setId
]
=
useState
(
''
);
const
[
id
,
setId
]
=
useState
(
''
);
const
[
supplierId
,
setSupplierId
]
=
useState
(
''
);
const
[
visible
,
setVisible
]
=
useState
(
false
);
const
[
visible
,
setVisible
]
=
useState
(
false
);
const
[
actionStatus
,
setActionStatus
]
=
useState
(
'
add
'
);
const
[
actionStatus
,
setActionStatus
]
=
useState
(
'
add
'
);
// 编辑品牌
// 编辑品牌
const
onAction
=
(
record
,
status
)
=>
{
const
onAction
=
(
record
,
status
)
=>
{
setId
(
record
.
brandId
);
setId
(
record
.
brandId
);
setSupplierId
(
record
.
id
);
setActionStatus
(
status
);
setActionStatus
(
status
);
setVisible
(
!
0
);
setVisible
(
!
0
);
};
};
...
@@ -45,7 +43,6 @@ const BrandManage = () => {
...
@@ -45,7 +43,6 @@ const BrandManage = () => {
type=
"primary"
type=
"primary"
onClick=
{
()
=>
{
onClick=
{
()
=>
{
setId
(
''
);
setId
(
''
);
setSupplierId
(
''
);
setActionStatus
(
'
add
'
);
setActionStatus
(
'
add
'
);
setVisible
(
!
0
);
setVisible
(
!
0
);
}
}
}
}
...
@@ -61,7 +58,6 @@ const BrandManage = () => {
...
@@ -61,7 +58,6 @@ const BrandManage = () => {
visible=
{
visible
}
visible=
{
visible
}
actionStatus=
{
actionStatus
}
actionStatus=
{
actionStatus
}
brandId=
{
id
}
brandId=
{
id
}
supplierId=
{
supplierId
}
onClose=
{
()
=>
setVisible
(
false
)
}
onClose=
{
()
=>
setVisible
(
false
)
}
id=
{
id
}
id=
{
id
}
/>
/>
...
...
src/pages/BrandManage/staticData.js
View file @
dbb6e05c
import
React
from
'
react
'
;
import
React
from
'
react
'
;
import
{
Button
,
Input
}
from
'
antd
'
;
import
{
Button
}
from
'
antd
'
;
import
UploadImage
from
'
@/components/UploadImg/index.jsx
'
;
import
UploadImage
from
'
@/components/UploadImg/index.jsx
'
;
// 品牌审核状态 0待审核 1审核通过 2驳回
// 品牌审核状态 0待审核 1审核通过 2驳回
...
@@ -13,8 +13,7 @@ export const brandAuditEnum = {
...
@@ -13,8 +13,7 @@ export const brandAuditEnum = {
1
:
'
审核通过
'
,
1
:
'
审核通过
'
,
2
:
'
驳回
'
,
2
:
'
驳回
'
,
};
};
// 操作状态 审核、查看、修改、添加、补充资质
// 操作状态 查看、修改、添加、补充资质
export
const
brandActionAudit
=
'
audit
'
;
export
const
brandActionFind
=
'
find
'
;
export
const
brandActionFind
=
'
find
'
;
export
const
brandActionEdit
=
'
edit
'
;
export
const
brandActionEdit
=
'
edit
'
;
export
const
brandActionAdd
=
'
add
'
;
export
const
brandActionAdd
=
'
add
'
;
...
...
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