认证权限调整

dev_shixuns
杨树明 6 years ago
parent 731cf53ce1
commit 815d64936c

@ -745,7 +745,7 @@ class ecCourseEvaluations extends Component {
render() { render() {
const RadioGroup = Radio.Group; const RadioGroup = Radio.Group;
let {deleteassociatedclasstype,Modallists,newModallist,isreloads,checkevalue,courses,params,assclasslistsearchtype,assclassvalue,ec_course_evaluation_lists,ec_course_id,schooldata,course_name,ecComponentState,course_url,idkey,modeldelet,listid,titlemessage,Modallisttype,Modallist,savetypes,ecmanager,savetype} = this.state; let {deleteassociatedclasstype,Modallists,newModallist,isreloads,checkevalue,courses,params,assclasslistsearchtype,assclassvalue,ec_course_evaluation_lists,ec_course_id,schooldata,course_name,ecComponentState,course_url,idkey,modeldelet,listid,titlemessage,Modallisttype,Modallist,savetypes,ecmanager,savetype} = this.state;
console.log(ecmanager)
const uploadProps = { const uploadProps = {
name: 'file', name: 'file',
@ -870,8 +870,8 @@ class ecCourseEvaluations extends Component {
{/*课程考核方式与数据来源*/} {/*课程考核方式与数据来源*/}
{/* <span className="fl font-18 courseSystem"></span> */} {/* <span className="fl font-18 courseSystem"></span> */}
{/* <a href="javascript:void(0)" className="fr white-btn edu-blueback-btn mt4">导出培养目标</a> */} {/* <a href="javascript:void(0)" className="fr white-btn edu-blueback-btn mt4">导出培养目标</a> */}
<a class="white-btn edu-blueline-btn fr mr10 mt2 associatedclass" onClick={this.associatedclass} style={{display:course_url===""&&ecmanager===true?"block":"none"}}>关联课堂</a> <a class="white-btn edu-blueline-btn fr mr10 mt2 associatedclass" onClick={this.associatedclass} style={{display:course_url!=""&&ecmanager===true?"block":"none"}}>关联课堂</a>
<a class="white-btn edu-blueline-btn fr mr10 mt2 associatedclass" onClick={this.deleteassociatedclass} style={{display:course_url===""||ecmanager===false?"none":"block"}}>取消关联</a> <a class="white-btn edu-blueline-btn fr mr10 mt2 associatedclass" onClick={this.deleteassociatedclass} style={{display:course_url===""||ecmanager===true?"none":"block"}}>取消关联</a>
<span className="Importclassroomdata" style={{top: '22px',display:ecmanager===false?"none":""}}> <span className="Importclassroomdata" style={{top: '22px',display:ecmanager===false?"none":""}}>
<a className="white-btn edu-blueback-btn fr mb10 mr10" target="_blank" href={'/ec_courses/'+ec_course_id+'/export_ec_course_targets?format=xls'}>导出考核方法</a> <a className="white-btn edu-blueback-btn fr mb10 mr10" target="_blank" href={'/ec_courses/'+ec_course_id+'/export_ec_course_targets?format=xls'}>导出考核方法</a>
</span> </span>

@ -238,6 +238,7 @@ class ecGradeEvaluations extends Component {
render() { render() {
const RadioGroup = Radio.Group; const RadioGroup = Radio.Group;
let {listvaluey,params,ec_course_evaluation_lists,ec_course_id,schooldata,course_name,course_url,idkey,modeldelet,listid,titlemessage,Modallisttype,Modallist,savetypes,levels,editlevels,editecGradetype,Modallisttypes,ismanager} = this.state; let {listvaluey,params,ec_course_evaluation_lists,ec_course_id,schooldata,course_name,course_url,idkey,modeldelet,listid,titlemessage,Modallisttype,Modallist,savetypes,levels,editlevels,editecGradetype,Modallisttypes,ismanager} = this.state;
console.log(ismanager)
return ( return (
<div className="newMain clearfix"> <div className="newMain clearfix">
<Modal <Modal
@ -309,12 +310,11 @@ class ecGradeEvaluations extends Component {
<span className="column-1 color-666 textalign ">等级名称</span> <span className="column-1 color-666 textalign ">等级名称</span>
<span className="column-1 color-666 textalign">规则</span> <span className="column-1 color-666 textalign">规则</span>
<span className={ismanager===false?"none":"operationright color-666"} <span className={ismanager===false?"none":"operationright color-666"}>
style={{display:ismanager===false||ismanager===undefined?"none":"inline-block"}}>
{/* 操作 */} {/* 操作 */}
<a className={ismanager===false||ismanager===undefined?"color-f5f5f5 none":"newAddSubentry"} data-tip-down="编辑" onClick={ismanager===false||ismanager===undefined?"":this.editecGrade}> <a className={"newAddSubentry"} data-tip-down="编辑" onClick={this.editecGrade}>
{/*<i className="iconfont icon-tianjiafangda color-green" onClick={this.AddCourseEvaluations}></i>*/} {/*<i className="iconfont icon-tianjiafangda color-green" onClick={this.AddCourseEvaluations}></i>*/}
<i className={ismanager===false||ismanager===undefined?"color-f5f5f5 none":"iconfont icon-bianjidaibeijing color-green"}></i> <i className={"iconfont icon-bianjidaibeijing color-green"}></i>
</a> </a>
</span> </span>

Loading…
Cancel
Save