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

28974 辅导员考核相关需求,有疑问联系我

上级 51b98175
......@@ -7,12 +7,16 @@
* */
import React, { useState, useEffect } from 'react';
import styles from './styles/styles.less';
import { Modal, Button, Input, Checkbox, message, Icon, Tree, Spin, Tooltip } from 'antd';
import ButtonDiy from '@/baseComponent/ButtonDiy';
import { formatTreeData, colorTranslate, getApis } from './publicFunctions';
import { getInfo as requestData } from '@/highOrderComponent/Service';
import lowCodeProps from './lowCodeProps';
import request from '@/webPublic/one_stop_public/utils/request';
function requestData(data, url){
url = window.specialImportantSystemConfig.httpServer + url;
return request(url, data);
}
export default function SelectPerson(props) {
const [show, setShow] = useState(false);
......
import styles from './styles/styles.less';
import { Tooltip } from 'antd';
import React from 'react';
......
import React, { useState, useEffect, useMemo, useCallback } from 'react';
import { Steps } from 'antd';
const { Step } = Steps;
export default function StepDiy(props) {
const { value, onChange, json } = props;
const diyProps = useMemo(() => {
let b = {};
if(value && typeof value === 'object'){
b = {
...value,
};
}
if (json.otherProps && typeof json.otherProps === 'string') {
try {
let a = new Function(json.otherProps)();
if (a) {
return {
...b,
...a,
};
}
return b;
} catch (e) {
console.error('Step组件 otherProps错误');
}
} else {
return b;
}
}, [json.otherProps, value]);
console.log(diyProps);
return (
<div style={diyProps.outSideDivStyle}>
<Steps {...diyProps.StepsProps}>
{Array.isArray(diyProps.Step) &&
diyProps.Step.map(g => {
return <Step {...g} key={g.title} />;
})}
</Steps>
</div>
);
}
......@@ -84,6 +84,7 @@ import giveVarcharRules
from '@/webPublic/one_stop_public/tableCompon/Split_Index/giveVarcharLength';
import getPopupContainer
from '@/webPublic/one_stop_public/tableCompon/Split_Index/getPopupContainer';
import StepDiy from '@/webPublic/one_stop_public/tableCompon/Split_Index/StepDiy';
const {
MonthPicker,
......@@ -3719,6 +3720,15 @@ ${obj[dataColumn.base52]}
],
})(<WangEditor json={json} dataColumn={dataColumn} disabled={disabled} uuid={uuid} />);
break;
case 'Steps':
cm = getFieldDecorator(dataColumn.base52, {
initialValue: initValue,
})(<StepDiy json={json}
dataColumn={dataColumn}
disabled={disabled}
uuid={uuid}
/>);
break;
case 'MobileCard':
cm = getFieldDecorator(dataColumn.base52, {
initialValue: initValue,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论