Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
W
WebPublic
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
前端开发小组
WebPublic
Commits
ba1a5ebc
提交
ba1a5ebc
authored
4月 28, 2023
作者:
liqiufan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
2072 开发需求 1228
上级
6ee393d4
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
21 个修改的文件
包含
514 行增加
和
509 行删除
+514
-509
index.js
FormInsertDiy/Export/index.js
+33
-36
ImportUtil.js
FormInsertDiy/ImportUtil/ImportUtil.js
+61
-70
ExportInfo.js
one_stop_public/App/ExportInfo.js
+6
-9
ImportUtil.js
one_stop_public/App/ImportUtil.js
+57
-71
ProgressDiy.js
one_stop_public/App/ProgressDiy.js
+6
-10
SearchInfo.js
one_stop_public/App/SearchInfo.js
+33
-37
index.js
one_stop_public/App/StatisticsInfo/index.js
+60
-68
DetailSplit.js
one_stop_public/DetailForAudit/DetailSplit.js
+38
-49
index.jsx
...op_public/DetailForAudit/components/Countersign/index.jsx
+22
-20
Image.js
...ublic/DetailForAudit/components/FlowExamineModal/Image.js
+9
-11
index.jsx
...op_public/DetailForAudit/components/trunToModel/index.jsx
+27
-37
index.jsx
...c/DetailForAudit/components/trunToModel/recycle/index.jsx
+10
-12
index.jsx
...ic/DetailForAudit/components/trunToModel/trunTo/index.jsx
+8
-10
trunToDetail.jsx
one_stop_public/DetailForAudit/trunToDetail.jsx
+8
-12
index.js
one_stop_public/ForZydApply/index.js
+7
-11
apiConfig.js
one_stop_public/Services/apiConfig.js
+58
-0
services.js
one_stop_public/Services/services.js
+35
-0
TreeList.js
one_stop_public/libs/formList/TreeList.js
+0
-0
edit.js
one_stop_public/libs/formList/edit.js
+36
-46
index.js
one_stop_public/libs/formList/index.js
+0
-0
index.jsx
one_stop_public/tableCompon/index.jsx
+0
-0
没有找到文件。
FormInsertDiy/Export/index.js
浏览文件 @
ba1a5ebc
...
@@ -21,6 +21,8 @@ import OrderItem from './OrderItem';
...
@@ -21,6 +21,8 @@ import OrderItem from './OrderItem';
import
ButtonDiy
from
'@/baseComponent/ButtonDiy'
;
import
ButtonDiy
from
'@/baseComponent/ButtonDiy'
;
import
FormdataWrapper
from
'@/utils/object-to-formdata-custom'
;
import
FormdataWrapper
from
'@/utils/object-to-formdata-custom'
;
import
{
getServicesNomal
}
from
'@/webPublic/one_stop_public/Services/services'
;
import
{
getExportInfoApi
}
from
'@/webPublic/one_stop_public/Services/apiConfig'
;
const
Option
=
Select
.
Option
;
const
Option
=
Select
.
Option
;
let
keyX
=
1
;
let
keyX
=
1
;
...
@@ -82,44 +84,39 @@ export default class Index extends React.Component {
...
@@ -82,44 +84,39 @@ export default class Index extends React.Component {
this
.
setState
({
groups
});
this
.
setState
({
groups
});
};
};
open
=
()
=>
{
open
=
()
=>
{
const
{
dispatch
}
=
this
.
props
;
getServicesNomal
(
getExportInfoApi
,
{
dispatch
({
objId
:
this
.
props
.
objId
,
type
:
'DataObj/getExportInfo'
,
}).
then
(
infos
=>
{
payload
:
{
const
mockData
=
[];
objId
:
this
.
props
.
objId
,
const
qs
=
[];
},
const
gs
=
[];
callback
:
(
infos
)
=>
{
const
os
=
[];
const
mockData
=
[];
for
(
var
key
in
infos
)
{
const
qs
=
[];
const
x
=
infos
[
key
];
const
gs
=
[];
mockData
.
push
({
const
os
=
[];
key
:
x
.
field
,
for
(
var
key
in
infos
)
{
title
:
x
.
name
,
const
x
=
infos
[
key
];
chosen
:
false
,
mockData
.
push
({
});
key
:
x
.
field
,
if
(
x
.
canQuery
)
{
title
:
x
.
name
,
qs
.
push
(
x
);
chosen
:
false
,
}
});
if
(
x
.
canGroup
)
{
if
(
x
.
canQuery
)
{
gs
.
push
(
x
);
qs
.
push
(
x
);
}
if
(
x
.
canGroup
)
{
gs
.
push
(
x
);
}
if
(
x
.
canOrder
)
{
os
.
push
(
x
);
}
}
}
if
(
x
.
canOrder
)
{
os
.
push
(
x
);
}
}
this
.
setState
({
this
.
setState
({
mockData
,
mockData
,
infos
,
infos
,
visiable
:
true
,
visiable
:
true
,
qs
,
qs
,
gs
,
gs
,
os
,
os
,
});
});
},
});
});
};
};
onCancle
=
()
=>
{
onCancle
=
()
=>
{
...
...
FormInsertDiy/ImportUtil/ImportUtil.js
浏览文件 @
ba1a5ebc
...
@@ -11,6 +11,9 @@ import {
...
@@ -11,6 +11,9 @@ import {
getSassApiHeader
,
getSassApiHeader
,
getSysCode
getSysCode
}
from
'@/webPublic/one_stop_public/2023yunshangguizhou/utils'
;
}
from
'@/webPublic/one_stop_public/2023yunshangguizhou/utils'
;
import
{
getServicesNomal
,
importExecute
}
from
'../../one_stop_public/Services/services'
;
import
{
importAnalyseApi
}
from
'../../one_stop_public/Services/apiConfig'
;
const
Step
=
Steps
.
Step
;
const
Step
=
Steps
.
Step
;
const
TabPane
=
Tabs
.
TabPane
;
const
TabPane
=
Tabs
.
TabPane
;
...
@@ -95,92 +98,80 @@ export default class ImportUtil extends React.PureComponent {
...
@@ -95,92 +98,80 @@ export default class ImportUtil extends React.PureComponent {
}
}
import
()
{
import
()
{
const
{
dispatch
,
importParams
}
=
this
.
props
;
const
{
importParams
}
=
this
.
props
;
dispatch
({
importExecute
({
type
:
'DataObj/importExecute'
,
...(
importParams
||
{}),
payload
:
{
cacheKey
:
this
.
state
.
filekey
,
...(
importParams
||
{}),
cacheKey
:
this
.
state
.
filekey
,
objId
:
this
.
props
.
objId
,
objId
:
this
.
props
.
objId
,
},
}).
then
(()
=>
{
callback
:
(
res
)
=>
{
this
.
next
();
this
.
next
();
message
.
success
(
'导入成功'
);
message
.
success
(
'导入成功'
);
this
.
setState
({
this
.
setState
({
current
:
3
,
current
:
3
,
isShow
:
true
,
isShow
:
true
,
visible
:
false
,
visible
:
false
,
});
});
if
(
this
.
props
.
callback
)
{
if
(
this
.
props
.
callback
)
{
this
.
props
.
callback
();
this
.
props
.
callback
();
}
}
},
});
});
}
}
getCachKey
=
(
filePath
)
=>
{
getCachKey
=
(
filePath
)
=>
{
const
{
dispatch
,
importParams
}
=
this
.
props
;
const
{
importParams
}
=
this
.
props
;
dispatch
({
getServicesNomal
(
importAnalyseApi
,
{
type
:
'DataObj/importAnalyse'
,
...(
importParams
||
{}),
payload
:
{
isLocal
:
false
,
...(
importParams
||
{}),
filePath
,
isLocal
:
false
,
objId
:
this
.
props
.
objId
,
filePath
,
}).
then
(
res
=>
{
objId
:
this
.
props
.
objId
,
this
.
setState
({
},
filekey
:
res
.
cacheKey
,
callback
:
(
res
)
=>
{
});
this
.
setState
({
this
.
queryFile
(
res
.
cacheKey
);
filekey
:
res
.
cacheKey
,
});
this
.
queryFile
(
res
.
cacheKey
);
},
});
});
};
};
queryFile
=
(
cacheKey
)
=>
{
queryFile
=
(
cacheKey
)
=>
{
const
{
dispatch
,
importParams
}
=
this
.
props
;
const
{
importParams
}
=
this
.
props
;
dispatch
({
getServicesNomal
(
importDataQueryApi
,
{
type
:
'DataObj/importDataQuery'
,
...(
importParams
||
{}),
payload
:
{
cacheKey
,
...(
importParams
||
{}),
objId
:
this
.
props
.
objId
,
cacheKey
,
}).
then
(
res
=>
{
objId
:
this
.
props
.
objId
,
this
.
setState
({
},
current
:
1
,
callback
:
(
res
)
=>
{
isShow
:
false
,
this
.
setState
({
current
:
1
,
isShow
:
false
,
sucData
:
res
.
pass
,
sucData
:
res
.
pass
,
errData
:
res
.
noPass
,
errData
:
res
.
noPass
,
column
:
res
.
column
,
column
:
res
.
column
,
});
});
if
(
res
.
noPass
&&
res
.
noPass
.
length
==
0
)
{
if
(
res
.
noPass
&&
res
.
noPass
.
length
==
0
)
{
if
(
res
.
pass
.
length
==
0
)
{
if
(
res
.
pass
.
length
==
0
)
{
message
.
error
(
'当前没有验证成功的数据,无法导入。'
);
message
.
error
(
'当前没有验证成功的数据,无法导入。'
);
this
.
setState
({
currentKey
:
'1'
,
ch
:
!
this
.
state
.
ch
,
isNextDisabled
:
true
,
});
}
else
{
message
.
success
(
'所有数据验证通过,请确认后点击下一步。'
);
this
.
setState
({
currentKey
:
'2'
,
ch
:
!
this
.
state
.
ch
,
isNextDisabled
:
false
,
});
}
}
else
{
message
.
error
(
'当前存在未验证通过的数据,请按错误提示检测更正导入文件'
);
this
.
setState
({
this
.
setState
({
currentKey
:
'1'
,
currentKey
:
'1'
,
ch
:
!
this
.
state
.
ch
,
ch
:
!
this
.
state
.
ch
,
isNextDisabled
:
true
,
isNextDisabled
:
true
,
});
});
}
else
{
message
.
success
(
'所有数据验证通过,请确认后点击下一步。'
);
this
.
setState
({
currentKey
:
'2'
,
ch
:
!
this
.
state
.
ch
,
isNextDisabled
:
false
,
});
}
}
},
}
else
{
message
.
error
(
'当前存在未验证通过的数据,请按错误提示检测更正导入文件'
);
this
.
setState
({
currentKey
:
'1'
,
ch
:
!
this
.
state
.
ch
,
isNextDisabled
:
true
,
});
}
});
});
};
};
changePane
=
(
activeKey
)
=>
{
changePane
=
(
activeKey
)
=>
{
...
...
one_stop_public/App/ExportInfo.js
浏览文件 @
ba1a5ebc
...
@@ -22,6 +22,8 @@ import OrderItem from './OrderItem';
...
@@ -22,6 +22,8 @@ import OrderItem from './OrderItem';
import
FormdataWrapper
from
'../utils/object-to-formdata-custom'
;
import
FormdataWrapper
from
'../utils/object-to-formdata-custom'
;
import
ButtonDiy
from
'./ButtonDiy/ButtonDiy'
;
import
ButtonDiy
from
'./ButtonDiy/ButtonDiy'
;
import
{
getHeaders
}
from
'@/webPublic/zyd_public/utils/utils'
;
import
{
getHeaders
}
from
'@/webPublic/zyd_public/utils/utils'
;
import
{
getServicesNomal
}
from
'../Services/services'
;
import
{
getExportInfoApi
}
from
'../Services/apiConfig'
;
const
Option
=
Select
.
Option
;
const
Option
=
Select
.
Option
;
var
keyX
=
1
;
var
keyX
=
1
;
...
@@ -97,14 +99,10 @@ export default class ExportInfo extends React.Component {
...
@@ -97,14 +99,10 @@ export default class ExportInfo extends React.Component {
this
.
setState
({
groups
});
this
.
setState
({
groups
});
};
};
open
=
()
=>
{
open
=
()
=>
{
const
{
dispatch
}
=
this
.
props
;
getServicesNomal
(
getExportInfoApi
,
{
dispatch
({
objId
:
this
.
props
.
objId
,
type
:
'DataObj/getExportInfo'
,
}).
then
(
infos
=>
{
payload
:
{
const
mockData
=
[];
objId
:
this
.
props
.
objId
,
},
callback
:
(
infos
)
=>
{
const
mockData
=
[];
const
qs
=
[];
const
qs
=
[];
const
gs
=
[];
const
gs
=
[];
const
os
=
[];
const
os
=
[];
...
@@ -134,7 +132,6 @@ export default class ExportInfo extends React.Component {
...
@@ -134,7 +132,6 @@ export default class ExportInfo extends React.Component {
gs
,
gs
,
os
,
os
,
});
});
},
});
});
};
};
onCancle
=
()
=>
{
onCancle
=
()
=>
{
...
...
one_stop_public/App/ImportUtil.js
浏览文件 @
ba1a5ebc
...
@@ -14,6 +14,8 @@ import {
...
@@ -14,6 +14,8 @@ import {
getSassApiHeader
,
getSassApiHeader
,
getSysCode
getSysCode
}
from
'@/webPublic/one_stop_public/2023yunshangguizhou/utils'
;
}
from
'@/webPublic/one_stop_public/2023yunshangguizhou/utils'
;
import
{
getServicesNomal
,
importExecute
}
from
'../Services/services'
;
import
{
importDataQueryApi
,
importAnalyseApi
}
from
'../Services/apiConfig'
;
const
Modal
=
getModal
();
const
Modal
=
getModal
();
const
message
=
getMessage
();
const
message
=
getMessage
();
...
@@ -126,107 +128,91 @@ export default class ImportUtil extends React.PureComponent {
...
@@ -126,107 +128,91 @@ export default class ImportUtil extends React.PureComponent {
import
()
{
import
()
{
const
{
const
{
dispatch
,
importParams
,
importParams
,
}
=
this
.
props
;
}
=
this
.
props
;
dispatch
({
importExecute
({
type
:
'DataObj/importExecute'
,
...(
importParams
||
{}),
payload
:
{
cacheKey
:
this
.
state
.
fileCacheKey
,
...(
importParams
||
{}),
objId
:
this
.
props
.
objId
,
cacheKey
:
this
.
state
.
fileCacheKey
,
}).
then
(
res
=>
{
objId
:
this
.
props
.
objId
,
if
(
res
&&
res
.
sync
===
false
&&
res
.
total
)
{
},
// 23013 学生事务/学生医保管理/学生平安险/保险办理,2001010248 高职界面已购买 导入 报错【接口超时】
callback
:
(
res
)
=>
{
this
.
setState
({
if
(
res
&&
res
.
sync
===
false
&&
res
.
total
)
{
openProgress
:
res
,
// 23013 学生事务/学生医保管理/学生平安险/保险办理,2001010248 高职界面已购买 导入 报错【接口超时】
});
this
.
setState
({
return
;
openProgress
:
res
,
}
});
return
;
this
.
next
();
}
this
.
next
();
message
.
success
(
'导入成功'
,
1
);
message
.
success
(
'导入成功'
,
1
);
this
.
setState
({
this
.
setState
({
current
:
3
,
current
:
3
,
isShow
:
true
,
isShow
:
true
,
visible
:
false
,
visible
:
false
,
});
});
},
});
});
}
}
getCachKey
=
(
filePath
)
=>
{
getCachKey
=
(
filePath
)
=>
{
const
{
const
{
dispatch
,
importParams
,
importParams
,
importConfig
,
importConfig
,
}
=
this
.
props
;
}
=
this
.
props
;
dispatch
({
getServicesNomal
(
importAnalyseApi
,
{
type
:
'DataObj/importAnalyse'
,
...(
importParams
||
{}),
payload
:
{
isLocal
:
false
,
...(
importParams
||
{}),
filePath
,
isLocal
:
false
,
filePath
,
importConfig
:
importConfig
?
JSON
.
stringify
(
importConfig
)
:
null
,
importConfig
:
importConfig
?
JSON
.
stringify
(
importConfig
)
:
null
,
objId
:
this
.
props
.
objId
,
objId
:
this
.
props
.
objId
,
},
}).
then
(
res
=>
{
callback
:
(
res
)
=>
{
this
.
setState
({
this
.
setState
({
fileCacheKey
:
res
.
cacheKey
,
fileCacheKey
:
res
.
cacheKey
,
});
});
this
.
queryFile
(
res
.
cacheKey
);
this
.
queryFile
(
res
.
cacheKey
);
},
});
});
};
};
queryFile
=
(
cacheKey
)
=>
{
queryFile
=
(
cacheKey
)
=>
{
const
{
const
{
dispatch
,
importParams
,
importParams
,
}
=
this
.
props
;
}
=
this
.
props
;
dispatch
({
getServicesNomal
(
importDataQueryApi
,
{
type
:
'DataObj/importDataQuery'
,
...(
importParams
||
{}),
payload
:
{
cacheKey
,
...(
importParams
||
{}),
objId
:
this
.
props
.
objId
,
cacheKey
,
}).
then
(
res
=>
{
objId
:
this
.
props
.
objId
,
this
.
setState
({
},
current
:
1
,
callback
:
(
res
)
=>
{
isShow
:
false
,
this
.
setState
({
current
:
1
,
isShow
:
false
,
sucData
:
res
.
pass
,
sucData
:
res
.
pass
,
errData
:
res
.
noPass
,
errData
:
res
.
noPass
,
column
:
res
.
column
,
column
:
res
.
column
,
});
});
if
(
res
.
noPass
&&
res
.
noPass
.
length
===
0
)
{
if
(
res
.
noPass
&&
res
.
noPass
.
length
===
0
)
{
if
(
res
.
pass
.
length
===
0
)
{
if
(
res
.
pass
.
length
===
0
)
{
message
.
error
(
'当前没有验证成功的数据,无法导入。'
);
message
.
error
(
'当前没有验证成功的数据,无法导入。'
);
this
.
setState
({
currentKey
:
'1'
,
ch
:
!
this
.
state
.
ch
,
isNextDisabled
:
true
,
});
}
else
{
message
.
success
(
'所有数据验证通过,请确认后点击下一步。'
);
this
.
setState
({
currentKey
:
'2'
,
ch
:
!
this
.
state
.
ch
,
isNextDisabled
:
false
,
});
}
}
else
{
message
.
error
(
'当前存在未验证通过的数据,请按错误提示检测更正导入文件'
);
this
.
setState
({
this
.
setState
({
currentKey
:
'1'
,
currentKey
:
'1'
,
ch
:
!
this
.
state
.
ch
,
ch
:
!
this
.
state
.
ch
,
isNextDisabled
:
true
,
isNextDisabled
:
true
,
});
});
}
else
{
message
.
success
(
'所有数据验证通过,请确认后点击下一步。'
);
this
.
setState
({
currentKey
:
'2'
,
ch
:
!
this
.
state
.
ch
,
isNextDisabled
:
false
,
});
}
}
},
}
else
{
message
.
error
(
'当前存在未验证通过的数据,请按错误提示检测更正导入文件'
);
this
.
setState
({
currentKey
:
'1'
,
ch
:
!
this
.
state
.
ch
,
isNextDisabled
:
true
,
});
}
});
});
};
};
...
...
one_stop_public/App/ProgressDiy.js
浏览文件 @
ba1a5ebc
...
@@ -2,11 +2,12 @@ import React, { useEffect, useState, useRef, useMemo } from 'react';
...
@@ -2,11 +2,12 @@ import React, { useEffect, useState, useRef, useMemo } from 'react';
import
{
Progress
,
message
}
from
'antd'
;
import
{
Progress
,
message
}
from
'antd'
;
import
styles
from
'./ImportUtil.less'
;
import
styles
from
'./ImportUtil.less'
;
import
{
connect
}
from
'dva'
;
import
{
connect
}
from
'dva'
;
import
{
getServicesNomal
}
from
'../Services/services'
;
import
{
importProcessApi
}
from
'../Services/apiConfig'
;
function
ProgressDiy
(
props
)
{
function
ProgressDiy
(
props
)
{
const
{
const
{
fileCacheKey
,
fileCacheKey
,
dispatch
,
changeOpenProgress
=
()
=>
{
changeOpenProgress
=
()
=>
{
},
},
}
=
props
;
}
=
props
;
...
@@ -14,20 +15,15 @@ function ProgressDiy(props) {
...
@@ -14,20 +15,15 @@ function ProgressDiy(props) {
const
[
speedData
,
setData
]
=
useState
({
...
props
});
const
[
speedData
,
setData
]
=
useState
({
...
props
});
useEffect
(()
=>
{
useEffect
(()
=>
{
interv
.
current
=
setInterval
(()
=>
{
interv
.
current
=
setInterval
(()
=>
{
dispatch
({
getServicesNomal
(
importProcessApi
,
{
type
:
'DataObj/importProcess'
,
cacheKey
:
fileCacheKey
,
payload
:
{
}).
then
(
res
=>
{
cacheKey
:
fileCacheKey
,
setData
(
res
);
},
callback
:
res
=>
{
console
.
log
(
res
);
setData
(
res
);
if
(
res
.
finished
)
{
if
(
res
.
finished
)
{
clearInterval
(
interv
.
current
);
clearInterval
(
interv
.
current
);
// message.success('导入完成');
// message.success('导入完成');
changeOpenProgress
(
false
);
// 导入成功
changeOpenProgress
(
false
);
// 导入成功
}
}
},
});
});
},
1000
);
},
1000
);
},
[]);
},
[]);
...
...
one_stop_public/App/SearchInfo.js
浏览文件 @
ba1a5ebc
...
@@ -23,6 +23,7 @@ import OrderItem from './OrderItem';
...
@@ -23,6 +23,7 @@ import OrderItem from './OrderItem';
import
FormdataWrapper
from
'../utils/object-to-formdata-custom'
;
import
FormdataWrapper
from
'../utils/object-to-formdata-custom'
;
import
ButtonDiy
from
'./ButtonDiy/ButtonDiy'
;
import
ButtonDiy
from
'./ButtonDiy/ButtonDiy'
;
import
{
getHeaders
}
from
'@/webPublic/zyd_public/utils/utils'
;
import
{
getHeaders
}
from
'@/webPublic/zyd_public/utils/utils'
;
import
{
getServicesNomal
}
from
'../Services/services'
;
const
Option
=
Select
.
Option
;
const
Option
=
Select
.
Option
;
var
keyX
=
1
;
var
keyX
=
1
;
...
@@ -98,45 +99,40 @@ export default class SearchInfo extends React.Component {
...
@@ -98,45 +99,40 @@ export default class SearchInfo extends React.Component {
this
.
setState
({
groups
});
this
.
setState
({
groups
});
};
};
open
=
()
=>
{
open
=
()
=>
{
const
{
dispatch
}
=
this
.
props
;
getServicesNomal
(
getExportInfoApi
,
{
dispatch
({
objId
:
this
.
props
.
objId
,
type
:
'DataObj/getExportInfo'
,
}).
then
(
infos
=>
{
payload
:
{
const
mockData
=
[];
objId
:
this
.
props
.
objId
,
const
qs
=
[];
},
const
gs
=
[];
callback
:
(
infos
)
=>
{
const
os
=
[];
const
mockData
=
[];
for
(
var
key
in
infos
)
{
const
qs
=
[];
const
x
=
infos
[
key
];
const
gs
=
[];
mockData
.
push
({
const
os
=
[];
key
:
x
.
field
,
for
(
var
key
in
infos
)
{
title
:
x
.
name
,
const
x
=
infos
[
key
];
chosen
:
false
,
mockData
.
push
({
});
key
:
x
.
field
,
if
(
x
.
canQuery
)
{
title
:
x
.
name
,
qs
.
push
(
x
);
chosen
:
false
,
}
});
if
(
x
.
canGroup
)
{
if
(
x
.
canQuery
)
{
gs
.
push
(
x
);
qs
.
push
(
x
);
}
}
if
(
x
.
canOrder
)
{
if
(
x
.
canGroup
)
{
os
.
push
(
x
);
gs
.
push
(
x
);
}
if
(
x
.
canOrder
)
{
os
.
push
(
x
);
}
}
}
}
this
.
setState
({
this
.
setState
({
mockData
,
mockData
,
infos
,
infos
,
visiable
:
true
,
visiable
:
true
,
qs
,
qs
,
gs
,
gs
,
os
,
os
,
});
});
},
})
});
};
};
onCancle
=
()
=>
{
onCancle
=
()
=>
{
this
.
setState
({
visiable
:
false
});
this
.
setState
({
visiable
:
false
});
...
...
one_stop_public/App/StatisticsInfo/index.js
浏览文件 @
ba1a5ebc
...
@@ -9,6 +9,8 @@ import FormdataWrapper from '../../utils/object-to-formdata-custom';
...
@@ -9,6 +9,8 @@ import FormdataWrapper from '../../utils/object-to-formdata-custom';
import
ButtonDiy
from
'../ButtonDiy/ButtonDiy'
;
import
ButtonDiy
from
'../ButtonDiy/ButtonDiy'
;
import
{
nameSpan
,
nameSpan3
,
nameSpan2
}
from
'./config'
;
import
{
nameSpan
,
nameSpan3
,
nameSpan2
}
from
'./config'
;
import
{
getHeaders
}
from
'@/webPublic/zyd_public/utils/utils'
;
import
{
getHeaders
}
from
'@/webPublic/zyd_public/utils/utils'
;
import
{
getServicesNomal
}
from
'../../Services/services'
;
import
{
getExportInfoApi
,
getStatisticsApi
}
from
'../../Services/apiConfig'
;
const
Option
=
Select
.
Option
;
const
Option
=
Select
.
Option
;
const
FormItem
=
Form
.
Item
;
const
FormItem
=
Form
.
Item
;
...
@@ -79,37 +81,25 @@ export default class StatisticsInfo extends React.Component {
...
@@ -79,37 +81,25 @@ export default class StatisticsInfo extends React.Component {
);
);
};
};
open
=
()
=>
{
open
=
()
=>
{
const
{
dispatch
}
=
this
.
props
;
getServicesNomal
(
getExportInfoApi
,
{
dispatch
({
objId
:
THIS
.
props
.
objId
,
type
:
'DataObj/getExportInfo'
,
}).
then
(
infos
=>
{
payload
:
{
const
filterXZKeys
=
this
.
props
.
filterXZKeys
;
objId
:
this
.
props
.
objId
,
const
mockData
=
[];
},
const
mockXZData
=
[];
callback
:
(
infos
)
=>
{
const
qs
=
[];
const
filterXZKeys
=
this
.
props
.
filterXZKeys
;
const
gs
=
[];
const
mockData
=
[];
const
os
=
[];
const
mockXZData
=
[];
for
(
var
key
in
infos
)
{
const
qs
=
[];
const
x
=
infos
[
key
];
const
gs
=
[];
mockData
.
push
({
const
os
=
[];
key
:
x
.
field
,
for
(
var
key
in
infos
)
{
title
:
x
.
name
,
const
x
=
infos
[
key
];
chosen
:
false
,
mockData
.
push
({
hql
:
x
.
hql
,
key
:
x
.
field
,
});
title
:
x
.
name
,
if
(
filterXZKeys
!=
null
)
{
chosen
:
false
,
if
(
filterXZKeys
.
includes
(
key
))
{
hql
:
x
.
hql
,
});
if
(
filterXZKeys
!=
null
)
{
if
(
filterXZKeys
.
includes
(
key
))
{
mockXZData
.
push
({
key
:
x
.
field
,
title
:
x
.
name
,
chosen
:
false
,
hql
:
x
.
hql
,
});
}
}
else
{
mockXZData
.
push
({
mockXZData
.
push
({
key
:
x
.
field
,
key
:
x
.
field
,
title
:
x
.
name
,
title
:
x
.
name
,
...
@@ -117,27 +107,33 @@ export default class StatisticsInfo extends React.Component {
...
@@ -117,27 +107,33 @@ export default class StatisticsInfo extends React.Component {
hql
:
x
.
hql
,
hql
:
x
.
hql
,
});
});
}
}
if
(
x
.
canQuery
)
{
}
else
{
qs
.
push
(
x
);
mockXZData
.
push
({
}
key
:
x
.
field
,
if
(
x
.
canGroup
)
{
title
:
x
.
name
,
gs
.
push
(
x
);
chosen
:
false
,
}
hql
:
x
.
hql
,
if
(
x
.
canOrder
)
{
});
os
.
push
(
x
);
}
}
}
if
(
x
.
canQuery
)
{
this
.
setState
({
qs
.
push
(
x
);
mockData
,
}
mockXZData
,
if
(
x
.
canGroup
)
{
infos
,
gs
.
push
(
x
);
visiable
:
true
,
}
qs
,
if
(
x
.
canOrder
)
{
gs
,
os
.
push
(
x
);
os
,
}
});
}
},
this
.
setState
({
mockData
,
mockXZData
,
infos
,
visiable
:
true
,
qs
,
gs
,
os
,
});
});
});
};
};
onCancle
=
()
=>
{
onCancle
=
()
=>
{
...
@@ -184,7 +180,7 @@ export default class StatisticsInfo extends React.Component {
...
@@ -184,7 +180,7 @@ export default class StatisticsInfo extends React.Component {
this
.
setState
({
querys
,
queryVisiable
:
false
,
currentQueryKey
:
null
});
this
.
setState
({
querys
,
queryVisiable
:
false
,
currentQueryKey
:
null
});
};
};
finish
=
()
=>
{
finish
=
()
=>
{
const
{
dispatch
,
objId
}
=
this
.
props
;
const
{
objId
}
=
this
.
props
;
const
{
x
,
y
,
z
,
infos
,
XxX
,
currentKey
,
groups
}
=
this
.
state
;
const
{
x
,
y
,
z
,
infos
,
XxX
,
currentKey
,
groups
}
=
this
.
state
;
if
(
x
==
null
)
{
if
(
x
==
null
)
{
...
@@ -254,21 +250,17 @@ export default class StatisticsInfo extends React.Component {
...
@@ -254,21 +250,17 @@ export default class StatisticsInfo extends React.Component {
ttz
=
infos
[
z
].
hql
;
ttz
=
infos
[
z
].
hql
;
}
}
}
}
dispatch
({
getServicesNomal
(
getStatisticsApi
,
{
type
:
'DataObj/getStatistics'
,
x
:
ttx
,
payload
:
{
y
:
tty
,
x
:
ttx
,
z
:
ttz
,
y
:
tty
,
objId
,
z
:
ttz
,
xXx
:
XxX
,
objId
,
hql
:
currentKey
&&
infos
[
currentKey
]
?
infos
[
currentKey
].
hql
:
null
,
xXx
:
XxX
,
querys
:
JSON
.
stringify
(
qqs
),
hql
:
currentKey
&&
infos
[
currentKey
]
?
infos
[
currentKey
].
hql
:
null
,
groups
:
JSON
.
stringify
(
ggs
),
querys
:
JSON
.
stringify
(
qqs
),
}).
then
(
data
=>
{
groups
:
JSON
.
stringify
(
ggs
),
this
.
setState
({
dataSource
:
data
.
dataSource
,
columns
:
data
.
columns
});
},
callback
:
(
data
)
=>
{
this
.
setState
({
dataSource
:
data
.
dataSource
,
columns
:
data
.
columns
});
},
});
});
});
});
};
};
...
@@ -316,7 +308,7 @@ export default class StatisticsInfo extends React.Component {
...
@@ -316,7 +308,7 @@ export default class StatisticsInfo extends React.Component {
}
}
export
=
()
=>
{
export
=
()
=>
{
const
{
dispatch
,
objId
}
=
this
.
props
;
const
{
objId
}
=
this
.
props
;
const
{
x
,
y
,
z
,
infos
,
XxX
,
currentKey
,
groups
}
=
this
.
state
;
const
{
x
,
y
,
z
,
infos
,
XxX
,
currentKey
,
groups
}
=
this
.
state
;
if
(
x
==
null
)
{
if
(
x
==
null
)
{
...
...
one_stop_public/DetailForAudit/DetailSplit.js
浏览文件 @
ba1a5ebc
...
@@ -49,6 +49,8 @@ import {
...
@@ -49,6 +49,8 @@ import {
}
from
'@/webPublic/one_stop_public/utils/queryConfig'
;
}
from
'@/webPublic/one_stop_public/utils/queryConfig'
;
import
{
getIsGui_Jian
,
isJSON
}
from
'@/webPublic/zyd_public/utils/utils'
;
import
{
getIsGui_Jian
,
isJSON
}
from
'@/webPublic/zyd_public/utils/utils'
;
import
HistoryFormList
from
'@/webPublic/one_stop_public/DetailForAudit/HistoryFormList'
;
import
HistoryFormList
from
'@/webPublic/one_stop_public/DetailForAudit/HistoryFormList'
;
import
{
getServicesNomal
,
getUaaServicesNomal
}
from
'../Services/services'
;
import
{
getAllApi
,
getDetailsApi
,
queryUserSetApi
}
from
'../Services/apiConfig'
;
@
connect
()
@
connect
()
class
DetailSplit
extends
Component
{
class
DetailSplit
extends
Component
{
...
@@ -176,7 +178,7 @@ class DetailSplit extends Component {
...
@@ -176,7 +178,7 @@ class DetailSplit extends Component {
* @function 默认请求
* @function 默认请求
*/
*/
getInit
=
(
handleUser
)
=>
{
getInit
=
(
handleUser
)
=>
{
const
{
dispatch
,
formPrepareData
}
=
this
.
props
;
const
{
formPrepareData
}
=
this
.
props
;
const
id
=
this
.
props
.
history
.
location
.
state
&&
this
.
props
.
history
.
location
.
state
.
id
;
const
id
=
this
.
props
.
history
.
location
.
state
&&
this
.
props
.
history
.
location
.
state
.
id
;
const
code
=
this
.
props
.
history
.
location
.
state
&&
this
.
props
.
history
.
location
.
state
.
code
;
const
code
=
this
.
props
.
history
.
location
.
state
&&
this
.
props
.
history
.
location
.
state
.
code
;
const
queryId
=
this
.
props
.
history
.
location
.
query
&&
this
.
props
.
history
.
location
.
query
.
id
;
const
queryId
=
this
.
props
.
history
.
location
.
query
&&
this
.
props
.
history
.
location
.
query
.
id
;
...
@@ -232,21 +234,17 @@ class DetailSplit extends Component {
...
@@ -232,21 +234,17 @@ class DetailSplit extends Component {
},
},
()
=>
{
()
=>
{
if
(
val
.
isSecond
)
{
if
(
val
.
isSecond
)
{
this
.
props
.
dispatch
({
getUaaServicesNomal
(
getAllApi
,
{}).
then
(
arr
=>
{
type
:
'urge/GetMyBtn'
,
this
.
setState
(
payload
:
{},
{
callback
:
(
arr
)
=>
{
btnList
:
arr
,
this
.
setState
(
radiovalue
:
val
.
formLevelId
?
val
.
formLevelId
:
arr
[
arr
.
length
-
1
].
id
,
{
},
btnList
:
arr
,
()
=>
{
radiovalue
:
val
.
formLevelId
?
val
.
formLevelId
:
arr
[
arr
.
length
-
1
].
id
,
// this.giveMessageTop();
},
},
()
=>
{
);
// this.giveMessageTop();
})
},
);
},
});
}
else
{
}
else
{
// this.giveMessageTop();
// this.giveMessageTop();
}
}
...
@@ -255,41 +253,32 @@ class DetailSplit extends Component {
...
@@ -255,41 +253,32 @@ class DetailSplit extends Component {
});
});
}
}
}
}
dispatch
({
getUaaServicesNomal
(
getDetailsApi
,
{
type
:
'emailorphone/GetLogo'
,
configKeys
:
[
'isCloseUserDetail'
,
'isCloseFlowPath'
,
'isAllPrint'
,
'closeAutoSign'
],
payload
:
{
}).
then
(
val
=>
{
configKeys
:
[
'isCloseUserDetail'
,
'isCloseFlowPath'
,
'isAllPrint'
,
'closeAutoSign'
],
const
closeAutoSign
=
!!
(
val
[
3
]
&&
val
[
3
].
configValue
===
'true'
);
},
this
.
setState
({
callback
:
(
val
)
=>
{
isCloseUserDetail
:
!!
(
val
[
0
]
&&
val
[
0
].
configValue
===
'true'
),
const
closeAutoSign
=
!!
(
val
[
3
]
&&
val
[
3
].
configValue
===
'true'
);
isAllPrint
:
!!
(
val
[
2
]
&&
val
[
2
].
configValue
===
'true'
),
this
.
setState
({
closeAutoSign
,
isCloseUserDetail
:
!!
(
val
[
0
]
&&
val
[
0
].
configValue
===
'true'
),
});
isAllPrint
:
!!
(
val
[
2
]
&&
val
[
2
].
configValue
===
'true'
),
if
(
!
closeAutoSign
)
{
closeAutoSign
,
/**
});
* 获取设置的数据
*/
if
(
!
closeAutoSign
)
{
getServicesNomal
(
queryUserSetApi
,
{}).
then
(
val
=>
{
/**
this
.
setState
({
* 获取设置的数据
setData
:
val
,
*/
this
.
props
.
dispatch
({
type
:
'UserSetCenterApi/queryUserSet'
,
payload
:
{},
callback
:
(
val
)
=>
{
this
.
setState
({
setData
:
val
,
});
},
});
});
}
});
}
if
(
val
[
1
]?.
configValue
)
{
if
(
val
[
1
]?.
configValue
)
{
sessionStorage
.
setItem
(
sessionStorage
.
setItem
(
'isCloseFlowPath'
,
'isCloseFlowPath'
,
val
[
1
]?.
configValue
===
'true'
?
JSON
.
stringify
(
true
)
:
JSON
.
stringify
(
false
),
val
[
1
]?.
configValue
===
'true'
?
JSON
.
stringify
(
true
)
:
JSON
.
stringify
(
false
),
);
);
}
}
},
});
});
if
(
getToken
())
{
if
(
getToken
())
{
const
user
=
localStorage
.
getItem
(
'user'
);
const
user
=
localStorage
.
getItem
(
'user'
);
...
...
one_stop_public/DetailForAudit/components/Countersign/index.jsx
浏览文件 @
ba1a5ebc
...
@@ -6,6 +6,8 @@ import { Modal, Input, Table, Row, Col, Tooltip, Spin, Tag } from 'antd';
...
@@ -6,6 +6,8 @@ import { Modal, Input, Table, Row, Col, Tooltip, Spin, Tag } from 'antd';
import
styles
from
'./style.less'
;
import
styles
from
'./style.less'
;
import
{
openToast
}
from
'../Notification'
;
import
{
openToast
}
from
'../Notification'
;
import
{
connect
}
from
'dva'
;
import
{
connect
}
from
'dva'
;
import
{
getUaaServicesNomal
}
from
'../../../Services/services'
;
import
{
addSignsApi
}
from
'../../../Services/apiConfig'
;
const
{
Search
}
=
Input
;
const
{
Search
}
=
Input
;
...
@@ -126,13 +128,6 @@ export default class Countersign extends Component {
...
@@ -126,13 +128,6 @@ export default class Countersign extends Component {
});
});
};
};
getInit
=
async
()
=>
{
getInit
=
async
()
=>
{
const
{
dispatch
,
data
:
{
addSignSql
,
id
,
},
}
=
this
.
props
;
// 用户名列表
// 用户名列表
this
.
getData
();
this
.
getData
();
await
this
.
setState
({
await
this
.
setState
({
...
@@ -166,7 +161,6 @@ export default class Countersign extends Component {
...
@@ -166,7 +161,6 @@ export default class Countersign extends Component {
};
};
userPaginationChange
=
value
=>
{
userPaginationChange
=
value
=>
{
const
{
dispatch
}
=
this
.
props
;
const
{
const
{
realname
,
realname
,
username
,
username
,
...
@@ -183,7 +177,6 @@ export default class Countersign extends Component {
...
@@ -183,7 +177,6 @@ export default class Countersign extends Component {
* @param { string } value 用户输入值
* @param { string } value 用户输入值
*/
*/
searchNameChange
=
value
=>
{
searchNameChange
=
value
=>
{
const
{
dispatch
}
=
this
.
props
;
this
.
getData
({
this
.
getData
({
realname
:
value
,
realname
:
value
,
pageNo
:
1
,
pageNo
:
1
,
...
@@ -206,7 +199,6 @@ export default class Countersign extends Component {
...
@@ -206,7 +199,6 @@ export default class Countersign extends Component {
* @param { stirng } value 用户输入值
* @param { stirng } value 用户输入值
*/
*/
serachStuNoChange
=
value
=>
{
serachStuNoChange
=
value
=>
{
const
{
dispatch
}
=
this
.
props
;
this
.
setState
({
this
.
setState
({
username
:
value
,
username
:
value
,
});
});
...
@@ -234,7 +226,6 @@ export default class Countersign extends Component {
...
@@ -234,7 +226,6 @@ export default class Countersign extends Component {
handleOk
=
e
=>
{
handleOk
=
e
=>
{
const
{
selectUserData
}
=
this
.
state
;
const
{
selectUserData
}
=
this
.
state
;
const
{
dispatch
}
=
this
.
props
;
let
ary
=
[];
let
ary
=
[];
selectUserData
.
map
(
item
=>
{
selectUserData
.
map
(
item
=>
{
ary
.
push
(
item
.
id
);
ary
.
push
(
item
.
id
);
...
@@ -248,21 +239,32 @@ export default class Countersign extends Component {
...
@@ -248,21 +239,32 @@ export default class Countersign extends Component {
btnLoading
:
true
,
btnLoading
:
true
,
},
},
()
=>
{
()
=>
{
dispatch
({
getUaaServicesNomal
(
addSignsApi
,
{
type
:
'countersign/countersignHandle'
,
taskId
:
this
.
props
.
taskId
,
payload
:
{
userIds
:
ary
,
taskId
:
this
.
props
.
taskId
,
}).
then
(()
=>
{
userIds
:
ary
,
openToast
(
'success'
,
'加签成功'
);
},
callback
:
()
=>
{
openToast
(
'success'
,
'加签成功'
);
this
.
props
.
getInit
();
this
.
props
.
getInit
();
this
.
setState
({
this
.
setState
({
visible
:
false
,
visible
:
false
,
btnLoading
:
false
,
btnLoading
:
false
,
});
});
},
});
});
// dispatch({
// type: 'countersign/countersignHandle',
// payload: {
// taskId: this.props.taskId,
// userIds: ary,
// },
// callback: () => {
// openToast('success', '加签成功');
// this.props.getInit();
// this.setState({
// visible: false,
// btnLoading: false,
// });
// },
// });
},
},
);
);
};
};
...
...
one_stop_public/DetailForAudit/components/FlowExamineModal/Image.js
浏览文件 @
ba1a5ebc
...
@@ -3,6 +3,8 @@ import Loading from '../loadThree';
...
@@ -3,6 +3,8 @@ import Loading from '../loadThree';
import
{
Slider
,
Row
,
Col
}
from
'antd'
;
import
{
Slider
,
Row
,
Col
}
from
'antd'
;
import
{
connect
}
from
'dva'
;
import
{
connect
}
from
'dva'
;
import
classNames
from
'classnames/bind'
;
import
classNames
from
'classnames/bind'
;
import
{
getUaaServicesNomal
}
from
'../../../Services/services'
;
import
{
getDetailsApi
}
from
'../../../Services/apiConfig'
;
const
names
=
classNames
.
bind
(
require
(
'./style.less'
));
const
names
=
classNames
.
bind
(
require
(
'./style.less'
));
...
@@ -73,17 +75,13 @@ export default class PortalFlowExamineModalImage extends React.Component {
...
@@ -73,17 +75,13 @@ export default class PortalFlowExamineModalImage extends React.Component {
});
});
},
},
});
});
this
.
props
.
dispatch
({
// 获取配置信息
// 获取配置信息
getUaaServicesNomal
(
getDetailsApi
,
{
type
:
'emailorphone/GetLogo'
,
configKeys
:
'IsOldFlow'
,
payload
:
{
}).
then
(
val
=>
{
configKeys
:
'IsOldFlow'
,
this
.
setState
({
},
configValue
:
val
[
0
].
configValue
==
'true'
,
callback
:
val
=>
{
});
this
.
setState
({
configValue
:
val
[
0
].
configValue
==
'true'
,
});
},
});
});
};
};
...
...
one_stop_public/DetailForAudit/components/trunToModel/index.jsx
浏览文件 @
ba1a5ebc
...
@@ -15,6 +15,8 @@ import Recycle from './recycle';
...
@@ -15,6 +15,8 @@ import Recycle from './recycle';
import
styles
from
'./style.less'
;
import
styles
from
'./style.less'
;
import
{
confirm
,
openToast
}
from
'../Notification'
;
import
{
confirm
,
openToast
}
from
'../Notification'
;
import
{
connect
}
from
'dva'
;
import
{
connect
}
from
'dva'
;
import
{
getUaaServicesNomal
}
from
'../../../Services/services'
;
import
{
refuseProcessApi
,
resetProcessApi
,
turnsProcessApi
}
from
'../../../Services/apiConfig'
;
@
connect
()
@
connect
()
export
default
class
TurnToModel
extends
Component
{
export
default
class
TurnToModel
extends
Component
{
constructor
(
props
){
constructor
(
props
){
...
@@ -55,39 +57,31 @@ export default class TurnToModel extends Component {
...
@@ -55,39 +57,31 @@ export default class TurnToModel extends Component {
if
(
status
===
'转办'
){
// 发起转办提交处理
if
(
status
===
'转办'
){
// 发起转办提交处理
const
{
user
}
=
this
.
state
const
{
user
}
=
this
.
state
if
(
user
){
if
(
user
){
dispatch
({
getUaaServicesNomal
(
turnsProcessApi
,
{
type
:
'trunTo/turnsProcess'
,
taskIds
:[
value
.
taskId
],
payload
:
{
reason
,
taskIds
:[
value
.
taskId
],
turnsUserCode
:
user
.
stuNo
reason
,
}).
then
(()
=>
{
turnsUserCode
:
user
.
stuNo
openToast
(
'success'
,
'成功'
,
'当前流程已成功移交'
)
},
this
.
props
.
init
()
callback
:
(
val
)
=>
{
this
.
setState
({
openToast
(
'success'
,
'成功'
,
'当前流程已成功移交'
)
loading
:
false
this
.
props
.
init
()
})
this
.
setState
({
loading
:
false
})
}
})
})
}
else
{
}
else
{
openToast
(
'info'
,
'错误'
,
'请选择移交人员'
)
openToast
(
'info'
,
'错误'
,
'请选择移交人员'
)
}
}
}
else
if
(
status
===
'回退'
)
{
// 发起回退提交处理
}
else
if
(
status
===
'回退'
)
{
// 发起回退提交处理
dispatch
({
getUaaServicesNomal
(
refuseProcessApi
,
{
type
:
'trunTo/refuseProcess'
,
taskIds
:[
value
.
taskId
],
payload
:
{
reason
taskIds
:[
value
.
taskId
],
}).
then
(()
=>
{
reason
openToast
(
'success'
,
'回退'
,
'当前流程已成功回退'
)
},
this
.
props
.
init
()
callback
:
(
val
)
=>
{
this
.
setState
({
openToast
(
'success'
,
'回退'
,
'当前流程已成功回退'
)
loading
:
false
this
.
props
.
init
()
this
.
setState
({
loading
:
false
})
}
})
})
});
}
else
{
}
else
{
console
.
log
(
'缺乏匹配字段提交方法'
)
console
.
log
(
'缺乏匹配字段提交方法'
)
}
}
...
@@ -96,16 +90,12 @@ export default class TurnToModel extends Component {
...
@@ -96,16 +90,12 @@ export default class TurnToModel extends Component {
recallConfim
=
()
=>
{
recallConfim
=
()
=>
{
const
{
status
,
dispatch
,
value
}
=
this
.
props
const
{
status
,
dispatch
,
value
}
=
this
.
props
confirm
(
'撤回'
,
'是否撤回当前转办流程'
,()
=>
{
confirm
(
'撤回'
,
'是否撤回当前转办流程'
,()
=>
{
dispatch
({
getUaaServicesNomal
(
resetProcessApi
,
{
type
:
'trunTo/resetProcess'
,
taskIds
:[
value
.
taskId
],
payload
:{
}).
then
(()
=>
{
taskIds
:[
value
.
taskId
],
openToast
(
'success'
,
'成功'
,
'该转办流程已成功撤回'
)
},
this
.
props
.
init
()
callback
:(
val
)
=>
{
});
openToast
(
'success'
,
'成功'
,
'该转办流程已成功撤回'
)
this
.
props
.
init
()
}
})
this
.
props
.
handleCancel
()
this
.
props
.
handleCancel
()
},()
=>
{
},()
=>
{
this
.
props
.
handleCancel
()
this
.
props
.
handleCancel
()
...
...
one_stop_public/DetailForAudit/components/trunToModel/recycle/index.jsx
浏览文件 @
ba1a5ebc
...
@@ -8,6 +8,8 @@ import React, { Component } from 'react'
...
@@ -8,6 +8,8 @@ import React, { Component } from 'react'
import
styles
from
'../style.less'
;
import
styles
from
'../style.less'
;
import
{
Row
,
Col
,
Input
,
Spin
}
from
'antd'
;
import
{
Row
,
Col
,
Input
,
Spin
}
from
'antd'
;
import
{
connect
}
from
'dva'
;
import
{
connect
}
from
'dva'
;
import
{
getUaaServicesNomal
}
from
'../../../../Services/services'
;
import
{
getListApi
}
from
'../../../../Services/services'
;
const
{
TextArea
}
=
Input
;
const
{
TextArea
}
=
Input
;
@
connect
()
@
connect
()
export
default
class
index
extends
Component
{
export
default
class
index
extends
Component
{
...
@@ -24,18 +26,14 @@ export default class index extends Component {
...
@@ -24,18 +26,14 @@ export default class index extends Component {
this
.
setState
({
this
.
setState
({
isLoading
:
true
isLoading
:
true
})
})
await
dispatch
({
await
getUaaServicesNomal
(
getListApi
,
{
type
:
'trunTo/detailProcess'
,
taskId
:
value
.
taskId
,
payload
:
{
}).
then
(
val
=>
{
taskId
:
value
.
taskId
,
this
.
setState
({
},
data
:
Array
.
isArray
(
val
)
&&
val
?.
length
>
0
?
val
[
val
.
length
-
1
]:
''
,
callback
:
(
val
)
=>
{
isLoading
:
false
,
this
.
setState
({
})
data
:
Array
.
isArray
(
val
)
&&
val
?.
length
>
0
?
val
[
val
.
length
-
1
]:
''
,
});
isLoading
:
false
,
})
}
})
}
}
/**
/**
* 多行文本输入
* 多行文本输入
...
...
one_stop_public/DetailForAudit/components/trunToModel/trunTo/index.jsx
浏览文件 @
ba1a5ebc
...
@@ -9,6 +9,8 @@ import React, { Component } from 'react';
...
@@ -9,6 +9,8 @@ import React, { Component } from 'react';
import
{
Input
,
Table
,
Row
,
Col
,
Tooltip
,
Spin
}
from
'antd'
;
import
{
Input
,
Table
,
Row
,
Col
,
Tooltip
,
Spin
}
from
'antd'
;
import
styles
from
'../style.less'
;
import
styles
from
'../style.less'
;
import
{
connect
}
from
'dva'
;
import
{
connect
}
from
'dva'
;
import
{
getUaaServicesNomal
}
from
'../../../../Services/services'
;
import
{
getListApi
}
from
'../../../../Services/apiConfig'
;
const
{
Search
}
=
Input
;
const
{
Search
}
=
Input
;
const
{
TextArea
}
=
Input
;
const
{
TextArea
}
=
Input
;
@
connect
()
@
connect
()
...
@@ -91,16 +93,12 @@ export default class index extends Component {
...
@@ -91,16 +93,12 @@ export default class index extends Component {
});
});
},
},
});
});
await
dispatch
({
await
getUaaServicesNomal
(
getListApi
,
{
type
:
'trunTo/detailProcess'
,
taskId
:
value
.
taskId
,
payload
:
{
}).
then
(
val
=>
{
taskId
:
value
.
taskId
,
this
.
setState
({
},
userData
:
Array
.
isArray
(
val
)
&&
val
?.
length
>
0
?
val
[
val
.
length
-
1
]
:
''
,
callback
:
val
=>
{
});
this
.
setState
({
userData
:
Array
.
isArray
(
val
)
&&
val
?.
length
>
0
?
val
[
val
.
length
-
1
]
:
''
,
});
},
});
});
await
this
.
setState
({
await
this
.
setState
({
isLoading
:
false
,
isLoading
:
false
,
...
...
one_stop_public/DetailForAudit/trunToDetail.jsx
浏览文件 @
ba1a5ebc
...
@@ -11,6 +11,8 @@ import SVG from './components/SVG';
...
@@ -11,6 +11,8 @@ import SVG from './components/SVG';
import
{
Spin
,
Timeline
,
Icon
}
from
'antd'
;
import
{
Spin
,
Timeline
,
Icon
}
from
'antd'
;
import
{
connect
}
from
'dva'
;
import
{
connect
}
from
'dva'
;
import
moment
from
'moment'
;
import
moment
from
'moment'
;
import
{
getUaaServicesNomal
}
from
'../Services/services'
;
import
{
getListApi
}
from
'../Services/apiConfig'
;
@
connect
()
@
connect
()
export
default
class
trunToDetail
extends
Component
{
export
default
class
trunToDetail
extends
Component
{
constructor
(
props
){
constructor
(
props
){
...
@@ -35,18 +37,12 @@ export default class trunToDetail extends Component {
...
@@ -35,18 +37,12 @@ export default class trunToDetail extends Component {
isLoading
:
true
,
isLoading
:
true
,
})
})
// 发起请求获取数据
// 发起请求获取数据
dispatch
({
getUaaServicesNomal
(
getListApi
,
{
taskId
:
item
.
id
}).
then
(
val
=>
{
type
:
'trunTo/detailProcess'
,
this
.
setState
({
payload
:
{
isLoading
:
false
,
taskId
:
item
.
id
,
trunToData
:
val
},
});
callback
:
(
val
)
=>
{
});
this
.
setState
({
isLoading
:
false
,
trunToData
:
val
})
}
})
}
else
{
// 为关闭状态清空数据
}
else
{
// 为关闭状态清空数据
this
.
setState
({
this
.
setState
({
trunToData
:
''
trunToData
:
''
...
...
one_stop_public/ForZydApply/index.js
浏览文件 @
ba1a5ebc
...
@@ -9,10 +9,10 @@ import React from 'react';
...
@@ -9,10 +9,10 @@ import React from 'react';
import
classNames
from
'classnames/bind'
;
import
classNames
from
'classnames/bind'
;
import
{
connect
}
from
'dva'
;
import
{
connect
}
from
'dva'
;
import
SponsorForm
from
'./SponsorForm/index'
;
import
SponsorForm
from
'./SponsorForm/index'
;
import
{
isJSON
}
from
'@/webPublic/one_stop_public/copy'
;
import
{
getUrlInfo
}
from
'@/webPublic/one_stop_public/DetailForAudit/utils'
;
import
{
getUrlInfo
}
from
'@/webPublic/one_stop_public/DetailForAudit/utils'
;
import
{
setToken
}
from
'@/webPublic/one_stop_public/utils/token'
;
import
{
setToken
}
from
'@/webPublic/one_stop_public/utils/token'
;
import
{
Button
}
from
'antd'
;
import
{
getUaaServicesNomal
}
from
'../Services/services'
;
import
{
getAllApi
}
from
'../Services/apiConfig'
;
const
names
=
classNames
.
bind
(
require
(
'./style.less'
));
const
names
=
classNames
.
bind
(
require
(
'./style.less'
));
...
@@ -60,15 +60,11 @@ export default class IframeForApply extends React.Component {
...
@@ -60,15 +60,11 @@ export default class IframeForApply extends React.Component {
}
}
componentDidMount
()
{
componentDidMount
()
{
this
.
props
.
dispatch
({
getUaaServicesNomal
(
getAllApi
,
{}).
then
(
val
=>
{
type
:
'urge/GetMyBtn'
,
this
.
setState
({
payload
:
{},
btnList
:
val
,
callback
:
val
=>
{
value
:
val
[
val
.
length
-
1
].
id
,
this
.
setState
({
});
btnList
:
val
,
value
:
val
[
val
.
length
-
1
].
id
,
});
},
});
});
// document.getElementById('root').style.backgroundColor = '#fff';
// document.getElementById('root').style.backgroundColor = '#fff';
}
}
...
...
one_stop_public/Services/apiConfig.js
0 → 100644
浏览文件 @
ba1a5ebc
// 请求地址
const
DataObjApi
=
'/DataObjApi'
;
const
DataColumnApi
=
"/DataColumnApi"
;
const
SqlManageEntityApi
=
'/SqlManageEntityApi'
;
const
UnifiedAppFormApi
=
'/UnifiedAppFormApi'
;
// formList model层相关api
export
const
getFormDataPageApi
=
DataObjApi
+
'/getFormDataPage'
export
const
getHeaderListApi
=
DataColumnApi
+
'/getHeaderList'
;
export
const
getBatchOptionsApi
=
DataColumnApi
+
'/getBatchOptions'
;
export
const
getFormDataApi
=
DataObjApi
+
'/getFormData'
;
export
const
deleteFormDataApi
=
DataObjApi
+
'/deleteFormData'
;
export
const
getDetailByCodeApi
=
UnifiedAppFormApi
+
'/getDetailByCode'
;
export
const
getDetailApi
=
DataObjApi
+
'/getDetail'
;
export
const
addFormDataApi
=
DataObjApi
+
'/addFormData'
;
export
const
getGroupListApi
=
DataColumnApi
+
'/getGroupList'
;
export
const
getFormDataListApi
=
DataObjApi
+
'/getFormDataList'
;
// DataColumn model层相关api
export
const
getSqlDataApi
=
DataColumnApi
+
'/getSqlData'
;
export
const
getSqlOptionsApi
=
DataColumnApi
+
'/getSqlOptions'
;
export
const
getSqlLabelsApi
=
DataColumnApi
+
'/getSqlLabels'
;
export
const
getLabelsApi
=
DataColumnApi
+
'/getLabels'
;
export
const
getOptionsApi
=
DataColumnApi
+
'/getOptions'
;
// SqlManageEntity model层相关api
export
const
findApi
=
SqlManageEntityApi
+
'/find'
// DataObj model层相关api
export
const
getExportInfoApi
=
DataObjApi
+
'/getExportInfo'
export
const
importExecuteApi
=
DataObjApi
+
'/importExecute'
export
const
importAnalyseApi
=
DataObjApi
+
'/importAnalyse'
export
const
importDataQueryApi
=
DataObjApi
+
'/importDataQuery'
export
const
importProcessApi
=
DataObjApi
+
'/importProcess'
export
const
getStatisticsApi
=
DataObjApi
+
'/getStatistics'
export
const
findByCodeApi
=
DataObjApi
+
'/findByCode'
;
// countersign model层相关api
export
const
addSignsApi
=
UnifiedAppFormApi
+
"/addSigns"
// emailorphone model层相关api
export
const
getDetailsApi
=
'/ConfigApi/getDetails'
// UserSetCenterApi model层相关api
export
const
queryUserSetApi
=
'/UserSetCenterApi/queryUserSet'
// trunTo model层相关api
export
const
turnsProcessApi
=
'/ActCommentApi/turnsProcess'
export
const
refuseProcessApi
=
'/ActCommentApi/refuseProcess'
export
const
resetProcessApi
=
'/ActCommentApi/resetProcess'
export
const
getListApi
=
'/ActCommentApi/getList'
// urge model层相关api
export
const
getAllApi
=
'/UnifiedAppFormLevelApi/getAll'
\ No newline at end of file
one_stop_public/Services/services.js
0 → 100644
浏览文件 @
ba1a5ebc
import
{
apiRequest
,
uaaRequest
}
from
'../utils/request'
;
import
{
importExecuteApi
,
getFormDataPageApi
}
from
'./apiConfig'
// apiRequest
export
const
getServicesNomal
=
(
apiAddress
,
params
)
=>
{
return
apiRequest
(
apiAddress
,
params
);
};
// uaaRequest
export
const
getUaaServicesNomal
=
(
apiAddress
,
params
)
=>
{
return
uaaRequest
(
apiAddress
,
params
);
};
export
const
getFormDataPage
=
(
params
)
=>
{
return
apiRequest
(
getFormDataPageApi
,
params
).
then
((
response
)
=>
{
if
(
response
)
{
return
{
list
:
response
.
rows
,
pagination
:
{
current
:
response
.
pageNo
,
pageSize
:
response
.
pageSize
,
total
:
response
.
total
,
},
};
}
});
};
export
const
importExecute
=
(
params
)
=>
{
return
apiRequest
(
importExecuteApi
,
{
...
params
,
customErrMsg
:
'导入的文件中可能存在字段不一致、字段类型不匹配、唯一性字段冲突,请检查或联系系统管理员'
,
// 自定义errMsg
});
};
one_stop_public/libs/formList/TreeList.js
浏览文件 @
ba1a5ebc
差异被折叠。
点击展开。
one_stop_public/libs/formList/edit.js
浏览文件 @
ba1a5ebc
import
React
,
{
Fragment
}
from
'react'
;
import
React
from
'react'
;
import
{
Button
,
Card
,
Col
,
DatePicker
,
Form
,
Input
,
InputNumber
,
message
,
Row
}
from
'antd'
;
import
{
Col
,
Form
,
message
,
Row
}
from
'antd'
;
import
{
connect
}
from
'dva'
;
import
{
connect
}
from
'dva'
;
import
PageHeaderWrapper
from
'./PageHeaderWrapper'
;
import
PageHeaderWrapper
from
'./PageHeaderWrapper'
;
import
router
from
'umi/router'
;
import
router
from
'umi/router'
;
...
@@ -7,6 +7,13 @@ import { getFormArrayConfig } from './config/index';
...
@@ -7,6 +7,13 @@ import { getFormArrayConfig } from './config/index';
import
FormArray
from
'../../App/ButtonDiy/FormArray'
;
import
FormArray
from
'../../App/ButtonDiy/FormArray'
;
import
ButtonDiy
from
'../../App/ButtonDiy/ButtonDiy'
;
import
ButtonDiy
from
'../../App/ButtonDiy/ButtonDiy'
;
import
Shell
from
'./Shell'
;
import
Shell
from
'./Shell'
;
import
{
getServicesNomal
}
from
'../../Services/services'
;
import
{
getBatchOptionsApi
,
getFormDataApi
,
getHeaderListApi
,
addFormDataApi
,
}
from
'../../Services/apiConfig'
;
@
connect
(({
formEdit
,
formList
,
loading
})
=>
({
@
connect
(({
formEdit
,
formList
,
loading
})
=>
({
formEdit
,
formEdit
,
...
@@ -29,50 +36,37 @@ class FormEdit extends React.Component {
...
@@ -29,50 +36,37 @@ class FormEdit extends React.Component {
//渲染值
//渲染值
componentDidMount
()
{
componentDidMount
()
{
const
{
dispatch
}
=
this
.
props
;
const
{
objId
,
recordKey
,
recordId
}
=
this
.
state
;
const
{
objId
,
recordKey
,
recordId
}
=
this
.
state
;
dispatch
({
getServicesNomal
(
getHeaderListApi
,
{
dataObjId
:
objId
}).
then
(
dates
=>
{
type
:
'formList/getHead'
,
if
(
dates
)
{
payload
:
{
dataObjId
:
objId
},
this
.
state
.
formItem
=
dates
;
callback
:
(
dates
)
=>
{
const
refIds
=
[];
if
(
dates
)
{
for
(
let
t
in
dates
)
{
this
.
state
.
formItem
=
dates
;
if
(
const
refIds
=
[];
dates
[
t
].
referenceObjId
!=
null
&&
for
(
let
t
in
dates
)
{
this
.
state
.
options
[
this
.
state
.
formItem
[
t
].
id
+
''
]
==
null
if
(
)
{
dates
[
t
].
referenceObjId
!=
null
&&
refIds
.
push
(
dates
[
t
].
id
);
this
.
state
.
options
[
this
.
state
.
formItem
[
t
].
id
+
''
]
==
null
)
{
refIds
.
push
(
dates
[
t
].
id
);
}
}
}
}
if
(
refIds
.
length
>
0
)
{
if
(
refIds
.
length
>
0
)
{
dispatch
({
getServicesNomal
(
getBatchOptionsApi
,
{
ids
:
refIds
}).
then
(
options
=>
{
type
:
'formList/getBatchOptions'
,
this
.
setState
({
options
});
payload
:
{
ids
:
refIds
},
});
callback
:
(
options
)
=>
{
this
.
setState
({
options
});
},
});
}
}
}
}
,
}
});
});
//渲染表单字段
//渲染表单字段
if
(
recordId
!=
null
)
{
if
(
recordId
!=
null
)
{
dispatch
({
getServicesNomal
(
getFormDataApi
,
{
type
:
'formList/getDetail'
,
dataObjId
:
objId
,
payload
:
{
key
:
recordKey
,
dataObjId
:
objId
,
value
:
recordId
,
key
:
recordKey
,
}).
then
(
date
=>
{
value
:
recordId
,
if
(
date
)
{
},
this
.
state
.
formData
=
date
;
callback
:
(
date
)
=>
{
}
if
(
date
)
{
this
.
state
.
formData
=
date
;
}
},
});
});
}
}
}
}
...
@@ -85,13 +79,9 @@ class FormEdit extends React.Component {
...
@@ -85,13 +79,9 @@ class FormEdit extends React.Component {
isAdd
,
isAdd
,
isSelf
:
true
,
isSelf
:
true
,
};
};
this
.
props
.
dispatch
({
getServicesNomal
(
addFormDataApi
,
payload
).
then
(()
=>
{
type
:
'formList/add'
,
message
.
success
(
'操作成功'
);
payload
,
router
.
goBack
();
callback
:
()
=>
{
message
.
success
(
'操作成功'
);
router
.
goBack
();
},
});
});
};
};
...
...
one_stop_public/libs/formList/index.js
浏览文件 @
ba1a5ebc
差异被折叠。
点击展开。
one_stop_public/tableCompon/index.jsx
浏览文件 @
ba1a5ebc
差异被折叠。
点击展开。
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论