Commit 58c6f221 authored by GuanHua's avatar GuanHua

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

parent 4d4860c1
......@@ -309,6 +309,11 @@ export const SELECT_NAME = {
2: '关于我们'
}
export const CHANNEL_SELECT_NAME = {
1: '渠道商城首页',
2: '关于我们'
}
/** 门户类型 */
export enum DOORTYPE {
/** 店铺门户 */
......
......@@ -5,7 +5,7 @@ import { PageHeaderWrapper } from '@ant-design/pro-layout';
import ReutrnEle from '@/components/ReturnEle';
import RequireItem from '@/components/RequireItem';
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';
const { TabPane } = Tabs
const layout: any = {
......@@ -36,7 +36,7 @@ const ChannelSeoAdded = () => {
...value,
link: `http://${link}`,
doorType: DOORTYPE.PLACE_DOORTYPE,
name: SELECT_NAME[type]
name: CHANNEL_SELECT_NAME[type]
}
setConfirmLoading(true)
fetch(params).then(res => {
......@@ -90,7 +90,7 @@ const ChannelSeoAdded = () => {
rules={[{ required: true, message: "请选择页面名称" }]}
>
<Select disabled={link === 'detail'}>
<Select.Option value={1}>店铺首页</Select.Option>
<Select.Option value={1}>渠道商场首页</Select.Option>
<Select.Option value={2}>关于我们</Select.Option>
</Select>
</Form.Item>
......
......@@ -47,6 +47,7 @@ const ChannelSeo = () => {
title: '页面名称',
key: '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>
},
{
......@@ -83,6 +84,7 @@ const ChannelSeo = () => {
key: 'action',
dataIndex: 'action',
width: 256,
// eslint-disable-next-line react/display-name
render: (_text: any, record: any) => (
<>
<Popconfirm
......@@ -116,7 +118,7 @@ const ChannelSeo = () => {
const controllerBtns = <Row>
<Col span={6}>
<Button
onClick={() => history.push('/memberCenter/shopAbility/shopSeo/add')}
onClick={() => history.push('/memberCenter/channelAbility/channelSeo/add')}
type="primary"
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