Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xiaomai-cloud-class-web
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xiaomai-cloud-class
xiaomai-cloud-class-web
Commits
502728d6
Commit
502728d6
authored
Aug 17, 2021
by
yuananting
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/yuananting/20210801/task-center' into dev
parents
e62591c3
3dcf263d
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
6 deletions
+16
-6
src/components/WWOpenData.jsx
+0
-2
src/modules/task-center/train-task/components/TrainList.jsx
+2
-2
src/modules/task-center/train-task/components/TrainList.less
+14
-2
No files found.
src/components/WWOpenData.jsx
View file @
502728d6
...
@@ -2,8 +2,6 @@ import React, { useRef, useLayoutEffect } from 'react'
...
@@ -2,8 +2,6 @@ import React, { useRef, useLayoutEffect } from 'react'
export
default
function
WWOpenDataCom
({
type
,
openid
})
{
export
default
function
WWOpenDataCom
({
type
,
openid
})
{
const
ref
=
useRef
(
null
)
const
ref
=
useRef
(
null
)
useLayoutEffect
(()
=>
{
useLayoutEffect
(()
=>
{
console
.
log
(
'1111'
);
console
.
log
(
WWOpenData
);
WWOpenData
&&
WWOpenData
.
bind
(
ref
.
current
)
WWOpenData
&&
WWOpenData
.
bind
(
ref
.
current
)
})
})
return
<
ww
-
open
-
data
ref=
{
ref
}
type=
{
type
}
openid=
{
openid
}
/>
return
<
ww
-
open
-
data
ref=
{
ref
}
type=
{
type
}
openid=
{
openid
}
/>
...
...
src/modules/task-center/train-task/components/TrainList.jsx
View file @
502728d6
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: yuananting
* @Author: yuananting
* @Date: 2021-07-28 14:56:52
* @Date: 2021-07-28 14:56:52
* @LastEditors: yuananting
* @LastEditors: yuananting
* @LastEditTime: 2021-08-17 1
1:14:2
8
* @LastEditTime: 2021-08-17 1
5:18:0
8
* @Description: 描述一下咯
* @Description: 描述一下咯
* @Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
* @Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/
*/
...
@@ -148,7 +148,7 @@ function TrainList(props) {
...
@@ -148,7 +148,7 @@ function TrainList(props) {
const
isUnableAbleEdit
=
item
.
issueState
===
'YES'
||
item
.
taskState
===
'FINISH'
;
// 已发布或已结束
const
isUnableAbleEdit
=
item
.
issueState
===
'YES'
||
item
.
taskState
===
'FINISH'
;
// 已发布或已结束
const
isUnableShare
=
item
.
issueState
===
'NO'
||
item
.
taskState
===
'FINISH'
;
//未发布或已结束
const
isUnableShare
=
item
.
issueState
===
'NO'
||
item
.
taskState
===
'FINISH'
;
//未发布或已结束
return
(
return
(
<
div
className=
'
live-course
-more-menu'
>
<
div
className=
'
train-list
-more-menu'
>
{
!
isUnableIssue
&&
(
{
!
isUnableIssue
&&
(
<
div
className=
'operate__item'
onClick=
{
()
=>
updateIssueStateTrain
(
item
.
taskId
,
'YES'
)
}
>
<
div
className=
'operate__item'
onClick=
{
()
=>
updateIssueStateTrain
(
item
.
taskId
,
'YES'
)
}
>
发布
发布
...
...
src/modules/task-center/train-task/components/TrainList.less
View file @
502728d6
...
@@ -113,9 +113,21 @@
...
@@ -113,9 +113,21 @@
}
}
}
}
}
}
.train-list-more-menu {
.disabled {
background: white;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
border-radius: 4px;
div {
line-height: 30px;
padding: 0 15px;
cursor: pointer;
&:hover {
background: #f3f6fa;
}
}
.disabled {
color: #ccc !important;
color: #ccc !important;
cursor: not-allowed !important;
cursor: not-allowed !important;
pointer-events: none !important;
pointer-events: none !important;
}
}
}
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