提交 a5edc047 authored 作者: 钟是志's avatar 钟是志

3673 查看已驳回的数据的详情,无数据显示(社会实践管理-社会实践审核-已处理)

上级 fec8017c
...@@ -51,6 +51,7 @@ import { getIsGui_Jian, isJSON } from '@/webPublic/zyd_public/utils/utils'; ...@@ -51,6 +51,7 @@ 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 { getServicesNomal, getUaaServicesNomal } from '../Services/services';
import { getAllApi, getDetailsApi, queryUserSetApi } from '../Services/apiConfig'; import { getAllApi, getDetailsApi, queryUserSetApi } from '../Services/apiConfig';
import { getFormDetail } from "@/webPublic/FormInsertDiy/AffairPage/publicApiService";
@connect() @connect()
class DetailSplit extends Component { class DetailSplit extends Component {
...@@ -207,8 +208,21 @@ class DetailSplit extends Component { ...@@ -207,8 +208,21 @@ class DetailSplit extends Component {
} }
if (val) { if (val) {
// console.log(val); // console.log(val);
this.getTaskInfos(val).then((res) => { this.getTaskInfos(val).then( async (res) => {
val.taskInfo = res.taskInfo; val.taskInfo = res.taskInfo;
if(res.taskInfo && res.taskInfo.length > 1 && !val.taskFormKey){
if(res.taskInfo[0].taskDefKey === res.taskInfo[res.taskInfo.length - 1].taskDefKey && !val.hisTaskForm.formKeys?.length){
const formKey = res.taskInfo[0].formKey
// 驳回到发起节点没有展示的bug-3673 查看已驳回的数据的详情,无数据显示
val.taskFormKey = formKey;
val.hisTaskForm.formKeys = [
{
formKey: formKey,
taskName: res.taskInfo[0].name,
},
];
}
}
this.setState( this.setState(
{ {
data: val, data: val,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论