Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
W
WebPublic
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
前端开发小组
WebPublic
Commits
840dcb09
提交
840dcb09
authored
3月 18, 2025
作者:
姚鑫国
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
4472 评奖评优模块功能优化
上级
ede21a8e
显示空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
24 行增加
和
23 行删除
+24
-23
index.js
FormInsertDiy/AffairPage/ApplyPage/index.js
+24
-23
没有找到文件。
FormInsertDiy/AffairPage/ApplyPage/index.js
浏览文件 @
840dcb09
...
...
@@ -5,25 +5,25 @@
*
* */
import
{
message
,
Modal
}
from
'antd'
;
import
React
,
{
useEffect
,
useState
}
from
'react'
;
import
{
message
,
Modal
}
from
'antd'
;
import
React
,
{
useEffect
,
useState
}
from
'react'
;
import
*
as
service
from
'../publicApiService'
;
import
*
as
destructionFunc
from
'../destruction'
;
import
{
Link
}
from
'dva/router'
;
import
{
getApplyPage
}
from
'../publicApiService'
;
import
{
getToken
}
from
'@/utils/authority'
;
import
{
Link
}
from
'dva/router'
;
import
{
getApplyPage
}
from
'../publicApiService'
;
import
{
getToken
}
from
'@/utils/authority'
;
import
JustApply
from
'./JustApply'
;
import
PageHeaderWrapper
from
'@/components/PageHeaderWrapper'
;
import
List
from
'./List'
;
import
pageSetting
from
'./pageSetting'
;
import
ButtonDiy
from
'@/baseComponent/ButtonDiy'
;
import
Shell
from
'@/baseComponent/Shell'
;
import
{
deepCopy
,
getIsBei_Dian
}
from
'@/webPublic/zyd_public/utils/utils'
;
import
{
deepCopy
,
getIsBei_Dian
}
from
'@/webPublic/zyd_public/utils/utils'
;
import
ApplyForZyd
from
'@/webPublic/one_stop_public/ForZydApply/index'
;
import
rebackButton
from
'@/webPublic/FormInsertDiy/AffairPage/ApplyPage/ReBackButton'
;
export
default
function
index
(
props
)
{
const
{
state
=
{}
}
=
props
.
location
;
const
{
state
=
{}
}
=
props
.
location
;
const
[
show
,
setShow
]
=
useState
(
false
);
useEffect
(
()
=>
{
...
...
@@ -48,7 +48,7 @@ class AffairPage extends React.Component {
constructor
(
props
)
{
super
(
props
);
let
pathname
=
this
.
props
.
location
.
pathname
;
const
{
workId
}
=
this
.
props
;
const
{
workId
}
=
this
.
props
;
this
.
state
=
{
showIframe
:
false
,
columns
:
[],
...
...
@@ -76,11 +76,11 @@ class AffairPage extends React.Component {
if
(
typeof
response
.
unifiedServicePatternModel
===
'undefined'
)
{
return
false
;
}
if
(
response
.
serviceId
)
{
if
(
response
.
serviceId
)
{
this
.
getServiceDetail
(
response
.
serviceId
);
}
destructionFunc
.
destructionGetDetail
(
response
).
then
((
x
)
=>
{
const
{
addFields
,
tableInfo
,
allConfigSetInfo
}
=
x
;
const
{
addFields
,
tableInfo
,
allConfigSetInfo
}
=
x
;
this
.
setState
(
{
addFields
,
...
...
@@ -96,7 +96,7 @@ class AffairPage extends React.Component {
};
giveDetailColumns
=
()
=>
{
const
{
columns
,
workId
,
dataBaseId
,
addFields
}
=
this
.
state
;
const
{
columns
,
workId
,
dataBaseId
,
addFields
}
=
this
.
state
;
const
process_status
=
columns
.
find
((
x
)
=>
{
return
x
.
name
===
'process_status'
;
});
...
...
@@ -123,7 +123,7 @@ class AffairPage extends React.Component {
addFields
,
},
}}
>
{
record
.
statusName
===
"重新提交"
?
"去提交"
:
"详情"
}
{
[
"reject"
,
"re_apply"
,
"un_audit"
].
includes
(
record
?.
hisTaskListData
?.
formStatusId
)
?
"去提交"
:
"详情"
}
<
/Link
>
);
},
...
...
@@ -136,8 +136,8 @@ class AffairPage extends React.Component {
};
handleButtonSet
=
()
=>
{
const
{
canApply
,
otherButtons
=
[]
}
=
this
.
props
;
const
{
allConfigSetInfo
,
serviceInfo
}
=
this
.
state
;
const
{
canApply
,
otherButtons
=
[]
}
=
this
.
props
;
const
{
allConfigSetInfo
,
serviceInfo
}
=
this
.
state
;
if
(
!
allConfigSetInfo
)
{
return
[];
}
...
...
@@ -158,7 +158,8 @@ class AffairPage extends React.Component {
showIframe
:
true
,
renderIframe
:
true
,
},
()
=>
{},
()
=>
{
},
);
},
},
...
...
@@ -168,8 +169,8 @@ class AffairPage extends React.Component {
};
handleSearchSet
=
()
=>
{
const
{
columns
,
searchCondition
}
=
this
.
state
;
const
{
onResponse
}
=
this
.
props
;
const
{
columns
,
searchCondition
}
=
this
.
state
;
const
{
onResponse
}
=
this
.
props
;
const
pageSearch
=
{
search
:
{
field
:
{},
...
...
@@ -197,7 +198,7 @@ class AffairPage extends React.Component {
};
getColumns
=
()
=>
{
const
{
workId
}
=
this
.
state
;
const
{
workId
}
=
this
.
state
;
service
.
getColumns
(
workId
).
then
((
response
)
=>
{
if
(
response
&&
Array
.
isArray
(
response
))
{
response
=
response
.
filter
((
x
)
=>
{
...
...
@@ -223,8 +224,8 @@ class AffairPage extends React.Component {
message
.
error
(
'您的数据未同步,请联系管理员!'
);
return
false
;
}
const
{
pathname
}
=
this
.
state
;
const
{
dataBaseId
,
workId
,
iframeHeight
}
=
this
.
props
;
const
{
pathname
}
=
this
.
state
;
const
{
dataBaseId
,
workId
,
iframeHeight
}
=
this
.
props
;
if
(
dataBaseId
||
workId
)
{
this
.
setState
(
{
...
...
@@ -280,7 +281,7 @@ class AffairPage extends React.Component {
}
returnList
=
(
needSearchList
=
false
)
=>
{
const
{
workId
}
=
this
.
state
;
const
{
workId
}
=
this
.
state
;
this
.
setState
(
{
renderIframe
:
false
,
...
...
@@ -300,7 +301,7 @@ class AffairPage extends React.Component {
};
render
()
{
const
{
iframeUrlDiy
}
=
this
.
props
;
const
{
iframeUrlDiy
}
=
this
.
props
;
const
{
workId
,
dataBaseId
,
...
...
@@ -380,7 +381,7 @@ class AffairPage extends React.Component {
)
:
(
<
ApplyForZyd
{...
this
.
props
}
returnList
=
{
this
.
returnList
}
id
=
{
workId
===
'1549319936277479424'
?
'1590627747913269248'
:
workId
}
/
>
id
=
{
workId
===
'1549319936277479424'
?
'1590627747913269248'
:
workId
}
/
>
/* 姚鑫国说的 北电科违纪要用另外一个id发起 2022年11月10日 */
)
)
:
null
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论