From ac88afa39bc579c6d8986193f2e9a35d6cae94cf Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Mon, 3 Jun 2024 11:29:00 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89localStorage=E9=87=8C?= =?UTF-8?q?=E7=9A=84=E4=BB=A3=E7=A0=81=E7=BC=93=E5=AD=98=EF=BC=8C=E5=8F=AA?= =?UTF-8?q?=E4=BF=9D=E7=95=99=E6=8E=A5=E5=8F=A3=E7=BC=93=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/index.js | 35 +-- src/components/TestPanel.vue | 552 +++++++++++++++------------------- src/components/codemirror.vue | 1 - src/views/Home.vue | 160 ++++------ 4 files changed, 320 insertions(+), 428 deletions(-) diff --git a/src/api/index.js b/src/api/index.js index 60dce19..adfc99a 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -1,6 +1,6 @@ import config from '@/config' export default { - getCurrentTime : `competition/competition/management/getCurrentTime`, + getCurrentTime: `competition/competition/management/getCurrentTime`, getProjectDetail: 'occupationlab/occupationlab/projectManage/getProjectDetail', submit: 'python/python/submit', runPythonCode: 'python/python/runPythonCode', @@ -14,10 +14,10 @@ export default { getPurchasedTableByCategory: `data/data/myDate/getPurchasedTableByCategory`, previewData: `data/data/preview`, lookupTableFile: `occupationlab/python/table/data/lookupTableFile`, - downloadData:`${config.host}data/data/download`, + downloadData: `${config.host}data/data/download`, getDetailById: 'occupationlab/occupationlab/assessment/getDetailById', pageStuAssessment: 'occupationlab/occupationlab/assessment/pageStuAssessment', - queryUserInfoDetails: `users/users/userAccount/queryUserInfoDetails`, + queryUserInfoDetails: `users/users/userAccount/queryUserInfoDetails`, modelClassList: `nakadai/nakadai/model/reference/modelClassList`, studentModelList: `nakadai/nakadai/model/student/studentModelList`, referenceDemoList: `nakadai/nakadai/model/reference/demo/referenceDemoList`, @@ -32,18 +32,19 @@ export default { exportLabReport: `occupationlab/occupationlab/achievement/exportLabReport`, reportDetail: `occupationlab/occupationlab/achievement/reportDetail`, getCompetition: `competition/competition/management/getCompetition`, - whetherCanPaste: `nakadai/nakadai/model/demo/whetherCanPaste`, - displayListOrNotByStudent: `nakadai/nakadai/model/demo/displayListOrNotByStudent`, - modelClassListByStudent: `nakadai/nakadai/model/student/modelClassListByStudent`, - studentModelListBySystem: `nakadai/nakadai/model/student/studentModelListBySystem`, - detailsOfGoods: `nakadai/mall/detailsOfGoods`, - importCode: `occupationlab/occupationlab/experimentalReport/importCode`, - removeImport: `occupationlab/occupationlab/experimentalReport/removeImport`, - getStartTime: `python/python/getStartTime`, - getProductSystemTheme: `nakadai/mall/getProductSystemTheme`, - heartbeatDetection : `nakadai/message/heartbeatDetection`, - heartbeatDetectionRabbit : `python/rabbitMessage/heartbeatDetection`, - createQueue : `python/rabbitMessage/createQueue`, - endRunningProcess : `python/python/endRunningProcess`, - sendMessageToUser : `python/rabbitMessage/sendMessageToUser`, + whetherCanPaste: `nakadai/nakadai/model/demo/whetherCanPaste`, + displayListOrNotByStudent: `nakadai/nakadai/model/demo/displayListOrNotByStudent`, + modelClassListByStudent: `nakadai/nakadai/model/student/modelClassListByStudent`, + studentModelListBySystem: `nakadai/nakadai/model/student/studentModelListBySystem`, + detailsOfGoods: `nakadai/mall/detailsOfGoods`, + importCode: `occupationlab/occupationlab/experimentalReport/importCode`, + removeImport: `occupationlab/occupationlab/experimentalReport/removeImport`, + getStartTime: `python/python/getStartTime`, + getProductSystemTheme: `nakadai/mall/getProductSystemTheme`, + heartbeatDetection: `nakadai/message/heartbeatDetection`, + heartbeatDetectionRabbit: `python/rabbitMessage/heartbeatDetection`, + createQueue: `python/rabbitMessage/createQueue`, + endRunningProcess: `python/python/endRunningProcess`, + sendMessageToUser: `python/rabbitMessage/sendMessageToUser`, + deleteTheLastUncommittedRecord: `python/python/deleteTheLastUncommittedRecord`, } \ No newline at end of file diff --git a/src/components/TestPanel.vue b/src/components/TestPanel.vue index 0cefbb5..99ce329 100644 --- a/src/components/TestPanel.vue +++ b/src/components/TestPanel.vue @@ -1,123 +1,75 @@