Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
W
WebPublic
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
前端开发小组
WebPublic
Commits
4102219b
提交
4102219b
authored
12月 22, 2021
作者:
钟是志
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
增加签章组件
上级
5b66f912
显示空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
19 行增加
和
2 行删除
+19
-2
index.jsx
one_stop_public/AffairButton/AuditButton/Modal/index.jsx
+2
-0
index.jsx
one_stop_public/filePreview/index.jsx
+2
-1
PictureSignature.js
one_stop_public/libs/PictureSignature/PictureSignature.js
+5
-1
UploadCom.js
one_stop_public/libs/UploadCom.js
+2
-0
utils.js
one_stop_public/utils/utils.js
+8
-0
没有找到文件。
one_stop_public/AffairButton/AuditButton/Modal/index.jsx
浏览文件 @
4102219b
...
@@ -6,6 +6,7 @@
...
@@ -6,6 +6,7 @@
import
React
,
{
Component
}
from
'react'
;
import
React
,
{
Component
}
from
'react'
;
import
{
Modal
,
Button
}
from
'antd'
;
import
{
Modal
,
Button
}
from
'antd'
;
import
styles
from
'./index.less'
;
import
styles
from
'./index.less'
;
import
{
getContainer
}
from
"@/webPublic/one_stop_public/utils/utils"
;
export
default
class
WebModal
extends
Component
{
export
default
class
WebModal
extends
Component
{
constructor
(
props
)
{
constructor
(
props
)
{
super
(
props
);
super
(
props
);
...
@@ -48,6 +49,7 @@ export default class WebModal extends Component {
...
@@ -48,6 +49,7 @@ export default class WebModal extends Component {
closable=
{
false
}
closable=
{
false
}
visible=
{
visible
}
visible=
{
visible
}
footer=
{
null
}
footer=
{
null
}
getContainer=
{
getContainer
}
destroyOnClose=
{
true
}
destroyOnClose=
{
true
}
width=
{
!!
width
?
width
:
800
}
width=
{
!!
width
?
width
:
800
}
handleCancel=
{
handleCancel
}
handleCancel=
{
handleCancel
}
...
...
one_stop_public/filePreview/index.jsx
浏览文件 @
4102219b
...
@@ -4,6 +4,7 @@
...
@@ -4,6 +4,7 @@
import
React
,
{
Component
}
from
'react'
;
import
React
,
{
Component
}
from
'react'
;
import
{
Modal
,
Popconfirm
}
from
'antd'
;
import
{
Modal
,
Popconfirm
}
from
'antd'
;
import
{
checkIsImage
}
from
'@/webPublic/one_stop_public/libs/UploadCom'
;
import
{
checkIsImage
}
from
'@/webPublic/one_stop_public/libs/UploadCom'
;
import
{
getContainer
}
from
"@/webPublic/one_stop_public/utils/utils"
;
const
FileViewer
=
CLIENT_TYPE
==
'mobile'
?
null
:
require
(
'react-file-viewer'
);
const
FileViewer
=
CLIENT_TYPE
==
'mobile'
?
null
:
require
(
'react-file-viewer'
);
...
@@ -95,7 +96,7 @@ export default class index extends Component {
...
@@ -95,7 +96,7 @@ export default class index extends Component {
visible=
{
visible
}
visible=
{
visible
}
width=
{
1200
}
width=
{
1200
}
destroyOnClose
destroyOnClose
getContainer=
{
false
}
getContainer=
{
getContainer
}
centered=
{
true
}
centered=
{
true
}
onOk=
{
this
.
handleOk
}
onOk=
{
this
.
handleOk
}
onCancel=
{
this
.
handleCancel
}
>
onCancel=
{
this
.
handleCancel
}
>
...
...
one_stop_public/libs/PictureSignature/PictureSignature.js
浏览文件 @
4102219b
...
@@ -3,6 +3,7 @@ import styles from './styles.less';
...
@@ -3,6 +3,7 @@ import styles from './styles.less';
import
{
Modal
,
Button
,
Icon
}
from
'antd'
;
import
{
Modal
,
Button
,
Icon
}
from
'antd'
;
import
ShowItem
,
{
dragEventList
}
from
'./ShowItem'
;
import
ShowItem
,
{
dragEventList
}
from
'./ShowItem'
;
import
{
apiRequest
}
from
"../../utils/request"
;
import
{
apiRequest
}
from
"../../utils/request"
;
import
{
getContainer
}
from
"../../utils/utils"
;
let
fakeFileInfo
=
{
let
fakeFileInfo
=
{
path
:
'/u/202112/09145847wsz2.jpg'
,
path
:
'/u/202112/09145847wsz2.jpg'
,
...
@@ -18,6 +19,7 @@ export default function PictureSignature({
...
@@ -18,6 +19,7 @@ export default function PictureSignature({
openEdit
=
true
,
openEdit
=
true
,
})
{
})
{
let
fileInfo
=
fakeFileInfo
;
let
fileInfo
=
fakeFileInfo
;
let
imageRef
=
useRef
();
const
[
showModal
,
setShowModal
]
=
useState
(
false
);
const
[
showModal
,
setShowModal
]
=
useState
(
false
);
const
[
otherProps
,
setOtherProps
]
=
useState
({});
const
[
otherProps
,
setOtherProps
]
=
useState
({});
const
[
imageInfo
,
setImageInfo
]
=
useState
({
const
[
imageInfo
,
setImageInfo
]
=
useState
({
...
@@ -94,6 +96,7 @@ export default function PictureSignature({
...
@@ -94,6 +96,7 @@ export default function PictureSignature({
{
fileInfo
&&
fileInfo
?.
path
&&
(
{
fileInfo
&&
fileInfo
?.
path
&&
(
<
img
<
img
className
=
{
styles
.
onePic
}
className
=
{
styles
.
onePic
}
ref
=
{
imageRef
}
src
=
{
basicUrl
+
fileInfo
?.
path
}
src
=
{
basicUrl
+
fileInfo
?.
path
}
alt
=
{
fileInfo
.
name
}
alt
=
{
fileInfo
.
name
}
onClick
=
{
changeShowModal
}
onClick
=
{
changeShowModal
}
...
@@ -105,12 +108,13 @@ export default function PictureSignature({
...
@@ -105,12 +108,13 @@ export default function PictureSignature({
destroyOnClose
=
{
true
}
destroyOnClose
=
{
true
}
maskClosable
=
{
false
}
maskClosable
=
{
false
}
onCancel
=
{
changeShowModal
}
onCancel
=
{
changeShowModal
}
getContainer
=
{
getContainer
}
className
=
{
styles
.
ModalClass
}
className
=
{
styles
.
ModalClass
}
footer
=
{
<
Footer
/>
}
footer
=
{
<
Footer
/>
}
title
=
{
'图片签章'
}
title
=
{
'图片签章'
}
width
=
{
'90vw'
}
width
=
{
'90vw'
}
bodyStyle
=
{{
bodyStyle
=
{{
minHeight
:
'80
vh
'
,
minHeight
:
'80
0px
'
,
overflow
:
'auto'
,
overflow
:
'auto'
,
}}
}}
{...
ModalProps
}
{...
ModalProps
}
...
...
one_stop_public/libs/UploadCom.js
浏览文件 @
4102219b
...
@@ -4,6 +4,7 @@ import {queryApiActionPath} from '../utils/queryConfig';
...
@@ -4,6 +4,7 @@ import {queryApiActionPath} from '../utils/queryConfig';
import
config
from
'@/webPublic/one_stop_public/config'
;
import
config
from
'@/webPublic/one_stop_public/config'
;
import
styles
from
'./style.less'
;
import
styles
from
'./style.less'
;
import
UploadComDiyForQnZy
from
'@/webPublic/one_stop_public/libs/UploadComDiyForQnZy'
;
import
UploadComDiyForQnZy
from
'@/webPublic/one_stop_public/libs/UploadComDiyForQnZy'
;
import
{
getContainer
}
from
"@/webPublic/one_stop_public/utils/utils"
;
export
function
checkIsImage
(
path
)
{
export
function
checkIsImage
(
path
)
{
if
(
!
path
)
{
if
(
!
path
)
{
...
@@ -224,6 +225,7 @@ class UploadCom extends React.Component {
...
@@ -224,6 +225,7 @@ class UploadCom extends React.Component {
<
Modal
<
Modal
visible
=
{
previewVisible
}
visible
=
{
previewVisible
}
footer
=
{
null
}
footer
=
{
null
}
getContainer
=
{
getContainer
}
onCancel
=
{()
=>
this
.
setState
({
previewVisible
:
false
})}
onCancel
=
{()
=>
this
.
setState
({
previewVisible
:
false
})}
width
=
{
'90vw'
}
width
=
{
'90vw'
}
>
>
...
...
one_stop_public/utils/utils.js
浏览文件 @
4102219b
...
@@ -26,3 +26,11 @@ export { isAntDesignProOrDev, isAntDesignPro, isUrl };
...
@@ -26,3 +26,11 @@ export { isAntDesignProOrDev, isAntDesignPro, isUrl };
export
const
dispatch
=
(
type
,
payload
,
callback
)
=>
{
export
const
dispatch
=
(
type
,
payload
,
callback
)
=>
{
window
.
g_app
.
_store
.
dispatch
({
type
,
payload
,
callback
});
window
.
g_app
.
_store
.
dispatch
({
type
,
payload
,
callback
});
};
};
export
const
getContainer
=
()
=>
{
if
(
window
.
location
.
href
.
indexOf
(
'localhost'
)
>
-
1
)
{
return
document
.
body
;
}
else
{
return
window
.
parent
?.
document
?.
body
||
document
.
body
;
}
}
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论