|
|
|
@ -41,13 +41,14 @@ export default class TPMsettings extends Component {
|
|
|
|
|
axios.get(Url).then((response) => {
|
|
|
|
|
// alert(response.data.shixun.choice_standard_scripts)
|
|
|
|
|
if (response.status === 200) {
|
|
|
|
|
if (response.data.shixun.scope_partment) {
|
|
|
|
|
if (response.data.shixun.scope_partment.length > 0) {
|
|
|
|
|
this.setState({
|
|
|
|
|
scopetype: true
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
if(response.data){
|
|
|
|
|
if (response.data.shixun&&response.data.shixun.scope_partment.length > 0) {
|
|
|
|
|
this.setState({
|
|
|
|
|
scopetype: true
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
this.setState({
|
|
|
|
|
data: response.data
|
|
|
|
|
})
|
|
|
|
|