video_log
杨树明 5 years ago
parent 7bdecde7ed
commit c6d5521e42

@ -42,7 +42,7 @@ if (isDev) {
window.location.search.indexOf('debug=a') != -1 ? 'admin' : parsed.debug || 'admin' window.location.search.indexOf('debug=a') != -1 ? 'admin' : parsed.debug || 'admin'
} }
// 超管 // 超管
debugType="admin"; //debugType="admin";
// 老师 // 老师
// debugType="teacher"; // debugType="teacher";
// 学生 // 学生

@ -70,3 +70,6 @@
.pointer{ .pointer{
cursor: pointer; cursor: pointer;
} }
.pl23{
padding-left: 23px !important;
}

@ -420,7 +420,8 @@ class Repository extends Component {
> >
{treesdelecttype===false || trees === undefined ?"": trees === null || trees.length===0?"":trees.map((item, index) => { {treesdelecttype===false || trees === undefined ?"": trees === null || trees.length===0?"":trees.map((item, index) => {
return ( return (
<TreeNode disableCheckbox={this.state.ischeckevalue===item.name?false:this.state.ischecke?true:item.type==='tree'?true:false} item={item} title={`${item.name}`} key={item.type==='tree'?"0-0":`0-0-${index}`} icon={item.type==='tree'?<i className="iconfont icon-xingzhuangjiehebeifen color-blue font-12" />:<i className="iconfont icon-xingzhuangjiehe color-blue font-12"/>} id={`file${index}`} key={index}> <TreeNode className={item.type==='tree'?"pl23":""} checkable={item.type==='tree'?false:true} disableCheckbox={this.state.ischeckevalue===item.name?false:this.state.ischecke?true:item.type==='tree'?true:false} item={item} title={`${item.name}`} key={item.type==='tree'?"0-0":`0-0-${index}`} icon={item.type==='tree'?<i className="iconfont icon-xingzhuangjiehebeifen color-blue font-12" />:<i className="iconfont icon-xingzhuangjiehe color-blue font-12"/>} id={`file${index}`} key={index}>
</TreeNode> </TreeNode>
)})} )})}
</DirectoryTree> </DirectoryTree>

@ -98,23 +98,24 @@ class RepositoryDirectories extends Component {
</a> </a>
<span className={this.props.tpmComment===true?"color888 ml3 mr3":"ml3 mr3"}></span> <span className={this.props.tpmComment===true?"color888 ml3 mr3":"ml3 mr3"}></span>
{ pathArray.map((item, index) => { { pathArray.map((item, index) => {
if(index<pathArray.length-1){
return ( return (
<React.Fragment> <React.Fragment>
{ this.props.nameTypeMap[item] === 'tree' || item.indexOf('.') === -1 { index===pathArray.length-1 && item.indexOf('.') === -1?<span className={"color888"}>
/ {item} </span>:this.props.nameTypeMap[item] === 'tree' || item.indexOf('.') === -1
? <a ? <a
onClick={() => fetchRepo(index + 1)} onClick={() => fetchRepo(index + 1)}
className={this.props.tpmComment===true?"color888":"color-blue"} className={this.props.tpmComment===true?"color888":"color-blue"}
> >
/ {item}</a> / {item}</a>
: :
<a className={this.props.tpmComment===true?"color888":""}> <span className={this.props.tpmComment===true?"color888":""}>
/ {item}</a> / {item}</span>
} }
{index !== pathArray.length - 1 && <span className={this.props.tpmComment===true?"color888 ml3 mr3":"ml3 mr3"}></span>} {index !== pathArray.length - 1 && <span className={this.props.tpmComment===true?"color888 ml3 mr3":"ml3 mr3"}></span>}
</React.Fragment> </React.Fragment>
) )
}
}) })
} }
{/*{ this.props.current_user && (this.props.current_user.admin ==true || (TPMRightSectionData && TPMRightSectionData.creator && TPMRightSectionData.creator.login == this.props.current_user.login)) ?*/} {/*{ this.props.current_user && (this.props.current_user.admin ==true || (TPMRightSectionData && TPMRightSectionData.creator && TPMRightSectionData.creator.login == this.props.current_user.login)) ?*/}

Loading…
Cancel
Save