소스 검색

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

魏超 5 년 전
부모
커밋
0435a9d78a

+ 2
- 2
src/pages/activity/ActivityList.jsx 파일 보기

@@ -106,11 +106,11 @@ const toEditGoods = (dynamicId) => () => {
106 106
             <span style={{ color: '#1990FF', cursor: 'pointer' }} onClick={sendOrPublicDynamic.bind(this,row)}>{ row.status === 1 ? '取消发布' : '发布' }<Icon type="close-circle" className={styles.edit} /></span>
107 107
           </AuthButton>
108 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 110
           </AuthButton>
111 111
           <AuthButton name="admin.buildingDynamic.update.put" noRight={null}>
112 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 114
           </AuthButton>
115 115
         </>
116 116
       )

+ 1
- 1
src/pages/building/list/index.jsx 파일 보기

@@ -135,7 +135,7 @@ function CartBody(props) {
135 135
       </p>
136 136
       <p className={Styles.cardItem}>
137 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 139
       </p>
140 140
       <p style={{ margin: '15px 0', position: 'relative', fontSize: '0.106rem' }}>
141 141
       <AuthButton name="admin.building.update.status.put" noRight={null}>

+ 1
- 0
src/pages/channel/recommendClients.jsx 파일 보기

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

+ 1
- 0
src/pages/customer/independentList/index.jsx 파일 보기

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

+ 1
- 1
src/pages/news/list/NewsList.jsx 파일 보기

@@ -226,7 +226,7 @@ function body(props) {
226 226
             <span>收藏数量:{data.saveNum}</span>
227 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 230
         </div>
231 231
       </Card>
232 232
     )