|
|
@ -200,7 +200,8 @@ class Newshixuns extends Component {
|
|
|
|
languagewritetype:false,
|
|
|
|
languagewritetype:false,
|
|
|
|
systemenvironmenttype:false,
|
|
|
|
systemenvironmenttype:false,
|
|
|
|
testcoderunmodetype:false,
|
|
|
|
testcoderunmodetype:false,
|
|
|
|
attachmentidstype:false
|
|
|
|
attachmentidstype:false,
|
|
|
|
|
|
|
|
datalisttype:false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -369,20 +370,32 @@ class Newshixuns extends Component {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
shixunScopeInput = (e, id) => {
|
|
|
|
shixunScopeInput = (e, id) => {
|
|
|
|
|
|
|
|
let types=false
|
|
|
|
let {scope_partment} = this.state;
|
|
|
|
let {scope_partment} = this.state;
|
|
|
|
let datalist = scope_partment;
|
|
|
|
let datalist = scope_partment;
|
|
|
|
if (datalist === undefined) {
|
|
|
|
if (datalist === undefined) {
|
|
|
|
datalist = []
|
|
|
|
datalist = []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
datalist.push(e)
|
|
|
|
|
|
|
|
// else{
|
|
|
|
|
|
|
|
// datalist[id]=e
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.setState({
|
|
|
|
datalist.map((item,key)=>{
|
|
|
|
scope_partment: datalist,
|
|
|
|
if(e===item){
|
|
|
|
onSearchvalue: ""
|
|
|
|
types=true
|
|
|
|
});
|
|
|
|
this.setState({
|
|
|
|
|
|
|
|
datalisttype:true
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
return
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(types===false){
|
|
|
|
|
|
|
|
datalist.push(e)
|
|
|
|
|
|
|
|
this.setState({
|
|
|
|
|
|
|
|
scope_partment: datalist,
|
|
|
|
|
|
|
|
onSearchvalue: ""
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
deleteScopeInput = (key) => {
|
|
|
|
deleteScopeInput = (key) => {
|
|
|
@ -495,7 +508,9 @@ class Newshixuns extends Component {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
shixunHandleSearch = (value) => {
|
|
|
|
shixunHandleSearch = (value) => {
|
|
|
|
|
|
|
|
|
|
|
|
this.shixunsfetch(value, departmentslist => this.setState({departmentslist}));
|
|
|
|
this.shixunsfetch(value, departmentslist => this.setState({departmentslist}));
|
|
|
|
|
|
|
|
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
|
onSearchvalue: ""
|
|
|
|
onSearchvalue: ""
|
|
|
|
})
|
|
|
|
})
|
|
|
@ -787,7 +802,7 @@ class Newshixuns extends Component {
|
|
|
|
render() {
|
|
|
|
render() {
|
|
|
|
const { getFieldDecorator } = this.props.form;
|
|
|
|
const { getFieldDecorator } = this.props.form;
|
|
|
|
const thiss=this;
|
|
|
|
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
|
|
|
|
let options
|
|
|
|
if (departmentslist != undefined) {
|
|
|
|
if (departmentslist != undefined) {
|
|
|
|
options = this.state.departmentslist.map((d, k) => {
|
|
|
|
options = this.state.departmentslist.map((d, k) => {
|
|
|
@ -1142,6 +1157,7 @@ class Newshixuns extends Component {
|
|
|
|
</Select>
|
|
|
|
</Select>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<span className="color-grey-9">(搜索选中添加单位名称)</span>
|
|
|
|
<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>*/}
|
|
|
|
{/*<a className="white-btn orange-btn fl mt1 use_scope-btn" onClick={this.adduse_scopeinput}>+ 添加</a>*/}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -1153,7 +1169,7 @@ class Newshixuns extends Component {
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<li className="task_tag_span" key={key}><span>{item}</span>
|
|
|
|
<li className="task_tag_span" key={key}><span>{item}</span>
|
|
|
|
<a style={{color: 'rgba(0,0,0,.25)'}}
|
|
|
|
<a style={{color: 'rgba(0,0,0,.25)'}}
|
|
|
|
onClick={(key) => this.deleteScopeInput(key)}>×</a>
|
|
|
|
onClick={() => this.deleteScopeInput(key)}>×</a>
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
|
)
|
|
|
|
)
|
|
|
|
})
|
|
|
|
})
|
|
|
|