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

Merge remote-tracking branch 'origin/master'

...@@ -236,7 +236,7 @@ export default class Detail extends Component { ...@@ -236,7 +236,7 @@ export default class Detail extends Component {
}} }}
/> />
) : ( ) : (
<div id={'detailIframeId'}> <div id={'detailIframeId'} data-page-info={'detail'}>
<DetailOneStop id={id} {...this.props} code={code} showPrint={showPrint || false} /> <DetailOneStop id={id} {...this.props} code={code} showPrint={showPrint || false} />
</div> </div>
)} )}
......
...@@ -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,
...@@ -458,11 +472,8 @@ class DetailSplit extends Component { ...@@ -458,11 +472,8 @@ class DetailSplit extends Component {
route: this.props?.route, route: this.props?.route,
}; };
// console.log(data, isAllPrint); // console.log("🚀 ~ file:DetailSplit method:render line:467 -----", "data", data);
// let formV = this.props.form.getFieldsValue();
// if(formV?.LiPGpLRKXXm && formV?.LiPGpLRKXXm['41073']){
// console.log(formV?.LiPGpLRKXXm['41073']);
// }
return ( return (
<Fragment> <Fragment>
<div <div
......
...@@ -54,8 +54,7 @@ export function FormListButtons(props) { ...@@ -54,8 +54,7 @@ export function FormListButtons(props) {
if (!ConcatButtons || !ConcatButtons.length) { if (!ConcatButtons || !ConcatButtons.length) {
return null; return null;
} }
// console.log(ConcatButtons);
console.log(ConcatButtons);
return ConcatButtons.map((r, i) => { return ConcatButtons.map((r, i) => {
if (r.ButtonType === 'Normal') { if (r.ButtonType === 'Normal') {
......
...@@ -102,21 +102,11 @@ export default function Index({ ...@@ -102,21 +102,11 @@ export default function Index({
editor.create(); editor.create();
editor.txt.html(value); editor.txt.html(value);
// if (value && value.indexOf('wangEditorHtml') > -1) {
// editor.txt.html(value);
// } else {
// editor.txt.html('<div class="wangEditorHtml">' + value + '</div>');
// }
return () => { return () => {
console.log('是否销毁了editor'); console.log('销毁了editor');
editor.destroy(); editor.destroy();
}; };
}, []); }, []);
// useEffect(() => {
// if (value && editor && editor.txt) {
// editor.txt.html('<div class="wangEditorHtml">' + value + '</div>');
// }
// }, [value]);
return <div id={`wangEditor${domKey}`} />; return <div id={`wangEditor${domKey}`} />;
} }
import React, { useState, useEffect, forwardRef } from 'react'; import React, { useState, useEffect, forwardRef, useMemo } from 'react';
import WangEditor from './OneStopWangEditor'; import WangEditor from './OneStopWangEditor';
function Index({ onChange, value, otherProps, dataColumn, disabled, json, uuid }) { function Index({ onChange, value, otherProps, dataColumn, disabled, json, uuid }) {
...@@ -19,11 +19,8 @@ function Index({ onChange, value, otherProps, dataColumn, disabled, json, uuid } ...@@ -19,11 +19,8 @@ function Index({ onChange, value, otherProps, dataColumn, disabled, json, uuid }
if(!value || value === 'null'){ if(!value || value === 'null'){
return <div></div> return <div></div>
} }
return <div dangerouslySetInnerHTML={{__html: `<div class="wangEditorHtml">${value}</div>`}}> return <div dangerouslySetInnerHTML={{__html: `<div class="wangEditorHtml">${value}</div>`}} />
</div>
} }
return ( return (
<WangEditor <WangEditor
key={'cmsContent'} key={'cmsContent'}
...@@ -39,19 +36,25 @@ function Index({ onChange, value, otherProps, dataColumn, disabled, json, uuid } ...@@ -39,19 +36,25 @@ function Index({ onChange, value, otherProps, dataColumn, disabled, json, uuid }
} }
export default forwardRef((props, _ref) => { export default forwardRef((props, _ref) => {
let otherProps = {};
// console.log(props); // console.log(props);
if(!props.uuid){ if(!props.uuid){
return <div></div>; return <div></div>;
} }
if (props.json?.otherProps) {
otherProps = props.json?.otherProps;
try {
otherProps = new Function(otherProps)();
// console.log(this.otherProps);
} catch (e) {
const otherProps = useMemo(() => {
let other = {};
if (props.json?.otherProps) {
let a = props.json?.otherProps;
try {
other = new Function(a)();
// console.log(this.otherProps);
} catch (e) {
other = {};
}
} }
} return other;
}, [props.json?.otherProps]);
return <Index {...props} otherProps={otherProps}/>; return <Index {...props} otherProps={otherProps}/>;
}); });
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论