Commit 58c6f221 authored by GuanHua's avatar GuanHua

fix: 渠道商城seo设置问题修改

parent 4d4860c1
...@@ -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 {
/** 店铺门户 */ /** 店铺门户 */
......
...@@ -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>
......
...@@ -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/shopSeo/add')} onClick={() => history.push('/memberCenter/channelAbility/channelSeo/add')}
type="primary" type="primary"
icon={<PlusOutlined />} icon={<PlusOutlined />}
> >
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment