|
|
@ -115,7 +115,8 @@ export default class Shixuninformation extends Component {
|
|
|
|
onChangeTimePicker = (value, dateString) => {
|
|
|
|
onChangeTimePicker = (value, dateString) => {
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
|
opening_time: dateString === "" ? "" : handleDateStrings(dateString),
|
|
|
|
opening_time: dateString === "" ? "" : handleDateStrings(dateString),
|
|
|
|
opening_timetype:false
|
|
|
|
opening_timetype:false,
|
|
|
|
|
|
|
|
loading: false
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -133,12 +134,20 @@ export default class Shixuninformation extends Component {
|
|
|
|
return
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
let list=[]
|
|
|
|
|
|
|
|
scope_partment.map((item,key)=>{
|
|
|
|
|
|
|
|
list.push(item)
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
oldscope_partment.map((item,key)=>{
|
|
|
|
|
|
|
|
list.push(item)
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
let id = this.props.match.params.shixunId;
|
|
|
|
let id = this.props.match.params.shixunId;
|
|
|
|
let url = `/shixuns/${id}/update_permission_setting.json`;
|
|
|
|
let url = `/shixuns/${id}/update_permission_setting.json`;
|
|
|
|
axios.post(url,
|
|
|
|
axios.post(url,
|
|
|
|
{
|
|
|
|
{
|
|
|
|
scope_partment: scope_partment,
|
|
|
|
scope_partment: list,
|
|
|
|
shixun: {
|
|
|
|
shixun: {
|
|
|
|
can_copy: can_copy,
|
|
|
|
can_copy: can_copy,
|
|
|
|
use_scope: use_scope,
|
|
|
|
use_scope: use_scope,
|
|
|
@ -149,16 +158,6 @@ export default class Shixuninformation extends Component {
|
|
|
|
if (response.data.status === -1) {
|
|
|
|
if (response.data.status === -1) {
|
|
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
|
|
|
|
|
|
|
|
let list=[]
|
|
|
|
|
|
|
|
scope_partment.map((item,key)=>{
|
|
|
|
|
|
|
|
list.push(item)
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
oldscope_partment.map((item,key)=>{
|
|
|
|
|
|
|
|
list.push(item)
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.props.showNotification("权限配置保存成功!")
|
|
|
|
this.props.showNotification("权限配置保存成功!")
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
|
loading: false,
|
|
|
|
loading: false,
|
|
|
@ -292,7 +291,6 @@ export default class Shixuninformation extends Component {
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div className="edu-back-white mb10 ml30 mt20">
|
|
|
|
<div className="edu-back-white mb10 ml30 mt20">
|
|
|
|
{this.props.data && this.props.data.shixun.use_scope === 0 && this.props.data && this.props.data.shixun.status === 2 ? "" :
|
|
|
|
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<span className="color-grey-6 mt5 fl font-16" style={{minWidth: '45px'}}>公开程度:</span>
|
|
|
|
<span className="color-grey-6 mt5 fl font-16" style={{minWidth: '45px'}}>公开程度:</span>
|
|
|
|
<span className="fl mt8 ml20">
|
|
|
|
<span className="fl mt8 ml20">
|
|
|
@ -371,7 +369,7 @@ export default class Shixuninformation extends Component {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
</div>}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div className="clearfix mt20">
|
|
|
|
<div className="clearfix mt20">
|
|
|
|
<span className="color-grey-6 mt5 fl font-16" style={{minWidth: '45px'}}>开启时间:</span>
|
|
|
|
<span className="color-grey-6 mt5 fl font-16" style={{minWidth: '45px'}}>开启时间:</span>
|
|
|
|