Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
W
WebPublic
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
前端开发小组
WebPublic
Commits
dc3fe454
提交
dc3fe454
authored
8月 08, 2024
作者:
钟是志
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
3604 多人并行 【1.0低代码】审核页面新增,上一页下一页功能
上级
05941989
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
87 行增加
和
62 行删除
+87
-62
index.js
FormInsertDiy/AffairPage/AuditPage/index.js
+2
-1
Detail.js
FormInsertDiy/AffairPage/Detail.js
+20
-0
Services.js
Services.js
+4
-0
request.js
one_stop_public/utils/request.js
+61
-61
没有找到文件。
FormInsertDiy/AffairPage/AuditPage/index.js
浏览文件 @
dc3fe454
...
@@ -13,7 +13,6 @@ import CreateC from '../../ExportComponent/ContextCreate';
...
@@ -13,7 +13,6 @@ import CreateC from '../../ExportComponent/ContextCreate';
import
exportHandledInfo
from
'@/webPublic/FormInsertDiy/AffairPage/AuditPage/exportHandledInfo'
;
import
exportHandledInfo
from
'@/webPublic/FormInsertDiy/AffairPage/AuditPage/exportHandledInfo'
;
import
{
connect
}
from
'dva'
;
import
{
connect
}
from
'dva'
;
import
router
from
'umi/router'
;
import
router
from
'umi/router'
;
import
{
getIsBei_Dian
}
from
'@/webPublic/zyd_public/utils/getSchoolType'
;
@
connect
(({
keepAlive
})
=>
({
@
connect
(({
keepAlive
})
=>
({
keepAlive
,
keepAlive
,
...
@@ -112,6 +111,8 @@ class Index extends React.Component {
...
@@ -112,6 +111,8 @@ class Index extends React.Component {
router
.
push
({
router
.
push
({
pathname
:
'./Detail'
,
pathname
:
'./Detail'
,
state
:
{
state
:
{
activeType
:
refInfo
.
ListTab
.
state
.
activeKey
===
'tab1'
?
'待处理'
:
'已处理'
,
searchFormValues
:
refInfo
.
List
.
state
.
formValues
||
{},
workId
,
workId
,
dataBaseId
,
dataBaseId
,
record
,
record
,
...
...
FormInsertDiy/AffairPage/Detail.js
浏览文件 @
dc3fe454
/**
* onestop 流程详情
* 公共代码 - 谨慎修改
* 钟是志
* */
import
React
,
{
Component
}
from
'react'
;
import
React
,
{
Component
}
from
'react'
;
import
PageHeaderWrapper
from
'@/components/PageHeaderWrapper'
;
import
PageHeaderWrapper
from
'@/components/PageHeaderWrapper'
;
import
Shell
from
'@/webPublic/one_stop_public/App/ButtonDiy/Shell'
;
import
Shell
from
'@/webPublic/one_stop_public/App/ButtonDiy/Shell'
;
...
@@ -9,6 +14,8 @@ import { message, Modal, notification, Popconfirm } from 'antd';
...
@@ -9,6 +14,8 @@ import { message, Modal, notification, Popconfirm } from 'antd';
import
DetailOneStop
from
'@/webPublic/one_stop_public/DetailForAudit/IframeForDetail'
;
import
DetailOneStop
from
'@/webPublic/one_stop_public/DetailForAudit/IframeForDetail'
;
import
{
getIsBei_Dian
,
getIsGui_Jian
}
from
'@/webPublic/zyd_public/utils/utils'
;
import
{
getIsBei_Dian
,
getIsGui_Jian
}
from
'@/webPublic/zyd_public/utils/utils'
;
import
{
getUrlInfo
}
from
'@/webPublic/one_stop_public/DetailForAudit/utils'
;
import
{
getUrlInfo
}
from
'@/webPublic/one_stop_public/DetailForAudit/utils'
;
import
{
getWaitIds
}
from
'@/webPublic/Services'
;
import
{
connect
}
from
'dva'
;
window
.
iframeParentComponent
=
{
window
.
iframeParentComponent
=
{
Modal
,
Modal
,
...
@@ -41,10 +48,23 @@ export default class Detail extends Component {
...
@@ -41,10 +48,23 @@ export default class Detail extends Component {
id
,
id
,
code
,
code
,
showAll
:
props
.
from
!==
'onestopApp2.0'
&&
getUrlInfo
().
showAll
!==
'false'
,
showAll
:
props
.
from
!==
'onestopApp2.0'
&&
getUrlInfo
().
showAll
!==
'false'
,
allPageInfo
:
[],
// 解决禅道 3604 多人并行 【1.0低代码】审核页面新增,上一页下一页功能
};
};
}
}
getWaitInfos
()
{
const
{
state
}
=
this
.
props
.
location
;
if
(
state
.
activeType
===
'待处理'
&&
getIsBei_Dian
())
{
// 后续再考虑 开放给其他学校.
getWaitIds
({
appId
:
state
.
workId
,
//
...
state
.
searchFormValues
,
// 搜索条件
});
}
}
componentDidMount
()
{
componentDidMount
()
{
this
.
getWaitInfos
();
window
.
addEventListener
(
window
.
addEventListener
(
'message'
,
'message'
,
(
event
)
=>
{
(
event
)
=>
{
...
...
Services.js
浏览文件 @
dc3fe454
...
@@ -217,3 +217,7 @@ export function getOnestopKey(key = '', formKey = 'key_list', formValue = 'value
...
@@ -217,3 +217,7 @@ export function getOnestopKey(key = '', formKey = 'key_list', formValue = 'value
});
});
}
}
}
}
export
function
getWaitIds
(
params
){
return
uaaRequest
(
'/UnifiedAppFormApi/getWaitIds'
,
params
);
}
one_stop_public/utils/request.js
浏览文件 @
dc3fe454
...
@@ -173,7 +173,7 @@ export async function requestOrigin(url, data, options = {
...
@@ -173,7 +173,7 @@ export async function requestOrigin(url, data, options = {
if
(
options
.
method
===
'GET'
)
{
if
(
options
.
method
===
'GET'
)
{
const
pp
=
{
const
pp
=
{
...
data
,
...
data
,
version_
:
version
,
//
version_: version,
};
};
for
(
let
i
in
pp
)
{
for
(
let
i
in
pp
)
{
if
(
pp
[
i
]
==
null
)
{
if
(
pp
[
i
]
==
null
)
{
...
@@ -204,35 +204,36 @@ export async function requestOrigin(url, data, options = {
...
@@ -204,35 +204,36 @@ export async function requestOrigin(url, data, options = {
response
.
errMsg
=
response
.
errMsg
.
slice
(
0
,
50
);
response
.
errMsg
=
response
.
errMsg
.
slice
(
0
,
50
);
}
}
if
(
response
.
errCode
&&
response
.
errCode
==
'10000'
)
{
if
(
response
.
errCode
&&
response
.
errCode
==
'10000'
)
{
const
ul
=
window
.
location
.
href
;
return
false
;
if
(
ul
.
indexOf
(
'timeVersion='
)
==
-
1
)
{
// const ul = window.location.href;
let
x
=
JSON
.
parse
(
response
.
errMsg
);
// if (ul.indexOf('timeVersion=') == -1) {
let
time
=
+
new
Date
();
// let x = JSON.parse(response.errMsg);
localStorage
.
setItem
(
'version'
,
JSON
.
stringify
(
x
.
version
));
// let time = +new Date();
// localStorage.setItem('version', JSON.stringify(x.version));
if
(
ul
.
indexOf
(
'/portal/'
)
==
-
1
&&
ul
.
indexOf
(
'/admin/'
)
==
-
1
)
{
//
sessionStorage
.
removeItem
(
'cacheMobile'
);
// if (ul.indexOf('/portal/') == -1 && ul.indexOf('/admin/') == -1) {
showToast
(
'检查到最新版本,即将自动更新,更新完成后请重新操作'
);
// sessionStorage.removeItem('cacheMobile');
// showToast('检查到最新版本,即将自动更新,更新完成后请重新操作');
window
.
location
.
href
=
x
.
mobileAdress
//
?
mobileAdress
+
'?timeVersion='
+
time
// window.location.href = x.mobileAdress
:
ul
.
indexOf
(
'?'
)
>
-
1
// ? mobileAdress + '?timeVersion=' + time
?
ul
+
'&timeVersion='
+
time
// : ul.indexOf('?') > -1
:
ul
+
'?timeVersion='
+
time
;
// ? ul + '&timeVersion=' + time
}
else
{
// : ul + '?timeVersion=' + time;
sessionStorage
.
removeItem
(
'cacheMobile'
);
// } else {
openToast
(
'error'
,
'版本更新'
,
'检查到最新版本,即将自动更新,更新完成后请重新操作'
);
// sessionStorage.removeItem('cacheMobile');
// openToast('error', '版本更新', '检查到最新版本,即将自动更新,更新完成后请重新操作');
window
.
location
.
href
=
x
.
webAdress
//
?
x
.
webAdress
+
'?timeVersion='
+
time
// window.location.href = x.webAdress
:
ul
.
indexOf
(
'?'
)
>
-
1
// ? x.webAdress + '?timeVersion=' + time
?
ul
+
'&timeVersion='
+
time
// : ul.indexOf('?') > -1
:
ul
+
'?timeVersion='
+
time
;
// ? ul + '&timeVersion=' + time
}
// : ul + '?timeVersion=' + time;
setTimeout
(()
=>
location
.
reload
(),
3000
);
// }
}
// setTimeout(() => location.reload(), 3000);
// }
return
;
//
// return;
}
}
if
(
window
.
location
.
href
.
indexOf
(
'/mobile'
)
!=
-
1
)
{
if
(
window
.
location
.
href
.
indexOf
(
'/mobile'
)
!=
-
1
)
{
if
(
response
.
errCode
||
response
.
errMsg
)
{
if
(
response
.
errCode
||
response
.
errMsg
)
{
...
@@ -264,7 +265,7 @@ export async function requestOrigin(url, data, options = {
...
@@ -264,7 +265,7 @@ export async function requestOrigin(url, data, options = {
const
pp
=
{
const
pp
=
{
token
:
getVisitorToken
(),
// 部分接口 只需要传入假token 所以这里优先级是 data中的token > getToken;
token
:
getVisitorToken
(),
// 部分接口 只需要传入假token 所以这里优先级是 data中的token > getToken;
...
data
,
...
data
,
version_
:
version
,
//
version_: version,
};
};
for
(
let
i
in
pp
)
{
for
(
let
i
in
pp
)
{
...
@@ -292,8 +293,6 @@ export async function requestOrigin(url, data, options = {
...
@@ -292,8 +293,6 @@ export async function requestOrigin(url, data, options = {
}
}
}
}
delete
options
.
prefix
;
delete
options
.
prefix
;
// POST请求
// POST请求
return
fetchRequest
(
transformApi
,
{
return
fetchRequest
(
transformApi
,
{
...
@@ -307,33 +306,34 @@ export async function requestOrigin(url, data, options = {
...
@@ -307,33 +306,34 @@ export async function requestOrigin(url, data, options = {
response
.
errMsg
=
response
.
errMsg
.
slice
(
0
,
30
)
+
'...'
;
response
.
errMsg
=
response
.
errMsg
.
slice
(
0
,
30
)
+
'...'
;
}
}
if
(
response
&&
response
.
errCode
&&
response
.
errCode
==
'10000'
)
{
if
(
response
&&
response
.
errCode
&&
response
.
errCode
==
'10000'
)
{
const
ul
=
window
.
location
.
href
;
return
false
;
if
(
ul
.
indexOf
(
'timeVersion='
)
==
-
1
)
{
// const ul = window.location.href;
let
x
=
JSON
.
parse
(
response
.
errMsg
);
// if (ul.indexOf('timeVersion=') == -1) {
let
time
=
+
new
Date
();
// let x = JSON.parse(response.errMsg);
localStorage
.
setItem
(
'version'
,
JSON
.
stringify
(
x
.
version
));
// let time = +new Date();
// localStorage.setItem('version', JSON.stringify(x.version));
if
(
ul
.
indexOf
(
'/portal/'
)
==
-
1
&&
ul
.
indexOf
(
'/admin/'
)
==
-
1
)
{
//
sessionStorage
.
removeItem
(
'cacheMobile'
);
// if (ul.indexOf('/portal/') == -1 && ul.indexOf('/admin/') == -1) {
showToast
(
'检查到最新版本,即将自动更新,更新完成后请重新操作'
);
// sessionStorage.removeItem('cacheMobile');
window
.
location
.
href
=
x
.
mobileAdress
// showToast('检查到最新版本,即将自动更新,更新完成后请重新操作');
?
mobileAdress
+
'?timeVersion='
+
time
// window.location.href = x.mobileAdress
:
ul
.
indexOf
(
'?'
)
>
-
1
// ? mobileAdress + '?timeVersion=' + time
?
ul
+
'&timeVersion='
+
time
// : ul.indexOf('?') > -1
:
ul
+
'?timeVersion='
+
time
;
// ? ul + '&timeVersion=' + time
}
else
{
// : ul + '?timeVersion=' + time;
sessionStorage
.
removeItem
(
'cacheMobile'
);
// } else {
openToast
(
'error'
,
'版本更新'
,
'检查到最新版本,即将自动更新,更新完成后请重新操作'
);
// sessionStorage.removeItem('cacheMobile');
// openToast('error', '版本更新', '检查到最新版本,即将自动更新,更新完成后请重新操作');
window
.
location
.
href
=
x
.
webAdress
//
?
x
.
webAdress
+
'?timeVersion='
+
time
// window.location.href = x.webAdress
:
ul
.
indexOf
(
'?'
)
>
-
1
// ? x.webAdress + '?timeVersion=' + time
?
ul
+
'&timeVersion='
+
time
// : ul.indexOf('?') > -1
:
ul
+
'?timeVersion='
+
time
;
// ? ul + '&timeVersion=' + time
}
// : ul + '?timeVersion=' + time;
setTimeout
(()
=>
location
.
reload
(),
3000
);
// }
}
// setTimeout(() => location.reload(), 3000);
return
;
// }
// return;
}
}
if
(
window
.
location
.
href
.
indexOf
(
'/mobile'
)
!==
-
1
)
{
if
(
window
.
location
.
href
.
indexOf
(
'/mobile'
)
!==
-
1
)
{
if
(
response
.
errCode
||
response
.
errMsg
)
{
if
(
response
.
errCode
||
response
.
errMsg
)
{
...
@@ -362,7 +362,7 @@ export async function requestOrigin(url, data, options = {
...
@@ -362,7 +362,7 @@ export async function requestOrigin(url, data, options = {
return
response
;
return
response
;
});
});
}
}
}
;
}
const
setRequestConfig
=
config
=>
{
const
setRequestConfig
=
config
=>
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论