Commit 3399caf9 by zhaochengxiang

业务对象

parent 22ab8517
......@@ -575,10 +575,9 @@ const AssetAction = (props) => {
if (element.name === '业务对象') {
return (
<Cascader
allowClear
<CascaderItem
disabled={element.manualMaintain==='否'}
options={businessData}
data={businessData}
placeholder='请选择业务对象'
/>
)
......@@ -917,3 +916,20 @@ const MultipleSelect = ({ value = null, element, onChange }) => {
</Select>
)
}
const CascaderItem = ({ value = null, data, onChange, ...restProps }) => {
const handleChange = (values) => {
onChange?.(values?.join('/'))
}
return (
<Cascader
allowClear
options={data}
value={value?value.split('/'):undefined}
onChange={handleChange}
{...restProps}
/>
)
}
\ No newline at end of file
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