dingxin 5 år sedan
förälder
incheckning
b7081f8394

+ 1
- 0
src/components/SelectButton/BuildSelect.jsx Visa fil

@@ -38,6 +38,7 @@ const BuildingSelect = (props) => {
38 38
         // 默认选中第一个
39 39
         if ((!preProps || !preProps.one) && props.one === 'true') {
40 40
           setValue(data.records[0].buildingId)
41
+          props.onChange(data.records[0].buildingId)
41 42
         }
42 43
     })
43 44
   }

+ 5
- 5
src/pages/activity/ActivityList.jsx Visa fil

@@ -100,17 +100,17 @@ const toEditGoods = (dynamicId) => () => {
100 100
       render: (x,row) => (
101 101
         <>
102 102
           <AuthButton name="admin.SignList.get" noRight={null}>
103
-            <span style={{ color: '#1990FF'}} onClick={getSignList.bind(this, row.dynamicId)}>{row.isEnlist == '1' || row.isEnlist == '2' ? "报名记录" : ""}<Icon type="snippets" className={styles.shoppingCart} /></span>
103
+            <span style={{ color: '#1990FF', cursor: 'pointer'}} onClick={getSignList.bind(this, row.dynamicId)}>{row.isEnlist == '1' || row.isEnlist == '2' ? "报名记录" : ""}<Icon type="snippets" className={styles.shoppingCart} /></span>
104 104
           </AuthButton>
105 105
           <AuthButton name="admin.buildingDynamic.send.dynamicId.put" noRight={null}>
106
-            <span style={{ color: '#1990FF' }} 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 107
           </AuthButton>
108 108
           <AuthButton name="admin.buildingDynamic.finish.put" noRight={null}>
109
-            <span style={{ color: '#1990FF' }} onClick={finishDynamic.bind(this,row)}>结束活动<Icon type="poweroff" className={styles.edit} /></span>
109
+            <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
-            <span style={{ color: '#1990FF', marginRight: '20px' }} onClick={topDynamic(row)}>{ row.weight === 1 ? '取消置顶' : '置顶' }<Icon type="vertical-align-top" className={styles.edit} /></span>
113
-            <span style={{ color: '#FF925C' }} onClick={toEditGoods(row.dynamicId)}>编辑<Icon type="form" 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>
114 114
           </AuthButton>
115 115
         </>
116 116
       )

+ 4
- 4
src/pages/news/list/NewsList.jsx Visa fil

@@ -167,23 +167,23 @@ function body(props) {
167 167
         bodyStyle={{ padding: '10px 20px' }}
168 168
       >
169 169
         <AuthButton name="admin.taNews.id.put" noRight={null}>
170
-          <span style={{ position: 'absolute', right: '20px', top: '20px', fontSize: ' 0.11rem', color: '#FF7E48' }} onClick={toEditList(data.newsId)}>
170
+          <span style={{ position: 'absolute', right: '20px', top: '20px', fontSize: ' 0.11rem', color: '#FF7E48', cursor: 'pointer' }} onClick={toEditList(data.newsId)}>
171 171
             编辑
172 172
                   <Icon type="form" style={{ color: '#C0C4CC', marginLeft: '10px' }} />
173 173
           </span>
174 174
           {data.newsStatus === 0 ?
175
-            <span style={{ position: 'absolute', left: '280px', bottom: ' 0.11rem', fontSize: ' 0.11rem', color: '#FF7E48',zIndex:1 }} onClick={cancelRelease.bind(this, data.newsId, 1, data.buildingId, data.newsType.newsTypeId)}>
175
+            <span style={{ position: 'absolute', left: '280px', bottom: ' 0.11rem', fontSize: ' 0.11rem', color: '#FF7E48',zIndex:1, cursor: 'pointer' }} onClick={cancelRelease.bind(this, data.newsId, 1, data.buildingId, data.newsType.newsTypeId)}>
176 176
               取消发布
177 177
                 <Icon type="close-circle" style={{ color: '#C0C4CC', marginLeft: '8px' }} />
178 178
             </span> :
179
-            <span style={{ position: 'absolute', left: '280px', bottom: ' 0.11rem', fontSize: ' 0.11rem', color: '#FF7E48',zIndex:1 }} onClick={cancelRelease.bind(this, data.newsId, 0, data.buildingId, data.newsType.newsTypeId)}>
179
+            <span style={{ position: 'absolute', left: '280px', bottom: ' 0.11rem', fontSize: ' 0.11rem', color: '#FF7E48',zIndex:1, cursor: 'pointer' }} onClick={cancelRelease.bind(this, data.newsId, 0, data.buildingId, data.newsType.newsTypeId)}>
180 180
               发布
181 181
                 <Icon type="form" style={{ color: '#C0C4CC', marginLeft: '8px' }} />
182 182
             </span>
183 183
           }
184 184
         </AuthButton>
185 185
         <AuthButton name="admin.taNews.id.delete" noRight={null}>
186
-            <span style={{ position: 'absolute', right: '20px', bottom: ' 0.11rem', fontSize: ' 0.11rem', color: '#FF7E48' }} onClick={changeNewsListStatus(data.newsId)}>
186
+            <span style={{ position: 'absolute', right: '20px', bottom: ' 0.11rem', fontSize: ' 0.11rem', color: '#FF7E48', cursor: 'pointer' }} onClick={changeNewsListStatus(data.newsId)}>
187 187
                   删除
188 188
                 <Icon type="rest" style={{ color: '#C0C4CC', marginLeft: '8px' }} />
189 189
             </span>

+ 2
- 2
src/pages/news/type/NewsType.jsx Visa fil

@@ -100,12 +100,12 @@ function header(props) {
100 100
       render: (x, row) => (
101 101
         <>
102 102
           <AuthButton name="admin.taNewsType.id.delete" noRight={null}>
103
-            <span style={{ color: '#EF273A', marginRight: '20px' }} onClick={changeNewsStatus(row, row.newsTypeId)}>
103
+            <span style={{ color: '#EF273A', marginRight: '20px', cursor: 'pointer' }} onClick={changeNewsStatus(row, row.newsTypeId)}>
104 104
               {row.status == 1 ? '删除' : '上架'}<Icon type="shopping-cart" className={styles.shoppingCart} />
105 105
             </span>
106 106
           </AuthButton>
107 107
           <AuthButton name="admin.taNewsType.id.put" noRight={null}>
108
-            <span style={{ color: '#FF925C' }} onClick={toEditNews(row.newsTypeId)}>
108
+            <span style={{ color: '#FF925C', cursor: 'pointer' }} onClick={toEditNews(row.newsTypeId)}>
109 109
               编辑<Icon type="form" className={styles.edit} />
110 110
             </span>
111 111
           </AuthButton>

+ 2
- 2
src/pages/staff/list/RoleList.jsx Visa fil

@@ -109,10 +109,10 @@ const columns = [
109 109
     align: 'center',
110 110
 
111 111
     render: (text, record) => <>
112
-      <span style={{ color: '#1990FF', marginRight: '20px' }} onClick={() => stop(record.roleId)}>{ record.status === 1 ? '停用' : '启用' }
112
+      <span style={{ color: '#1990FF', marginRight: '20px', cursor: 'pointer' }} onClick={() => stop(record.roleId)}>{ record.status === 1 ? '停用' : '启用' }
113 113
       <Icon type="stop" className={styles.shoppingCart} style={{ fontSize: 14 }}/>
114 114
       </span>
115
-      <span style={{ color: '#FF925C' }} onClick={() => toEditRole(record.roleId)} >编辑
115
+      <span style={{ color: '#FF925C', cursor: 'pointer' }} onClick={() => toEditRole(record.roleId)} >编辑
116 116
       <Icon type="form" className={styles.edit} />
117 117
       </span>
118 118
     </>,

+ 10
- 0
src/pages/staff/list/StaffList.jsx Visa fil

@@ -171,6 +171,16 @@ const header = (props) => {
171 171
           )}
172 172
         </Form.Item>
173 173
 
174
+        <Form.Item>
175
+
176
+          {getFieldDecorator('isConsultant')(
177
+            <Select style={{ width: '180px' }} placeholder="是否置业顾问" >
178
+              <Option value="0">非置业顾问</Option>
179
+              <Option value="1">置业顾问</Option>
180
+            </Select>,
181
+          )}
182
+        </Form.Item>
183
+
174 184
         <Form.Item>
175 185
           <Button type="primary" htmlType="submit" className={styles.searchBtn}>
176 186
             搜索

+ 1
- 1
src/pages/system/intention.jsx Visa fil

@@ -57,7 +57,7 @@ const Edit = (props) => {
57 57
     <>
58 58
       <Row>
59 59
         <Col span={6}>
60
-          <BuildSelect onChange={changBuilding} />
60
+          <BuildSelect onChange={changBuilding} one="true" />
61 61
         </Col>
62 62
         <Col span={5} style={{ lineHeight: '30px' }}>
63 63
           用户操作