杨树明 5 years ago
parent 7a883f9ec7
commit b5941cf2e9

@ -32,7 +32,7 @@ module.exports = {
// See the discussion in https://github.com/facebookincubator/create-react-app/issues/343.s // See the discussion in https://github.com/facebookincubator/create-react-app/issues/343.s
// devtool: "cheap-module-eval-source-map", // devtool: "cheap-module-eval-source-map",
// 开启调试 // 开启调试
devtool: "source-map", // 开启调试 //devtool: "source-map", // 开启调试
// These are the "entry points" to our application. // These are the "entry points" to our application.
// This means they will be the "root" imports that are included in JS bundle. // This means they will be the "root" imports that are included in JS bundle.
// The first two entry points enable "hot" CSS and auto-refreshes for JS. // The first two entry points enable "hot" CSS and auto-refreshes for JS.

@ -94,7 +94,19 @@ class ModulationModal extends Component{
<li style={{height:"20px",lineHeight:"20px"}}><span className={textareavaltype===true?"color-red":"none"}>原因不能为空</span></li> <li style={{height:"20px",lineHeight:"20px"}}><span className={textareavaltype===true?"color-red":"none"}>原因不能为空</span></li>
</div> </div>
<li>
<style>
{
`
.pdl10{
padding-left:10px;
}
`
}
</style>
<li className={"pdl10"}>
<Input style={{ <Input style={{
width: '20%', width: '20%',
}} }}

@ -337,7 +337,7 @@ class GraduationAcross extends Component{
chooseCount, chooseCount,
chooseId, chooseId,
AcrossTeamIds, AcrossTeamIds,
searchValue,showflag searchValue,showflag,
} = this.state; } = this.state;
let { modalVisible } = this.props; let { modalVisible } = this.props;
let courseId = this.props.match.params.coursesId; let courseId = this.props.match.params.coursesId;
@ -372,6 +372,7 @@ class GraduationAcross extends Component{
// 筛选下拉列表 // 筛选下拉列表
const teacherList = searchValue ? teachers&&teachers.filter(e=>e.user_name.indexOf(searchValue)>-1) : teachers; const teacherList = searchValue ? teachers&&teachers.filter(e=>e.user_name.indexOf(searchValue)>-1) : teachers;
const course_groupsList = searchValue ? course_groups&&course_groups.filter(e=>e.name.indexOf(searchValue)>-1) : course_groups; const course_groupsList = searchValue ? course_groups&&course_groups.filter(e=>e.name.indexOf(searchValue)>-1) : course_groups;
const graduation_groupslist =searchValue ? graduation_groups&&graduation_groups.filter(e=>e.name.indexOf(searchValue)>-1) : graduation_groups;
return( return(
<Modal <Modal
className={"AcrossModal"} className={"AcrossModal"}
@ -501,7 +502,7 @@ class GraduationAcross extends Component{
></Input> ></Input>
</div>:""} </div>:""}
{comment_status == 2 &&teacherList&&teacherList.length>2? <Checkbox className={"pd8px"} onChange={(e)=>this.checkonChange(e,teacherList)}>全选</Checkbox>:""} {comment_status == 2 &&teacherList&&teacherList.length>2? <Checkbox className={"pd8px"} onChange={(e)=>this.checkonChange(e,teacherList)}>全选</Checkbox>:""}
{comment_status != 2 &&course_groupsList&&course_groupsList.length>2? <Checkbox className={"pd8px"} onChange={(e)=>this.checkonChange(e,course_groupsList)}>全选</Checkbox>:""} {comment_status != 2 &&graduation_groupslist&&graduation_groupslist.length>2? <Checkbox className={"pd8px"} onChange={(e)=>this.checkonChange(e,graduation_groupslist)}>全选</Checkbox>:""}
{menu} {menu}
<Divider style={{ margin: '4px 0 0' }} /> <Divider style={{ margin: '4px 0 0' }} />
<div style={{ padding: '8px 12px', cursor: 'pointer' }}> <div style={{ padding: '8px 12px', cursor: 'pointer' }}>
@ -515,7 +516,7 @@ class GraduationAcross extends Component{
teacherList && teacherList.map((i,key)=>{ teacherList && teacherList.map((i,key)=>{
return <Option key={i.user_id} value={String(i.user_id)}>{i.user_name}</Option> return <Option key={i.user_id} value={String(i.user_id)}>{i.user_name}</Option>
}): }):
course_groupsList && course_groupsList.map((i,key)=>{ graduation_groupslist && graduation_groupslist.map((i,key)=>{
return <Option key={i.id} value={String(i.id)}>{i.name}</Option> return <Option key={i.id} value={String(i.id)}>{i.name}</Option>
}) })
} }

@ -535,10 +535,12 @@ class GraduationTaskssettinglist extends Component{
// console.log(result) // console.log(result)
if(result.data.status===0){ if(result.data.status===0){
this.seacthdata(teacher_comment,task_status,course_group,cross_comment,order,b_order,search,this.state.page); this.seacthdata(teacher_comment,task_status,course_group,cross_comment,order,b_order,search,this.state.page);
this.props.showNotification(result.data.message);
this.cancelmodel();
this.setState({ this.setState({
Modalstype:true, Modalstype:false,
Allocationtype:false, Allocationtype:false,
Modalstopval:result.data.message, // Modalstopval:result.data.message,
ModalSave:this.cancelmodel, ModalSave:this.cancelmodel,
}) })
} }
@ -866,10 +868,10 @@ class GraduationTaskssettinglist extends Component{
{tag.name} {tag.name}
</a> </a>
: :
<p style={{color:tag.name==="调分"?"#000":'#4CACFF',padding:"0px 5px"}} <span style={{color:tag.name==="调分"?"#000":'#4CACFF',padding:"0px 5px"}}
onClick={tag.name==="调分"?()=>this.showModulationtype(tag.id):tag.name==="分配"?taskslistdata&&taskslistdata.cross_comment===true?"":"":""}> onClick={tag.name==="调分"?()=>this.showModulationtype(tag.id):tag.name==="分配"?taskslistdata&&taskslistdata.cross_comment===true?"":"":""}>
{tag.name==="分配"?taskslistdata&&taskslistdata.cross_comment===true?"":"":tag.name} {tag.name==="分配"?taskslistdata&&taskslistdata.cross_comment===true?"":"":tag.name}
</p> </span>
} }
</Tooltip> </Tooltip>
} }
@ -972,7 +974,7 @@ class GraduationTaskssettinglist extends Component{
white-space: nowrap; white-space: nowrap;
} }
.ant-table-tbody>tr>td, .ant-table-thead>tr>th{ .ant-table-tbody>tr>td, .ant-table-thead>tr>th{
padding:16px 8px; padding:16px 5px;
} }
` `
} }

@ -389,6 +389,7 @@ class DetailCardsEditAndAdd extends Component{
</style>:""} </style>:""}
{selectShixun===true?<NewShixunModel {selectShixun===true?<NewShixunModel
NewShixunModelType={selectShixun} NewShixunModelType={selectShixun}
type={'shixuns'}
hideNewShixunModelType={this.cloasShixunBox} hideNewShixunModelType={this.cloasShixunBox}
pathShixun={this.clickShixunchoose} pathShixun={this.clickShixunchoose}
{...this.props} {...this.props}

@ -395,6 +395,7 @@ class DetailCardsEditAndEdit extends Component{
{selectShixun===true?<NewShixunModel {selectShixun===true?<NewShixunModel
NewShixunModelType={selectShixun} NewShixunModelType={selectShixun}
type={'shixuns'}
hideNewShixunModelType={this.cloasShixunBox} hideNewShixunModelType={this.cloasShixunBox}
pathShixun={this.clickShixunchoose} pathShixun={this.clickShixunchoose}
{...this.props} {...this.props}

Loading…
Cancel
Save