Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
B
biz.qingxiao.com
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangxuelai
biz.qingxiao.com
Commits
2e8cf7bf
Commit
2e8cf7bf
authored
Jul 27, 2019
by
wangxuelai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
''
parent
b567b63a
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
446 additions
and
108 deletions
+446
-108
api.js
src/common/api.js
+2
-0
clockmgt.js
src/models/clockmgt.js
+267
-33
clockitem.js
src/pages/clockmgt/clockitem.js
+2
-1
index.js
src/pages/clockmgt/index.js
+152
-74
index.less
src/pages/clockmgt/index.less
+8
-0
clockmgt.js
src/services/clockmgt.js
+15
-0
No files found.
src/common/api.js
View file @
2e8cf7bf
...
...
@@ -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`
,
},
};
src/models/clockmgt.js
View file @
2e8cf7bf
This diff is collapsed.
Click to expand it.
src/pages/clockmgt/clockitem.js
View file @
2e8cf7bf
...
...
@@ -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
}
>
...
...
src/pages/clockmgt/index.js
View file @
2e8cf7bf
This diff is collapsed.
Click to expand it.
src/pages/clockmgt/index.less
View file @
2e8cf7bf
...
...
@@ -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
src/services/clockmgt.js
View file @
2e8cf7bf
...
...
@@ -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
,
});
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment