Browse Source

v1.0.24 update

yee 8 years ago
parent
commit
e76085c083

+ 5 - 16
js/component/manageCenter/userManage/orgDesc.jsx

@@ -113,7 +113,8 @@ const OrgCertify = Form.create()(React.createClass({
                     )
                 };
                 this.setState({
-                    authorOption: theArr
+                    authorOption: theArr,
+                    authorList: data.data
                 });
             }.bind(this),
         }).always(function () {
@@ -558,7 +559,7 @@ const OrgCertify = Form.create()(React.createClass({
                                 <Cascader options={provinceSelect()} placeholder="请选择地址" />
                                 )}
                         </FormItem>
-                        <div style={{ display: !window.showAuditStatus ? 'block' : 'none' }}>
+                        <div style={{ display: window.showAuditStatus ? 'none' : 'none' }}>
                             <FormItem
                                 {...formItemLayout}
                                 label="认证状态"
@@ -579,25 +580,13 @@ const OrgCertify = Form.create()(React.createClass({
                                 {...formItemLayout}
                                 label="业务员"
                             >
-                                {getFieldDecorator('aid', {
-                                    initialValue: this.state.aid
-                                })(
-                                    <Select placeholder="选择一个业务员" style={{ width: 200 }}>
-                                        {this.state.authorOption}
-                                    </Select>
-                                    )}
+                                <span>{this.state.authorList ? this.state.authorList[this.state.aid] : ''}</span>
                             </FormItem>
                             <FormItem
                                 {...formItemLayout}
                                 label="客户经理"
                             >
-                                {getFieldDecorator('mid', {
-                                    initialValue: this.state.mid
-                                })(
-                                    <Select placeholder="选择一个客户经理" style={{ width: 200 }}>
-                                        {this.state.authorOption}
-                                    </Select>
-                                    )}
+                                <span>{this.state.authorList ? this.state.authorList[this.state.mid] : ''}</span>
                             </FormItem>
                         </div>
                         <div style={{ display: window.showAuditStatus ? 'block' : 'none' }}>

+ 5 - 16
js/component/manageCenter/userManage/userDesc.jsx

@@ -93,7 +93,8 @@ const UserForm = Form.create()(React.createClass({
                     )
                 };
                 this.setState({
-                    authorOption: theArr
+                    authorOption: theArr,
+                    authorList: data.data
                 });
             }.bind(this),
         }).always(function () {
@@ -291,7 +292,7 @@ const UserForm = Form.create()(React.createClass({
                         <Input />
                         )}
                 </FormItem>
-                <div style={{ display: !window.showAuditStatus ? 'block' : 'none' }}>
+                <div style={{ display: window.showAuditStatus ? 'none' : 'none' }}>
                     <FormItem
                         {...formItemLayout}
                         label="认证状态"
@@ -312,25 +313,13 @@ const UserForm = Form.create()(React.createClass({
                         {...formItemLayout}
                         label="业务员"
                     >
-                        {getFieldDecorator('aid', {
-                            initialValue: this.state.aid
-                        })(
-                            <Select placeholder="选择一个业务员" style={{ width: 200 }}>
-                                {this.state.authorOption}
-                            </Select>
-                            )}
+                        <span>{this.state.authorList ? this.state.authorList[this.state.aid] : ''}</span>
                     </FormItem>
                     <FormItem
                         {...formItemLayout}
                         label="客户经理"
                     >
-                        {getFieldDecorator('mid', {
-                            initialValue: this.state.mid
-                        })(
-                            <Select placeholder="选择一个客户经理" style={{ width: 200 }}>
-                                {this.state.authorOption}
-                            </Select>
-                            )}
+                        <span>{this.state.authorList ? this.state.authorList[this.state.mid] : ''}</span>
                     </FormItem>
                 </div>
                 <div style={{ display: window.showAuditStatus ? 'block' : 'none' }}>

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "afanti",
-  "version": "1.0.23",
+  "version": "1.0.24",
   "description": "",
   "main": "index.js",
   "scripts": {