This commit is contained in:
parent
d1f699526d
commit
3bb8705e45
|
@ -86,7 +86,7 @@ import classNames from 'classnames'
|
|||
}
|
||||
// 焦点事件,伸展宽度
|
||||
focusFn(e){
|
||||
if(this.props.placeholder.length>7){
|
||||
if(this.props.placeholder.length>10){
|
||||
this.setState({'focus':0});
|
||||
}
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
.iptfillself{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-bottom: 30px;
|
||||
// margin-bottom: 24px!important;
|
||||
.label{
|
||||
margin-right: 58px;
|
||||
.warning{
|
||||
|
|
|
@ -63,14 +63,14 @@ function Adduser(){
|
|||
{
|
||||
return {
|
||||
name: 'error',
|
||||
message: '清输入电话',
|
||||
message: '请输入电话',
|
||||
};
|
||||
}
|
||||
else if(values.password == "")
|
||||
{
|
||||
return {
|
||||
name: 'error',
|
||||
message: '清输入电话',
|
||||
message: '请输入密码',
|
||||
};
|
||||
}
|
||||
}
|
||||
|
@ -153,15 +153,7 @@ function Adduser(){
|
|||
style={{marginLeft:'10px'}}
|
||||
onSubmit={onSubmit}
|
||||
>
|
||||
<FormImageUploadField
|
||||
name="imageUpload"
|
||||
label="头像上传"
|
||||
props={{
|
||||
maxAmount: 1,
|
||||
maxSize: 1024 * 1024 * 2,
|
||||
}}
|
||||
validators={[Validators.minLength(1, '请上传头像')]}
|
||||
/>
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -59,7 +59,7 @@ export default class station extends React.Component{
|
|||
if( e.innerHTML=="保存"){
|
||||
if(this.hasVal(cssname,e.parentNode.parentNode.children[0].value)>-1){
|
||||
Notify.clear()
|
||||
Notify.warn(`公司名重复`);
|
||||
Notify.warn(`${placeholder}重复,请重新增加`);
|
||||
}else{
|
||||
e.parentNode.firstChild.innerHTML='删除';
|
||||
e.parentNode.parentNode.children[0].disabled="disabled";
|
||||
|
@ -104,16 +104,20 @@ export default class station extends React.Component{
|
|||
sureFn(e,rp,placeholder){
|
||||
if(e.target.value&&e.keyCode==13){
|
||||
let cssname=null;
|
||||
let stationame=[];
|
||||
if(placeholder=='公司'){
|
||||
cssname='companyBtn';
|
||||
stationame=this.state.company;
|
||||
}else if(placeholder=='部门'){
|
||||
cssname='departmentBtn';
|
||||
stationame=this.state.department;
|
||||
}else if(placeholder=='岗位'){
|
||||
cssname='postBtn';
|
||||
stationame=this.state.post;
|
||||
}
|
||||
if(this.hasVal(this.state.company,e.target.value)>-1){
|
||||
Notify.clear()
|
||||
Notify.warn(`公司名重复`);
|
||||
Notify.warn(`${placeholder}重复,请重新增加`);
|
||||
}else{
|
||||
rp.parentNode.children[1].firstChild.innerHTML='删除';
|
||||
rp.disabled="disabled";
|
||||
|
|
Loading…
Reference in New Issue