Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
W
WebPublic
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
前端开发小组
WebPublic
Commits
262a3730
提交
262a3730
authored
10月 31, 2022
作者:
钟是志
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
30305 所有申请应用--学生填错后,在审核前可以撤回一次
上级
5fbdea9d
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
54 行增加
和
59 行删除
+54
-59
ReBackButton.js
FormInsertDiy/AffairPage/ApplyPage/ReBackButton.js
+2
-2
index.js
FormInsertDiy/AffairPage/ApplyPage/index.js
+38
-57
publicApiService.js
FormInsertDiy/AffairPage/publicApiService.js
+14
-0
没有找到文件。
FormInsertDiy/AffairPage/ApplyPage/ReBackButton.js
浏览文件 @
262a3730
...
@@ -2,9 +2,9 @@ import { getIsBei_Dian } from '@/webPublic/zyd_public/utils/getSchoolType';
...
@@ -2,9 +2,9 @@ import { getIsBei_Dian } from '@/webPublic/zyd_public/utils/getSchoolType';
import
{
message
,
Modal
}
from
'antd'
;
import
{
message
,
Modal
}
from
'antd'
;
import
{
uaaRequest
}
from
'@/webPublic/one_stop_public/utils/request'
;
import
{
uaaRequest
}
from
'@/webPublic/one_stop_public/utils/request'
;
export
default
function
rebackButton
(){
export
default
function
rebackButton
(
serviceInfo
){
let
reBack
=
[];
let
reBack
=
[];
if
(
getIsBei_Dian
())
{
if
(
getIsBei_Dian
()
&&
serviceInfo
.
isCanRecall
)
{
reBack
.
push
({
reBack
.
push
({
type
:
'chehui'
,
type
:
'chehui'
,
name
:
'撤回'
,
name
:
'撤回'
,
...
...
FormInsertDiy/AffairPage/ApplyPage/index.js
浏览文件 @
262a3730
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
* */
* */
import
{
message
,
Modal
}
from
'antd'
;
import
{
message
,
Modal
}
from
'antd'
;
import
React
,
{
useEffect
,
useState
,
}
from
'react'
;
import
React
,
{
useEffect
,
useState
}
from
'react'
;
import
*
as
service
from
'../publicApiService'
;
import
*
as
service
from
'../publicApiService'
;
import
*
as
destructionFunc
from
'../destruction'
;
import
*
as
destructionFunc
from
'../destruction'
;
import
{
Link
}
from
'dva/router'
;
import
{
Link
}
from
'dva/router'
;
...
@@ -23,17 +23,18 @@ import ApplyForZyd from '@/webPublic/one_stop_public/ForZydApply/index';
...
@@ -23,17 +23,18 @@ import ApplyForZyd from '@/webPublic/one_stop_public/ForZydApply/index';
import
{
uaaRequest
}
from
'@/webPublic/one_stop_public/utils/request'
;
import
{
uaaRequest
}
from
'@/webPublic/one_stop_public/utils/request'
;
import
rebackButton
from
'@/webPublic/FormInsertDiy/AffairPage/ApplyPage/ReBackButton'
;
import
rebackButton
from
'@/webPublic/FormInsertDiy/AffairPage/ApplyPage/ReBackButton'
;
export
default
function
index
(
props
)
{
export
default
function
index
(
props
)
{
const
{
state
=
{}
}
=
props
.
location
;
const
{
state
=
{}
}
=
props
.
location
;
const
[
show
,
setShow
]
=
useState
(
false
);
const
[
show
,
setShow
]
=
useState
(
false
);
useEffect
(()
=>
{
useEffect
(
()
=>
{
setShow
(
false
);
setShow
(
false
);
setTimeout
(()
=>
{
setTimeout
(()
=>
{
setShow
(
true
);
setShow
(
true
);
},
100
);
},
100
);
},
},
[
props
.
location
.
pathname
]);
[
props
.
location
.
pathname
],
);
if
(
!
show
)
{
if
(
!
show
)
{
return
null
;
return
null
;
}
}
...
@@ -48,10 +49,7 @@ class AffairPage extends React.Component {
...
@@ -48,10 +49,7 @@ class AffairPage extends React.Component {
constructor
(
props
)
{
constructor
(
props
)
{
super
(
props
);
super
(
props
);
let
pathname
=
this
.
props
.
location
.
pathname
;
let
pathname
=
this
.
props
.
location
.
pathname
;
const
{
const
{
dataBaseId
,
workId
}
=
this
.
props
;
dataBaseId
,
workId
}
=
this
.
props
;
this
.
state
=
{
this
.
state
=
{
showIframe
:
false
,
showIframe
:
false
,
columns
:
[],
columns
:
[],
...
@@ -62,22 +60,29 @@ class AffairPage extends React.Component {
...
@@ -62,22 +60,29 @@ class AffairPage extends React.Component {
addFields
:
[],
// 新增时填写的字段。
addFields
:
[],
// 新增时填写的字段。
renderIframe
:
false
,
renderIframe
:
false
,
allConfigSetInfo
:
null
,
allConfigSetInfo
:
null
,
serviceInfo
:
null
,
};
};
}
}
getServiceDetail
=
(
serviceId
)
=>
{
service
.
getServiceDetail
(
serviceId
).
then
((
res
)
=>
{
this
.
setState
({
serviceInfo
:
res
,
});
});
};
getFormDetail
=
(
workId
)
=>
{
getFormDetail
=
(
workId
)
=>
{
service
.
getFormDetail
(
workId
)
service
.
getFormDetail
(
workId
).
then
((
response
)
=>
{
.
then
((
response
)
=>
{
console
.
log
(
response
);
if
(
typeof
response
.
unifiedServicePatternModel
===
'undefined'
)
{
if
(
typeof
response
.
unifiedServicePatternModel
===
'undefined'
)
{
return
false
;
return
false
;
}
}
destructionFunc
.
destructionGetDetail
(
response
)
if
(
response
.
serviceId
){
.
then
((
x
)
=>
{
this
.
getServiceDetail
(
response
.
serviceId
);
const
{
}
addFields
,
destructionFunc
.
destructionGetDetail
(
response
).
then
((
x
)
=>
{
tableInfo
,
const
{
addFields
,
tableInfo
,
allConfigSetInfo
}
=
x
;
allConfigSetInfo
}
=
x
;
this
.
setState
(
this
.
setState
(
{
{
addFields
,
addFields
,
...
@@ -93,12 +98,7 @@ class AffairPage extends React.Component {
...
@@ -93,12 +98,7 @@ class AffairPage extends React.Component {
};
};
giveDetailColumns
=
()
=>
{
giveDetailColumns
=
()
=>
{
const
{
const
{
columns
,
workId
,
dataBaseId
,
addFields
}
=
this
.
state
;
columns
,
workId
,
dataBaseId
,
addFields
}
=
this
.
state
;
const
process_status
=
columns
.
find
((
x
)
=>
{
const
process_status
=
columns
.
find
((
x
)
=>
{
return
x
.
name
===
'process_status'
;
return
x
.
name
===
'process_status'
;
});
});
...
@@ -123,7 +123,6 @@ class AffairPage extends React.Component {
...
@@ -123,7 +123,6 @@ class AffairPage extends React.Component {
dataBaseId
,
dataBaseId
,
record
,
record
,
addFields
,
addFields
,
},
},
}}
>
}}
>
详情
详情
...
@@ -133,18 +132,14 @@ class AffairPage extends React.Component {
...
@@ -133,18 +132,14 @@ class AffairPage extends React.Component {
});
});
}
}
this
.
setState
({
this
.
setState
({
columns
,
columns
,
});
});
};
};
handleButtonSet
=
()
=>
{
handleButtonSet
=
()
=>
{
const
{
const
{
canApply
,
otherButtons
=
[]
}
=
this
.
props
;
canApply
,
const
{
allConfigSetInfo
,
serviceInfo
}
=
this
.
state
;
otherButtons
=
[],
}
=
this
.
props
;
const
{
allConfigSetInfo
}
=
this
.
state
;
if
(
!
allConfigSetInfo
)
{
if
(
!
allConfigSetInfo
)
{
return
[];
return
[];
}
}
...
@@ -154,7 +149,6 @@ class AffairPage extends React.Component {
...
@@ -154,7 +149,6 @@ class AffairPage extends React.Component {
return
[...
otherButtons
];
return
[...
otherButtons
];
}
}
return
[
return
[
{
{
type
:
'add'
,
type
:
'add'
,
...
@@ -166,21 +160,17 @@ class AffairPage extends React.Component {
...
@@ -166,21 +160,17 @@ class AffairPage extends React.Component {
showIframe
:
true
,
showIframe
:
true
,
renderIframe
:
true
,
renderIframe
:
true
,
},
},
()
=>
{
()
=>
{},
},
);
);
},
},
},
},
...
rebackButton
(
),
...
rebackButton
(
serviceInfo
),
...
otherButtons
,
...
otherButtons
,
];
];
};
};
handleSearchSet
=
()
=>
{
handleSearchSet
=
()
=>
{
const
{
const
{
columns
,
searchCondition
}
=
this
.
state
;
columns
,
searchCondition
}
=
this
.
state
;
const
{
onResponse
}
=
this
.
props
;
const
{
onResponse
}
=
this
.
props
;
const
pageSearch
=
{
const
pageSearch
=
{
search
:
{
search
:
{
...
@@ -195,11 +185,11 @@ class AffairPage extends React.Component {
...
@@ -195,11 +185,11 @@ class AffairPage extends React.Component {
condition
:
searchCondition
,
condition
:
searchCondition
,
nameSpan
:
{
nameSpan
:
{
big
:
8
,
big
:
8
,
small
:
9
small
:
9
,
},
},
fileSpan
:
{
fileSpan
:
{
big
:
4
,
big
:
4
,
small
:
4
small
:
4
,
},
},
},
},
tableRowKey
:
'id'
,
tableRowKey
:
'id'
,
...
@@ -210,8 +200,7 @@ class AffairPage extends React.Component {
...
@@ -210,8 +200,7 @@ class AffairPage extends React.Component {
getColumns
=
()
=>
{
getColumns
=
()
=>
{
const
{
workId
}
=
this
.
state
;
const
{
workId
}
=
this
.
state
;
service
.
getColumns
(
workId
)
service
.
getColumns
(
workId
).
then
((
response
)
=>
{
.
then
((
response
)
=>
{
if
(
response
&&
Array
.
isArray
(
response
))
{
if
(
response
&&
Array
.
isArray
(
response
))
{
response
=
response
.
filter
((
x
)
=>
{
response
=
response
.
filter
((
x
)
=>
{
return
x
.
title
!==
'流程进度'
;
return
x
.
title
!==
'流程进度'
;
...
@@ -231,18 +220,13 @@ class AffairPage extends React.Component {
...
@@ -231,18 +220,13 @@ class AffairPage extends React.Component {
});
});
};
};
initData
=
()
=>
{
initData
=
()
=>
{
if
(
!
getToken
())
{
if
(
!
getToken
())
{
message
.
error
(
'您的数据未同步,请联系管理员!'
);
message
.
error
(
'您的数据未同步,请联系管理员!'
);
return
false
;
return
false
;
}
}
const
{
pathname
}
=
this
.
state
;
const
{
pathname
}
=
this
.
state
;
const
{
const
{
dataBaseId
,
workId
,
iframeHeight
}
=
this
.
props
;
dataBaseId
,
workId
,
iframeHeight
}
=
this
.
props
;
if
(
dataBaseId
||
workId
)
{
if
(
dataBaseId
||
workId
)
{
this
.
setState
(
this
.
setState
(
{
{
...
@@ -254,8 +238,7 @@ class AffairPage extends React.Component {
...
@@ -254,8 +238,7 @@ class AffairPage extends React.Component {
},
},
);
);
}
else
{
}
else
{
service
.
getId
(
pathname
)
service
.
getId
(
pathname
).
then
((
x
)
=>
{
.
then
((
x
)
=>
{
this
.
setState
(
this
.
setState
(
{
{
workId
:
x
.
workId
,
workId
:
x
.
workId
,
...
@@ -383,7 +366,7 @@ class AffairPage extends React.Component {
...
@@ -383,7 +366,7 @@ class AffairPage extends React.Component {
<
/div
>
<
/div
>
<
/Shell
>
<
/Shell
>
{
renderIframe
?
(
{
renderIframe
?
(
iframeUrlDiy
?
iframeUrlDiy
?
(
<
iframe
<
iframe
src
=
{
iframeUrlDiy
}
src
=
{
iframeUrlDiy
}
frameBorder
=
{
0
}
frameBorder
=
{
0
}
...
@@ -400,12 +383,10 @@ class AffairPage extends React.Component {
...
@@ -400,12 +383,10 @@ class AffairPage extends React.Component {
overflowY
:
'hidden'
,
overflowY
:
'hidden'
,
backgroundColor
:
'#fff'
,
backgroundColor
:
'#fff'
,
}}
}}
/>
:
<
ApplyForZyd
{...
this
.
props
}
returnList
=
{
this
.
returnList
}
id
=
{
workId
}
/
>
/
>
)
:
(
<
ApplyForZyd
{...
this
.
props
}
returnList
=
{
this
.
returnList
}
id
=
{
workId
}
/
>
)
)
:
null
}
)
:
null
}
<
/div
>
<
/div
>
<
/PageHeaderWrapper
>
<
/PageHeaderWrapper
>
...
...
FormInsertDiy/AffairPage/publicApiService.js
浏览文件 @
262a3730
...
@@ -144,6 +144,19 @@ const getFormDetail = (id) => {
...
@@ -144,6 +144,19 @@ const getFormDetail = (id) => {
});
});
};
};
/**
*
* */
const
getServiceDetail
=
(
id
)
=>
{
return
apiRequest
(
'/UnifiedServiceApi/getDetail'
,
{
id
}).
then
((
x
)
=>
{
if
(
x
)
{
return
x
;
}
else
{
return
{};
}
});
};
/**
/**
* 发起流程
* 发起流程
* */
* */
...
@@ -248,6 +261,7 @@ export {
...
@@ -248,6 +261,7 @@ export {
getColumns
,
getColumns
,
getPages
,
getPages
,
getFormDetail
,
getFormDetail
,
getServiceDetail
,
getOptions
,
getOptions
,
getBatchOptions
,
getBatchOptions
,
startProcess
,
startProcess
,
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论