|
|
@ -1,5 +1,8 @@
|
|
|
|
import React, { Component } from 'react';
|
|
|
|
import React, { Component } from 'react';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import MonacoEditor from 'react-monaco-editor';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//MonacoDiffEditor 对比模式
|
|
|
|
import {Input, Select, Radio, Checkbox, Popconfirm, message, Modal,Icon,DatePicker} from 'antd';
|
|
|
|
import {Input, Select, Radio, Checkbox, Popconfirm, message, Modal,Icon,DatePicker} from 'antd';
|
|
|
|
|
|
|
|
|
|
|
|
// import "antd/dist/antd.css";
|
|
|
|
// import "antd/dist/antd.css";
|
|
|
@ -222,7 +225,8 @@ export default class TPMsettings extends Component {
|
|
|
|
|
|
|
|
|
|
|
|
pod_exist_time: undefined,
|
|
|
|
pod_exist_time: undefined,
|
|
|
|
pod_exist_timetype: false,
|
|
|
|
pod_exist_timetype: false,
|
|
|
|
shixunmemoMDvalue:""
|
|
|
|
shixunmemoMDvalue:"",
|
|
|
|
|
|
|
|
language:""
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
descriptionMD=(initValue, id)=> {
|
|
|
|
descriptionMD=(initValue, id)=> {
|
|
|
@ -894,6 +898,7 @@ export default class TPMsettings extends Component {
|
|
|
|
SelectScput = (value, e) => {
|
|
|
|
SelectScput = (value, e) => {
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
|
choice_standard_scriptssum: value,
|
|
|
|
choice_standard_scriptssum: value,
|
|
|
|
|
|
|
|
language:e.props.name,
|
|
|
|
choice_standard_scripts: {id:e.props.value,value:""},
|
|
|
|
choice_standard_scripts: {id:e.props.value,value:""},
|
|
|
|
standard_scriptsModal:true
|
|
|
|
standard_scriptsModal:true
|
|
|
|
})
|
|
|
|
})
|
|
|
@ -1003,11 +1008,15 @@ export default class TPMsettings extends Component {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
getshixunmemoMDvalue=(e)=>{
|
|
|
|
getshixunmemoMDvalue=(value, e)=>{
|
|
|
|
|
|
|
|
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
|
shixunmemoMDvalue:e.target.value
|
|
|
|
shixunmemoMDvalue:value
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
render() {
|
|
|
|
render() {
|
|
|
|
let {
|
|
|
|
let {
|
|
|
|
postapplyvisible,
|
|
|
|
postapplyvisible,
|
|
|
@ -1370,15 +1379,26 @@ export default class TPMsettings extends Component {
|
|
|
|
|
|
|
|
|
|
|
|
<div className="mt30 clearfix df">
|
|
|
|
<div className="mt30 clearfix df">
|
|
|
|
<div
|
|
|
|
<div
|
|
|
|
className={operateauthority===false?'nonemodel':""}
|
|
|
|
className={operateauthority===true?'nonemodel':""}
|
|
|
|
></div>
|
|
|
|
></div>
|
|
|
|
<span className="color-orange fl mr30">*</span>
|
|
|
|
<span className="color-orange fl mr30">*</span>
|
|
|
|
<div className="flex1">
|
|
|
|
<div className="flex1">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div className="fl " id="shixunmemoMD" >
|
|
|
|
<div className="fl " >
|
|
|
|
<textarea className={"shixunmemoMDdiv"} value={shixunmemoMDvalue} onInput={this.getshixunmemoMDvalue} name="content">
|
|
|
|
{/*<textarea className={"shixunmemoMDdiv"} value={shixunmemoMDvalue} onInput={this.getshixunmemoMDvalue} name="content">*/}
|
|
|
|
</textarea>
|
|
|
|
{/*</textarea>*/}
|
|
|
|
|
|
|
|
<MonacoEditor
|
|
|
|
|
|
|
|
height="450"
|
|
|
|
|
|
|
|
width="1100"
|
|
|
|
|
|
|
|
language={this.state.language}
|
|
|
|
|
|
|
|
value={shixunmemoMDvalue}
|
|
|
|
|
|
|
|
options={ {
|
|
|
|
|
|
|
|
selectOnLineNumbers: true
|
|
|
|
|
|
|
|
}}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
onChange={operateauthority===true?this.getshixunmemoMDvalue:""}
|
|
|
|
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|