+
1111
);
diff --git a/public/react/src/modules/tpm/TPMsettings/Shixuninformation.js b/public/react/src/modules/tpm/TPMsettings/Shixuninformation.js
index b274b018f..1e6980216 100644
--- a/public/react/src/modules/tpm/TPMsettings/Shixuninformation.js
+++ b/public/react/src/modules/tpm/TPMsettings/Shixuninformation.js
@@ -62,7 +62,8 @@ class Shixuninformation extends Component {
shixunName:this.props.data.shixun.name,
trainee:this.props.data.shixun.trainee,
choice_main_type:this.props.data.shixun.choice_main_type,
- choice_small_type:this.props.data.shixun.choice_small_type
+ choice_small_type:this.props.data.shixun.choice_small_type,
+ choice_standard_scripts:this.props.data.shixun.choice_standard_scripts,
})
this.props.form.setFieldsValue({
@@ -315,7 +316,7 @@ class Shixuninformation extends Component {
let operateauthority=this.props.identity===1?true:this.props.identity<5&&this.props.data.shixun.status==0?true:false;
console.log(operateauthority)
const {getFieldDecorator} = this.props.form;
- const {newshixunlist, languagewrite, systemenvironment, testcoderunmode, fileList, postapplytitle, postapplyvisible, shixunmemoMDvalue} = this.state;
+ const {newshixunlist, languagewrite, systemenvironment, testcoderunmode, fileList, choice_standard_scripts, postapplyvisible, shixunmemoMDvalue} = this.state;
const {shixun_service_configs}=this.props;
const uploadProps = {
width: 600,
@@ -366,139 +367,140 @@ class Shixuninformation extends Component {
return (
-
- {getFieldDecorator('name', {
- rules: [{
- required: true, message: '请输入选题名称',
- }, {
- max: 60, message: '请输入名称,最大限制60个字符',
- }, {
- whitespace: true, message: '请勿输入空格'
- }],
- })(
-
- )}
-
-
-
-
-
-
-
-
- {getFieldDecorator('trainee', {
- rules: [{required: true, message: '请选择难易度'}],
- })(
-
-
-
-
- )}
- (实训的难易程度)
-
-
-
-
-
- {getFieldDecorator('selectleft', {
- rules: [{required: true, message: '请选择主类别'}],
+
+
+ {getFieldDecorator('name', {
+ rules: [{
+ required: true, message: '请输入选题名称',
+ }, {
+ max: 60, message: '请输入名称,最大限制60个字符',
+ }, {
+ whitespace: true, message: '请勿输入空格'
+ }],
+ })(
+
+ )}
+
+
+
+
+
+
+
+
+ {getFieldDecorator('trainee', {
+ rules: [{required: true, message: '请选择难易度'}],
})(
-
-
)}
-
-
-
+
(实训的难易程度)
+
+
+
+
+
+ {getFieldDecorator('selectleft', {
+ rules: [{required: true, message: '请选择主类别'}],
+ })(
+
+
+ option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0
+ }
+ >
+
+ {
+ this.props.data === undefined ? "" : this.props.data.shixun.main_type.map((item, key) => {
+ return (
+
+ )
+ })
+ }
+
-
-
- {getFieldDecorator('selectright', {
- rules: [{required: true, message: '请选择小类别'}],
- })(
-
-
- {
- this.props.data === undefined ? "" : this.props.data.shixun.small_type.map((item, key) => {
- return(
-
- )
- })
- }
-
-
- )}
-
+
+ )}
+
+
+
+
+
+
+ {getFieldDecorator('selectright', {
+ rules: [{required: true, message: '请选择小类别'}],
+ })(
+
+
+ {
+ this.props.data === undefined ? "" : this.props.data.shixun.small_type.map((item, key) => {
+ return(
+
+ )
+ })
+ }
+
+
+ )}
+
已安装软件:hadoop3.1.0、jdk1.8;
@@ -508,44 +510,49 @@ class Shixuninformation extends Component {
-
-
+
+
-
-
+
+
-
- {getFieldDecorator('select123', {
- rules: [{required: true, message: '请选择评测脚本'}],
- })(
-
-
-
-
-
-
-
+
+ {getFieldDecorator('select123', {
+ rules: [{required: true, message: '请选择评测脚本'}],
+ })(
+
+
+ {
+ this.props.data === undefined ? "" : this.props.data.shixun.standard_scripts.map((item, key) => {
+ return (
+
+ )
-
- )}
-
+ })
+ }
+
+
+ )}
+
使用自定义脚本
this.testscripttip(0)}>
+ style={{top: '33px', left: '-15px',width: '450px',zIndex: '10',display: this.state.testscripttiptype===true?'block':"none"}}>
: ""}
-
-
-
-
-
-
-
-
{this.state.languagewritetype === true ? "请填写该镜像语言" : ""}
-
-
-
-
-
{this.state.systemenvironmenttype === true ? "请填写该镜像语言系统环境" : ""}
-
-
-
-
-
-
{this.state.testcoderunmodetype === true ? "请填写该镜像测试代码运行方式" : ""}
-
-
-
-
-
- 上传附件
- (单个文件50M以内)
-
-
-
-
-
-
- {this.state.attachmentidstype === true ? "请上传附件" : ""}
-
-
- this.sendhideModaly()}
- >取消
-
-
-
-
- {/**/}
-
+ }
+ : ""}
+
+
+
+
+
+
+
+
{this.state.languagewritetype === true ? "请填写该镜像语言" : ""}
+
+
+
+
+
{this.state.systemenvironmenttype === true ? "请填写该镜像语言系统环境" : ""}
+
+
+
+
+
+
{this.state.testcoderunmodetype === true ? "请填写该镜像测试代码运行方式" : ""}
+
+
+
+
+
+ 上传附件
+ (单个文件50M以内)
+
+
+
-
-
-
-
新建申请已提交,请等待管理员的审核
-
我们将在1-2个工作日内与您联系
+
+ {this.state.attachmentidstype === true ? "请上传附件" : ""}
+
+
+ this.sendhideModaly()}
+ >取消
+
+
+
-
-
-
-
+ {/**/}
+
+
+
+
);
}
}
diff --git a/public/react/src/modules/tpm/TPMsettings/TPMsettings.js b/public/react/src/modules/tpm/TPMsettings/TPMsettings.js
index 224339998..c405e3e9f 100644
--- a/public/react/src/modules/tpm/TPMsettings/TPMsettings.js
+++ b/public/react/src/modules/tpm/TPMsettings/TPMsettings.js
@@ -83,9 +83,21 @@ export default class TPMsettings extends Component {
render() {
return (
-
-
+
+
-
-
-
);
}
}