|
@@ -26,7 +26,7 @@ const RoleCz: React.FC<Props> = ({ data = [], visible, onClose, onChange }) => {
|
|
|
|
|
|
useEffect(() => {
|
|
|
if (data?.length === 1) {
|
|
|
- const { user_wechat, user_phone, is_remove_game, is_wake_up ,remark, add_corp_user_id, is_add_corp_wechat, is_change_game_type} = data[0]
|
|
|
+ const { user_wechat, user_phone, is_remove_game, is_wake_up, remark, add_corp_user_id, is_add_corp_wechat, is_change_game_type,gsAccount,corpId,external_user_id } = data[0]
|
|
|
form.setFieldsValue({
|
|
|
userWechat: user_wechat,
|
|
|
userPhone: user_phone,
|
|
@@ -35,7 +35,10 @@ const RoleCz: React.FC<Props> = ({ data = [], visible, onClose, onChange }) => {
|
|
|
remark,
|
|
|
add_corp_user_id,
|
|
|
isAddCorpWechat: is_add_corp_wechat,
|
|
|
- isChangeGameType: is_change_game_type
|
|
|
+ isChangeGameType: is_change_game_type,
|
|
|
+ gsAccount,
|
|
|
+ corpId,
|
|
|
+ externalUserId:external_user_id
|
|
|
})
|
|
|
}
|
|
|
}, [data])
|
|
@@ -103,18 +106,19 @@ const RoleCz: React.FC<Props> = ({ data = [], visible, onClose, onChange }) => {
|
|
|
</Form.Item>
|
|
|
</Col>
|
|
|
<Col span={12}>
|
|
|
- {/* <Form.Item label="投手" name='putUserId'>
|
|
|
- <Select
|
|
|
- showSearch
|
|
|
- allowClear
|
|
|
- placeholder={'请选择投手'}
|
|
|
- filterOption={(input, option) =>
|
|
|
- (option?.children as any)?.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
- }
|
|
|
- >
|
|
|
- {userIdList.map((item: any) => <Select.Option value={item.userId} key={item.userId}>{item.nickname}</Select.Option>)}
|
|
|
- </Select>
|
|
|
- </Form.Item> */}
|
|
|
+ <Form.Item label="GS账号" name="gsAccount">
|
|
|
+ <Input placeholder="请输入GS账号" />
|
|
|
+ </Form.Item>
|
|
|
+ </Col>
|
|
|
+ <Col span={12}>
|
|
|
+ <Form.Item label="企业ID" name="corpId">
|
|
|
+ <Input placeholder="请输入企业id" />
|
|
|
+ </Form.Item>
|
|
|
+ </Col>
|
|
|
+ <Col span={12}>
|
|
|
+ <Form.Item label="企微客户ID" name="externalUserId">
|
|
|
+ <Input placeholder="请输入企微客户id" />
|
|
|
+ </Form.Item>
|
|
|
</Col>
|
|
|
<Col span={12}>
|
|
|
<Form.Item name='isAddCorpWechat' label="是否添加企微">
|