Browse Source

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

魏超 5 years ago
parent
commit
0435a9d78a

+ 2
- 2
src/pages/activity/ActivityList.jsx View File

106
             <span style={{ color: '#1990FF', cursor: 'pointer' }} onClick={sendOrPublicDynamic.bind(this,row)}>{ row.status === 1 ? '取消发布' : '发布' }<Icon type="close-circle" className={styles.edit} /></span>
106
             <span style={{ color: '#1990FF', cursor: 'pointer' }} onClick={sendOrPublicDynamic.bind(this,row)}>{ row.status === 1 ? '取消发布' : '发布' }<Icon type="close-circle" className={styles.edit} /></span>
107
           </AuthButton>
107
           </AuthButton>
108
           <AuthButton name="admin.buildingDynamic.finish.put" noRight={null}>
108
           <AuthButton name="admin.buildingDynamic.finish.put" noRight={null}>
109
-            <span style={{ color: '#1990FF', cursor: 'pointer' }} onClick={finishDynamic.bind(this,row)}>结束活动<Icon type="poweroff" className={styles.edit} /></span>
109
+            {row.isEnlist != 2 && <span style={{ color: '#1990FF', cursor: 'pointer' }} onClick={finishDynamic.bind(this,row)}>结束活动<Icon type="poweroff" className={styles.edit} /></span>}
110
           </AuthButton>
110
           </AuthButton>
111
           <AuthButton name="admin.buildingDynamic.update.put" noRight={null}>
111
           <AuthButton name="admin.buildingDynamic.update.put" noRight={null}>
112
             <span style={{ color: '#1990FF', marginRight: '20px', cursor: 'pointer' }} onClick={topDynamic(row)}>{ row.weight === 1 ? '取消置顶' : '置顶' }<Icon type="vertical-align-top" className={styles.edit} /></span>
112
             <span style={{ color: '#1990FF', marginRight: '20px', cursor: 'pointer' }} onClick={topDynamic(row)}>{ row.weight === 1 ? '取消置顶' : '置顶' }<Icon type="vertical-align-top" className={styles.edit} /></span>
113
-            <span style={{ color: '#FF925C', cursor: 'pointer' }} onClick={toEditGoods(row.dynamicId)}>编辑<Icon type="form" className={styles.edit} /></span>
113
+            {row.isEnlist != 2 && <span style={{ color: '#FF925C', cursor: 'pointer' }} onClick={toEditGoods(row.dynamicId)}>编辑<Icon type="form" className={styles.edit} /></span>}
114
           </AuthButton>
114
           </AuthButton>
115
         </>
115
         </>
116
       )
116
       )

+ 1
- 1
src/pages/building/list/index.jsx View File

135
       </p>
135
       </p>
136
       <p className={Styles.cardItem}>
136
       <p className={Styles.cardItem}>
137
         <span className={Styles.title}>录入时间</span>
137
         <span className={Styles.title}>录入时间</span>
138
-        <span >:{data.createDate}</span>
138
+        <span >:{moment(data.createDate).format('YYYY-MM-DD HH:mm:ss')}</span>
139
       </p>
139
       </p>
140
       <p style={{ margin: '15px 0', position: 'relative', fontSize: '0.106rem' }}>
140
       <p style={{ margin: '15px 0', position: 'relative', fontSize: '0.106rem' }}>
141
       <AuthButton name="admin.building.update.status.put" noRight={null}>
141
       <AuthButton name="admin.building.update.status.put" noRight={null}>

+ 1
- 0
src/pages/channel/recommendClients.jsx View File

84
     dataIndex: 'createDate',
84
     dataIndex: 'createDate',
85
     key: 'createDate',
85
     key: 'createDate',
86
     align: 'center',
86
     align: 'center',
87
+    render: (_, record) => <><span>{ record.createDate && moment(record.createDate).format('YYYY-MM-DD') }</span></>,
87
   },
88
   },
88
   {
89
   {
89
     title: '状态',
90
     title: '状态',

+ 1
- 0
src/pages/customer/independentList/index.jsx View File

106
         title: '推荐时间',
106
         title: '推荐时间',
107
         dataIndex: 'createDate',
107
         dataIndex: 'createDate',
108
         key: 'createDate',
108
         key: 'createDate',
109
+        render: (_, record) => <><span>{ record.createDate && moment(record.createDate).format('YYYY-MM-DD') }</span></>,
109
       },
110
       },
110
       {
111
       {
111
         title: '状态',
112
         title: '状态',

+ 1
- 1
src/pages/news/list/NewsList.jsx View File

226
             <span>收藏数量:{data.saveNum}</span>
226
             <span>收藏数量:{data.saveNum}</span>
227
           </p>
227
           </p>
228
 
228
 
229
-          <p style={{ fontSize: ' 0.106rem', color: '#999', marginBottom: '8px' }}>发布时间:{data.createDate}</p>
229
+          <p style={{ fontSize: ' 0.106rem', color: '#999', marginBottom: '8px' }}>发布时间:{moment(data.createDate).format('YYYY-MM-DD HH:mm:ss')}</p>
230
         </div>
230
         </div>
231
       </Card>
231
       </Card>
232
     )
232
     )