|
|
|
@ -28,6 +28,8 @@ const Option = Select.Option;
|
|
|
|
|
|
|
|
|
|
const RadioGroup = Radio.Group;
|
|
|
|
|
|
|
|
|
|
const { TextArea } = Input;
|
|
|
|
|
|
|
|
|
|
function create_editorMD(id, width, high, placeholder, imageUrl, callback) {
|
|
|
|
|
var editorName = window.editormd(id, {
|
|
|
|
|
width: width,
|
|
|
|
@ -1155,19 +1157,22 @@ export default class TPMevaluation extends Component {
|
|
|
|
|
</a>
|
|
|
|
|
</Tooltip>
|
|
|
|
|
</p>
|
|
|
|
|
<textarea className="textareavalue mb15" name="test_set[input][]"
|
|
|
|
|
<TextArea className="textareavalue mb15" name="test_set[input][]"
|
|
|
|
|
placeholder="输入"
|
|
|
|
|
value={item.input}
|
|
|
|
|
id={"textareavalue"+key}
|
|
|
|
|
autoHeight="true"
|
|
|
|
|
autoSize={{ minRows: 3, maxRows: 5 }}
|
|
|
|
|
onInput={(e)=>this.evaluationoninputvalue(e,key,"sr")}
|
|
|
|
|
></textarea>
|
|
|
|
|
<textarea className="textareavalue" name="test_set[output][]"
|
|
|
|
|
></TextArea>
|
|
|
|
|
<TextArea className="textareavalue" name="test_set[output][]"
|
|
|
|
|
placeholder="预期输出"
|
|
|
|
|
value={item.output}
|
|
|
|
|
id={key+"textareavalue"}
|
|
|
|
|
autoHeight="true"
|
|
|
|
|
autoSize={{ minRows: 3, maxRows: 5 }}
|
|
|
|
|
onInput={(e)=>this.evaluationoninputvalue(e,key,"yq")}
|
|
|
|
|
></textarea>
|
|
|
|
|
></TextArea>
|
|
|
|
|
<div className="clearfix lineh-30">
|
|
|
|
|
<span className="fl mr10 color-grey-6">匹配规则:</span>
|
|
|
|
|
<RadioGroup className="fl" value={item.match_rule} onChange={(e)=>this.changeEvaluationRule(e,key)}>
|
|
|
|
|