Commit 19349adeedee43654f11286d86c26b6fd1827c19
1 parent
66c0e491
设置作业添加模板内容
Showing
2 changed files
with
6 additions
and
2 deletions
dist/gxb-ide/Dir.js
| @@ -638,7 +638,9 @@ | @@ -638,7 +638,9 @@ | ||
| 638 | console.log('classPopQuiz'); | 638 | console.log('classPopQuiz'); |
| 639 | console.log(res); | 639 | console.log(res); |
| 640 | // TODO 如何设置模板内容 | 640 | // TODO 如何设置模板内容 |
| 641 | - Dir.treeLinkEditor[0].CodeMirrorRecord.setValue(res.programmingList[0].codeModel); | 641 | + if(getQuery('autoscore')){ |
| 642 | + Dir.treeLinkEditor[0].CodeMirrorRecord.setValue(res.programmingList[0].codeModel); | ||
| 643 | + } | ||
| 642 | questionTitle.html(res.programmingList[0].title) | 644 | questionTitle.html(res.programmingList[0].title) |
| 643 | questionDescribe.html(res.programmingList[0].titleDesc) | 645 | questionDescribe.html(res.programmingList[0].titleDesc) |
| 644 | inputDescribe.html(res.programmingList[0].inputDesc) | 646 | inputDescribe.html(res.programmingList[0].inputDesc) |
src/gxb-ide/Dir.js
| @@ -638,7 +638,9 @@ | @@ -638,7 +638,9 @@ | ||
| 638 | console.log('classPopQuiz'); | 638 | console.log('classPopQuiz'); |
| 639 | console.log(res); | 639 | console.log(res); |
| 640 | // TODO 如何设置模板内容 | 640 | // TODO 如何设置模板内容 |
| 641 | - Dir.treeLinkEditor[0].CodeMirrorRecord.setValue(res.programmingList[0].codeModel); | 641 | + if(getQuery('autoscore')){ |
| 642 | + Dir.treeLinkEditor[0].CodeMirrorRecord.setValue(res.programmingList[0].codeModel); | ||
| 643 | + } | ||
| 642 | questionTitle.html(res.programmingList[0].title) | 644 | questionTitle.html(res.programmingList[0].title) |
| 643 | questionDescribe.html(res.programmingList[0].titleDesc) | 645 | questionDescribe.html(res.programmingList[0].titleDesc) |
| 644 | inputDescribe.html(res.programmingList[0].inputDesc) | 646 | inputDescribe.html(res.programmingList[0].inputDesc) |