dev_cs
commit
b694049eb0
@ -0,0 +1,10 @@
|
||||
class ShixunListsController < ApplicationController
|
||||
def index
|
||||
@results = ShixunSearchService.call(search_params)
|
||||
end
|
||||
|
||||
private
|
||||
def search_params
|
||||
params.permit(:keyword, :type, :page, :limit, :order, :type, :status, :diff)
|
||||
end
|
||||
end
|
@ -0,0 +1,56 @@
|
||||
class ShixunSearchService < ApplicationService
|
||||
include ElasticsearchAble
|
||||
|
||||
attr_reader :params
|
||||
|
||||
def initialize(params)
|
||||
@params = params
|
||||
end
|
||||
|
||||
def call
|
||||
# 全部实训/我的实训
|
||||
type = params[:type] || "all"
|
||||
# 状态:已发布/未发布
|
||||
status = params[:status] || "all"
|
||||
|
||||
# 超级管理员用户显示所有未隐藏的实训、非管理员显示所有已发布的实训(对本单位公开且未隐藏未关闭)
|
||||
if type == "mine"
|
||||
@shixuns = User.current.shixuns.none_closed
|
||||
else
|
||||
if User.current.admin? || User.current.business?
|
||||
@shixuns = Shixun.none_closed.where(hidden: 0)
|
||||
else
|
||||
none_shixun_ids = ShixunSchool.where("school_id != #{User.current.school_id}").pluck(:shixun_id)
|
||||
|
||||
@shixuns = Shixun.where.not(id: none_shixun_ids).none_closed.where(hidden: 0)
|
||||
end
|
||||
end
|
||||
|
||||
unless status == "all"
|
||||
@shixuns = status == "published" ? @shixuns.where(status: 2) : @shixuns.where(status: [0, 1])
|
||||
end
|
||||
|
||||
## 筛选 难度
|
||||
if params[:diff].present? && params[:diff].to_i != 0
|
||||
@shixuns = @shixuns.where(trainee: params[:diff])
|
||||
end
|
||||
|
||||
Shixun.search(keyword, search_options)
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def search_options
|
||||
model_options = {
|
||||
includes: [ :shixun_info, :challenges, :subjects, user: { user_extension: :school } ]
|
||||
}
|
||||
model_options.merge!(where: { id: @shixuns.pluck(:id) })
|
||||
model_options.merge!(order: {"myshixuns_count" => sort_str})
|
||||
model_options.merge!(default_options)
|
||||
model_options
|
||||
end
|
||||
|
||||
def sort_str
|
||||
params[:order] || "desc"
|
||||
end
|
||||
end
|
@ -1 +1 @@
|
||||
json.course_evaluations @course_evaluations, partial: 'shared/ec_course_evaluation', as: :ec_course_evaluation
|
||||
json.course_evaluations @course_evaluations, partial: 'ecs/course_evaluations/shared/ec_course_evaluation', as: :ec_course_evaluation
|
||||
|
@ -1 +1 @@
|
||||
json.partial! 'shared/ec_course_evaluation', ec_course_evaluation: @course_evaluation
|
||||
json.partial! 'ecs/course_evaluations/shared/ec_course_evaluation', ec_course_evaluation: @course_evaluation
|
||||
|
@ -1 +1 @@
|
||||
json.course_evaluations @course_evaluations, partial: 'shared/ec_course_evaluation_slim', as: :ec_course_evaluation
|
||||
json.course_evaluations @course_evaluations, partial: 'ecs/course_evaluations/shared/ec_course_evaluation_slim', as: :ec_course_evaluation
|
||||
|
@ -1,2 +1,2 @@
|
||||
|
||||
json.course_targets @course_targets, partial: 'shared/course_target', as: :ec_course_target
|
||||
json.course_targets @course_targets, partial: 'ecs/course_targets/shared/course_target', as: :ec_course_target
|
||||
|
@ -1,2 +1,2 @@
|
||||
json.count @count
|
||||
json.ec_courses @ec_courses, partial: 'shared/ec_course_slim', as: :ec_course
|
||||
json.ec_courses @ec_courses, partial: 'ecs/ec_courses/shared/ec_course_slim', as: :ec_course
|
@ -1,3 +1,3 @@
|
||||
|
||||
json.count @graduation_requirements.size
|
||||
json.graduation_requirements @graduation_requirements, partial: 'shared/ec_graduation_requirement', as: :ec_graduation_requirement
|
||||
json.graduation_requirements @graduation_requirements, partial: '/ecs/ec_graduation_requirements/shared/ec_graduation_requirement', as: :ec_graduation_requirement
|
||||
|
@ -1,2 +1,2 @@
|
||||
|
||||
json.partial! 'shared/ec_graduation_requirement', ec_graduation_requirement: @graduation_requirement
|
||||
json.partial! 'ecs/ec_graduation_requirements/shared/ec_graduation_requirement', ec_graduation_requirement: @graduation_requirement
|
||||
|
@ -1 +1 @@
|
||||
json.partial! 'shared/ec_graduation_subitem', ec_graduation_subitem: @graduation_subitem
|
||||
json.partial! 'ecs/graduation_course_supports/shared/ec_graduation_subitem', ec_graduation_subitem: @graduation_subitem
|
||||
|
@ -1,3 +1,3 @@
|
||||
json.course_count @course_count
|
||||
json.graduation_subitems @graduation_subitems, partial: 'shared/ec_graduation_subitem', as: :ec_graduation_subitem
|
||||
json.graduation_subitems @graduation_subitems, partial: 'ecs/graduation_course_supports/shared/ec_graduation_subitem', as: :ec_graduation_subitem
|
||||
json.count @graduation_subitems.size
|
||||
|
@ -1,4 +1,4 @@
|
||||
|
||||
json.graduation_requirements @graduation_requirements, partial: 'ecs/ec_graduation_requirements/shared/ec_graduation_requirement', as: :ec_graduation_requirement
|
||||
json.training_subitems @training_subitems, partial: 'ecs/ec_training_subitems/shared/ec_training_subitem', as: :ec_training_subitem
|
||||
json.requirement_support_objectives @requirement_support_objectives, partial: 'shared/requirement_support_objective', as: :requirement_support_objective
|
||||
json.requirement_support_objectives @requirement_support_objectives, partial: 'ecs/requirement_support_objectives/shared/requirement_support_objective', as: :requirement_support_objective
|
||||
|
@ -1 +1 @@
|
||||
json.score_levels @score_levels, partial: 'shared/ec_score_level', as: :ec_score_level
|
||||
json.score_levels @score_levels, partial: 'ecs/score_levels/shared/ec_score_level', as: :ec_score_level
|
||||
|
@ -1,2 +1,2 @@
|
||||
json.count @count
|
||||
json.students @students, partial: 'shared/ec_year_student', as: :ec_year_student
|
||||
json.students @students, partial: 'ecs/students/shared/ec_year_student', as: :ec_year_student
|
@ -1,4 +1,4 @@
|
||||
|
||||
json.graduation_standards @graduation_standards, partial: 'ecs/shared/ec_graduation_standard', as: :ec_graduation_standard
|
||||
json.graduation_subitems @graduation_subitems, partial: 'ecs/shared/ec_graduation_subitem', as: :ec_graduation_subitem
|
||||
json.subitem_support_standards @subitem_support_standards, partial: 'shared/subitem_support_standard', as: :subitem_support_standard
|
||||
json.subitem_support_standards @subitem_support_standards, partial: 'ecs/subitem_support_standards/shared/subitem_support_standard', as: :subitem_support_standard
|
||||
|
@ -0,0 +1,22 @@
|
||||
json.shixuns_count @results.total_count
|
||||
|
||||
json.shixun_list do
|
||||
json.array! @results.with_highlights(multiple: true) do |obj, highlights|
|
||||
json.merge! obj.to_searchable_json
|
||||
json.challenge_names obj.challenges.pluck(:subject)
|
||||
|
||||
# 去除开头标点符号
|
||||
reg = /^[,。?:;‘’!“”—……、]/
|
||||
highlights[:description]&.first&.sub!(reg, '')
|
||||
highlights[:content]&.first&.sub!(reg, '')
|
||||
|
||||
json.title highlights.delete(:name)&.join('...') || obj.searchable_title
|
||||
json.description highlights[:description]&.join('...') || Util.extract_content(obj.description)[0..300]
|
||||
|
||||
json.content highlights
|
||||
json.level level_to_s(obj.trainee)
|
||||
json.subjects obj.subjects.uniq do |subject|
|
||||
json.(subject, :id, :name)
|
||||
end
|
||||
end
|
||||
end
|
File diff suppressed because one or more lines are too long
@ -0,0 +1,250 @@
|
||||
.searchinput{
|
||||
width: 800px;
|
||||
margin-top: 53px;
|
||||
}
|
||||
.newshixunheadersear{
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
.packinput .ant-input{
|
||||
height: 55px;
|
||||
width:663px !important;
|
||||
font-size: 14px;
|
||||
/*color: #681616 !important;*/
|
||||
border-color: #E1EDF8 !important;
|
||||
padding-left: 20px;
|
||||
}
|
||||
|
||||
.packinput .ant-input-group-addon .ant-btn{
|
||||
width:137px !important;
|
||||
font-size: 18px;
|
||||
height: 53px;
|
||||
background:rgba(76,172,255,1);
|
||||
|
||||
}
|
||||
.tabtitle{
|
||||
height: 62px !important;
|
||||
box-shadow: 3px 10px 21px 0px rgba(76, 76, 76, 0.15);
|
||||
border-radius: 6px;
|
||||
background: #fff;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
.tabtitles2{
|
||||
background: #fff;
|
||||
height: 62px !important;
|
||||
width: 1200px;
|
||||
}
|
||||
|
||||
.tabtitless{
|
||||
height: 62px !important;
|
||||
line-height: 62px !important;
|
||||
|
||||
}
|
||||
.tabtitle1{
|
||||
|
||||
}
|
||||
.tabtitle2{
|
||||
margin-left: 30px !important;
|
||||
|
||||
}
|
||||
|
||||
|
||||
.counttit{
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.counttittext{
|
||||
text-align: left;
|
||||
width: 1200px;
|
||||
height: 18px;
|
||||
color: #888888;
|
||||
font-size: 13px;
|
||||
margin-top: 24px;
|
||||
|
||||
|
||||
}
|
||||
.counttittexts{
|
||||
color: #4CACFF !important;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.mainx{
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
margin-top: 17px;
|
||||
}
|
||||
.project-packages-list{
|
||||
|
||||
}
|
||||
.project-package-item{
|
||||
display: -webkit-flex;
|
||||
display: flex;
|
||||
flex-direction:column;
|
||||
margin-bottom: 20px;
|
||||
padding: 20px;
|
||||
background: white;
|
||||
/* box-shadow: 1px 3px 3px 1px rgba(156,156,156,0.16); */
|
||||
|
||||
}
|
||||
.xuxianpro{
|
||||
height: 20px;
|
||||
border-bottom: 1px dashed;
|
||||
border-color: #EAEAEA;
|
||||
margin-bottom: 18px;
|
||||
}
|
||||
.magr11{
|
||||
margin-top: 11px;
|
||||
}
|
||||
.highlight{
|
||||
color: #4CACFF;
|
||||
}
|
||||
.fonttext{
|
||||
font-size: 20px;
|
||||
font-weight:bold;
|
||||
}
|
||||
|
||||
.fontextcolor{
|
||||
color: #777777;
|
||||
}
|
||||
.tzbq{
|
||||
margin-left: 68px;
|
||||
}
|
||||
.tzbqx{
|
||||
/* margin-left: 24px; */
|
||||
}
|
||||
.bjyss{
|
||||
background: #F8F8F8;
|
||||
}
|
||||
.zj{
|
||||
overflow:hidden;
|
||||
text-overflow:ellipsis;
|
||||
white-space:nowrap
|
||||
}
|
||||
.ziticor{
|
||||
color: #777777;
|
||||
font-size: 13px;
|
||||
}
|
||||
.foohter{
|
||||
margin-top: 20px;
|
||||
display: flex;
|
||||
flex-direction:row;
|
||||
}
|
||||
|
||||
.maxwidth1100{
|
||||
max-width: 1100px;
|
||||
overflow:hidden;
|
||||
text-overflow:ellipsis;
|
||||
white-space:nowrap;
|
||||
font-size: 18px !important;
|
||||
font-weight: 500;
|
||||
color: rgba(51,51,51,1) !important;
|
||||
}
|
||||
|
||||
|
||||
.newshixunmodelmidfont{
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
color: #999999;
|
||||
margin-top: 15px;
|
||||
margin-left: 30px;
|
||||
max-width: 1100px;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
display: -webkit-box;
|
||||
-webkit-line-clamp: 2;
|
||||
-webkit-box-orient: vertical;
|
||||
}
|
||||
|
||||
.newshixunmodelbotfont{
|
||||
font-size:12px;
|
||||
font-weight:400;
|
||||
color:rgba(102,102,102,1);
|
||||
margin-top: 15px;
|
||||
margin-left: 30px;
|
||||
}
|
||||
|
||||
.newshixunlist{
|
||||
max-height:227px;
|
||||
width: 1200px;
|
||||
}
|
||||
|
||||
.xuxianpro {
|
||||
height: 20px;
|
||||
border-bottom: 1px dashed;
|
||||
border-color: #eaeaea;
|
||||
margin-bottom: 18px;
|
||||
}
|
||||
|
||||
.newshixunpd030{
|
||||
padding: 0px 30px;
|
||||
}
|
||||
|
||||
.pd303010{
|
||||
padding: 30px 30px 10px;
|
||||
}
|
||||
|
||||
.newshixunfont12{
|
||||
font-size: 12px;
|
||||
color: rgba(76,172,255,1);
|
||||
line-height: 21px;
|
||||
}
|
||||
|
||||
.newshixunmode{
|
||||
width: 100px;
|
||||
height: 38px;
|
||||
border-radius: 3px;
|
||||
border: 1px solid rgba(191,191,191,1);
|
||||
}
|
||||
|
||||
.ntopsj {
|
||||
position: absolute;
|
||||
top: -4px;
|
||||
}
|
||||
|
||||
.nyslbottomsj {
|
||||
position: absolute;
|
||||
bottom: -6px;
|
||||
}
|
||||
|
||||
.inherits .ant-dropdown-menu-item{
|
||||
cursor: inherit !important;
|
||||
}
|
||||
|
||||
.menus{
|
||||
width: 91px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.newshixunmodelbotfont span{
|
||||
display: inline-block;
|
||||
margin-right: 34px;
|
||||
}
|
||||
|
||||
.minhegiht300{
|
||||
min-height: 300px;
|
||||
}
|
||||
|
||||
.newshixunlist:hover{
|
||||
box-shadow: 1px 6px 16px rgba(156,156,156,0.16);
|
||||
opacity: 1;
|
||||
border-radius: 2px;
|
||||
}
|
||||
|
||||
.newshixun500{
|
||||
max-width: 500px;
|
||||
overflow: hidden;
|
||||
-o-text-overflow: ellipsis;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.mt3 {
|
||||
margin-top: 3px !important;
|
||||
}
|
||||
|
||||
.highlight{
|
||||
color: #4CACFF;
|
||||
}
|
||||
|
@ -1,120 +1,122 @@
|
||||
import React,{ Component } from "react";
|
||||
import { Modal,Checkbox,Select,Input,Tooltip} from "antd";
|
||||
import axios from'axios';
|
||||
import ShixunModal from './ShixunModal'
|
||||
|
||||
const Option = Select.Option;
|
||||
const Search = Input.Search;
|
||||
class ShixunChooseModal extends Component{
|
||||
constructor(props){
|
||||
super(props);
|
||||
this.state={
|
||||
shixunmodal: false,
|
||||
hometypepvisible: false,
|
||||
}
|
||||
}
|
||||
setVisible = (visible) => {
|
||||
if (visible) {
|
||||
this.createCommonWork()
|
||||
} else {
|
||||
this.setState({ shixunmodal: visible })
|
||||
}
|
||||
}
|
||||
hidecouseShixunModal = () => {
|
||||
this.setVisible(false)
|
||||
}
|
||||
componentDidMount() {
|
||||
|
||||
|
||||
}
|
||||
funshixunmodallist=(search,type,loading,page)=>{
|
||||
let{newshixunmodallist}=this.state;
|
||||
let newshixunmodallists=[]
|
||||
if(page>1){
|
||||
newshixunmodallists=newshixunmodallist;
|
||||
}
|
||||
this.setState({
|
||||
hometypepvisible:loading
|
||||
})
|
||||
let coursesId=this.props.match.params.coursesId;
|
||||
let url = this.props.shixunsUrl || "/courses/"+coursesId+"/homework_commons/shixuns.json";
|
||||
|
||||
axios.get(url, {
|
||||
params: {
|
||||
search: search,
|
||||
type:type,
|
||||
page:page
|
||||
}
|
||||
}).then((result)=>{
|
||||
if(result.status===200){
|
||||
|
||||
let shixun_list=result.data.shixun_list;
|
||||
for(var i=0; i<shixun_list.length;i++){
|
||||
newshixunmodallists.push(shixun_list[i])
|
||||
}
|
||||
this.setState({
|
||||
shixunmodal:true,
|
||||
shixunmodallist:result.data,
|
||||
newshixunmodallist:newshixunmodallists,
|
||||
hometypepvisible:false
|
||||
})
|
||||
}
|
||||
}).catch((error)=>{
|
||||
console.log(error);
|
||||
})
|
||||
}
|
||||
funpatheditarry=(list)=>{
|
||||
this.setState({
|
||||
patheditarry:list
|
||||
})
|
||||
}
|
||||
createCommonWork=()=>{
|
||||
|
||||
this.setState({
|
||||
hometypepvisible:true,
|
||||
patheditarry:[]
|
||||
})
|
||||
|
||||
let coursesId=this.props.match.params.coursesId;
|
||||
let url = this.props.shixunsUrl || "/courses/"+coursesId+"/homework_commons/shixuns.json";
|
||||
|
||||
axios.get(url).then((result)=>{
|
||||
if(result.status===200){
|
||||
this.setState({
|
||||
shixunmodal:true,
|
||||
shixunmodallist:result.data,
|
||||
hometypepvisible:false,
|
||||
newshixunmodallist:result.data.shixun_list,
|
||||
})
|
||||
}
|
||||
}).catch((error)=>{
|
||||
console.log(error);
|
||||
})
|
||||
}
|
||||
render(){
|
||||
let {Searchvalue,type,category_id, datas, shixunmodal, shixunmodallist
|
||||
, hometypepvisible, newshixunmodallist, patheditarry }=this.state;
|
||||
let {visible}=this.props;
|
||||
|
||||
// console.log(patheditarry)
|
||||
return(
|
||||
<ShixunModal
|
||||
datas={datas}
|
||||
category_id={this.props.match.params.category_id}
|
||||
visible={shixunmodal}
|
||||
shixunmodallist={shixunmodallist}
|
||||
funshixunmodallist={(search,type,loading,page)=>this.funshixunmodallist(search,type,loading,page)}
|
||||
hometypepvisible={hometypepvisible}
|
||||
hidecouseShixunModal={this.hidecouseShixunModal}
|
||||
newshixunmodallist={newshixunmodallist}
|
||||
coursesId={this.props.match.params.coursesId}
|
||||
courseshomeworkstart={(category_id,homework_ids)=> this.props.newhomeworkstart
|
||||
&& this.props.newhomeworkstart(category_id,homework_ids)}
|
||||
funpatheditarry={(patheditarry)=>this.funpatheditarry(patheditarry)}
|
||||
patheditarry={patheditarry}
|
||||
{...this.props}
|
||||
></ShixunModal>
|
||||
)
|
||||
}
|
||||
}
|
||||
import React,{ Component } from "react";
|
||||
import { Modal,Checkbox,Select,Input,Tooltip} from "antd";
|
||||
import axios from'axios';
|
||||
import NewShixunModel from '../coursesPublic/NewShixunModel';
|
||||
|
||||
const Option = Select.Option;
|
||||
const Search = Input.Search;
|
||||
class ShixunChooseModal extends Component{
|
||||
constructor(props){
|
||||
super(props);
|
||||
this.state={
|
||||
shixunmodal: false,
|
||||
hometypepvisible: false,
|
||||
}
|
||||
}
|
||||
setVisible = (visible) => {
|
||||
// if (visible) {
|
||||
// this.createCommonWork()
|
||||
// } else {
|
||||
//
|
||||
// }
|
||||
this.setState({ shixunmodal: visible })
|
||||
}
|
||||
hidecouseShixunModal = () => {
|
||||
this.setVisible(false)
|
||||
}
|
||||
componentDidMount() {
|
||||
|
||||
|
||||
}
|
||||
funshixunmodallist=(search,type,loading,page)=>{
|
||||
let{newshixunmodallist}=this.state;
|
||||
let newshixunmodallists=[]
|
||||
if(page>1){
|
||||
newshixunmodallists=newshixunmodallist;
|
||||
}
|
||||
this.setState({
|
||||
hometypepvisible:loading
|
||||
})
|
||||
let coursesId=this.props.match.params.coursesId;
|
||||
let url = this.props.shixunsUrl || "/courses/"+coursesId+"/homework_commons/shixuns.json";
|
||||
|
||||
axios.get(url, {
|
||||
params: {
|
||||
search: search,
|
||||
type:type,
|
||||
page:page
|
||||
}
|
||||
}).then((result)=>{
|
||||
if(result.status===200){
|
||||
|
||||
let shixun_list=result.data.shixun_list;
|
||||
for(var i=0; i<shixun_list.length;i++){
|
||||
newshixunmodallists.push(shixun_list[i])
|
||||
}
|
||||
this.setState({
|
||||
shixunmodal:true,
|
||||
shixunmodallist:result.data,
|
||||
newshixunmodallist:newshixunmodallists,
|
||||
hometypepvisible:false
|
||||
})
|
||||
}
|
||||
}).catch((error)=>{
|
||||
console.log(error);
|
||||
})
|
||||
}
|
||||
funpatheditarry=(list)=>{
|
||||
this.setState({
|
||||
patheditarry:list
|
||||
})
|
||||
}
|
||||
createCommonWork=()=>{
|
||||
|
||||
this.setState({
|
||||
hometypepvisible:true,
|
||||
patheditarry:[]
|
||||
})
|
||||
|
||||
let coursesId=this.props.match.params.coursesId;
|
||||
let url = this.props.shixunsUrl || "/courses/"+coursesId+"/homework_commons/shixuns.json";
|
||||
|
||||
axios.get(url).then((result)=>{
|
||||
if(result.status===200){
|
||||
this.setState({
|
||||
shixunmodal:true,
|
||||
shixunmodallist:result.data,
|
||||
hometypepvisible:false,
|
||||
newshixunmodallist:result.data.shixun_list,
|
||||
})
|
||||
}
|
||||
}).catch((error)=>{
|
||||
console.log(error);
|
||||
})
|
||||
}
|
||||
render(){
|
||||
let {Searchvalue,type,category_id, datas, shixunmodal, shixunmodallist
|
||||
, hometypepvisible, newshixunmodallist, patheditarry }=this.state;
|
||||
let {visible}=this.props;
|
||||
|
||||
// console.log(patheditarry)
|
||||
return(
|
||||
shixunmodal===true?<NewShixunModel
|
||||
statustype={'published'}
|
||||
datas={datas}
|
||||
category_id={this.props.match.params.category_id}
|
||||
NewShixunModelType={shixunmodal}
|
||||
shixunmodallist={shixunmodallist}
|
||||
funshixunmodallist={(search,type,loading,page)=>this.funshixunmodallist(search,type,loading,page)}
|
||||
hometypepvisible={hometypepvisible}
|
||||
hideNewShixunModelType={this.hidecouseShixunModal}
|
||||
newshixunmodallist={newshixunmodallist}
|
||||
coursesId={this.props.match.params.coursesId}
|
||||
courseshomeworkstart={(category_id,homework_ids)=> this.props.newhomeworkstart
|
||||
&& this.props.newhomeworkstart(category_id,homework_ids)}
|
||||
funpatheditarry={(patheditarry)=>this.funpatheditarry(patheditarry)}
|
||||
patheditarry={patheditarry}
|
||||
{...this.props}
|
||||
></NewShixunModel>:""
|
||||
)
|
||||
}
|
||||
}
|
||||
export default ShixunChooseModal;
|
@ -0,0 +1,94 @@
|
||||
.ec-graduation-requirement-page {
|
||||
background: #fff;
|
||||
|
||||
.graduation-requirement {
|
||||
&-body {
|
||||
margin-top: -24px;
|
||||
}
|
||||
|
||||
&-items {
|
||||
&-head {
|
||||
padding: 15px 30px;
|
||||
display: flex;
|
||||
background: #F5F5F5;
|
||||
}
|
||||
|
||||
&-body {
|
||||
margin: 0 30px;
|
||||
|
||||
&-item {
|
||||
padding: 10px 0px;
|
||||
border-bottom: 1px solid #eaeaea;
|
||||
|
||||
&.active {
|
||||
.item-row {
|
||||
margin-bottom: 10px;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.item-column-operation {
|
||||
width: 40px;
|
||||
}
|
||||
}
|
||||
|
||||
&:last-child {
|
||||
border-bottom: unset;
|
||||
}
|
||||
|
||||
.item-head {
|
||||
margin-bottom: 10px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.item-row {
|
||||
display: flex;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.no-column {
|
||||
width: 60px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.item-content-column {
|
||||
flex: 1;
|
||||
padding-left: 10px;
|
||||
display: flex;
|
||||
|
||||
.ant-form-item {
|
||||
flex: 1;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.item-column-operation {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
width: 80px;
|
||||
|
||||
& > i {
|
||||
margin: 0 5px;
|
||||
font-size: 16px;
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.edit-form {
|
||||
margin-top: 10px;
|
||||
text-align: right;
|
||||
|
||||
button {
|
||||
margin-left: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
i.edit-action {
|
||||
color: #29BD8B;
|
||||
cursor: pointer;
|
||||
font-size: 16px;
|
||||
}
|
||||
}
|
Loading…
Reference in new issue