diff --git a/package-lock.json b/package-lock.json index 9520ae4..42b9605 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2793,6 +2793,11 @@ "resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz", "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=" }, + "codemirror": { + "version": "5.65.13", + "resolved": "https://registry.npmjs.org/codemirror/-/codemirror-5.65.13.tgz", + "integrity": "sha512-SVWEzKXmbHmTQQWaz03Shrh4nybG0wXx2MEu3FO4ezbPW8IbnZEd5iGHGEffSUaitKYa3i+pHpBsSvw8sPHtzg==" + }, "collection-visit": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/collection-visit/-/collection-visit-1.0.0.tgz", @@ -3852,6 +3857,11 @@ "integrity": "sha512-ZIzRpLJrOj7jjP2miAtgqIfmzbxa4ZOr5jJc601zklsfEx9oTzmmj2nVpIPRpNlRTIh8lc1kyViIY7BWSGNmKw==", "dev": true }, + "diff-match-patch": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/diff-match-patch/-/diff-match-patch-1.0.5.tgz", + "integrity": "sha512-IayShXAgj/QMXgB0IWmKx+rOPuGMhqm5w6jvFxmVenXKIzRqTAAsbBPT3kWQeGANj3jGgvcvv4yK6SxqYmikgw==" + }, "diffie-hellman": { "version": "5.0.3", "resolved": "https://registry.npmjs.org/diffie-hellman/-/diffie-hellman-5.0.3.tgz", @@ -12618,6 +12628,15 @@ "resolved": "https://registry.npmjs.org/vue/-/vue-2.6.10.tgz", "integrity": "sha512-ImThpeNU9HbdZL3utgMCq0oiMzAkt1mcgy3/E6zWC/G6AaQoeuFdsl9nDhTDU3X1R6FK7nsIUuRACVcjI+A2GQ==" }, + "vue-codemirror": { + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/vue-codemirror/-/vue-codemirror-4.0.6.tgz", + "integrity": "sha512-ilU7Uf0mqBNSSV3KT7FNEeRIxH4s1fmpG4TfHlzvXn0QiQAbkXS9lLfwuZpaBVEnpP5CSE62iGJjoliTuA8poQ==", + "requires": { + "codemirror": "^5.41.0", + "diff-match-patch": "^1.0.0" + } + }, "vue-cropperjs": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/vue-cropperjs/-/vue-cropperjs-3.0.0.tgz", diff --git a/package.json b/package.json index f5bc309..8606595 100644 --- a/package.json +++ b/package.json @@ -20,6 +20,7 @@ "px2rem-loader": "^0.1.9", "sortablejs": "^1.14.0", "vue": "^2.6.10", + "vue-codemirror": "^4.0.6", "vue-cropperjs": "^3.0.0", "vue-i18n": "^8.10.0", "vue-pdf": "^4.2.0", diff --git a/src/api/index.js b/src/api/index.js index 180ccf1..7179a55 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -388,6 +388,17 @@ export default { // 营销推广 listMarketing: `nakadai/nakadai/mall/marketing/promotion/pagingQueryList`, + // 实验系统管理 + getAllService: `nakadai/nakadai/serviceConfiguration/getAllService`, + schoolModelClassification: `nakadai/nakadai/model/reference/schoolModelClassification`, + saveAcademyModelDemo: `nakadai/nakadai/model/reference/demo/saveAcademyModelDemo`, + referenceFindById: `nakadai/nakadai/model/reference/demo/findById`, + modelFindById: `nakadai/nakadai/model/demo/findById`, + queryTheModelOfOurSchool: `nakadai/nakadai/model/reference/demo/queryTheModelOfOurSchool`, + sourceModelClassification: `nakadai/nakadai/model/category/sourceModelClassification`, + getAllModelListBySys: `nakadai/nakadai/model/demo/getAllModelListBySys`, + runPythonCode: `nakadai/nakadai/model/demo/runPythonCode`, + // 教师评语 addComment: `evaluation/cevaluation/comment/addComment`, queryComment: `evaluation/evaluation/ccomment/queryComment`, diff --git a/src/assets/img/error.png b/src/assets/img/error.png new file mode 100644 index 0000000..0be3829 Binary files /dev/null and b/src/assets/img/error.png differ diff --git a/src/assets/img/yes.png b/src/assets/img/yes.png new file mode 100644 index 0000000..6b9df11 Binary files /dev/null and b/src/assets/img/yes.png differ diff --git a/src/components/codemirror/index.vue b/src/components/codemirror/index.vue new file mode 100644 index 0000000..3ad9798 --- /dev/null +++ b/src/components/codemirror/index.vue @@ -0,0 +1,386 @@ + + + + + \ No newline at end of file diff --git a/src/layouts/navbar/index.vue b/src/layouts/navbar/index.vue index 14857c6..1958e3d 100644 --- a/src/layouts/navbar/index.vue +++ b/src/layouts/navbar/index.vue @@ -1,31 +1,47 @@