Sfoglia il codice sorgente

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

张延森 5 anni fa
parent
commit
0d85cfb9fd

+ 1
- 0
src/pages/activity/drainage/Detail.jsx Vedi File

@@ -171,6 +171,7 @@ const header = (props) => {
171 171
           <Button style={{ marginLeft: 8 }} onClick={handleReset}>
172 172
             重置
173 173
             </Button>
174
+            <Button type="danger" onClick={() => router.go(-1)} style={{ marginBottom: '18px', marginLeft: '30px' }}>返回</Button>  
174 175
         </Form.Item>
175 176
       </Form>
176 177
       <div>

+ 2
- 2
src/pages/building/list/add/components/modalImage.jsx Vedi File

@@ -198,7 +198,7 @@ class ModalImage extends React.Component {
198 198
                 {getFieldDecorator('buildingArea', {
199 199
                   rules: [{ message: '请填写面积' },
200 200
                           {
201
-                            pattern: new RegExp('^[0-9]*$'),
201
+                            pattern: new RegExp('^[0-9]+\.[0-9]{2}$'),
202 202
                             message: '只允许输入数字',
203 203
                           },
204 204
                   ],
@@ -209,7 +209,7 @@ class ModalImage extends React.Component {
209 209
                   rules: [
210 210
                     // { required: true, message: '请填写套内面积' },
211 211
                           {
212
-                            pattern: new RegExp('^[0-9]*$'),
212
+                            pattern: new RegExp('^[0-9]+\.[0-9]{2}$'),
213 213
                             message: '只允许输入数字',
214 214
                           },
215 215
                   ],

+ 2
- 2
src/pages/building/list/index.jsx Vedi File

@@ -142,7 +142,7 @@ function CartBody(props) {
142 142
           <span className={Styles.title}>录入时间</span>
143 143
           <span >:{moment(data.createDate).format('YYYY-MM-DD HH:mm:ss')}</span>
144 144
         </p>
145
-        <p style={{ margin: '15px 0', position: 'relative', fontSize: '0.106rem' }}>
145
+        <p style={{ margin: '20px 0', position: 'relative', fontSize: '0.106rem' }}>
146 146
           <AuthButton name="admin.building.public" noRight={null}>
147 147
             <span style={{ color: '#FF4A4A' }} onClick={() => pulicAndUnPulic(data)}>
148 148
               {/* 已发布的时候,需要显示取消发布的字样 */}
@@ -152,7 +152,7 @@ function CartBody(props) {
152 152
           </AuthButton>
153 153
           <AuthButton name="admin.building.delete" noRight={null}>
154 154
             <span style={{
155
-              color: '#FF4A4A', position: 'absolute', right: '0',
155
+              color: '#FF4A4A', position: 'absolute', right: '0',bottom:'0'
156 156
             }} onClick={() => deleteBuilding(data)}>
157 157
               删除
158 158
                 <Icon type="rest" style={{ color: '#C0C4CC', marginLeft: '8px' }} />

+ 14
- 3
src/pages/carouselFigure/customImg/edit.jsx Vedi File

@@ -2,6 +2,7 @@ import React, { useState, useEffect } from 'react';
2 2
 import { Input, Menu, Dropdown, Button, Icon, message, Table, Divider, Tag, Select, Form, Alert } from 'antd';
3 3
 import { FormattedMessage } from 'umi-plugin-react/locale';
4 4
 import channels from '../../channel/channelList.less';
5
+import { connect } from 'dva';
5 6
 import BuildSelect from '../../../components/SelectButton/BuildSelect'
6 7
 import { createForm, FieldTypes } from '../../../components/XForm';
7 8
 import Wangedit from '../../../components/Wangedit/Wangedit'
@@ -26,9 +27,16 @@ const handleFormValueChange = (props, changedValues, allValues) => {
26 27
 const XForm = createForm({ onValuesChange: handleFormValueChange })
27 28
 
28 29
 const header = props => {
29
-  
30
+  const {
31
+    currentUser = {
32
+      avatar: '',
33
+      userName: '',
34
+    },
35
+    menu,
36
+  } = props;
37
+
30 38
   const imgId = props.location.query.imgId
31
-  const [ data, setData ] = useState({'imgUrl':'https://estateagents.oss-cn-shanghai.aliyuncs.com/miniapp/upload/images/1574145199853-97feda7895c65be33aa234a7b81b37f.jpg','imgType':'index','imgDesc':'小程序首页分享配图','imgDocument': '小程序名字 精准获客平台'})
39
+  const [ data, setData ] = useState({'imgUrl':'https://estateagents.oss-cn-shanghai.aliyuncs.com/miniapp/upload/images/1574145199853-97feda7895c65be33aa234a7b81b37f.jpg','imgType':'index','imgDesc':'小程序首页分享配图','imgDocument': currentUser.orgName+' 精准获客平台'})
32 40
   if(imgId){
33 41
     useEffect(() => {
34 42
       getData(imgId);
@@ -114,4 +122,7 @@ const header = props => {
114 122
 }
115 123
 
116 124
 const WrappedNormalLoginForm = Form.create({ name: 'header' })(header);
117
-export default WrappedNormalLoginForm
125
+
126
+export default connect(({ user }) => ({
127
+  currentUser: user.currentUser,
128
+}))(WrappedNormalLoginForm);

+ 4
- 3
src/pages/customer/customerlist/customerDetail.jsx Vedi File

@@ -1,5 +1,5 @@
1 1
 import React, { useState, useEffect } from 'react';
2
-import { Form, Table, Pagination } from 'antd';
2
+import { Form, Table, Pagination, Button } from 'antd';
3 3
 import { FormattedMessage } from 'umi-plugin-react/locale';
4 4
 import styles from './style.less';
5 5
 import apis from '../../../services/apis';
@@ -115,6 +115,7 @@ function header(props) {
115 115
   ];
116 116
   return (
117 117
     <>
118
+      <Button type="danger" style={{ marginBottom: '18px' }} onClick={() => router.go(-1)}>返回</Button>
118 119
       <div className={styles.cardBox}>
119 120
         <div className={styles.rightBox}>
120 121
           <p className={styles.tit}>客户信息</p>
@@ -127,7 +128,7 @@ function header(props) {
127 128
             </div>
128 129
             <div className={styles.Centered}>
129 130
               <p>访问时长:{data.duration}秒</p>
130
-              <p>访问次数:{data.visitTimes}</p>
131
+              <p>访问次数:{data.visitTimes}</p>
131 132
               <p className={styles.rightItem}>客户描述:{data.describe}</p>
132 133
               {/* <p>预约人数:{ data.visiteNum }</p> */}
133 134
             </div>
@@ -158,7 +159,7 @@ function header(props) {
158 159
             <img className={styles.touxiangphoto} src={data.consultant && data.consultant.photo} />
159 160
             <p >{data.consultant && data.consultant.userName}</p>
160 161
           </div>
161
-          <div className={styles.right}>
162
+          <div className={styles.rightphone}>
162 163
             {/* <p className={styles.infoItem}>姓名:{ data.consultant && data.consultant.name }</p>
163 164
           <p className={styles.infoItem}>部门:{ data.consultant && data.consultant.department }</p> */}
164 165
             <p className={styles.infoItem}>号码:{data.consultant && data.consultant.phone} </p>

+ 3
- 2
src/pages/customer/customerlist/publicCustomerDetail.jsx Vedi File

@@ -1,5 +1,5 @@
1 1
 import React, { useState, useEffect } from 'react';
2
-import { Form, Table, Pagination } from 'antd';
2
+import { Form, Table, Pagination,Button } from 'antd';
3 3
 import { FormattedMessage } from 'umi-plugin-react/locale';
4 4
 import publicStyle from './publicStyle.less';
5 5
 import apis from '../../../services/apis';
@@ -117,6 +117,7 @@ function onChange(number) {
117 117
 
118 118
   return (
119 119
     <>
120
+    <Button type="danger" onClick={() => router.go(-1)} style={{ marginBottom: '18px' }}>返回</Button>
120 121
       <div className={publicStyle.cardBox}>
121 122
      {/* { console.log("data:",data),console.log("data:",dataConsultant)} */}
122 123
         <div className={publicStyle.rightBox}>
@@ -129,7 +130,7 @@ function onChange(number) {
129 130
           </div>
130 131
           <div className={publicStyle.Centered}>
131 132
           <p>访问时长:{ data.duration }秒</p>
132
-          <p>访问次数:{ data.visitTimes }</p>
133
+          <p>访问次数:{ data.visitTimes }</p>
133 134
           <p className={publicStyle.rightItem}>来访渠道:{data.personFrom}</p>
134 135
           {/* <p>预约人数:{ data.visiteNum }</p> */}
135 136
           </div>

+ 6
- 0
src/pages/customer/customerlist/style.less Vedi File

@@ -176,6 +176,12 @@
176 176
     // top:108px;
177 177
     // left:170px;
178 178
   }
179
+  .rightphone{
180
+  
181
+    position: absolute;
182
+    top:108px;
183
+    left:170px;
184
+  }
179 185
   .left{
180 186
     position: absolute;
181 187
     top:108px;

+ 2
- 1
src/pages/indexEcharts/newUsers.jsx Vedi File

@@ -4,7 +4,7 @@ import { Row, Col, Menu, Dropdown } from 'antd';
4 4
 import NewUsers from './components/NewUsers'
5 5
 // import XForm, { FieldTypes } from '../../components/XForm';
6 6
 import moment from 'moment';
7
-
7
+import router from 'umi/router';
8 8
 import EChart from '../../components/EchartsTest/EChart';
9 9
 import request from '../../utils/request';
10 10
 import apis from '../../services/apis';
@@ -101,6 +101,7 @@ const header = props => {
101 101
       <Button type="primary" htmlType="submit" style={{ marginLeft: '30px' }} onClick={datalist}>
102 102
         搜索
103 103
           </Button>
104
+          <Button type="danger" onClick={() => router.go(-1)} style={{ marginBottom: '18px', marginLeft: '30px' }}>返回</Button>  
104 105
       <div>
105 106
         <NewUsers BuildSelectHide={true} endDate={endDate} startDate={startDate}  dataZoom={true} ></NewUsers>
106 107
         {/* */}

+ 2
- 1
src/pages/indexEcharts/userSource.jsx Vedi File

@@ -7,7 +7,7 @@ import moment from 'moment';
7 7
 import EChart from '../../components/EchartsTest/EChart';
8 8
 import request from '../../utils/request';
9 9
 import apis from '../../services/apis';
10
-
10
+import router from 'umi/router';
11 11
 
12 12
 
13 13
 const { RangePicker } = DatePicker;
@@ -159,6 +159,7 @@ class Header extends React.Component {
159 159
         <Button type="primary" htmlType="submit" style={{ marginLeft: '30px' }} onClick={() => this.datalist()}>
160 160
           查询
161 161
         </Button>
162
+        <Button type="danger" onClick={() => router.go(-1)} style={{ marginBottom: '18px', marginLeft: '30px' }}>返回</Button>
162 163
         <div>
163 164
   
164 165
           <div style={{ display: 'flex' }}>

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

@@ -226,7 +226,7 @@ function body(props) {
226 226
           </p>
227 227
 
228 228
           <p style={{ fontSize: ' 0.106rem', color: '#555', marginBottom: '8px', display: 'flex', alignItems: 'center' }}>
229
-            <span style={{ display: 'inline-block', width: '50%', overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap' }}>点赞数量:{data.favorNum}</span>
229
+            {/* <span style={{ display: 'inline-block', width: '50%', overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap' }}>点赞数量:{data.favorNum}</span> */}
230 230
             <span>收藏数量:{data.saveNum}</span>
231 231
           </p>
232 232
 

+ 2
- 2
src/pages/style/GoodsList.less Vedi File

@@ -25,8 +25,8 @@
25 25
 }
26 26
 
27 27
 .propaganda {
28
-  width: 150px;
29
-  height: 37.6px;
28
+  width: 240px;
29
+  height: 60px;
30 30
 }
31 31
 
32 32
 .ant-table-column-title {