张延森 преди 4 години
родител
ревизия
18826ba8e2
променени са 3 файла, в които са добавени 10 реда и са изтрити 18 реда
  1. 1
    1
      config/routes.js
  2. 1
    1
      src/pages/Cms/Banner/List/index.jsx
  3. 8
    16
      src/pages/Cms/Hot/Edit/index.jsx

+ 1
- 1
config/routes.js Целия файл

@@ -65,7 +65,7 @@ export default [
65 65
                   },
66 66
                   {
67 67
                     path: '/cms/hot/edit',
68
-                    name: 'Banner编辑',
68
+                    name: '热门编辑',
69 69
                     menuCode: 'cms.hot',
70 70
                     component: './Cms/Hot/Edit',
71 71
                     hideInMenu: true,

+ 1
- 1
src/pages/Cms/Banner/List/index.jsx Целия файл

@@ -125,7 +125,7 @@ const BannerList = () => {
125 125
       render: (text, record) => (
126 126
         <Space size="middle">
127 127
           <a key="status" onClick={() => changeStatus(record)}>
128
-            {record.status === 1 ? '用' : '启用'}
128
+            {record.status === 1 ? '用' : '启用'}
129 129
           </a>
130 130
           <a onClick={() => handleBannerClick(record.serialNo)}>编辑</a>
131 131
           <Popconfirm

+ 8
- 16
src/pages/Cms/Hot/Edit/index.jsx Целия файл

@@ -4,7 +4,7 @@ import { PageContainer } from '@ant-design/pro-layout';
4 4
 import Container from '@/components/Container';
5 5
 import request from '@/utils/request';
6 6
 
7
-import ProForm, { ProFormSelect } from '@ant-design/pro-form';
7
+import ProForm, { ProFormSelect, ProFormText } from '@ant-design/pro-form';
8 8
 import UploadImage from '@/components/UploadImage';
9 9
 import { notification, Form, Button } from 'antd';
10 10
 
@@ -77,6 +77,13 @@ const HotEdit = (props) => {
77 77
     >
78 78
       <Container loading={loading}>
79 79
         <ProForm form={form} onFinish={handleSubmit}>
80
+          <ProFormText
81
+            label="标题"
82
+            placeholder="输入标题"
83
+            name="targetTitle"
84
+            rules={[{ required: true, message: '请填写标题' }]}
85
+          />
86
+
80 87
           <Form.Item
81 88
             name="poster"
82 89
             label="图片"
@@ -124,21 +131,6 @@ const HotEdit = (props) => {
124 131
               // }
125 132
             }}
126 133
           />
127
-
128
-          {/* <Select
129
-        showSearch
130
-        value={this.state.value}
131
-        placeholder={this.props.placeholder}
132
-        style={this.props.style}
133
-        defaultActiveFirstOption={false}
134
-        showArrow={false}
135
-        filterOption={false}
136
-        onSearch={this.handleSearch}
137
-        onChange={this.handleChange}
138
-        notFoundContent={null}
139
-      >
140
-        {options}
141
-      </Select> */}
142 134
         </ProForm>
143 135
       </Container>
144 136
     </PageContainer>