浏览代码

Merge branch 'dev' of http://git.ycjcjy.com/zhiyuxing/estateagents-admin-manager into dev

傅行帆 5 年前
父节点
当前提交
9ca3011337
共有 2 个文件被更改,包括 8 次插入5 次删除
  1. 7
    4
      src/pages/carouselFigure/advertisingList.jsx
  2. 1
    1
      src/pages/carouselFigure/carouselFigureList.jsx

+ 7
- 4
src/pages/carouselFigure/advertisingList.jsx 查看文件

59
       dataIndex: 'buildingName',
59
       dataIndex: 'buildingName',
60
       key: 'buildingName',
60
       key: 'buildingName',
61
       align: 'center',
61
       align: 'center',
62
+      render: (buildingName) => <span>{ buildingName === null ? '无' : buildingName }</span>
62
     },
63
     },
63
     {
64
     {
64
       title: '关联内容类型',
65
       title: '关联内容类型',
65
       dataIndex: 'contentType',
66
       dataIndex: 'contentType',
66
       key: 'contentType',
67
       key: 'contentType',
67
       align: 'center',
68
       align: 'center',
68
-      render: (contentType) => <span>{ contentType === 'project' ? '项目' : contentType === 'activity' ? '活动' : contentType === 'news' ? '资讯' : contentType === 'other' ? '其他' : contentType === 'help' ? '助力' : contentType === 'group' ? '拼团' : contentType === 'h5' ? 'H5活动' : '' }</span>
69
+      render: (contentType) => <span>{ contentType === 'project' ? '项目' : contentType === 'activity' ? '活动' : contentType === 'news' ? '资讯' : contentType === 'other' ? '其他' : contentType === 'help' ? '助力' : contentType === 'group' ? '拼团' : contentType === 'h5' ? 'H5活动' : '' }</span>
69
     },
70
     },
70
     // {
71
     // {
71
     //   title: '发布位置',
72
     //   title: '发布位置',
145
   const changeStatus = (row) => () => {
146
   const changeStatus = (row) => () => {
146
       console.log(row)
147
       console.log(row)
147
       if(row.status === 0) {
148
       if(row.status === 0) {
148
-        row.status = 1
149
+        
149
         Modal.confirm({
150
         Modal.confirm({
150
           title: '确认发布此数据?',
151
           title: '确认发布此数据?',
151
           okText: '确定',
152
           okText: '确定',
152
           cancelText: '取消',
153
           cancelText: '取消',
153
           onOk() {
154
           onOk() {
155
+            row.status = 1
154
               request({ ...apis.carsuseFigure.updataExtendContent,urlData:{id: row.contentId}, data: row,}).then((data) => {
156
               request({ ...apis.carsuseFigure.updataExtendContent,urlData:{id: row.contentId}, data: row,}).then((data) => {
155
                   message.info('操作成功!')
157
                   message.info('操作成功!')
156
                   getList({ pageNum: 1, pageSize: 10, showType: 'screen' })
158
                   getList({ pageNum: 1, pageSize: 10, showType: 'screen' })
161
           },
163
           },
162
         });
164
         });
163
       }else if(row.status === 1){
165
       }else if(row.status === 1){
164
-        row.status = 0
166
+        
165
         Modal.confirm({
167
         Modal.confirm({
166
           title: '停用后不会再显示在小程序端',
168
           title: '停用后不会再显示在小程序端',
167
           okText: '确定',
169
           okText: '确定',
168
           cancelText: '取消',
170
           cancelText: '取消',
169
           onOk() {
171
           onOk() {
172
+            row.status = 0
170
               request({ ...apis.carsuseFigure.updataExtendContent,urlData:{id: row.contentId}, data: row,}).then((data) => {
173
               request({ ...apis.carsuseFigure.updataExtendContent,urlData:{id: row.contentId}, data: row,}).then((data) => {
171
                   message.info('操作成功!')
174
                   message.info('操作成功!')
172
                   getList({ pageNum: 1, pageSize: 10, showType: 'screen' })
175
                   getList({ pageNum: 1, pageSize: 10, showType: 'screen' })
225
               <Option value="help">助力</Option>
228
               <Option value="help">助力</Option>
226
               <Option value="group">拼团</Option>
229
               <Option value="group">拼团</Option>
227
               <Option value="h5">H5</Option>
230
               <Option value="h5">H5</Option>
228
-              <Option value="">无</Option>
231
+              <Option value="nothing">无</Option>
229
             </Select>,
232
             </Select>,
230
           )}
233
           )}
231
         </Form.Item>
234
         </Form.Item>

+ 1
- 1
src/pages/carouselFigure/carouselFigureList.jsx 查看文件

227
               <Option value="help">助力</Option>
227
               <Option value="help">助力</Option>
228
               <Option value="group">拼团</Option>
228
               <Option value="group">拼团</Option>
229
               <Option value="h5">H5</Option>
229
               <Option value="h5">H5</Option>
230
-              <Option value="">无</Option>
230
+              <Option value="nothing">无</Option>
231
               {/* <Option value="other">其他</Option> */}
231
               {/* <Option value="other">其他</Option> */}
232
             </Select>,
232
             </Select>,
233
           )}
233
           )}