Merge branches 'courseware' and 'dev_aliyun' of https://bdgit.educoder.net/Hjqreturn/educoder into courseware

schedule_job
杨树明 5 years ago
commit 115fedf4e4

@ -164,7 +164,11 @@ class ChallengesController < ApplicationController
@challenges = @shixun.challenges.joins(join_sql).select(base_columns).uniq @challenges = @shixun.challenges.joins(join_sql).select(base_columns).uniq
@shixun_modify = (@challenges.select{|c| c.status.present? }.size == @challenges.size) @shixun_modify = (@challenges.select{|c| !c.status.nil? }.size != @challenges.size)
logger.info("########shixun_modify#{@shixun_modify}")
logger.info("########challenges.size#{@challenges.size}")
logger.info("########challenge_inspect#{@challenges.inspect}")
#@challenges = @shixun.challenges.fields_for_list #@challenges = @shixun.challenges.fields_for_list
@editable = @shixun.status == 0 # before_action有判断权限如果没发布则肯定是管理人员 @editable = @shixun.status == 0 # before_action有判断权限如果没发布则肯定是管理人员

@ -243,7 +243,7 @@ class InfosShixun extends Component{
<li className={category == "collect" ? "active font-16 whitepanelysllis" : "font-16 whitepanelysllis"}><a <li className={category == "collect" ? "active font-16 whitepanelysllis" : "font-16 whitepanelysllis"}><a
onClick={() => this.changeCategory("collect")} onClick={() => this.changeCategory("collect")}
href="javascript:void(0)" href="javascript:void(0)"
className={is_current ? "font-16 w66" : "font-16 w80"}>{is_current ? "我" : "TA"}学习</a></li> className={is_current ? "font-16 w66" : "font-16 w80"}>{is_current ? "我" : "TA"}收藏</a></li>
</div> </div>
<style> <style>
{ {

Loading…
Cancel
Save