Commit 2e8cf7bf authored by wangxuelai's avatar wangxuelai

''

parent b567b63a
......@@ -50,5 +50,7 @@ export default {
batchReview: `${dakaapi}member/reviews/batch_review`,
reviewsDelete: `${dakaapi}member/reviews`,
placeTop: `${dakaapi}member/clocks/place_top`,
delClock: `${dakaapi}member/clocks`,
deleteReviews: `${dakaapi}member/reviews/delete_reviews`,
},
};
This diff is collapsed.
......@@ -24,6 +24,7 @@ class ClockItem extends React.Component {
showcommentbtn,
startComment,
placeTop,
delClock,
} = this.props;
return (
<div className={pageStyle.clockitem}>
......@@ -92,7 +93,7 @@ class ClockItem extends React.Component {
}
<div className={pageStyle.operatebtnitem} onClick={() => placeTop(clock)}>{ clock.place_top_at == null ? '精选' : '取消精选'}</div>
<div className={pageStyle.operatebtndivide}>|</div>
<div className={pageStyle.operatebtnitem}>删除</div>
<div className={pageStyle.operatebtnitem} onClick={() => delClock(clock)}>删除</div>
</div>
{(clock.review && (clock.review[1] || clock.review[2])) &&
<div className={pageStyle.teacherassesmentbox}>
......
This diff is collapsed.
......@@ -77,6 +77,11 @@
top: 30px;
}
}
.emptybox {
display: flex;
align-items: center;
justify-content: center;
}
:global {
.clockmgtcontainer {
.ant-tabs-bar {
......@@ -91,5 +96,8 @@
color: #1890FF;
}
}
.ant-empty {
padding: 30px 0;
}
}
}
\ No newline at end of file
......@@ -29,3 +29,18 @@ export function clockPlaceTop(params) {
data,
});
}
export function delClock({ id }) {
return request({
url: `${api.clockmgt.delClock}/${id}`,
method: 'DELETE',
});
}
export function deleteReviews(params) {
const data = qs.stringify(params);
return request({
url: `${api.clockmgt.deleteReviews}`,
method: 'POST',
data,
});
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment