Merge branch 'dev_item_bank' of http://bdgit.educoder.net/Hjqreturn/educoder into dev_item_bank
commit
1fbf0960e7
@ -1,4 +1,6 @@
|
||||
class MainController < ApplicationController
|
||||
skip_before_action :check_sign
|
||||
|
||||
def index
|
||||
render file: 'public/react/build/index.html', :layout => false
|
||||
end
|
||||
|
@ -1,111 +0,0 @@
|
||||
Rails.application.configure do
|
||||
# Settings specified here will take precedence over those in config/application.rb.
|
||||
|
||||
# Code is not reloaded between requests.
|
||||
config.cache_classes = true
|
||||
|
||||
# Eager load code on boot. This eager loads most of Rails and
|
||||
# your application in memory, allowing both threaded web servers
|
||||
# and those relying on copy on write to perform better.
|
||||
# Rake tasks automatically ignore this option for performance.
|
||||
config.eager_load = true
|
||||
|
||||
# Full error reports are disabled and caching is turned on.
|
||||
config.consider_all_requests_local = false
|
||||
config.action_controller.perform_caching = true
|
||||
|
||||
# Ensures that a master key has been made available in either ENV["RAILS_MASTER_KEY"]
|
||||
# or in config/master.key. This key is used to decrypt credentials (and other encrypted files).
|
||||
# config.require_master_key = true
|
||||
|
||||
# Disable serving static files from the `/public` folder by default since
|
||||
# Apache or NGINX already handles this.
|
||||
## config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present?
|
||||
config.public_file_server.enabled = true
|
||||
|
||||
# Compress JavaScripts and CSS.
|
||||
config.assets.js_compressor = :uglifier
|
||||
# config.assets.css_compressor = :sass
|
||||
|
||||
# Do not fallback to assets pipeline if a precompiled asset is missed.
|
||||
config.assets.compile = false
|
||||
|
||||
# `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb
|
||||
|
||||
# Enable serving of images, stylesheets, and JavaScripts from an asset server.
|
||||
# config.action_controller.asset_host = 'http://assets.example.com'
|
||||
|
||||
# Specifies the header that your server uses for sending files.
|
||||
# config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for Apache
|
||||
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX
|
||||
|
||||
# Store uploaded files on the local file system (see config/storage.yml for options)
|
||||
config.active_storage.service = :local
|
||||
|
||||
# Mount Action Cable outside main process or domain
|
||||
# config.action_cable.mount_path = nil
|
||||
# config.action_cable.url = 'wss://example.com/cable'
|
||||
# config.action_cable.allowed_request_origins = [ 'http://example.com', /http:\/\/example.*/ ]
|
||||
|
||||
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
|
||||
# config.force_ssl = true
|
||||
|
||||
# Use the lowest log level to ensure availability of diagnostic information
|
||||
# when problems arise.
|
||||
config.log_level = :info
|
||||
|
||||
# Prepend all log lines with the following tags.
|
||||
config.log_tags = [ :request_id ]
|
||||
|
||||
# Use a different cache store in production.
|
||||
# config.cache_store = :mem_cache_store
|
||||
|
||||
# Use a real queuing backend for Active Job (and separate queues per environment)
|
||||
# config.active_job.queue_adapter = :resque
|
||||
# config.active_job.queue_name_prefix = "educoderplus_#{Rails.env}"
|
||||
|
||||
config.action_mailer.perform_caching = false
|
||||
|
||||
# Ignore bad email addresses and do not raise email delivery errors.
|
||||
# Set this to true and configure the email server for immediate delivery to raise delivery errors.
|
||||
# config.action_mailer.raise_delivery_errors = false
|
||||
|
||||
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
|
||||
# the I18n.default_locale when a translation cannot be found).
|
||||
config.i18n.fallbacks = true
|
||||
|
||||
# Send deprecation notices to registered listeners.
|
||||
config.active_support.deprecation = :notify
|
||||
|
||||
# Use default logging formatter so that PID and timestamp are not suppressed.
|
||||
config.log_formatter = ::Logger::Formatter.new
|
||||
|
||||
# Use a different logger for distributed setups.
|
||||
# require 'syslog/logger'
|
||||
# config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new 'app-name')
|
||||
|
||||
if ENV["RAILS_LOG_TO_STDOUT"].present?
|
||||
logger = ActiveSupport::Logger.new(STDOUT)
|
||||
logger.formatter = config.log_formatter
|
||||
config.logger = ActiveSupport::TaggedLogging.new(logger)
|
||||
end
|
||||
|
||||
# Do not dump schema after migrations.
|
||||
config.active_record.dump_schema_after_migration = false
|
||||
|
||||
config.active_record.belongs_to_required_by_default = false
|
||||
|
||||
# config.cache_store = :file_store, "#{Rails.root }/files/cache_store/"
|
||||
#config.cache_store = :redis_store, 'redis://r-bp122bd1b710f274.redis.rds.aliyuncs.com:6379/0/cache', { expires_in: 90.minutes }
|
||||
config.cache_store = :redis_store, 'redis://10.9.72.102:6379/0/cache', { expires_in: 90.minutes }
|
||||
|
||||
config.action_mailer.delivery_method = :smtp
|
||||
config.action_mailer.smtp_settings = {
|
||||
address: 'smtp.exmail.qq.com',
|
||||
port: 25,
|
||||
domain: 'smtp.qq.com',
|
||||
user_name: 'educoder@trustie.org',
|
||||
password: 'mAZc9EWbe2Kawaqo2',
|
||||
authentication: 'login',
|
||||
enable_starttls_auto: true }
|
||||
end
|
@ -0,0 +1,48 @@
|
||||
/*
|
||||
* @Description:
|
||||
* @Author: tangjiang
|
||||
* @Github:
|
||||
* @Date: 2019-12-27 19:18:09
|
||||
* @LastEditors: tangjiang
|
||||
* @LastEditTime: 2019-12-27 19:19:23
|
||||
*/
|
||||
import React, { useState } from 'react';
|
||||
import Editor from "@monaco-editor/react";
|
||||
|
||||
function App() {
|
||||
const [theme, setTheme] = useState("light");
|
||||
const [language, setLanguage] = useState("javascript");
|
||||
const [isEditorReady, setIsEditorReady] = useState(false);
|
||||
|
||||
function handleEditorDidMount() {
|
||||
setIsEditorReady(true);
|
||||
}
|
||||
|
||||
function toggleTheme() {
|
||||
setTheme(theme === "light" ? "dark" : "light");
|
||||
}
|
||||
|
||||
function toggleLanguage() {
|
||||
setLanguage(language === "javascript" ? "python" : "javascript");
|
||||
}
|
||||
|
||||
return (
|
||||
<React.Fragment>
|
||||
<LinkToRepo />
|
||||
<button onClick={toggleTheme} disabled={!isEditorReady}>
|
||||
Toggle theme
|
||||
</button>
|
||||
<button onClick={toggleLanguage} disabled={!isEditorReady}>
|
||||
Toggle language
|
||||
</button>
|
||||
|
||||
<Editor
|
||||
height="calc(100% - 19px)" // By default, it fully fits with its parent
|
||||
theme={theme}
|
||||
language={language}
|
||||
value={'c'}
|
||||
editorDidMount={handleEditorDidMount}
|
||||
/>
|
||||
</React.Fragment>
|
||||
);
|
||||
}
|
@ -0,0 +1,239 @@
|
||||
import React, {Component} from "react";
|
||||
import {Link, NavLink} from 'react-router-dom';
|
||||
import {WordsBtn, ActionBtn, SnackbarHOC, getImageUrl} from 'educoder';
|
||||
import axios from 'axios';
|
||||
import {
|
||||
notification,
|
||||
Spin,
|
||||
Table,
|
||||
Pagination,
|
||||
Drawer,
|
||||
Input
|
||||
} from "antd";
|
||||
import {TPMIndexHOC} from "../tpm/TPMIndexHOC";
|
||||
import NoneData from './component/NoneData';
|
||||
import './testioncss/testioncss.css';
|
||||
import Contentpart from "./component/Contentpart";
|
||||
import SiderBar from "../tpm/SiderBar";
|
||||
import Headplugselection from "../question/component/Headplugselection";
|
||||
|
||||
class Testpaperlibrary extends Component {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
this.state = {
|
||||
Headertop: "",
|
||||
disciplinesdata:null,
|
||||
discipline_id:null,
|
||||
sub_discipline_id:null,
|
||||
tag_discipline_id:null,
|
||||
public:null,
|
||||
difficulty:null,
|
||||
item_type:null,
|
||||
keywords:null,
|
||||
page:1,
|
||||
per_page:10,
|
||||
booljupyterurls:false,
|
||||
Contentdata:[],
|
||||
items_count:0,
|
||||
|
||||
}
|
||||
}
|
||||
getContainer = () => {
|
||||
return this.container;
|
||||
};
|
||||
saveContainer = container => {
|
||||
this.container = container;
|
||||
};
|
||||
|
||||
//初始化
|
||||
componentDidMount() {
|
||||
let url = `/users/get_navigation_info.json`;
|
||||
axios.get(url, {}).then((response) => {
|
||||
// ////console.log("开始请求/get_navigation_info.json");
|
||||
// ////console.log(response);
|
||||
if (response != undefined) {
|
||||
if (response.status === 200) {
|
||||
this.setState({
|
||||
Headertop: response.data.top,
|
||||
Footerdown: response.data.down
|
||||
})
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
//获取题库筛选资料
|
||||
let urls = `/disciplines.json`;
|
||||
axios.get(urls, {params: {
|
||||
source:"question"
|
||||
}}).then((response) => {
|
||||
if (response) {
|
||||
this.setState({
|
||||
disciplinesdata: response.data.disciplines,
|
||||
})
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
paginationonChange=()=>{
|
||||
var data={
|
||||
|
||||
}
|
||||
this.getdata(data);
|
||||
}
|
||||
|
||||
// 选择难度
|
||||
setdifficulty=()=>{
|
||||
|
||||
|
||||
}
|
||||
|
||||
callback=()=>{
|
||||
|
||||
}
|
||||
|
||||
//搜索框的内容
|
||||
setdatafunsval=()=>{
|
||||
|
||||
}
|
||||
|
||||
//搜索按钮
|
||||
setdatafuns=()=>{
|
||||
|
||||
}
|
||||
|
||||
//获取数据
|
||||
getdata=(data)=>{
|
||||
const url = `/item_banks.json`;
|
||||
this.setState({
|
||||
booljupyterurls:true,
|
||||
})
|
||||
axios.get((url), {params: data}).then((response) => {
|
||||
setTimeout(()=>{
|
||||
this.setState({
|
||||
booljupyterurls:false,
|
||||
})
|
||||
},1000);
|
||||
if (response === null || response === undefined) {
|
||||
|
||||
return
|
||||
}
|
||||
if (response.data.status === 403 || response.data.status === 401 || response.data.status === 500) {
|
||||
|
||||
} else {
|
||||
|
||||
}
|
||||
////console.log("item_banks");
|
||||
////console.log(response);
|
||||
this.setState({
|
||||
Contentdata: response.data,
|
||||
items_count: response.data.items_count,
|
||||
})
|
||||
}).catch((error) => {
|
||||
////console.log(error)
|
||||
this.setState({
|
||||
booljupyterurls:false,
|
||||
})
|
||||
});
|
||||
|
||||
}
|
||||
setdiscipline_id=(discipline_id)=>{
|
||||
this.setState({
|
||||
discipline_id:discipline_id,
|
||||
sub_discipline_id:null,
|
||||
tag_discipline_id:null
|
||||
})
|
||||
var data = {
|
||||
discipline_id:discipline_id,
|
||||
sub_discipline_id:null,
|
||||
tag_discipline_id:null,
|
||||
public: this.state.defaultActiveKey,
|
||||
difficulty: this.state.difficulty,
|
||||
item_type: this.state.item_type,
|
||||
keywords: this.state.keywords,
|
||||
page: this.state.page,
|
||||
per_page:10,
|
||||
};
|
||||
this.getdata(data);
|
||||
|
||||
}
|
||||
setsub_discipline_id=(sub_discipline_id)=>{
|
||||
this.setState({
|
||||
sub_discipline_id:sub_discipline_id,
|
||||
tag_discipline_id:null
|
||||
})
|
||||
var data = {
|
||||
discipline_id:this.state.discipline_id,
|
||||
sub_discipline_id:sub_discipline_id,
|
||||
tag_discipline_id:null,
|
||||
public: this.state.defaultActiveKey,
|
||||
difficulty: this.state.difficulty,
|
||||
item_type: this.state.item_type,
|
||||
keywords: this.state.keywords,
|
||||
page: this.state.page,
|
||||
per_page:10,
|
||||
};
|
||||
this.getdata(data);
|
||||
}
|
||||
|
||||
settag_discipline_id=(tag_discipline_id)=>{
|
||||
this.setState({
|
||||
tag_discipline_id:tag_discipline_id
|
||||
})
|
||||
var data = {
|
||||
discipline_id:this.state.discipline_id,
|
||||
sub_discipline_id:this.state.sub_discipline_id,
|
||||
tag_discipline_id:tag_discipline_id,
|
||||
public: this.state.defaultActiveKey,
|
||||
difficulty: this.state.difficulty,
|
||||
item_type: this.state.item_type,
|
||||
keywords: this.state.keywords,
|
||||
page: this.state.page,
|
||||
per_page:10,
|
||||
};
|
||||
this.getdata(data);
|
||||
}
|
||||
|
||||
render() {
|
||||
let{Headertop,items_count,page,per_page}=this.state;
|
||||
return (
|
||||
<div className="newMain clearfix" ref={this.saveContainer}>
|
||||
{/*试卷库*/}
|
||||
<SiderBar
|
||||
{...this.props}
|
||||
{...this.state}
|
||||
showDrawer={() => this.showDrawer()}
|
||||
Headertop={Headertop}/>
|
||||
{/*顶部*/}
|
||||
<Headplugselection {...this.props} {...this.state}
|
||||
setdiscipline_id={(e)=>this.setdiscipline_id(e)}
|
||||
setsub_discipline_id={(e)=>this.setsub_discipline_id(e)}
|
||||
settag_discipline_id={(e)=>this.settag_discipline_id(e)}
|
||||
></Headplugselection>
|
||||
{/*头部*/}
|
||||
<Contentpart>
|
||||
|
||||
</Contentpart>
|
||||
{
|
||||
items_count&&items_count>10?
|
||||
<div className="mb30 clearfix educontent mt40 intermediatecenter">
|
||||
<Pagination showQuickJumper current={page} onChange={this.paginationonChange}
|
||||
pageSize={per_page}
|
||||
total={items_count}></Pagination>
|
||||
</div>
|
||||
:
|
||||
<div className="h30 clearfix educontent mt40 intermediatecenter">
|
||||
</div>
|
||||
}
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
)
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
export default SnackbarHOC()(TPMIndexHOC(Testpaperlibrary));
|
@ -0,0 +1,175 @@
|
||||
import React, {Component} from "react";
|
||||
import {Link, NavLink} from 'react-router-dom';
|
||||
import {WordsBtn, ActionBtn,SnackbarHOC,getImageUrl} from 'educoder';
|
||||
import axios from 'axios';
|
||||
import {
|
||||
notification,
|
||||
Spin,
|
||||
Table,
|
||||
Pagination,
|
||||
Tabs,
|
||||
Input,
|
||||
Popover
|
||||
} from "antd";
|
||||
import './../testioncss/testioncss.css';
|
||||
import NoneDatas from '../component/NoneDatas';
|
||||
import LoadingSpin from '../../../common/LoadingSpin';
|
||||
import Contentquestionbank from "./Contentquestionbank";
|
||||
const { TabPane } = Tabs;
|
||||
const Search = Input.Search;
|
||||
class Contentpart extends Component {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
this.state = {
|
||||
page:1,
|
||||
|
||||
}
|
||||
}
|
||||
//初始化
|
||||
componentDidMount(){
|
||||
|
||||
|
||||
}
|
||||
|
||||
render() {
|
||||
let {page}=this.state;
|
||||
let {defaultActiveKey}=this.props;
|
||||
const content = (
|
||||
<div className="questiontypes" style={{
|
||||
width:'93px',
|
||||
height:'161px',
|
||||
}}>
|
||||
<p className="questiontype " onClick={()=>this.props.setitem_types("SINGLE")}>单选题</p>
|
||||
<p className="questiontypeheng" ></p>
|
||||
<p className="questiontype " onClick={()=>this.props.setitem_types("MULTIPLE")}>多选题</p>
|
||||
<p className="questiontypeheng"></p>
|
||||
<p className="questiontype " onClick={()=>this.props.setitem_types("JUDGMENT")}>判断题</p>
|
||||
<p className="questiontypeheng"></p>
|
||||
<p className="questiontype " onClick={()=>this.props.setitem_types("PROGRAM")}>编程题</p>
|
||||
<p className="questiontypeheng"></p>
|
||||
|
||||
</div>
|
||||
);
|
||||
const contents = (
|
||||
<div className="questiontypes" style={{
|
||||
width:'93px',
|
||||
height:'120px',
|
||||
}}>
|
||||
<p className="questiontype " onClick={()=>this.props.setdifficulty(1)}>简单</p>
|
||||
<p className="questiontypeheng"></p>
|
||||
<p className="questiontype " onClick={()=>this.props.setdifficulty(2)}>适中</p>
|
||||
<p className="questiontypeheng"></p>
|
||||
<p className="questiontype " onClick={()=>this.props.setdifficulty(3)}>困难</p>
|
||||
<p className="questiontypeheng"></p>
|
||||
</div>
|
||||
);
|
||||
return (
|
||||
<div className=" clearfix mt40">
|
||||
<div className="educontent mt10 pb20 w1200s">
|
||||
<div className="w1200ms contentparttit" style={{
|
||||
position: "relative",
|
||||
}}>
|
||||
<style>
|
||||
{
|
||||
`
|
||||
.contentparttit .ant-tabs-nav .ant-tabs-tab{
|
||||
margin: 10px 10px 10px 0 !important;
|
||||
}
|
||||
.contentparttit .ant-tabs-nav .ant-tabs-ink-bar{
|
||||
width: 31px !important;
|
||||
left: 14px;
|
||||
}
|
||||
`
|
||||
}
|
||||
</style>
|
||||
|
||||
<Tabs defaultActiveKey={defaultActiveKey} onChange={(e)=>this.props.callback(e)}>
|
||||
<TabPane tab="公共" key="1">
|
||||
</TabPane>
|
||||
<TabPane tab="我的" key="0">
|
||||
</TabPane>
|
||||
</Tabs>
|
||||
<div className=" mt19" style={{
|
||||
position:"absolute",
|
||||
top: "0px",
|
||||
right:" 0px",
|
||||
paddingRight: "20px",
|
||||
}}>
|
||||
<style>
|
||||
{
|
||||
`
|
||||
.xaxisreverseorder .ant-input-group-addon{
|
||||
width: 60px !important;
|
||||
|
||||
}
|
||||
|
||||
.xaxisreverseorder .ant-input-lg {
|
||||
height: 41px;}
|
||||
|
||||
.xaxisreverseorder .ant-popover{
|
||||
top: 348px !important;
|
||||
}
|
||||
|
||||
|
||||
.ant-popover-inner-content {
|
||||
padding:0px !important;
|
||||
}
|
||||
|
||||
`
|
||||
}
|
||||
</style>
|
||||
<div className="xaxisreverseorder">
|
||||
{
|
||||
defaultActiveKey===0||defaultActiveKey==="0"?
|
||||
<a href={'/question/newitem'}>
|
||||
<div className="newbutoon">
|
||||
<p className="newbutoontes" >新增</p>
|
||||
</div>
|
||||
</a>
|
||||
:""
|
||||
}
|
||||
<Popover placement="bottom" content={contents} trigger="click" visible={this.props.visiblemys} onVisibleChange={()=>this.props.handleVisibleChange(true)}>
|
||||
<div className=" sortinxdirection mr10">
|
||||
|
||||
<div className="subjecttit">
|
||||
难度
|
||||
</div>
|
||||
<i className="iconfont icon-sanjiaoxing-down font-12 lg ml7 icondowncolor"></i>
|
||||
</div>
|
||||
</Popover>
|
||||
|
||||
|
||||
|
||||
<Popover placement="bottom" content={content} trigger="click" visible={this.props.visiblemyss} onVisibleChange={()=>this.props.handleVisibleChanges(true)}>
|
||||
<div className="sortinxdirection mr40">
|
||||
<div className="subjecttit">
|
||||
题型
|
||||
</div>
|
||||
<i className="iconfont icon-sanjiaoxing-down font-12 lg ml7 icondowncolor"></i>
|
||||
</div>
|
||||
</Popover>
|
||||
<Search
|
||||
style={{ width: "347px",marginRight:"60px",}}
|
||||
placeholder="请输入题目名称、内容"
|
||||
enterButton
|
||||
size="large"
|
||||
onInput={(e)=>this.props.setdatafunsval(e)}
|
||||
onSearch={ (value)=>this.props.setdatafuns(value)} />
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
export default Contentpart
|
@ -0,0 +1,68 @@
|
||||
import React, {Component} from "react";
|
||||
import {Link, NavLink} from 'react-router-dom';
|
||||
import {WordsBtn, ActionBtn,SnackbarHOC,getImageUrl} from 'educoder';
|
||||
import axios from 'axios';
|
||||
import {
|
||||
notification,
|
||||
Spin,
|
||||
Table,
|
||||
Pagination,
|
||||
Radio,
|
||||
Checkbox
|
||||
} from "antd";
|
||||
import './../testioncss/testioncss.css';
|
||||
class Contentquestionbank extends Component {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
this.state = {
|
||||
page:1,
|
||||
}
|
||||
}
|
||||
//初始化
|
||||
componentDidMount(){
|
||||
////console.log("componentDidMount");
|
||||
////console.log(this.state);
|
||||
////console.log(this.props);
|
||||
// let homeworkid = this.props.match.params.homeworkid;
|
||||
// let url = "/homework_commons/" + homeworkid + "/end_groups.json";
|
||||
// axios.get(url).then((response) => {
|
||||
// if (response.status === 200) {
|
||||
// this.setState({})
|
||||
// }
|
||||
// }).catch((error) => {
|
||||
// ////console.log(error)
|
||||
// });
|
||||
|
||||
}
|
||||
onChange=(e)=> {
|
||||
////console.log(`checked = ${e.target.checked}`);
|
||||
}
|
||||
|
||||
render() {
|
||||
|
||||
return (
|
||||
|
||||
<div className=" clearfix mt5 Contentquestionbankstyle">
|
||||
<div className="educontent mt10 w100s">
|
||||
<div className="sortinxdirection w100s" >
|
||||
<div className="sortinxdirection w50s">
|
||||
|
||||
</div>
|
||||
<div className="xaxisreverseorder testpaper w50s">
|
||||
共{this.props.items_count?this.props.items_count:0}个试题
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
export default Contentquestionbank ;
|
@ -0,0 +1,37 @@
|
||||
import React, { Component } from 'react';
|
||||
import { getImageUrl , getUrl } from 'educoder';
|
||||
|
||||
class NoneData extends Component{
|
||||
constructor(props) {
|
||||
super(props)
|
||||
}
|
||||
render(){
|
||||
const { style } = this.props;
|
||||
return(
|
||||
<div className="edu-tab-con-box clearfix edu-txt-center intermediatecenter" style={ style || { width:"100%",height:"100%"}}>
|
||||
<style>
|
||||
{`
|
||||
.edu-tab-con-box{
|
||||
padding:100px 0px;
|
||||
}
|
||||
.ant-modal-body .edu-tab-con-box{
|
||||
padding:0px!important;
|
||||
}
|
||||
img.edu-nodata-img{
|
||||
margin: 40px auto 20px;
|
||||
}
|
||||
.zenwuxgsj{
|
||||
font-size:17px;
|
||||
font-family:MicrosoftYaHei;
|
||||
color:rgba(136,136,136,1);
|
||||
}
|
||||
`}
|
||||
</style>
|
||||
<img className="edu-nodata-img mb20" src={getUrl("/images/educoder/nodata.png")}/>
|
||||
<p className="edu-nodata-p mb10 zenwuxgsj">暂无相关数据</p>
|
||||
<p className="edu-nodata-p mb20 mt4 zenwuxgsj">请选择试题进行组卷</p>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
}
|
||||
export default NoneData;
|
@ -0,0 +1,36 @@
|
||||
import React, { Component } from 'react';
|
||||
import { getImageUrl , getUrl } from 'educoder';
|
||||
|
||||
class NoneDatas extends Component{
|
||||
constructor(props) {
|
||||
super(props)
|
||||
}
|
||||
render(){
|
||||
const { style } = this.props;
|
||||
return(
|
||||
<div className="edu-tab-con-box clearfix edu-txt-center intermediatecenter" style={ style || { width:"100%",height:"100%"}}>
|
||||
<style>
|
||||
{`
|
||||
.edu-tab-con-box{
|
||||
padding:100px 0px;
|
||||
}
|
||||
.ant-modal-body .edu-tab-con-box{
|
||||
padding:0px!important;
|
||||
}
|
||||
img.edu-nodata-img{
|
||||
margin: 40px auto 20px;
|
||||
}
|
||||
.zenwuxgsj{
|
||||
font-size:17px;
|
||||
font-family:MicrosoftYaHei;
|
||||
color:rgba(136,136,136,1);
|
||||
}
|
||||
`}
|
||||
</style>
|
||||
<img className="edu-nodata-img mb20" src={getUrl("/images/educoder/nodata.png")}/>
|
||||
<p className="edu-nodata-p mb10 zenwuxgsj">暂无相关数据</p>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
}
|
||||
export default NoneDatas;
|
Loading…
Reference in new issue