Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
W
WebPublic
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
前端开发小组
WebPublic
Commits
5fc35c46
提交
5fc35c46
authored
2 年前
作者:
钟是志
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
2.0的页面嵌入到学工中
上级
1ccb9203
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
70 行增加
和
16 行删除
+70
-16
index.js
FormInsertDiy/AffairPage/ApplyPage/index.js
+7
-4
Detail.js
FormInsertDiy/AffairPage/Detail.js
+7
-1
IframeFor2.0.js
FormInsertDiy/AffairPage/IframeFor2.0.js
+1
-1
ActiveMenuComponent.js
FormInsertDiy/ExportComponent/ActiveMenuComponent.js
+11
-10
ActiveMenuComponent2.0.js
FormInsertDiy/ExportComponent/ActiveMenuComponent2.0.js
+44
-0
没有找到文件。
FormInsertDiy/AffairPage/ApplyPage/index.js
浏览文件 @
5fc35c46
...
...
@@ -95,6 +95,7 @@ class AffairPage extends React.Component {
dataBaseId
,
record
,
addFields
,
},
}}
>
详情
...
...
@@ -202,7 +203,7 @@ class AffairPage extends React.Component {
return
false
;
}
const
{
pathname
}
=
this
.
state
;
const
{
dataBaseId
,
workId
}
=
this
.
props
;
const
{
dataBaseId
,
workId
,
iframeHeight
}
=
this
.
props
;
if
(
dataBaseId
||
workId
)
{
this
.
setState
(
{
...
...
@@ -234,10 +235,11 @@ class AffairPage extends React.Component {
this
.
returnList
(
true
);
}
if
(
event
&&
event
.
data
&&
event
.
data
.
indexOf
&&
event
.
data
.
indexOf
(
'iframeHeight'
)
>
-
1
)
{
console
.
log
(
event
.
data
);
let
height
=
Number
(
event
.
data
.
split
(
'-'
)[
1
]);
const
iframe
=
document
.
getElementById
(
'applyIframeId'
);
if
(
iframe
)
{
iframe
.
height
=
height
+
50
;
iframe
.
height
=
height
+
(
iframeHeight
||
50
)
;
}
}
},
...
...
@@ -271,6 +273,7 @@ class AffairPage extends React.Component {
};
render
()
{
const
{
iframeUrlDiy
}
=
this
.
props
;
const
{
workId
,
dataBaseId
,
...
...
@@ -282,9 +285,9 @@ class AffairPage extends React.Component {
if
(
!
workId
||
!
allConfigSetInfo
)
{
return
null
;
}
console
.
log
(
allConfigSetInfo
.
isCloseStart
);
//
console.log(allConfigSetInfo.isCloseStart);
const
url
=
config
.
onestopPC
.
split
(
'/#/'
);
let
iframeUrl
=
`
${
url
[
0
]}
/#/IFrameForApply?id=
${
workId
}
&token=
${
getToken
()}
`
;
let
iframeUrl
=
iframeUrlDiy
||
`
${
url
[
0
]}
/#/IFrameForApply?id=
${
workId
}
&token=
${
getToken
()}
`
;
console
.
log
(
iframeUrl
);
// iframeUrl = `http://localhost:8000/onestop/IFrameForApply?id=${workId}&token=${getToken()}`;
let
buttons
=
this
.
handleButtonSet
({});
...
...
This diff is collapsed.
Click to expand it.
FormInsertDiy/AffairPage/Detail.js
浏览文件 @
5fc35c46
...
...
@@ -45,7 +45,8 @@ export default class Detail extends Component {
(
event
)
=>
{
if
(
event
.
data
&&
event
.
data
.
indexOf
&&
event
.
data
.
indexOf
(
'iframeDetailHeight'
)
>
-
1
)
{
const
height
=
Number
(
event
.
data
.
split
(
'-'
)[
1
]);
document
.
getElementById
(
'detailIframeId'
).
height
=
height
+
50
;
console
.
log
(
height
);
document
.
getElementById
(
'detailIframeId'
).
height
=
height
+
50
;
setTimeout
(()
=>
{
let
d
=
document
.
getElementsByClassName
(
'ant-layout-content'
);
if
(
d
&&
d
.
length
){
...
...
@@ -68,13 +69,18 @@ export default class Detail extends Component {
};
render
()
{
const
{
from
}
=
this
.
props
;
const
{
id
,
showAll
}
=
this
.
state
;
const
url
=
config
.
onestopPC
.
split
(
'/#/'
);
let
showPrint
=
this
.
props
.
location
?.
state
?.
showPrint
;
let
iframeUrl
=
`
${
url
[
0
]}
/#/IframeForDetail?id=
${
id
}
&token=
${
getToken
()}
`
;
if
(
showPrint
)
{
iframeUrl
=
iframeUrl
+
'&showPrint=true'
;
}
if
(
from
===
'onestopApp2.0'
){
iframeUrl
=
config
.
gateWayPort
+
`/portal/#/showAuditIframe?id=
${
id
}
&hasSingle=false&token=
${
getToken
()}
&isPrint=false`
;
}
// iframeUrl = `http://localhost:8000/onestop/IframeForDetail?id=${id}&token=${getToken()}`;
return
(
<
PageHeaderWrapper
title
=
''
>
...
...
This diff is collapsed.
Click to expand it.
FormInsertDiy/AffairPage/IframeFor2.0.js
浏览文件 @
5fc35c46
...
...
@@ -30,7 +30,7 @@ export default class Detail extends Component {
let
id
=
''
;
id
=
getOneStopConfig
(
pathname
);
if
(
!
id
)
{
id
=
getUrlInfo
()?.
id
;
id
=
getUrlInfo
()?.
id
||
this
.
props
.
workId
;
}
let
token
=
getUrlInfo
().
token
;
...
...
This diff is collapsed.
Click to expand it.
FormInsertDiy/ExportComponent/ActiveMenuComponent.js
浏览文件 @
5fc35c46
...
...
@@ -12,21 +12,22 @@ export default function ActiveMenuComponent({
switch
(
component
)
{
case
"CheckRecord"
:
// 查询类应用
return
<
CheckRecord
workId
=
{
appId
}
location
=
{
routerConfig
}
/>
;
return
<
CheckRecord
workId
=
{
appId
}
/>
;
case
"Apply"
:
// 申请类
return
<
Apply
location
=
{
routerConfig
}
workId
=
{
appId
}
/>
;
return
<
Apply
workId
=
{
appId
}
{...
otherProps
}
/>
;
case
"Audit"
:
// 审批类
return
<
Audit
location
=
{
routerConfig
}
workId
=
{
appId
}
/>
;
return
<
Audit
workId
=
{
appId
}
{...
otherProps
}
/>
;
case
"BatchAudit"
:
// 批量审批
return
<
Audit
location
=
{
routerConfig
}
workId
=
{
appId
}
/>
;
return
<
Audit
workId
=
{
appId
}
{...
otherProps
}
/>
;
case
"Detail"
:
// 详情
return
<
Detail
location
=
{
routerConfig
}
{...
otherProps
}
/>
;
return
<
Detail
{...
otherProps
}
{...
otherProps
}
/>
;
default
:
console
.
log
(
component
,
'没有找到此组件'
);
console
.
log
(
component
,
"没有找到此组件"
);
return
<
div
>
暂无此功能
<
/div>
;
}
...
...
This diff is collapsed.
Click to expand it.
FormInsertDiy/ExportComponent/ActiveMenuComponent2.0.js
0 → 100644
浏览文件 @
5fc35c46
import
React
from
"react"
;
import
CheckRecord2
from
"@/webPublic/FormInsertDiy/AffairPage/IframeFor2.0"
;
// 2.0的 查询类 应用 直接iframe 嵌入
import
Apply
from
"@/webPublic/FormInsertDiy/AffairPage/ApplyPage"
;
// 申请
import
BatchAudit
from
"@/webPublic/FormInsertDiy/AffairPage/AuditPage/BatchAudit"
;
// 批量审批
import
Audit
from
"@/webPublic/FormInsertDiy/AffairPage/AuditPage/index.js"
;
// 审批
import
Detail
from
"@/webPublic/FormInsertDiy/AffairPage/Detail"
;
//详情
import
{
getToken
}
from
"@/utils/authority"
;
import
config
from
"@/config/config"
;
export
default
function
ActiveMenuComponent2
({
routerConfig
,
...
otherProps
})
{
const
{
component
=
""
,
appId
}
=
routerConfig
;
switch
(
component
)
{
case
"CheckRecord"
:
// 查询类应用
return
<
CheckRecord2
workId
=
{
appId
}
{...
otherProps
}
/>
;
case
"Apply"
:
// 申请类
return
<
Apply
iframeUrlDiy
=
{
config
.
gateWayPort
+
`/portal/#/showApplyIframe?id=
${
appId
}
&hasSingle=false&token=
${
getToken
()}
`
}
iframeHeight
=
{
200
}
workId
=
{
appId
}
{...
otherProps
}
/>
;
case
"Audit"
:
// 审批类
return
<
Audit
workId
=
{
appId
}
{...
otherProps
}
/>
;
case
"BatchAudit"
:
// 批量审批
return
<
Audit
workId
=
{
appId
}
{...
otherProps
}
/>
;
case
"Detail"
:
// 详情
return
<
Detail
from
=
{
routerConfig
?.
from
}
{...
otherProps
}
/>
;
default
:
console
.
log
(
component
,
"没有找到此组件"
);
return
<
div
>
暂无此功能
<
/div>
;
}
}
This diff is collapsed.
Click to expand it.
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论