Commit 502728d6 by yuananting

Merge branch 'feature/yuananting/20210801/task-center' into dev

parents e62591c3 3dcf263d
...@@ -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} />
......
...@@ -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 11:14:28 * @LastEditTime: 2021-08-17 15:18:08
* @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')}>
发布 发布
......
...@@ -113,9 +113,21 @@ ...@@ -113,9 +113,21 @@
} }
} }
} }
.train-list-more-menu {
.disabled { background: white;
color: #ccc !important; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
cursor: not-allowed !important; border-radius: 4px;
pointer-events: none !important; div {
line-height: 30px;
padding: 0 15px;
cursor: pointer;
&:hover {
background: #f3f6fa;
}
}
.disabled {
color: #ccc !important;
cursor: not-allowed !important;
pointer-events: none !important;
}
} }
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