dengzhiguo 6 years ago
parent
commit
b3ce86f3d0
2 changed files with 6 additions and 4 deletions
  1. 2 2
      js/component/manageCenter/customer/NEW/crm/crm.jsx
  2. 4 2
      js/component/tools.js

+ 2 - 2
js/component/manageCenter/customer/NEW/crm/crm.jsx

@@ -1167,7 +1167,7 @@ const IntentionCustomer = Form.create()(React.createClass({
 														<span style={{color:'red',marginLeft:'5px'}}>*</span>
 								                    </FormItem>
 							                    </div>
-							                    <div className='clearfix'>
+							                    <div className='clearfix'  >
 							                    	<FormItem
 								                        labelCol={{ span:4 }}
 								                        wrapperCol={{ span: 19 }}
@@ -1206,7 +1206,7 @@ const IntentionCustomer = Form.create()(React.createClass({
 									                            <span style={{ marginTop: '10px' ,marginLeft:"20px"}}>{this.state.pojectApplicationUrl ?
 										                            <span className="download-file">
 										                                <a onClick={() => {
-										                                    var newTab = window.open('about:blank'); getPreviews(this.state.detailId, 'techProject', 'organization_application', function (data) { newTab.location.href = data; });
+										                                    var newTab = window.open('about:blank'); getPreviews(this.state.uid, 'techProject', 'organization_application', function (data) { newTab.location.href = data; });
 										                                }}><Icon style={{ fontSize: '16px' }} type="eye-o" /> </a>
 										                            </span>
 										                            : <span><Icon type="exclamation-circle" style={{ color: '#ffbf00', marginRight: '6px' }} />未上传!</span>}

+ 4 - 2
js/component/tools.js

@@ -479,6 +479,7 @@ module.exports = {
                     };
                 };
                 callback('https://view.officeapps.live.com/op/view.aspx?src=' + encodeURIComponent(location.origin + globalConfig.context + "/open/preview?" + data.data));
+                console.log('https://view.officeapps.live.com/op/view.aspx?src=' + (location.origin + globalConfig.context + "/open/preview?" + data.data));
             	console.log('https://view.officeapps.live.com/op/view.aspx?src=' + encodeURIComponent(location.origin + globalConfig.context + "/open/preview?" + data.data));
             }
         });
@@ -500,8 +501,9 @@ module.exports = {
                         message.warning(data.error[0].message);
                     };
                 };
-                callback('https://view.officeapps.live.com/op/view.aspx?src=' + encodeURIComponent(location.origin + globalConfig.context + "/open/customer?" + data.data));
-            	console.log('https://view.officeapps.live.com/op/view.aspx?src=' + encodeURIComponent(location.origin + globalConfig.context + "/open/customer?" + data.data));
+                callback('https://view.officeapps.live.com/op/view.aspx?src=' + encodeURIComponent(location.origin + globalConfig.context + "/open/preview?" + data.data));
+            	console.log('https://view.officeapps.live.com/op/view.aspx?src=' + (location.origin + globalConfig.context + "/open/preview?" + data.data));
+            	console.log('https://view.officeapps.live.com/op/view.aspx?src=' + encodeURIComponent(location.origin + globalConfig.context + "/open/preview?" + data.data));
             }
         });
     },