Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
W
WebPublic
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
前端开发小组
WebPublic
Commits
818f8e38
提交
818f8e38
authored
3月 10, 2022
作者:
钟是志
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
iframe页面的Modal 直接从父级获取
上级
d8e149ce
显示空白字符变更
内嵌
并排
正在显示
12 个修改的文件
包含
27 行增加
和
32 行删除
+27
-32
index.jsx
one_stop_public/AffairButton/AuditButton/Modal/index.jsx
+0
-2
index.jsx
one_stop_public/AffairButton/AuditButton/userTable/index.jsx
+1
-5
ZdyTable.jsx
one_stop_public/Table/ZdyTable.jsx
+0
-1
index.jsx
one_stop_public/filePreview/index.jsx
+6
-9
FormulaAll.jsx
one_stop_public/libs/FormulaAll.jsx
+4
-1
PictureSignature.js
one_stop_public/libs/PictureSignature/PictureSignature.js
+0
-1
TableSelect.js
one_stop_public/libs/TableSelect.js
+3
-1
UploadCom.js
one_stop_public/libs/UploadCom.js
+1
-2
UploadComDiyForQnZy.js
one_stop_public/libs/UploadComDiyForQnZy.js
+1
-1
index.tsx
one_stop_public/location/Notification/index.tsx
+3
-1
callbackExamineProcess.js
one_stop_public/models/callbackExamineProcess.js
+0
-2
utils.js
one_stop_public/utils/utils.js
+8
-6
没有找到文件。
one_stop_public/AffairButton/AuditButton/Modal/index.jsx
浏览文件 @
818f8e38
...
@@ -7,7 +7,6 @@ import React, {Component} from 'react';
...
@@ -7,7 +7,6 @@ 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
)
{
...
@@ -55,7 +54,6 @@ export default class WebModal extends Component {
...
@@ -55,7 +54,6 @@ export default class WebModal extends Component {
closable=
{
false
}
closable=
{
false
}
visible=
{
visible
}
visible=
{
visible
}
footer=
{
null
}
footer=
{
null
}
getContainer=
{
getContainer
!==
undefined
?
getContainer
:
undefined
}
destroyOnClose=
{
true
}
destroyOnClose=
{
true
}
width=
{
!!
width
?
width
:
800
}
width=
{
!!
width
?
width
:
800
}
handleCancel=
{
handleCancel
}
handleCancel=
{
handleCancel
}
...
...
one_stop_public/AffairButton/AuditButton/userTable/index.jsx
浏览文件 @
818f8e38
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
* @param { jsx } addition 附件按钮 由外部添加
* @param { jsx } addition 附件按钮 由外部添加
*/
*/
import
React
,
{
Component
}
from
'react'
;
import
React
,
{
Component
}
from
'react'
;
import
{
Input
,
Row
,
Col
,
Modal
,
Checkbox
}
from
'antd'
;
import
{
Input
,
Checkbox
}
from
'antd'
;
import
Btn
from
'../pagesBtn'
;
import
Btn
from
'../pagesBtn'
;
import
MyModal
from
'../Modal'
;
import
MyModal
from
'../Modal'
;
import
styles
from
'./styles.less'
;
import
styles
from
'./styles.less'
;
...
@@ -168,10 +168,6 @@ export default class userButton extends Component {
...
@@ -168,10 +168,6 @@ export default class userButton extends Component {
{
/* <Btn get='2' btnOne={()=>{this.showModal('不同意')}} btnTwo={()=>{this.showModal('驳回')}} btnThree={()=>{this.showModal('通过')}}/> */
}
{
/* <Btn get='2' btnOne={()=>{this.showModal('不同意')}} btnTwo={()=>{this.showModal('驳回')}} btnThree={()=>{this.showModal('通过')}}/> */
}
<
MyModal
<
MyModal
visible=
{
visibleOk
}
visible=
{
visibleOk
}
getContainer=
{
()
=>
{
let
dom
=
document
.
getElementById
(
'btnsModalMountDiv'
);
return
dom
||
document
.
body
;
}
}
title=
{
isSecond
?
'重新发起'
:
'审批'
}
title=
{
isSecond
?
'重新发起'
:
'审批'
}
width=
{
600
}
width=
{
600
}
handleCancel=
{
this
.
handleCancelOk
}
>
handleCancel=
{
this
.
handleCancelOk
}
>
...
...
one_stop_public/Table/ZdyTable.jsx
浏览文件 @
818f8e38
...
@@ -659,7 +659,6 @@ export default class ZdyTable extends Component {
...
@@ -659,7 +659,6 @@ export default class ZdyTable extends Component {
defaultValues
,
defaultValues
,
items
,
items
,
init
,
init
,
modalTitle
,
currentFormKey
,
currentFormKey
,
currentFormTitle
,
currentFormTitle
,
isEdit
,
isEdit
,
...
...
one_stop_public/filePreview/index.jsx
浏览文件 @
818f8e38
...
@@ -2,11 +2,13 @@
...
@@ -2,11 +2,13 @@
* web端文件预览功能
* web端文件预览功能
*/
*/
import
React
,
{
Component
}
from
'react'
;
import
React
,
{
Component
}
from
'react'
;
import
{
Modal
,
Popconfirm
}
from
'antd'
;
import
{
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"
;
import
{
getModal
}
from
'@/webPublic/one_stop_public/utils/utils'
;
const
FileViewer
=
CLIENT_TYPE
===
'mobile'
?
null
:
require
(
'react-file-viewer'
);
const
Modal
=
getModal
();
const
FileViewer
=
CLIENT_TYPE
==
'mobile'
?
null
:
require
(
'react-file-viewer'
);
export
default
class
index
extends
Component
{
export
default
class
index
extends
Component
{
constructor
(
props
)
{
constructor
(
props
)
{
...
@@ -41,6 +43,7 @@ export default class index extends Component {
...
@@ -41,6 +43,7 @@ export default class index extends Component {
render
()
{
render
()
{
let
{
path
,
pathName
,
width
,
height
}
=
this
.
props
;
let
{
path
,
pathName
,
width
,
height
}
=
this
.
props
;
const
{
visible
}
=
this
.
state
;
const
{
visible
}
=
this
.
state
;
let
isShow
=
false
;
let
isShow
=
false
;
let
type
;
let
type
;
...
@@ -99,9 +102,6 @@ export default class index extends Component {
...
@@ -99,9 +102,6 @@ export default class index extends Component {
visible=
{
visible
}
visible=
{
visible
}
width=
{
1200
}
width=
{
1200
}
destroyOnClose
destroyOnClose
getContainer=
{
()
=>
{
return
getContainer
(
this
.
imageDom
.
parentNode
.
parentNode
.
parentNode
);
}
}
centered=
{
true
}
centered=
{
true
}
onOk=
{
this
.
handleOk
}
onOk=
{
this
.
handleOk
}
onCancel=
{
this
.
handleCancel
}
>
onCancel=
{
this
.
handleCancel
}
>
...
@@ -126,9 +126,6 @@ export default class index extends Component {
...
@@ -126,9 +126,6 @@ export default class index extends Component {
<
FileViewer
<
FileViewer
fileType=
{
type
}
fileType=
{
type
}
filePath=
{
path
}
filePath=
{
path
}
// onError=
{
this
.
onError
}
// errorComponent=
{
Error
}
// unsupportedComponent=
{
Error
}
/>
/>
)
}
)
}
</
div
>
</
div
>
...
...
one_stop_public/libs/FormulaAll.jsx
浏览文件 @
818f8e38
import
React
from
'react'
;
import
React
from
'react'
;
import
{
Tree
,
Upload
,
Icon
,
Button
,
message
,
Modal
}
from
'antd'
;
import
{
Button
}
from
'antd'
;
import
'brace/mode/javascript'
;
import
'brace/mode/javascript'
;
import
AceEditor
from
'react-ace'
;
import
AceEditor
from
'react-ace'
;
import
FormulaForm
from
'./FormulaForm'
;
import
FormulaForm
from
'./FormulaForm'
;
import
{
getModal
}
from
'@/webPublic/one_stop_public/utils/utils'
;
const
Modal
=
getModal
();
export
default
class
FormulaAll
extends
React
.
Component
{
export
default
class
FormulaAll
extends
React
.
Component
{
constructor
(
props
)
{
constructor
(
props
)
{
...
...
one_stop_public/libs/PictureSignature/PictureSignature.js
浏览文件 @
818f8e38
...
@@ -208,7 +208,6 @@ export default function PictureSignature({
...
@@ -208,7 +208,6 @@ export default function PictureSignature({
destroyOnClose
=
{
true
}
destroyOnClose
=
{
true
}
maskClosable
=
{
false
}
maskClosable
=
{
false
}
onCancel
=
{
changeShowModal
}
onCancel
=
{
changeShowModal
}
getContainer
=
{
false
}
className
=
{
styles
.
ModalClass
}
className
=
{
styles
.
ModalClass
}
footer
=
{
<
Footer
/>
}
footer
=
{
<
Footer
/>
}
title
=
{
'图片签章'
}
title
=
{
'图片签章'
}
...
...
one_stop_public/libs/TableSelect.js
浏览文件 @
818f8e38
import
React
from
"react"
;
import
React
from
"react"
;
import
{
Button
,
message
,
Modal
,
Table
,
Tag
}
from
"antd"
;
import
{
Button
,
message
,
Table
,
Tag
}
from
"antd"
;
import
FormList
from
"./formList/index"
;
import
FormList
from
"./formList/index"
;
import
{
connect
}
from
"dva"
;
import
{
connect
}
from
"dva"
;
import
{
getModal
}
from
'@/webPublic/one_stop_public/utils/utils'
;
const
Modal
=
getModal
();
@
connect
(({
DataColumn
,
SqlManageEntity
,
loading
})
=>
({
@
connect
(({
DataColumn
,
SqlManageEntity
,
loading
})
=>
({
DataColumn
,
DataColumn
,
...
...
one_stop_public/libs/UploadCom.js
浏览文件 @
818f8e38
// 图片上传组件
// 图片上传组件
import
React
from
'react'
;
import
React
from
'react'
;
import
{
Button
,
Icon
,
message
,
Modal
,
Upload
}
from
'antd'
;
import
{
Button
,
Icon
,
message
,
Upload
}
from
'antd'
;
import
{
queryApiActionPath
}
from
'../utils/queryConfig'
;
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';
import
Viewer
from
'react-viewer'
;
import
Viewer
from
'react-viewer'
;
message
.
config
({
message
.
config
({
...
...
one_stop_public/libs/UploadComDiyForQnZy.js
浏览文件 @
818f8e38
import
React
from
"react"
;
import
React
from
"react"
;
import
{
Button
,
Icon
,
message
,
Modal
,
Upload
}
from
"antd"
;
import
{
Button
,
Icon
,
message
,
Upload
}
from
"antd"
;
import
{
queryApiActionPath
}
from
"../utils/queryConfig"
;
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"
;
...
...
one_stop_public/location/Notification/index.tsx
浏览文件 @
818f8e38
...
@@ -4,7 +4,9 @@
...
@@ -4,7 +4,9 @@
* 通知提醒框二次封装
* 通知提醒框二次封装
*/
*/
import
React
from
'react'
;
import
React
from
'react'
;
import
{
notification
,
Modal
}
from
'antd'
;
import
{
notification
}
from
'antd'
;
import
{
getModal
}
from
'@/webPublic/one_stop_public/utils/utils'
;
const
Modal
=
getModal
();
/**
/**
*
*
...
...
one_stop_public/models/callbackExamineProcess.js
浏览文件 @
818f8e38
import
{
message
,
Modal
}
from
'antd'
;
export
function
callbackSubmitData
(
infoData
)
{
export
function
callbackSubmitData
(
infoData
)
{
console
.
log
(
infoData
);
console
.
log
(
infoData
);
if
(
window
.
callbackSubmitInfoZhiYong
&&
typeof
window
.
callbackSubmitInfoZhiYong
===
'function'
)
{
if
(
window
.
callbackSubmitInfoZhiYong
&&
typeof
window
.
callbackSubmitInfoZhiYong
===
'function'
)
{
...
...
one_stop_public/utils/utils.js
浏览文件 @
818f8e38
/* eslint no-useless-escape:0 import/prefer-default-export:0 */
/* eslint no-useless-escape:0 import/prefer-default-export:0 */
import
{
Modal
}
from
'antd'
;
const
reg
=
/
(((
^https
?
:
(?:\/\/)?)(?:[
-;:&=
\+\$
,
\w]
+@
)?[
A-Za-z0-9.-
]
+
(?:
:
\d
+
)?
|
(?:
www.|
[
-;:&=
\+\$
,
\w]
+@
)[
A-Za-z0-9.-
]
+
)((?:\/[\+
~%
\/
.
\w
-_
]
*
)?\??(?:[
-
\+
=&;%@.
\w
_
]
*
)
#
?(?:[\w]
*
))?)
$/
;
const
reg
=
/
(((
^https
?
:
(?:\/\/)?)(?:[
-;:&=
\+\$
,
\w]
+@
)?[
A-Za-z0-9.-
]
+
(?:
:
\d
+
)?
|
(?:
www.|
[
-;:&=
\+\$
,
\w]
+@
)[
A-Za-z0-9.-
]
+
)((?:\/[\+
~%
\/
.
\w
-_
]
*
)?\??(?:[
-
\+
=&;%@.
\w
_
]
*
)
#
?(?:[\w]
*
))?)
$/
;
const
isUrl
=
(
path
)
=>
reg
.
test
(
path
);
const
isUrl
=
(
path
)
=>
reg
.
test
(
path
);
...
@@ -27,11 +29,11 @@ export const dispatch = (type, payload, callback) => {
...
@@ -27,11 +29,11 @@ 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
=
(
node
)
=>
{
// console.log(node);
export
const
getModal
=
()
=>
{
console
.
log
(
window
.
parent
?.
document
);
if
(
window
?.
parent
?.
iframeParentComponent
?.
Modal
){
if
(
window
.
parent
?.
document
&&
node
){
return
window
?.
parent
?.
iframeParentComponent
?.
Modal
;
return
node
;
}
else
{
return
Modal
;
}
}
return
document
.
body
;
}
}
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论