Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
W
WebPublic
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
前端开发小组
WebPublic
Commits
94b9d0ca
提交
94b9d0ca
authored
8月 19, 2022
作者:
钟是志
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
文件预览地址修改
上级
1a409507
显示空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
26 行增加
和
26 行删除
+26
-26
DraftEditor.js
one_stop_public/App/DraftEditor.js
+4
-3
DraftEditorCom.js
one_stop_public/App/DraftEditorCom.js
+4
-3
MyBlockRender.js
one_stop_public/App/MyBlockRender.js
+4
-3
index.jsx
one_stop_public/Signature/index.jsx
+3
-3
ImgUploadCom.jsx
one_stop_public/libs/ImgUploadCom.jsx
+2
-1
staticInfo.jsx
one_stop_public/tableCompon/Split_Index/staticInfo.jsx
+2
-6
index.jsx
one_stop_public/tableCompon/index.jsx
+7
-7
没有找到文件。
one_stop_public/App/DraftEditor.js
浏览文件 @
94b9d0ca
...
@@ -28,6 +28,7 @@ import {
...
@@ -28,6 +28,7 @@ import {
RichUtils
,
RichUtils
,
}
from
'draft-js'
;
}
from
'draft-js'
;
import
{
getToken
}
from
'@/webPublic/one_stop_public/utils/token'
;
import
{
getToken
}
from
'@/webPublic/one_stop_public/utils/token'
;
import
{
queryFileUrl
}
from
'@/webPublic/one_stop_public/utils/queryConfig'
;
const
FormItem
=
Form
.
Item
;
const
FormItem
=
Form
.
Item
;
function
getBlockStyle
(
block
)
{
function
getBlockStyle
(
block
)
{
...
@@ -507,7 +508,7 @@ class AttrForm extends React.Component {
...
@@ -507,7 +508,7 @@ class AttrForm extends React.Component {
onChangemultiple
=
{
false
}
onChangemultiple
=
{
false
}
style
=
{{
padding
:
0
}}
>
style
=
{{
padding
:
0
}}
>
{
url
?
(
{
url
?
(
<
a
href
=
{
config
.
httpServer
+
url
}
target
=
"_blank"
>
<
a
href
=
{
queryFileUrl
(
url
)
}
target
=
"_blank"
>
{
name
}
{
name
}
<
/a
>
<
/a
>
)
:
(
)
:
(
...
@@ -600,7 +601,7 @@ class VideoForm extends React.Component {
...
@@ -600,7 +601,7 @@ class VideoForm extends React.Component {
onChangemultiple
=
{
false
}
onChangemultiple
=
{
false
}
style
=
{{
padding
:
0
}}
>
style
=
{{
padding
:
0
}}
>
{
url
?
(
{
url
?
(
<
video
src
=
{
config
.
httpServer
+
url
}
controls
=
"controls"
>
<
video
src
=
{
queryFileUrl
(
url
)
}
controls
=
"controls"
>
您的浏览器不支持
video
标签。
您的浏览器不支持
video
标签。
<
/video
>
<
/video
>
)
:
(
)
:
(
...
@@ -692,7 +693,7 @@ class PicForm extends React.Component {
...
@@ -692,7 +693,7 @@ class PicForm extends React.Component {
multiple
=
{
false
}
multiple
=
{
false
}
style
=
{{
padding
:
0
}}
>
style
=
{{
padding
:
0
}}
>
{
url
?
(
{
url
?
(
<
img
src
=
{
config
.
httpServer
+
url
}
style
=
{{
height
:
400
,
width
:
'100%'
}}
/
>
<
img
src
=
{
queryFileUrl
(
url
)
}
style
=
{{
height
:
400
,
width
:
'100%'
}}
/
>
)
:
(
)
:
(
<
p
className
=
"ant-upload-drag-icon"
style
=
{{
marginBottom
:
0
,
height
:
400
}}
>
<
p
className
=
"ant-upload-drag-icon"
style
=
{{
marginBottom
:
0
,
height
:
400
}}
>
<
Icon
type
=
"video"
/>
<
Icon
type
=
"video"
/>
...
...
one_stop_public/App/DraftEditorCom.js
浏览文件 @
94b9d0ca
...
@@ -27,6 +27,7 @@ import {
...
@@ -27,6 +27,7 @@ import {
CompositeDecorator
,
CompositeDecorator
,
RichUtils
,
RichUtils
,
}
from
'draft-js'
;
}
from
'draft-js'
;
import
{
queryFileUrl
}
from
'@/webPublic/one_stop_public/utils/queryConfig'
;
const
FormItem
=
Form
.
Item
;
const
FormItem
=
Form
.
Item
;
function
getBlockStyle
(
block
)
{
function
getBlockStyle
(
block
)
{
...
@@ -510,7 +511,7 @@ class AttrForm extends React.Component {
...
@@ -510,7 +511,7 @@ class AttrForm extends React.Component {
onChangemultiple
=
{
false
}
onChangemultiple
=
{
false
}
style
=
{{
padding
:
0
}}
>
style
=
{{
padding
:
0
}}
>
{
url
?
(
{
url
?
(
<
a
href
=
{
config
.
httpServer
+
url
}
target
=
"_blank"
>
<
a
href
=
{
queryFileUrl
(
url
)
}
target
=
"_blank"
>
{
name
}
{
name
}
<
/a
>
<
/a
>
)
:
(
)
:
(
...
@@ -603,7 +604,7 @@ class VideoForm extends React.Component {
...
@@ -603,7 +604,7 @@ class VideoForm extends React.Component {
}}
}}
style
=
{{
padding
:
0
}}
>
style
=
{{
padding
:
0
}}
>
{
url
?
(
{
url
?
(
<
video
src
=
{
config
.
httpServer
+
url
}
controls
=
"controls"
>
<
video
src
=
{
queryFileUrl
(
url
)
}
controls
=
"controls"
>
您的浏览器不支持
video
标签。
您的浏览器不支持
video
标签。
<
/video
>
<
/video
>
)
:
(
)
:
(
...
@@ -695,7 +696,7 @@ class PicForm extends React.Component {
...
@@ -695,7 +696,7 @@ class PicForm extends React.Component {
multiple
=
{
false
}
multiple
=
{
false
}
style
=
{{
padding
:
0
}}
>
style
=
{{
padding
:
0
}}
>
{
url
?
(
{
url
?
(
<
img
src
=
{
config
.
httpServer
+
url
}
style
=
{{
height
:
400
,
width
:
'100%'
}}
/
>
<
img
src
=
{
queryFileUrl
(
url
)
}
style
=
{{
height
:
400
,
width
:
'100%'
}}
/
>
)
:
(
)
:
(
<
p
className
=
"ant-upload-drag-icon"
style
=
{{
marginBottom
:
0
,
height
:
400
}}
>
<
p
className
=
"ant-upload-drag-icon"
style
=
{{
marginBottom
:
0
,
height
:
400
}}
>
<
Icon
type
=
"video"
/>
<
Icon
type
=
"video"
/>
...
...
one_stop_public/App/MyBlockRender.js
浏览文件 @
94b9d0ca
...
@@ -4,6 +4,7 @@ import table from '../assets/专家经验系统切图/智能报告/table.png';
...
@@ -4,6 +4,7 @@ import table from '../assets/专家经验系统切图/智能报告/table.png';
import
chart
from
'../assets/专家经验系统切图/智能报告/chart.png'
;
import
chart
from
'../assets/专家经验系统切图/智能报告/chart.png'
;
import
React
from
'react'
;
import
React
from
'react'
;
import
{
connect
}
from
'dva'
;
import
{
connect
}
from
'dva'
;
import
{
queryFileUrl
}
from
'@/webPublic/one_stop_public/utils/queryConfig'
;
const
ReactHighcharts
=
config
.
ReactHighcharts
;
const
ReactHighcharts
=
config
.
ReactHighcharts
;
@
connect
(({
Report
,
loading
})
=>
({
@
connect
(({
Report
,
loading
})
=>
({
...
@@ -200,14 +201,14 @@ const AtomicComponent = (props) => {
...
@@ -200,14 +201,14 @@ const AtomicComponent = (props) => {
const
{
src
}
=
entity
.
getData
();
const
{
src
}
=
entity
.
getData
();
return
(
return
(
<
div
>
<
div
>
<
img
src
=
{
config
.
httpServer
+
src
}
style
=
{{
maxWidth
:
'100%'
}}
/
>
<
img
src
=
{
queryFileUrl
(
src
)
}
style
=
{{
maxWidth
:
'100%'
}}
/
>
<
/div
>
<
/div
>
);
);
}
}
if
(
type
===
'attr'
)
{
if
(
type
===
'attr'
)
{
const
{
src
,
name
}
=
entity
.
getData
();
const
{
src
,
name
}
=
entity
.
getData
();
return
(
return
(
<
a
href
=
{
config
.
httpServer
+
src
}
target
=
"_blank"
>
<
a
href
=
{
queryFileUrl
(
src
)
}
target
=
"_blank"
>
{
name
}
{
name
}
<
/a
>
<
/a
>
);
);
...
@@ -215,7 +216,7 @@ const AtomicComponent = (props) => {
...
@@ -215,7 +216,7 @@ const AtomicComponent = (props) => {
const
{
src
}
=
entity
.
getData
();
const
{
src
}
=
entity
.
getData
();
return
(
return
(
<
div
>
<
div
>
<
video
src
=
{
config
.
httpServer
+
src
}
controls
=
"controls"
>
<
video
src
=
{
queryFileUrl
(
src
)
}
controls
=
"controls"
>
您的浏览器不支持
video
标签。
您的浏览器不支持
video
标签。
<
/video
>
<
/video
>
<
/div
>
<
/div
>
...
...
one_stop_public/Signature/index.jsx
浏览文件 @
94b9d0ca
...
@@ -115,7 +115,7 @@ export default class Signature extends Component {
...
@@ -115,7 +115,7 @@ export default class Signature extends Component {
Modal
.
info
({
Modal
.
info
({
title
:
'查看签名'
,
title
:
'查看签名'
,
content
:
<
div
className=
{
styles
.
showDiv
}
>
content
:
<
div
className=
{
styles
.
showDiv
}
>
<
img
src=
{
config
.
httpServer
+
url
}
/>
<
img
src=
{
queryFileUrl
(
url
)
}
/>
</
div
>,
</
div
>,
footer
:
null
,
footer
:
null
,
});
});
...
@@ -138,7 +138,7 @@ export default class Signature extends Component {
...
@@ -138,7 +138,7 @@ export default class Signature extends Component {
className={styles.reSign}>
className={styles.reSign}>
重新签名
重新签名
</Button>*/
}
</Button>*/
}
<
img
src=
{
config
.
httpServer
+
url
}
className=
{
styles
.
littleSign
}
onClick=
{
this
.
showSignImage
}
/>
<
img
src=
{
queryFileUrl
(
url
)
}
className=
{
styles
.
littleSign
}
onClick=
{
this
.
showSignImage
}
/>
</
div
>
</
div
>
);
);
}
else
{
}
else
{
...
@@ -233,7 +233,7 @@ export default class Signature extends Component {
...
@@ -233,7 +233,7 @@ export default class Signature extends Component {
<
this
.
EditIcon
/>
<
this
.
EditIcon
/>
<
img
<
img
onClick=
{
this
.
showSignImage
}
onClick=
{
this
.
showSignImage
}
src=
{
config
.
httpServer
+
url
}
src=
{
queryFileUrl
(
url
)
}
style=
{
{
style=
{
{
height
,
height
,
width
,
width
,
...
...
one_stop_public/libs/ImgUploadCom.jsx
浏览文件 @
94b9d0ca
...
@@ -3,6 +3,7 @@ import {Upload, message} from 'antd';
...
@@ -3,6 +3,7 @@ import {Upload, message} from 'antd';
import
config
from
'@/webPublic/one_stop_public/config'
;
import
config
from
'@/webPublic/one_stop_public/config'
;
import
{
zipImage
}
from
"@/webPublic/zyd_public/utils/handlePhoto"
;
import
{
zipImage
}
from
"@/webPublic/zyd_public/utils/handlePhoto"
;
import
{
getToken
}
from
'@/webPublic/one_stop_public/utils/token'
;
import
{
getToken
}
from
'@/webPublic/one_stop_public/utils/token'
;
import
{
queryFileUrl
}
from
'@/webPublic/one_stop_public/utils/queryConfig'
;
export
default
class
ImgUploadCom
extends
React
.
Component
{
export
default
class
ImgUploadCom
extends
React
.
Component
{
constructor
(
props
)
{
constructor
(
props
)
{
...
@@ -75,7 +76,7 @@ export default class ImgUploadCom extends React.Component {
...
@@ -75,7 +76,7 @@ export default class ImgUploadCom extends React.Component {
style=
{
{
padding
:
0
}
}
style=
{
{
padding
:
0
}
}
>
>
{
url
?
(
{
url
?
(
<
img
src=
{
config
.
httpServer
+
url
}
style=
{
{
<
img
src=
{
queryFileUrl
(
url
)
}
style=
{
{
height
:
json
.
height
,
height
:
json
.
height
,
width
:
json
.
width
,
width
:
json
.
width
,
maxWidth
:
'60vw'
,
// 解决图片在移动端过宽的bug
maxWidth
:
'60vw'
,
// 解决图片在移动端过宽的bug
...
...
one_stop_public/tableCompon/Split_Index/staticInfo.jsx
浏览文件 @
94b9d0ca
...
@@ -5,6 +5,7 @@ import { isNaN } from 'lodash';
...
@@ -5,6 +5,7 @@ import { isNaN } from 'lodash';
import
React
from
'react'
;
import
React
from
'react'
;
import
config
from
'@/webPublic/one_stop_public/config'
;
import
config
from
'@/webPublic/one_stop_public/config'
;
import
{
isJSON
}
from
'@/webPublic/one_stop_public/2022beidianke/isJSON'
;
import
{
isJSON
}
from
'@/webPublic/one_stop_public/2022beidianke/isJSON'
;
import
{
queryFileUrl
}
from
'@/webPublic/one_stop_public/utils/queryConfig'
;
const
codeMessage
=
{
const
codeMessage
=
{
200
:
'服务器成功返回请求的数据。'
,
200
:
'服务器成功返回请求的数据。'
,
...
@@ -184,12 +185,7 @@ const getRender = (com, props) => {
...
@@ -184,12 +185,7 @@ const getRender = (com, props) => {
if
(
com
==
'canvas'
)
return
<
canvas
{
...
props
}
/>;
if
(
com
==
'canvas'
)
return
<
canvas
{
...
props
}
/>;
if
(
com
==
'iframe'
)
return
<
iframe
{
...
props
}
/>;
if
(
com
==
'iframe'
)
return
<
iframe
{
...
props
}
/>;
if
(
com
==
'img'
)
{
if
(
com
==
'img'
)
{
const
src
=
const
src
=
queryFileUrl
(
props
.
src
)
props
.
src
!=
null
?
props
.
src
.
indexOf
(
'http'
)
>
-
1
?
props
.
src
:
config
.
httpServer
+
props
.
src
:
null
;
const
pp
=
{
const
pp
=
{
...
props
,
...
props
,
src
:
src
src
:
src
...
...
one_stop_public/tableCompon/index.jsx
浏览文件 @
94b9d0ca
...
@@ -1858,7 +1858,7 @@ export default class TableCom extends Component {
...
@@ -1858,7 +1858,7 @@ export default class TableCom extends Component {
cm
=
(
cm
=
(
<>
<>
<
img
<
img
src=
{
config
.
httpServer
+
value
}
src=
{
queryFileUrl
(
value
)
}
style=
{
{
style=
{
{
width
:
json
.
width
,
width
:
json
.
width
,
height
:
json
.
height
,
height
:
json
.
height
,
...
@@ -1884,7 +1884,7 @@ export default class TableCom extends Component {
...
@@ -1884,7 +1884,7 @@ export default class TableCom extends Component {
cm
=
(
cm
=
(
<>
<>
<
img
<
img
src=
{
config
.
httpServer
+
value
}
src=
{
queryFileUrl
(
value
)
}
style=
{
{
style=
{
{
width
:
json
.
width
,
width
:
json
.
width
,
height
:
json
.
height
,
height
:
json
.
height
,
...
@@ -2469,14 +2469,14 @@ ${obj[dataColumn.base52]}
...
@@ -2469,14 +2469,14 @@ ${obj[dataColumn.base52]}
}
else
{
}
else
{
cm
=
FilePreview
?
(
cm
=
FilePreview
?
(
<
FilePreview
<
FilePreview
path=
{
config
.
httpServer
+
obj
[
dataColumn
.
base52
]
}
path=
{
queryFileUrl
(
obj
[
dataColumn
.
base52
])
}
pathName=
{
obj
[
dataColumn
.
base52
]
}
pathName=
{
obj
[
dataColumn
.
base52
]
}
width=
{
json
.
width
}
width=
{
json
.
width
}
height=
{
json
.
height
}
height=
{
json
.
height
}
/>
/>
)
:
(
)
:
(
<
img
<
img
src=
{
config
.
httpServer
+
obj
[
dataColumn
.
base52
]
}
src=
{
queryFileUrl
(
obj
[
dataColumn
.
base52
])
}
style=
{
{
style=
{
{
width
:
json
.
width
,
width
:
json
.
width
,
height
:
json
.
height
,
height
:
json
.
height
,
...
@@ -2499,14 +2499,14 @@ ${obj[dataColumn.base52]}
...
@@ -2499,14 +2499,14 @@ ${obj[dataColumn.base52]}
}
else
{
}
else
{
cm
=
FilePreview
?
(
cm
=
FilePreview
?
(
<
FilePreview
<
FilePreview
path=
{
config
.
httpServer
+
obj
[
dataColumn
.
base52
]
}
path=
{
queryFileUrl
(
obj
[
dataColumn
.
base52
])
}
pathName=
{
obj
[
dataColumn
.
base52
]
}
pathName=
{
obj
[
dataColumn
.
base52
]
}
width=
{
json
.
width
}
width=
{
json
.
width
}
height=
{
json
.
height
}
height=
{
json
.
height
}
/>
/>
)
:
(
)
:
(
<
img
<
img
src=
{
config
.
httpServer
+
obj
[
dataColumn
.
base52
]
}
src=
{
queryFileUrl
(
obj
[
dataColumn
.
base52
])
}
style=
{
{
style=
{
{
width
:
json
.
width
,
width
:
json
.
width
,
height
:
json
.
height
,
height
:
json
.
height
,
...
@@ -2525,7 +2525,7 @@ ${obj[dataColumn.base52]}
...
@@ -2525,7 +2525,7 @@ ${obj[dataColumn.base52]}
<
img
<
img
data
-
cell
-
component=
{
'Signature'
}
data
-
cell
-
component=
{
'Signature'
}
data
-
cell
-
base52=
{
dataColumn
.
base52
}
data
-
cell
-
base52=
{
dataColumn
.
base52
}
src=
{
config
.
httpServer
+
obj
[
dataColumn
.
base52
]
}
src=
{
queryFileUrl
(
obj
[
dataColumn
.
base52
])
}
style=
{
{
style=
{
{
marginLeft
:
5
,
marginLeft
:
5
,
width
:
width
:
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论