From 22ca58035a44919832a0b5106486f9b08fcf8d6c Mon Sep 17 00:00:00 2001 From: hjm <63528605@qq.com> Date: Tue, 27 Aug 2019 17:32:58 +0800 Subject: [PATCH] tip --- .../src/modules/courses/busyWork/CommonWorkPost.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/public/react/src/modules/courses/busyWork/CommonWorkPost.js b/public/react/src/modules/courses/busyWork/CommonWorkPost.js index c985aaa7a..047747abe 100644 --- a/public/react/src/modules/courses/busyWork/CommonWorkPost.js +++ b/public/react/src/modules/courses/busyWork/CommonWorkPost.js @@ -4,7 +4,7 @@ import {Link} from 'react-router-dom'; import axios from 'axios'; import _ from 'lodash' -import { WordsBtn, getUploadActionUrl, appendFileSizeToUploadFile, appendFileSizeToUploadFileAll } from 'educoder'; +import { WordsBtn, getUploadActionUrl, appendFileSizeToUploadFile, appendFileSizeToUploadFileAll, ConditionToolTip } from 'educoder'; import Modals from '../../modals/Modals'; import TPMMDEditor from '../../tpm/challengesnew/TPMMDEditor'; import LeaderIcon from './common/LeaderIcon' @@ -765,17 +765,18 @@ render(){
{selectmemberslist&&selectmemberslist.map((item,key)=>{ + const _is_leader = (item.is_leader || !this.isEdit && key==0) return(
- -
5 ? '#4CACFF' : 'inherit'}`}}> - {item.user_name}{ item.user_name.length <= 5 && (item.is_leader || !this.isEdit && key==0) && } + 5}> +
5 && _is_leader ? '#4CACFF' : 'inherit'}`}}> + {item.user_name}{ item.user_name.length <= 5 && _is_leader && }
- +
9 ? item.group_name : ''}