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
黄庭坚
jinfa-platform
Commits
58c6f221
Commit
58c6f221
authored
Jun 30, 2021
by
GuanHua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 渠道商城seo设置问题修改
parent
4d4860c1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
4 deletions
+11
-4
procurement.ts
src/constants/procurement.ts
+5
-0
add.tsx
src/pages/channel/channelSeo/add.tsx
+3
-3
index.tsx
src/pages/channel/channelSeo/index.tsx
+3
-1
No files found.
src/constants/procurement.ts
View file @
58c6f221
...
@@ -309,6 +309,11 @@ export const SELECT_NAME = {
...
@@ -309,6 +309,11 @@ export const SELECT_NAME = {
2
:
'关于我们'
2
:
'关于我们'
}
}
export
const
CHANNEL_SELECT_NAME
=
{
1
:
'渠道商城首页'
,
2
:
'关于我们'
}
/** 门户类型 */
/** 门户类型 */
export
enum
DOORTYPE
{
export
enum
DOORTYPE
{
/** 店铺门户 */
/** 店铺门户 */
...
...
src/pages/channel/channelSeo/add.tsx
View file @
58c6f221
...
@@ -5,7 +5,7 @@ import { PageHeaderWrapper } from '@ant-design/pro-layout';
...
@@ -5,7 +5,7 @@ import { PageHeaderWrapper } from '@ant-design/pro-layout';
import
ReutrnEle
from
'@/components/ReturnEle'
;
import
ReutrnEle
from
'@/components/ReturnEle'
;
import
RequireItem
from
'@/components/RequireItem'
;
import
RequireItem
from
'@/components/RequireItem'
;
import
{
QuestionCircleOutlined
}
from
'@ant-design/icons'
;
import
{
QuestionCircleOutlined
}
from
'@ant-design/icons'
;
import
{
SELECT_NAME
,
DOORTYPE
}
from
'@/constants
'
;
import
{
CHANNEL_SELECT_NAME
,
DOORTYPE
}
from
'@/constants/procurement
'
;
import
{
PublicApi
}
from
'@/services/api'
;
import
{
PublicApi
}
from
'@/services/api'
;
const
{
TabPane
}
=
Tabs
const
{
TabPane
}
=
Tabs
const
layout
:
any
=
{
const
layout
:
any
=
{
...
@@ -36,7 +36,7 @@ const ChannelSeoAdded = () => {
...
@@ -36,7 +36,7 @@ const ChannelSeoAdded = () => {
...
value
,
...
value
,
link
:
`http://
${
link
}
`
,
link
:
`http://
${
link
}
`
,
doorType
:
DOORTYPE
.
PLACE_DOORTYPE
,
doorType
:
DOORTYPE
.
PLACE_DOORTYPE
,
name
:
SELECT_NAME
[
type
]
name
:
CHANNEL_
SELECT_NAME
[
type
]
}
}
setConfirmLoading
(
true
)
setConfirmLoading
(
true
)
fetch
(
params
).
then
(
res
=>
{
fetch
(
params
).
then
(
res
=>
{
...
@@ -90,7 +90,7 @@ const ChannelSeoAdded = () => {
...
@@ -90,7 +90,7 @@ const ChannelSeoAdded = () => {
rules=
{
[{
required
:
true
,
message
:
"请选择页面名称"
}]
}
rules=
{
[{
required
:
true
,
message
:
"请选择页面名称"
}]
}
>
>
<
Select
disabled=
{
link
===
'detail'
}
>
<
Select
disabled=
{
link
===
'detail'
}
>
<
Select
.
Option
value=
{
1
}
>
店铺
首页
</
Select
.
Option
>
<
Select
.
Option
value=
{
1
}
>
渠道商场
首页
</
Select
.
Option
>
<
Select
.
Option
value=
{
2
}
>
关于我们
</
Select
.
Option
>
<
Select
.
Option
value=
{
2
}
>
关于我们
</
Select
.
Option
>
</
Select
>
</
Select
>
</
Form
.
Item
>
</
Form
.
Item
>
...
...
src/pages/channel/channelSeo/index.tsx
View file @
58c6f221
...
@@ -47,6 +47,7 @@ const ChannelSeo = () => {
...
@@ -47,6 +47,7 @@ const ChannelSeo = () => {
title
:
'页面名称'
,
title
:
'页面名称'
,
key
:
'name'
,
key
:
'name'
,
dataIndex
:
'name'
,
dataIndex
:
'name'
,
// eslint-disable-next-line react/display-name
render
:
(
text
:
any
,
record
:
any
)
=>
<
Typography
.
Link
href=
{
`/memberCenter/shopAbility/shopSeo/detail?id=${record.id}`
}
>
{
text
}
</
Typography
.
Link
>
render
:
(
text
:
any
,
record
:
any
)
=>
<
Typography
.
Link
href=
{
`/memberCenter/shopAbility/shopSeo/detail?id=${record.id}`
}
>
{
text
}
</
Typography
.
Link
>
},
},
{
{
...
@@ -83,6 +84,7 @@ const ChannelSeo = () => {
...
@@ -83,6 +84,7 @@ const ChannelSeo = () => {
key
:
'action'
,
key
:
'action'
,
dataIndex
:
'action'
,
dataIndex
:
'action'
,
width
:
256
,
width
:
256
,
// eslint-disable-next-line react/display-name
render
:
(
_text
:
any
,
record
:
any
)
=>
(
render
:
(
_text
:
any
,
record
:
any
)
=>
(
<>
<>
<
Popconfirm
<
Popconfirm
...
@@ -116,7 +118,7 @@ const ChannelSeo = () => {
...
@@ -116,7 +118,7 @@ const ChannelSeo = () => {
const
controllerBtns
=
<
Row
>
const
controllerBtns
=
<
Row
>
<
Col
span=
{
6
}
>
<
Col
span=
{
6
}
>
<
Button
<
Button
onClick=
{
()
=>
history
.
push
(
'/memberCenter/
shopAbility/shop
Seo/add'
)
}
onClick=
{
()
=>
history
.
push
(
'/memberCenter/
channelAbility/channel
Seo/add'
)
}
type=
"primary"
type=
"primary"
icon=
{
<
PlusOutlined
/>
}
icon=
{
<
PlusOutlined
/>
}
>
>
...
...
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