|
|
@ -122,11 +122,11 @@ class MessagSub extends Component {
|
|
|
|
if (item.tiding_type === "Apply") {
|
|
|
|
if (item.tiding_type === "Apply") {
|
|
|
|
if (item.auth_type === 1) {
|
|
|
|
if (item.auth_type === 1) {
|
|
|
|
//系统管理页面
|
|
|
|
//系统管理页面
|
|
|
|
return window.open("/managements/identity_authentication");
|
|
|
|
return window.open("/admins/identity_authentications");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (item.auth_type === 2) {
|
|
|
|
if (item.auth_type === 2) {
|
|
|
|
//系统管理页面
|
|
|
|
//系统管理页面
|
|
|
|
return window.open("/managements/professional_authentication")
|
|
|
|
return window.open("/admins/professional_authentications")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (item.tiding_type === "System") {
|
|
|
|
if (item.tiding_type === "System") {
|
|
|
@ -143,7 +143,7 @@ class MessagSub extends Component {
|
|
|
|
case "ApplyAddDepartment" :
|
|
|
|
case "ApplyAddDepartment" :
|
|
|
|
if (item.tiding_type === "Apply") {
|
|
|
|
if (item.tiding_type === "Apply") {
|
|
|
|
//部门审批
|
|
|
|
//部门审批
|
|
|
|
return window.open("/managements/depart")
|
|
|
|
return window.open("/admins/department_applies")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (item.tiding_type === "System") {
|
|
|
|
if (item.tiding_type === "System") {
|
|
|
|
// 账号管理页/account/profile
|
|
|
|
// 账号管理页/account/profile
|
|
|
@ -153,7 +153,7 @@ class MessagSub extends Component {
|
|
|
|
case "ApplyAddSchools" :
|
|
|
|
case "ApplyAddSchools" :
|
|
|
|
if (item.tiding_type === "Apply") {
|
|
|
|
if (item.tiding_type === "Apply") {
|
|
|
|
// 单位审批
|
|
|
|
// 单位审批
|
|
|
|
return window.open(" /managements/unit")
|
|
|
|
return window.open("admins/unit_applies")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (item.tiding_type === "System") {
|
|
|
|
if (item.tiding_type === "System") {
|
|
|
|
// 账号管理页
|
|
|
|
// 账号管理页
|
|
|
@ -164,7 +164,7 @@ class MessagSub extends Component {
|
|
|
|
switch (item.parent_container_type) {
|
|
|
|
switch (item.parent_container_type) {
|
|
|
|
case "ApplyShixun" :
|
|
|
|
case "ApplyShixun" :
|
|
|
|
if (item.tiding_type === "Apply") {
|
|
|
|
if (item.tiding_type === "Apply") {
|
|
|
|
return window.open("/managements/shixun_authorization")
|
|
|
|
return window.open("/admins/shixun_authorizations")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (item.tiding_type === "System") {
|
|
|
|
if (item.tiding_type === "System") {
|
|
|
|
// 实训详情页 :identifier = identifier
|
|
|
|
// 实训详情页 :identifier = identifier
|
|
|
@ -173,10 +173,10 @@ class MessagSub extends Component {
|
|
|
|
case "ApplySubject" :
|
|
|
|
case "ApplySubject" :
|
|
|
|
if (item.tiding_type === "Apply") {
|
|
|
|
if (item.tiding_type === "Apply") {
|
|
|
|
// 实训课程发布
|
|
|
|
// 实训课程发布
|
|
|
|
return window.open("/managements/subject_authorization")
|
|
|
|
return window.open("/admins/subject_authorizations")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (item.tiding_type === "System") {
|
|
|
|
if (item.tiding_type === "System") {
|
|
|
|
// 实践课程详情页 :parent_container_id = parent_container_id
|
|
|
|
// 课程汇总详情页 :parent_container_id = parent_container_id
|
|
|
|
|
|
|
|
|
|
|
|
return window.open(`/paths/${item.parent_container_id}`)
|
|
|
|
return window.open(`/paths/${item.parent_container_id}`)
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -222,7 +222,7 @@ class MessagSub extends Component {
|
|
|
|
case "Shixun" :
|
|
|
|
case "Shixun" :
|
|
|
|
return window.open(`/shixuns/${item.identifier}/challenges`)
|
|
|
|
return window.open(`/shixuns/${item.identifier}/challenges`)
|
|
|
|
case "Subject" :
|
|
|
|
case "Subject" :
|
|
|
|
// 实践课程详情页 :id = container_id
|
|
|
|
// 课程汇总详情页 :id = container_id
|
|
|
|
return window.open(`/paths/${item.container_id}`)
|
|
|
|
return window.open(`/paths/${item.container_id}`)
|
|
|
|
case "JournalsForMessage" :
|
|
|
|
case "JournalsForMessage" :
|
|
|
|
switch (item.parent_container_type) {
|
|
|
|
switch (item.parent_container_type) {
|
|
|
@ -452,7 +452,7 @@ class MessagSub extends Component {
|
|
|
|
case "Library" :
|
|
|
|
case "Library" :
|
|
|
|
if (item.tiding_type === 'Apply') {
|
|
|
|
if (item.tiding_type === 'Apply') {
|
|
|
|
// /managements/library_applies
|
|
|
|
// /managements/library_applies
|
|
|
|
return window.open(`/managements/library_applies`)
|
|
|
|
return window.open(`/admins/library_applies`)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (item.tiding_type === 'System') {
|
|
|
|
if (item.tiding_type === 'System') {
|
|
|
|
//教学案例详情 :id = container_id
|
|
|
|
//教学案例详情 :id = container_id
|
|
|
@ -467,7 +467,7 @@ class MessagSub extends Component {
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
if (item.tiding_type === 'Apply') {
|
|
|
|
if (item.tiding_type === 'Apply') {
|
|
|
|
///managements/project_package_applies
|
|
|
|
///managements/project_package_applies
|
|
|
|
return window.open(`/managements/project_package_applies`)
|
|
|
|
return window.open(`/admins/project_package_applies`)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// if(item.tiding_type === 'System'){
|
|
|
|
// if(item.tiding_type === 'System'){
|
|
|
|
//众包详情 :id = container_id
|
|
|
|
//众包详情 :id = container_id
|
|
|
@ -478,7 +478,7 @@ class MessagSub extends Component {
|
|
|
|
return window.open(`/shixuns/${item.identifier}/shixun_discuss`);
|
|
|
|
return window.open(`/shixuns/${item.identifier}/shixun_discuss`);
|
|
|
|
case "Video":
|
|
|
|
case "Video":
|
|
|
|
if (item.tiding_type === "Apply") {
|
|
|
|
if (item.tiding_type === "Apply") {
|
|
|
|
return window.open(`/managements/video_applies`);
|
|
|
|
return window.open(`/admins/video_applies`);
|
|
|
|
} else if (item.tiding_type === "System") {
|
|
|
|
} else if (item.tiding_type === "System") {
|
|
|
|
return window.open(`/users/${this.props.current_user.login}/videos`);
|
|
|
|
return window.open(`/users/${this.props.current_user.login}/videos`);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -515,7 +515,7 @@ class MessagSub extends Component {
|
|
|
|
render() {
|
|
|
|
render() {
|
|
|
|
let {page, limit, typeysl, count, isSpin, data} = this.state;
|
|
|
|
let {page, limit, typeysl, count, isSpin, data} = this.state;
|
|
|
|
// console.log("6868686868");
|
|
|
|
// console.log("6868686868");
|
|
|
|
console.log(data);
|
|
|
|
console.log(data);
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<div className="clearfix ml20">
|
|
|
|
<div className="clearfix ml20">
|
|
|
|
{/*头部筛选数据*/}
|
|
|
|
{/*头部筛选数据*/}
|
|
|
@ -529,7 +529,7 @@ class MessagSub extends Component {
|
|
|
|
onClick={(s, i) => this.getdata("project", 1)}>项目提醒</a></li>
|
|
|
|
onClick={(s, i) => this.getdata("project", 1)}>项目提醒</a></li>
|
|
|
|
|
|
|
|
|
|
|
|
{/*<li className={typeysl && typeysl === "project_package" ? "active" : ""}><a*/}
|
|
|
|
{/*<li className={typeysl && typeysl === "project_package" ? "active" : ""}><a*/}
|
|
|
|
{/*onClick={(s, i) => this.getdata("project_package", 1)}>众包提醒</a></li>*/}
|
|
|
|
{/*onClick={(s, i) => this.getdata("project_package", 1)}>众包提醒</a></li>*/}
|
|
|
|
|
|
|
|
|
|
|
|
<li className={typeysl && typeysl === "interaction" ? "active" : ""}><a
|
|
|
|
<li className={typeysl && typeysl === "interaction" ? "active" : ""}><a
|
|
|
|
onClick={(s, i) => this.getdata("interaction", 1)}>互动提醒</a></li>
|
|
|
|
onClick={(s, i) => this.getdata("interaction", 1)}>互动提醒</a></li>
|
|
|
@ -545,120 +545,119 @@ class MessagSub extends Component {
|
|
|
|
{/*下面内容页面*/}
|
|
|
|
{/*下面内容页面*/}
|
|
|
|
<div className="bor-top-greyE mycenter">
|
|
|
|
<div className="bor-top-greyE mycenter">
|
|
|
|
{/*这里可以进行数据处理*/}
|
|
|
|
{/*这里可以进行数据处理*/}
|
|
|
|
<div className="myw100baifenbi edu-back-white">
|
|
|
|
<div className="myw100baifenbi">
|
|
|
|
<Spin size="large" className="myw100baifenbi mt10" spinning={isSpin}>
|
|
|
|
<Spin size="large" className="myw100baifenbi mt10" spinning={isSpin}>
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
data === undefined ?
|
|
|
|
data === undefined ?
|
|
|
|
<NoneData></NoneData> :
|
|
|
|
<NoneData></NoneData> :
|
|
|
|
data.length === 0 ?
|
|
|
|
data.length === 0 ?
|
|
|
|
<NoneData></NoneData>
|
|
|
|
<NoneData></NoneData>
|
|
|
|
: data.map((item, key) => {
|
|
|
|
: data.map((item, key) => {
|
|
|
|
// console.log(data)
|
|
|
|
// console.log(data)
|
|
|
|
// ridinglist-subs
|
|
|
|
// ridinglist-subs
|
|
|
|
var boolps = true;
|
|
|
|
var boolps = true;
|
|
|
|
if (item.container_type === "PraiseTread" || item.container_type === "Grade" || item.container_type === "ChallengeWorkScore") {
|
|
|
|
if (item.container_type === "PraiseTread" || item.container_type === "Grade" || item.container_type === "ChallengeWorkScore") {
|
|
|
|
boolps = false;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (item.container_type === "JournalsForMessage") {
|
|
|
|
|
|
|
|
if (item.parent_container_type === "Principal") {
|
|
|
|
|
|
|
|
boolps = false;
|
|
|
|
boolps = false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (item.parent_container_type === "HomeworkCommon") {
|
|
|
|
if (item.container_type === "JournalsForMessage") {
|
|
|
|
if (item.homework_type === null || item.homework_type === undefined) {
|
|
|
|
if (item.parent_container_type === "Principal") {
|
|
|
|
boolps = false;
|
|
|
|
boolps = false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (item.parent_container_type === "HomeworkCommon") {
|
|
|
|
|
|
|
|
if (item.homework_type === null || item.homework_type === undefined) {
|
|
|
|
|
|
|
|
boolps = false;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// if(item.container_type==="HomeworkCommon"){
|
|
|
|
// if(item.container_type==="HomeworkCommon"){
|
|
|
|
// if(item.parent_container_type==="AnonymousAppeal"){
|
|
|
|
// if(item.parent_container_type==="AnonymousAppeal"){
|
|
|
|
// boolps=false;
|
|
|
|
// boolps=false;
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
if (item.container_type === "ProjectPackage") {
|
|
|
|
if (item.container_type === "ProjectPackage") {
|
|
|
|
if (item.tiding_type === "Destroyed_end") {
|
|
|
|
if (item.tiding_type === "Destroyed_end") {
|
|
|
|
boolps = false;
|
|
|
|
boolps = false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (item.tiding_type === "Destroyed") {
|
|
|
|
if (item.tiding_type === "Destroyed") {
|
|
|
|
boolps = false;
|
|
|
|
boolps = false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (item.container_type === "Course") {
|
|
|
|
if (item.container_type === "Course") {
|
|
|
|
if (item.tiding_type === "Delete") {
|
|
|
|
if (item.tiding_type === "Delete") {
|
|
|
|
boolps = false;
|
|
|
|
boolps = false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (item.container_type === "DeleteCourse") {
|
|
|
|
if (item.container_type === "DeleteCourse") {
|
|
|
|
if (item.tiding_type === "System") {
|
|
|
|
if (item.tiding_type === "System") {
|
|
|
|
boolps = false;
|
|
|
|
boolps = false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (item.container_type === "DeleteCourseMember") {
|
|
|
|
if (item.container_type === "DeleteCourseMember") {
|
|
|
|
if (item.tiding_type === "System") {
|
|
|
|
if (item.tiding_type === "System") {
|
|
|
|
boolps = false;
|
|
|
|
boolps = false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<div className="pl25 ridinglist edu-back-white" key={key}>
|
|
|
|
<div className="pl25 ridinglist edu-back-white" key={key}>
|
|
|
|
<div
|
|
|
|
<div
|
|
|
|
className={boolps === true ? "ridinglist-sub clearfix df tiding_item" : "ridinglist-subs clearfix df tiding_item"}
|
|
|
|
className={boolps === true ? "ridinglist-sub clearfix df tiding_item" : "ridinglist-subs clearfix df tiding_item"}
|
|
|
|
onClick={() => this.gettourl(item)}>
|
|
|
|
onClick={() => this.gettourl(item)}>
|
|
|
|
<img onMouseDown={() => this.myCome(item)}
|
|
|
|
<img onMouseDown={() => this.myCome(item)}
|
|
|
|
src={getImageUrl("images/" + item.trigger_user.image_url)}
|
|
|
|
src={getImageUrl("images/" + item.trigger_user.image_url)}
|
|
|
|
className="radius mr10 fl myimgw48 myimgh48"/>
|
|
|
|
className="radius mr10 fl myimgw48 myimgh48"/>
|
|
|
|
<div className="fl flex1">
|
|
|
|
<div className="fl flex1">
|
|
|
|
<p>
|
|
|
|
<p>
|
|
|
|
<a className="mr20 private_message_a"
|
|
|
|
<a className="mr20 private_message_a"
|
|
|
|
onMouseDown={() => this.myCome(item)}>{item.trigger_user.name}</a>
|
|
|
|
onMouseDown={() => this.myCome(item)}>{item.trigger_user.name}</a>
|
|
|
|
<span className="color-grey-c">{item.time}</span>
|
|
|
|
<span className="color-grey-c">{item.time}</span>
|
|
|
|
{item.tiding_type === "Apply" ? (
|
|
|
|
{item.tiding_type === "Apply" ? (
|
|
|
|
item.status === 0 ?
|
|
|
|
item.status === 0 ?
|
|
|
|
<span className="edu-filter-btn ml20 edu-filter-btn-red">待处理</span> : ""
|
|
|
|
<span className="edu-filter-btn ml20 edu-filter-btn-red">待处理</span> : ""
|
|
|
|
) : ""}
|
|
|
|
) : ""}
|
|
|
|
{item.tiding_type === "Apply" ? (
|
|
|
|
{item.tiding_type === "Apply" ? (
|
|
|
|
item.status === 1 ?
|
|
|
|
item.status === 1 ?
|
|
|
|
<span className="edu-filter-btn ml20 edu-filter-btn-green">已处理</span> : ""
|
|
|
|
<span className="edu-filter-btn ml20 edu-filter-btn-green">已处理</span> : ""
|
|
|
|
) : ""}
|
|
|
|
) : ""}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</p>
|
|
|
|
</p>
|
|
|
|
<style>
|
|
|
|
<style>
|
|
|
|
{
|
|
|
|
{
|
|
|
|
`.yslspansk span{
|
|
|
|
`.yslspansk span{
|
|
|
|
color: #FF9966!important;
|
|
|
|
color: #FF9966!important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`
|
|
|
|
`
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</style>
|
|
|
|
<p className="color-grey-6 yslspansk markdown-body mt10" style={{wordBreak: "break-word"}}
|
|
|
|
<p className="color-grey-6 yslspansk markdown-body mt10" style={{wordBreak: "break-word"}}
|
|
|
|
dangerouslySetInnerHTML={{__html: markdownToHTML(item.content).replace(/▁/g, "▁▁▁")}}></p>
|
|
|
|
dangerouslySetInnerHTML={{__html: markdownToHTML(item.content).replace(/▁/g, "▁▁▁")}}></p>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<span className={item.new_tiding === true ? "new-point fr mr40 mt22" : ""}></span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<span className={item.new_tiding === true ? "new-point fr mr40 mt22" : ""}></span>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
)
|
|
|
|
</div>
|
|
|
|
})}
|
|
|
|
)
|
|
|
|
|
|
|
|
})}
|
|
|
|
|
|
|
|
</Spin>
|
|
|
|
</Spin>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{/*页数*/}
|
|
|
|
|
|
|
|
{data === undefined ? ""
|
|
|
|
|
|
|
|
:
|
|
|
|
|
|
|
|
(count > 10 ?
|
|
|
|
|
|
|
|
<div style={{textAlign: "center"}} className="new_expand mt10">
|
|
|
|
|
|
|
|
<div className="edu-txt-center mt30">
|
|
|
|
|
|
|
|
<Pagination showQuickJumper current={page}
|
|
|
|
|
|
|
|
onChange={this.paginationonChanges} pageSize={limit}
|
|
|
|
|
|
|
|
total={count}></Pagination>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div> : ""
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{/*页数*/}
|
|
|
|
|
|
|
|
{data === undefined ? ""
|
|
|
|
|
|
|
|
:
|
|
|
|
|
|
|
|
(count > 10 ?
|
|
|
|
|
|
|
|
<div style={{textAlign: "center"}} className="new_expand mt10">
|
|
|
|
|
|
|
|
<div className="edu-txt-center mt30">
|
|
|
|
|
|
|
|
<Pagination showQuickJumper current={page}
|
|
|
|
|
|
|
|
onChange={this.paginationonChanges} pageSize={limit}
|
|
|
|
|
|
|
|
total={count}></Pagination>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div> : ""
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
)
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
|
|
|