各模块需要增加鼠标中键点击事件

issues25489
杨树林 5 years ago
parent b1338af040
commit 4c173a5c08

@ -369,8 +369,8 @@ function buildColumns(that, student_works, studentData) {
</Tooltip> }
{/* toWorkDetailPage */}
{/* /courses/"+courseId+"/common_homeworks/"+workId+ '/' + record.id +"/appraise */}
<a style={{color: '#4CACFF', marginLeft: '4px'}} href={"javascript:void(0)"}
onMouseDown={(e, courseId, workId, record) => that.props.toWorkDetailPage2(e, courseId, workId, record.id)}
<a style={{color: '#4CACFF', marginLeft: '4px'}} id={"asdasdasdasd"}
onMouseDown={(e) => that.props.toWorkDetailPage2(e, courseId, workId, record.id)}
onClick={() => that.props.toWorkDetailPage(courseId, workId, record.id)}>{isAdmin ? '评阅' : '查看'}</a>
</div>

@ -79,6 +79,8 @@ export function RouteHOC(options = {}) {
}
}
toWorkDetailPage2 = (e, _courseId, _workId, _studentWorkId) => {
console.log("鼠标中键点击了")
console.log(_studentWorkId)
const secondName = this.getModuleName()
if (typeof _courseId == "object") {
const workId = _courseId.workId
@ -170,7 +172,7 @@ export function RouteHOC(options = {}) {
toNewPage={this.toNewPage}
toListPage={this.toListPage}
toWorkDetailPage={this.toWorkDetailPage}
toWorkDetailPage2={this.toWorkDetailPage2}
toWorkPostPage={this.toWorkPostPage}
toWorkListPage={this.toWorkListPage}
toWorkAnswerPage={this.toWorkAnswerPage}

@ -458,7 +458,7 @@ class Listofworksstudentone extends Component {
:
<a style={{textAlign: "center"}}
className="color-blue"
onMouseDown={(e, record) => this.Viewstudenttraininginformationtysl2(e, record)}
onMouseDown={(e) => this.Viewstudenttraininginformationtysl2(e, record)}
onClick={() => this.Viewstudenttraininginformation(record)}>{record.operating}</a>
}
@ -811,7 +811,7 @@ class Listofworksstudentone extends Component {
:
<a style={{textAlign: "center"}}
className="color-blue"
onMouseDown={(e, record) => this.Viewstudenttraininginformationtysl2(e, record)}
onMouseDown={(e) => this.Viewstudenttraininginformationtysl2(e, record)}
onClick={() => this.Viewstudenttraininginformation(record)}>{record.operating}</a>
}
@ -1177,7 +1177,7 @@ class Listofworksstudentone extends Component {
record.submitstate === "未提交" ? <span style={{color: '#9A9A9A'}}>--</span> :
<span>
<a style={{textAlign: "center"}} className="color-blue"
onMouseDown={(e, record) => this.Viewstudenttraininginformationtysl2(e, record)}
onMouseDown={(e) => this.Viewstudenttraininginformationtysl2(e, record)}
onClick={() => this.Viewstudenttraininginformationt(record)}>查看</a>
</span>
)
@ -1508,7 +1508,7 @@ class Listofworksstudentone extends Component {
record.submitstate === "未提交" ? <span style={{color: '#9A9A9A'}}>--</span> :
<span>
<a style={{textAlign: "center"}} className="color-blue"
onMouseDown={(e, record) => this.Viewstudenttraininginformationtysl2(e, record)}
onMouseDown={(e) => this.Viewstudenttraininginformationtysl2(e, record)}
onClick={() => this.Viewstudenttraininginformationt(record)}>{record.operating}</a>
</span>
)

Loading…
Cancel
Save