diff --git a/src/pages/device/productmanage/components/ActionForm.jsx b/src/pages/device/productmanage/components/ActionForm.jsx index 90e3ce6..1f9b5a8 100644 --- a/src/pages/device/productmanage/components/ActionForm.jsx +++ b/src/pages/device/productmanage/components/ActionForm.jsx @@ -84,12 +84,12 @@ const ActionForm = (props) => { // } // } // }, - { - title: '排序', - dataIndex: 'sort', - valueType:'digit', - width: '8%', - }, + // { + // title: '排序', + // dataIndex: 'sort', + // valueType:'digit', + // width: '8%', + // }, { title: '操作', valueType: 'option', diff --git a/src/pages/device/productmanage/components/CreateAction.jsx b/src/pages/device/productmanage/components/CreateAction.jsx index 06584a9..64444fc 100644 --- a/src/pages/device/productmanage/components/CreateAction.jsx +++ b/src/pages/device/productmanage/components/CreateAction.jsx @@ -8,8 +8,11 @@ const CreateAction = (props) => { const [valueType, setValueType] = useState('text'); const [layoutType, setLayoutType] = useState('Form'); const [optionitem,setoptionitem]=useState([]) + const [jsontext,setjsontext]=useState('') + const [modalVisit, setModalVisit] = useState(false); const [shuUpdate, setshuUpdate] = useState(false); + const { TextArea } = Input; useEffect(() => { formRef.current?.setFieldsValue(props.values); if(props.createModalVisible){ @@ -34,6 +37,8 @@ const CreateAction = (props) => { ary.push({actionValueName:op[t].actionValueName}) } setoptionitem(ary); + }if(props.values.actionType=="textareaary"){ + setjsontext(props.values.actionValue) }else{ setValueType(props.values.actionType); setLayoutType('Form'); @@ -130,6 +135,17 @@ const handleChange=(value)=>{ renderFormItem: () => }, ]; + case 'textareaary': + return [ + { + dataIndex: 'actionValue', + valueType: 'text', + initialValue:jsontext, + renderFormItem: () => + }, + ]; default: return [{ dataIndex: 'actionValue', @@ -214,9 +230,9 @@ const handleChange=(value)=>{