提交 6092dd5c authored 作者: 徐立's avatar 徐立

合并

上级 a53fa833
...@@ -35,8 +35,7 @@ const config = { ...@@ -35,8 +35,7 @@ const config = {
//mobileHost:"http://zyd.cdzhiyong.com:51335", //mobileHost:"http://zyd.cdzhiyong.com:51335",
mobileUrl:prefix+"/mobile/GHHome", mobileUrl:prefix+"/mobile/GHHome",
mobileHost:"http://localhost:33333", mobileHost:"http://localhost:33333",
request:request,
request:request
} }
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
*/ */
import React, { Component } from 'react'; import React, { Component } from 'react';
import { Modal,Popconfirm } from 'antd'; import { Modal,Popconfirm } from 'antd';
// import FileViewer from 'react-file-viewer'; import FileViewer from 'react-file-viewer';
export default class index extends Component { export default class index extends Component {
constructor(props){ constructor(props){
super(props) super(props)
...@@ -123,13 +123,13 @@ export default class index extends Component { ...@@ -123,13 +123,13 @@ export default class index extends Component {
height:600, height:600,
}} }}
> >
{/* <FileViewer <FileViewer
fileType={type} fileType={type}
filePath={path} filePath={path}
// onError={this.onError} // onError={this.onError}
// errorComponent={Error} // errorComponent={Error}
// unsupportedComponent={Error} // unsupportedComponent={Error}
/> */} />
</div> </div>
} }
......
...@@ -73,7 +73,6 @@ function getBase64(value) { ...@@ -73,7 +73,6 @@ function getBase64(value) {
return value ? base64.encode(new Buffer(value)) : null; return value ? base64.encode(new Buffer(value)) : null;
} }
const codeMessage = { const codeMessage = {
200: '服务器成功返回请求的数据。', 200: '服务器成功返回请求的数据。',
201: '新建或修改数据成功。', 201: '新建或修改数据成功。',
...@@ -1966,6 +1965,12 @@ export default class tableCom extends Component { ...@@ -1966,6 +1965,12 @@ export default class tableCom extends Component {
if (f.path.indexOf('.png') != -1 || f.path.indexOf('.jpg') != -1) { if (f.path.indexOf('.png') != -1 || f.path.indexOf('.jpg') != -1) {
return <img key={index2} style={{ width: 100, height: 100 }} src={queryApiActionPath() + f.path} /> return <img key={index2} style={{ width: 100, height: 100 }} src={queryApiActionPath() + f.path} />
} }
// if(!config.babelMobile &&get === 'web'){
// return <li key={index2}><FilePreview.default
// path={queryApiActionPath() + f.path}
// pathName={f.name}
// /></li>
// }
return <li key={index2}><a target="_blank" key={f.path} href={queryApiActionPath() + f.path}> return <li key={index2}><a target="_blank" key={f.path} href={queryApiActionPath() + f.path}>
{f.name} {f.name}
...@@ -1981,6 +1986,12 @@ export default class tableCom extends Component { ...@@ -1981,6 +1986,12 @@ export default class tableCom extends Component {
if (f.filePath.indexOf('.png') != -1 || f.filePath.indexOf('.jpg') != -1) { if (f.filePath.indexOf('.png') != -1 || f.filePath.indexOf('.jpg') != -1) {
return <img key={index2} style={{ width: 100, height: 100 }} src={queryApiActionPath() + f.filePath} /> return <img key={index2} style={{ width: 100, height: 100 }} src={queryApiActionPath() + f.filePath} />
} }
// if(get === 'web'){
// return <li key={index2}><FilePreview
// path={queryApiActionPath() + f.path}
// pathName={f.name}
// /></li>
// }
return <li key={index2}><a target="_blank" key={f.filePath} href={queryApiActionPath() + f.filePath}> return <li key={index2}><a target="_blank" key={f.filePath} href={queryApiActionPath() + f.filePath}>
{f.fileName} {f.fileName}
</a></li> </a></li>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论