Browse Source

feat: 巡检计划制订-巡检点搜索

master
liujiangyong 12 months ago
parent
commit
05b2a2b87b
  1. 6
      web/client/src/sections/patrolManage/components/planModal.js

6
web/client/src/sections/patrolManage/components/planModal.js

@ -56,7 +56,7 @@ const PlanModal = ({ visible, onCreate, onCancel, dispatch, userLoading, userLis
<Select
defaultValue={curRecord?.frequency ? curRecord.frequency.substring(curRecord.frequency.length - 3, curRecord.frequency.length) : "次/天"}
onChange={value => setUnit(value)}
suffixIcon={<DownOutlined style={{color: '#fff'}} />}
suffixIcon={<DownOutlined style={{ color: '#fff' }} />}
>
<Option value="次/天">/</Option>
<Option value="次/周">/</Option>
@ -216,7 +216,9 @@ const PlanModal = ({ visible, onCreate, onCancel, dispatch, userLoading, userLis
{ required: true, message: '请选择巡检点' },
]}
>
<Select mode="multiple" options={pointOpt} disabled={!pointOpt || type === 'view'} bordered={false} />
<Select mode="multiple" options={pointOpt} disabled={!pointOpt || type === 'view'} bordered={false} showSearch
filterOption={(input, option) => (option?.label ?? '').toLowerCase().includes(input.toLowerCase())}
/>
</Form.Item>
<Form.Item
name="userIds"

Loading…
Cancel
Save