Commit 526cfa36 authored by TZW's avatar TZW

bug

parent f0901b4a
......@@ -18,6 +18,7 @@ import moment from 'moment';
let Diyrule = (props) => {
let { onChange } = props;
console.log(props?.value, 111111111);
let defval = props?.value ?? {};
let value = defval?.value || [],
other = useMemo(() => {
......
......@@ -1314,24 +1314,20 @@ function Diyrules({ item, colProps, formRef }) {
<Col {...col}>
<ProForm.Item
convertValue={(value) => {
console.log(value);
if (value?.other) return value;
let obj = {
noTypeId: value?.[0]?.noTypeId,
nrList: {
let nrList = {
other: {},
value: [],
},
};
value?.forEach((it) => {
if (it?.noRuleCode == 'increasing_order') {
obj.nrList.other = it;
nrList.other = it;
} else {
obj.nrList.value.push(it);
nrList.value.push(it);
}
});
console.log(obj);
return obj;
console.log(nrList);
return nrList;
}}
name={curkey}
label={item.title}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment