Commit e5172866 by zhangleyuan

feat:处理中文不能输入的问题

parent c1e330b9
......@@ -263,7 +263,7 @@ function DepartMentTabCon(props) {
<div className="department-tab-con">
<LeftStructureTree
treeType={props.currentTab}
searchUserList={(params,treeType) => getUserList(params,treeType)}
searchUserList={(params,treeType) => getUserList(params,treeType,1)}
onChangeSelectDep={(record)=>{setSelectDep(record)}}
/>
<div className="table-con">
......@@ -352,7 +352,7 @@ function DepartMentTabCon(props) {
const queryStates = _.clone(query);
queryStates.current = page;
setQuery(queryStates);
getUserList();
getUserList(null,null,current);
}}
/>
</div>
......
......@@ -68,7 +68,8 @@ function LeftStructureTree(props) {
dropdownClassName="certain-category-search-dropdown"
dropdownMatchSelectWidth={250}
allowClear
onChange={getCompleteOptionData}
// onChange={(value)=>{setQueryName(value)}}
onSearch={(value)=>{setQueryName(value)}}
notFoundContent={notFoundContentNode()}
value={queryName}
open={open}
......@@ -92,7 +93,7 @@ function LeftStructureTree(props) {
// 获取关键词的搜索结果
function getCompleteOptionData(value){
setQueryName(value);
// setQueryName(value);
const params = {
depType:DepType[props.treeType],
queryName:value,
......@@ -402,22 +403,26 @@ function LeftStructureTree(props) {
<div className="left-structure-tree">
<div className="organization">
<div className="search-con">
<Complete/>
{/* <AutoComplete
{/* <Complete/> */}
<AutoComplete
dropdownClassName="certain-category-search-dropdown"
dropdownMatchSelectWidth={250}
allowClear
onChange={(value)=>setQueryName(value)}
onSearch={(value)=>{getCompleteOptionData(value)}}
notFoundContent={notFoundContentNode()}
value={queryName}
open={open}
onFocus={()=>{setOpen(true)}}
onBlur={()=>{setOpen(false)}}
style={{
width: 250,
}}
onSearch={getCompleteOptionData}
placeholder="搜索员工、部门"
options={completeOptions}
onSelect={confirmSearchSelect}
placeholder='搜索员工、部门'
>
<Option><span>部门</span></Option>
{departmentUserResult.map((item) => (
<Option key={item.userName} value={item.userName}>
{email}
</Option>
))}
</AutoComplete> */}
</AutoComplete>
</div>
{ (props.treeType==='postGrouptab' || props.treeType=== 'customGroupTab') && (
<div className="operate">
......
......@@ -57,7 +57,10 @@ class NewChooseMembersModal extends React.Component {
<div className='avatar'>
<span className="icon iconfont avatar-icon">&#xe84a;</span>
<Tooltip title={userName}>
<span className='userImg'>{userName}</span>
<span className='userImg'>
<WWOpenDataCom type="userName" openid={userName}/>
{/* {userName} */}
</span>
</Tooltip>
</div>
)
......@@ -132,6 +135,7 @@ class NewChooseMembersModal extends React.Component {
this.props.onConfirm();
})
}
// 批量添加成员(点击确定)
addUser = (selectUserList) => {
let enterpriseUserList = []; // 保存新加进去的成员
......@@ -155,6 +159,7 @@ class NewChooseMembersModal extends React.Component {
}
})
}
renderTitle = (title) => {
return <span>{title}</span>
}
......@@ -207,7 +212,6 @@ class NewChooseMembersModal extends React.Component {
>
</AutoComplete>
}
getCompleteOptionData=(value)=>{
if(!value){
this.setState({
......
import React from 'react';
import { Modal, Button, Radio, Tooltip } from 'antd';
import WWOpenDataCom from '@/components/WWOpenDataCom';
import './SetEmployeeModal.less'
const RadioGroup = Radio.Group;
......@@ -70,7 +71,10 @@ export default class SetEmployeeModal extends React.Component {
>
<span className="icon iconfont avatar-icon">&#xe84a;</span>
<Tooltip title={item.name}>
<span className='name'>{item.userName}</span>
<span className='name'>
{/* {item.userName} */}
<WWOpenDataCom type="userName" openid={tem.userName}/>
</span>
</Tooltip>
<span className="tag">{tagMap[item.roleCode]}</span>
</div>
......
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