张延森 4 år sedan
förälder
incheckning
18826ba8e2
3 ändrade filer med 10 tillägg och 18 borttagningar
  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 Visa fil

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

+ 1
- 1
src/pages/Cms/Banner/List/index.jsx Visa fil

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

+ 8
- 16
src/pages/Cms/Hot/Edit/index.jsx Visa fil

4
 import Container from '@/components/Container';
4
 import Container from '@/components/Container';
5
 import request from '@/utils/request';
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
 import UploadImage from '@/components/UploadImage';
8
 import UploadImage from '@/components/UploadImage';
9
 import { notification, Form, Button } from 'antd';
9
 import { notification, Form, Button } from 'antd';
10
 
10
 
77
     >
77
     >
78
       <Container loading={loading}>
78
       <Container loading={loading}>
79
         <ProForm form={form} onFinish={handleSubmit}>
79
         <ProForm form={form} onFinish={handleSubmit}>
80
+          <ProFormText
81
+            label="标题"
82
+            placeholder="输入标题"
83
+            name="targetTitle"
84
+            rules={[{ required: true, message: '请填写标题' }]}
85
+          />
86
+
80
           <Form.Item
87
           <Form.Item
81
             name="poster"
88
             name="poster"
82
             label="图片"
89
             label="图片"
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
         </ProForm>
134
         </ProForm>
143
       </Container>
135
       </Container>
144
     </PageContainer>
136
     </PageContainer>