|
|
|
@ -200,7 +200,8 @@ class Newshixuns extends Component {
|
|
|
|
|
languagewritetype:false,
|
|
|
|
|
systemenvironmenttype:false,
|
|
|
|
|
testcoderunmodetype:false,
|
|
|
|
|
attachmentidstype:false
|
|
|
|
|
attachmentidstype:false,
|
|
|
|
|
datalisttype:false
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -369,20 +370,32 @@ class Newshixuns extends Component {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
shixunScopeInput = (e, id) => {
|
|
|
|
|
let types=false
|
|
|
|
|
let {scope_partment} = this.state;
|
|
|
|
|
let datalist = scope_partment;
|
|
|
|
|
if (datalist === undefined) {
|
|
|
|
|
datalist = []
|
|
|
|
|
}
|
|
|
|
|
datalist.push(e)
|
|
|
|
|
// else{
|
|
|
|
|
// datalist[id]=e
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
this.setState({
|
|
|
|
|
scope_partment: datalist,
|
|
|
|
|
onSearchvalue: ""
|
|
|
|
|
});
|
|
|
|
|
datalist.map((item,key)=>{
|
|
|
|
|
if(e===item){
|
|
|
|
|
types=true
|
|
|
|
|
this.setState({
|
|
|
|
|
datalisttype:true
|
|
|
|
|
})
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
if(types===false){
|
|
|
|
|
datalist.push(e)
|
|
|
|
|
this.setState({
|
|
|
|
|
scope_partment: datalist,
|
|
|
|
|
onSearchvalue: ""
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
deleteScopeInput = (key) => {
|
|
|
|
@ -495,7 +508,9 @@ class Newshixuns extends Component {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
shixunHandleSearch = (value) => {
|
|
|
|
|
|
|
|
|
|
this.shixunsfetch(value, departmentslist => this.setState({departmentslist}));
|
|
|
|
|
|
|
|
|
|
this.setState({
|
|
|
|
|
onSearchvalue: ""
|
|
|
|
|
})
|
|
|
|
@ -787,7 +802,7 @@ class Newshixuns extends Component {
|
|
|
|
|
render() {
|
|
|
|
|
const { getFieldDecorator } = this.props.form;
|
|
|
|
|
const thiss=this;
|
|
|
|
|
let {testcoderunmode ,systemenvironment,languagewrite,deleteisnot, fileList,TimePickervalue, scope_partmenttype, opensmail, newshixunlist, name, scope_partment, departmentslist, postapplyvisible, sendsure_applyvalue, postapplytitle, shixun_nametype, main_types, trainee_types, SelectTheCommandtype, opers, operss, onSearchvalue} = this.state;
|
|
|
|
|
let {testcoderunmode ,systemenvironment,languagewrite,deleteisnot, fileList,TimePickervalue, scope_partmenttype, opensmail, newshixunlist, name, scope_partment, departmentslist, postapplyvisible, sendsure_applyvalue, postapplytitle, shixun_nametype, main_types, trainee_types, SelectTheCommandtype, opers, datalisttype, onSearchvalue} = this.state;
|
|
|
|
|
let options
|
|
|
|
|
if (departmentslist != undefined) {
|
|
|
|
|
options = this.state.departmentslist.map((d, k) => {
|
|
|
|
@ -1142,6 +1157,7 @@ class Newshixuns extends Component {
|
|
|
|
|
</Select>
|
|
|
|
|
</div>
|
|
|
|
|
<span className="color-grey-9">(搜索选中添加单位名称)</span>
|
|
|
|
|
{this.state.datalisttype===true?<span className="color-red ml10">请勿选择重复单位</span>:""}
|
|
|
|
|
{/*<a className="white-btn orange-btn fl mt1 use_scope-btn" onClick={this.adduse_scopeinput}>+ 添加</a>*/}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
@ -1153,7 +1169,7 @@ class Newshixuns extends Component {
|
|
|
|
|
return (
|
|
|
|
|
<li className="task_tag_span" key={key}><span>{item}</span>
|
|
|
|
|
<a style={{color: 'rgba(0,0,0,.25)'}}
|
|
|
|
|
onClick={(key) => this.deleteScopeInput(key)}>×</a>
|
|
|
|
|
onClick={() => this.deleteScopeInput(key)}>×</a>
|
|
|
|
|
</li>
|
|
|
|
|
)
|
|
|
|
|
})
|
|
|
|
|