소스 검색

图片查看权限修改

HW 3 년 전
부모
커밋
e35d1f3fe3

BIN
image/noPermission.jpg


+ 0 - 6
js/component/common/imgList/index.js

@@ -96,12 +96,6 @@ class ImgList extends Component{
         if(!fileList || !Array.isArray(fileList)){
             return null;
         }
-        if(Object.keys(this.props.uploadConfig).length === 0){
-            for(let i of fileList){
-                i.url = 'https://img95.699pic.com/photo/40048/4649.jpg_wh300.jpg';
-                i.response.data = 'https://img95.699pic.com/photo/40048/4649.jpg_wh300.jpg'
-            }
-        }
         return (
             <div className='ImgListComponent'>
                 <div className='ImgList'>

+ 3 - 12
js/component/manageCenter/order/orderNew/approveds.jsx

@@ -85,15 +85,6 @@ const PicturesWall = React.createClass({
       <div style={{ display: "inline-block" }}>
         <ImgList
             domId={this.props.domId}
-            uploadConfig={{
-              action:globalConfig.context + "/api/admin/customer/uploadCustomerImg",
-              data:{ 'sign': '' },
-              multiple:true,
-              listType:"picture-card",
-            }}
-            onChange={(infor)=>{
-              this.handleChange(infor)
-            }}
             fileList={fileList}
         />
       </div>
@@ -2502,11 +2493,11 @@ const IntentionCustomer = Form.create()(
                             span={24}
                             offset={9}
                             style={{ marginTop: "15px" }}
-                          ></Col>
+                          />
                         </Form>
                       </Spin>
                     </div>
-                    <div className="addSave" style={{ marginTop: "15px" }}>
+                    {this.state.approval === 1 && <div className="addSave" style={{ marginTop: "15px" }}>
                       <Button
                         className="cancel"
                         type="primary"
@@ -2533,7 +2524,7 @@ const IntentionCustomer = Form.create()(
                       >
                         取消
                       </Button>
-                    </div>
+                    </div>}
                   </div>
                 </Spin>
               </Form>

+ 25 - 24
js/component/manageCenter/set/userManagementS/newUser.jsx

@@ -175,42 +175,44 @@ const Newuser = Form.create()(React.createClass({
             	name:e
             },
             success: function (data) {
-				       let thedata=data.data;
-				    if (!thedata) {
+                let thedata=data.data;
+                if (!thedata) {
                     if (data.error && data.error.length) {
                         message.warning(data.error[0].message);
                     };
                     thedata = {};
-              };
-					this.setState({
-						customerArr:thedata,
-                    });
-				}.bind(this),
-			}).always(function () {
+                };
+                this.setState({
+                    customerArr:thedata,
+                });
+			}.bind(this),
+		}).always(function () {
             this.setState({
                 loading: false
             });
         }.bind(this));
 	},
 	//上级主管输入框失去焦点是判断客户是否存在
-	selectAuto(value,options){
-		this.setState({
-			superior:value
-		})
-	},
-	blurChange(e){
-		let theType='';
-		let contactLists=this.state.customerArr||[];
-			if (e) {
+	selectAuto(value){
+        let theType='';
+        let contactLists=this.state.customerArr||[];
+        if (value) {
             contactLists.map(function (item) {
-                if (item.name == e.toString()) {
+                if (item.name === value.toString()) {
                     theType = item.id;
                 }
-           });
-   	   }
-		this.setState({
-			theTypes:theType
-		})
+            });
+        }
+        this.setState({
+            theTypes:theType,
+            superior:value
+        })
+        if(!this.state.reviewerName || !this.state.reviewer){
+            this.setState({
+                reviewerName:value,
+                reviewer:theType
+            })
+        }
 	},
 	//值改变时请求客户名称
 	httpChange(e){
@@ -502,7 +504,6 @@ const Newuser = Form.create()(React.createClass({
 											        value={this.state.superior}
 											        onChange={this.httpChange}
 											        filterOption={true}
-											        onBlur={this.blurChange}
 											        onSelect={this.selectAuto}
 											      >
 											        <Input/>

+ 1 - 1
package.json

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