diff --git a/public/react/src/modules/tpm/TPMsettings/Shixuninformation.js b/public/react/src/modules/tpm/TPMsettings/Shixuninformation.js
index b72a4e43f..e0fa2ddf3 100644
--- a/public/react/src/modules/tpm/TPMsettings/Shixuninformation.js
+++ b/public/react/src/modules/tpm/TPMsettings/Shixuninformation.js
@@ -46,7 +46,9 @@ class Shixuninformation extends Component {
testscripttiptype:false,
shixunName:'',
trainee:undefined,
- choice_small_type:[]
+ choice_small_type:[],
+ simichecked:false,
+
}
}
@@ -56,7 +58,6 @@ class Shixuninformation extends Component {
componentDidUpdate(prevProps, prevState) {
if(prevProps.data!=this.props.data){
- console.log(this.props.data)
if(this.props.data){
this.setState({
shixunName:this.props.data.shixun.name,
@@ -65,6 +66,7 @@ class Shixuninformation extends Component {
choice_small_type:this.props.data.shixun.choice_small_type,
choice_standard_scripts:this.props.data.shixun.choice_standard_scripts,
shixunmemoMDvalue:this.props.data.shixun.evaluate_script,
+ simichecked:this.props.data.shixun.is_secret_repository,
})
this.props.form.setFieldsValue({
@@ -312,15 +314,56 @@ class Shixuninformation extends Component {
})
}
+ SelectScput = (value, e) => {
+ this.setState({
+ choice_standard_scriptssum: value,
+ language:e.props.name,
+ choice_standard_scripts: {id:e.props.value,value:""},
+ standard_scriptsModal:true
+ })
+ }
+
+ hidestandard_scriptsModal=()=>{
+ this.setState({
+ standard_scriptsModal:false,
+ standard_scriptsModals:false
+ })
+ }
+
+ get_mirror_script=()=>{
+ let {choice_standard_scriptssum}=this.state;
+ let id = this.props.match.params.shixunId;
+ let pul = "/shixuns/" + id + "/get_script_contents.json?script_id=" + choice_standard_scriptssum;
+ axios.get(pul).then((response) => {
+ if(response.status===200){
+ // this.evaluate_scriptMD(response.data.content, "shixunmemoMD");
+ this.setState({
+ standard_scriptsModal:false,
+ standard_scriptsModals:true,
+ shixunmemoMDvalue:response.data.content
+ })
+ }
+
+ }).catch((error) => {
+ console.log(error)
+ })
+ }
+
+ simionChange=(e)=>{
+ this.setState({
+ simichecked:e.target.checked
+ })
+ }
+
render() {
let operateauthority=this.props.identity===1?true:this.props.identity<5&&this.props.data.shixun.status==0?true:false;
- console.log(operateauthority)
+ // console.log(operateauthority)
const {getFieldDecorator} = this.props.form;
const {languagewrite, systemenvironment, testcoderunmode, fileList, choice_standard_scripts, postapplyvisible, shixunmemoMDvalue} = this.state;
- console.log("1222")
- console.log(choice_standard_scripts)
+ // console.log("1222")
+ // console.log(choice_standard_scripts)
const {shixun_service_configs}=this.props;
const uploadProps = {
width: 600,
@@ -621,7 +664,7 @@ class Shixuninformation extends Component {
私密版本库:
-
原有脚本将被新的脚本覆盖,无法撤销
+是否确认执行覆盖操作
+评测脚本生成成功!