|  | @@ -16,18 +16,19 @@ interface Props {
 | 
	
		
			
				|  |  |      /**  是否第一次获取的时候返回值 */
 | 
	
		
			
				|  |  |      isReturnFirstValue?: boolean
 | 
	
		
			
				|  |  |      allowClear?: boolean
 | 
	
		
			
				|  |  | +    initialValues?: any
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -const SelectAdAccount: React.FC<Props> = ({ value, onChange, isReturnFirstValue, type = 'checkbox', allowClear = true }) => {
 | 
	
		
			
				|  |  | +const SelectAdAccount: React.FC<Props> = ({ value, onChange, isReturnFirstValue, type = 'checkbox', allowClear = true, initialValues = {} }) => {
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -    value = value && typeof value !== 'object' ? [value] : value 
 | 
	
		
			
				|  |  | +    value = value && typeof value !== 'object' ? [value] : value
 | 
	
		
			
				|  |  |      /***********************************/
 | 
	
		
			
				|  |  |      const [form] = Form.useForm()
 | 
	
		
			
				|  |  |      const [visible, setVisible] = useState<boolean>(false)
 | 
	
		
			
				|  |  |      const [selectedRows, setSelectedRows] = useState<any[]>([])
 | 
	
		
			
				|  |  | -    const [queryForm, setQueryForm] = useState<{ accountIdList?: number[], adUnitTypeList?: string[], groupId?: number, remark?: string, putInType?: 'NOVEL' | 'GAME', sysGroupId?: number, pageNum: number, pageSize: number }>({ pageNum: 1, pageSize: 50 })
 | 
	
		
			
				|  |  | +    const [queryForm, setQueryForm] = useState<{ accountIdList?: number[], adUnitTypeList?: string[], groupId?: number, remark?: string, putInType?: 'NOVEL' | 'GAME', sysGroupId?: number, pageNum: number, pageSize: number }>({ pageNum: 1, pageSize: 50, ...initialValues })
 | 
	
		
			
				|  |  |      const [isFirstReturn, setIsFirstReturn] = useState<boolean>(false)
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      const getUserAccountList = useAjax((params) => getUserAccountListApi(params))
 | 
	
	
		
			
				|  | @@ -166,7 +167,14 @@ const SelectAdAccount: React.FC<Props> = ({ value, onChange, isReturnFirstValue,
 | 
	
		
			
				|  |  |              </Selector>
 | 
	
		
			
				|  |  |              {visible && <div className={style.selectAccount_list}>
 | 
	
		
			
				|  |  |                  <div className={style.selectAccount_list_header}>
 | 
	
		
			
				|  |  | -                    <Form layout="inline" className='queryForm' name="basicSelectAcc" form={form} onFinish={onFinish}>
 | 
	
		
			
				|  |  | +                    <Form
 | 
	
		
			
				|  |  | +                        layout="inline"
 | 
	
		
			
				|  |  | +                        className='queryForm'
 | 
	
		
			
				|  |  | +                        name="basicSelectAcc"
 | 
	
		
			
				|  |  | +                        form={form}
 | 
	
		
			
				|  |  | +                        onFinish={onFinish}
 | 
	
		
			
				|  |  | +                        initialValues={initialValues}
 | 
	
		
			
				|  |  | +                    >
 | 
	
		
			
				|  |  |                          <Row gutter={[0, 6]}>
 | 
	
		
			
				|  |  |                              <Col><Form.Item name={'putInType'}>
 | 
	
		
			
				|  |  |                                  <Select
 | 
	
	
		
			
				|  | @@ -197,6 +205,19 @@ const SelectAdAccount: React.FC<Props> = ({ value, onChange, isReturnFirstValue,
 | 
	
		
			
				|  |  |                                      allowClear
 | 
	
		
			
				|  |  |                                  />
 | 
	
		
			
				|  |  |                              </Form.Item></Col>
 | 
	
		
			
				|  |  | +                            <Col><Form.Item name='adUnitAccount'>
 | 
	
		
			
				|  |  | +                                <Select
 | 
	
		
			
				|  |  | +                                    style={{ width: 130 }}
 | 
	
		
			
				|  |  | +                                    placeholder="是否业务单元"
 | 
	
		
			
				|  |  | +                                    allowClear
 | 
	
		
			
				|  |  | +                                    filterOption={(input: any, option: any) => {
 | 
	
		
			
				|  |  | +                                        return option!.children?.toString().toLowerCase().includes(input.toLowerCase())
 | 
	
		
			
				|  |  | +                                    }}
 | 
	
		
			
				|  |  | +                                >
 | 
	
		
			
				|  |  | +                                    <Select.Option value={1}>是</Select.Option>
 | 
	
		
			
				|  |  | +                                    <Select.Option value={0}>否</Select.Option>
 | 
	
		
			
				|  |  | +                                </Select>
 | 
	
		
			
				|  |  | +                            </Form.Item></Col>
 | 
	
		
			
				|  |  |                              <Col>
 | 
	
		
			
				|  |  |                                  <Space>
 | 
	
		
			
				|  |  |                                      <Button type="primary" htmlType="submit">搜索</Button>
 |