diff --git a/src/components/TestPanel.vue b/src/components/TestPanel.vue index b37a88e..a78c367 100644 --- a/src/components/TestPanel.vue +++ b/src/components/TestPanel.vue @@ -2,8 +2,8 @@
-
-
+
+

实训项目

-
-
-
- 实训{{text}}时间 - {{day}}天 - {{hour}}小时 - {{minutes}}分 - {{seconds}}秒 -
+
+
+ 实训{{text}}时间 + {{day}}天 + {{hour}}小时 + {{minutes}}分 + {{seconds}}
-
+
总得分: {{grade}} @@ -51,10 +49,8 @@

实验目标

-
-
-
-
+
+
-
+
运行成功
-
+
第{{errLine}}行出现错误 提示 @@ -162,7 +162,7 @@ export default { methods: { // 页面加载完后重置编辑框大小 ready() { - this.$refs.myCmGenerate.codemirror.setSize("auto", "calc(100vh - 149px)"); + this.$refs.myCmGenerate.codemirror.setSize("auto", "calc(100vh - 167px)"); }, /** * python代码里如果有input函数的话,是做了单独的处理的,原理是先把所有input函数都替换成exit函数,再在exit函数里加上特定标识,再通过接口传给后端去执行 @@ -421,39 +421,32 @@ export default { } } } -::v-deep .CodeMirror-wrap pre.CodeMirror-line, +/deep/.CodeMirror-wrap pre.CodeMirror-line, .CodeMirror-wrap pre.CodeMirror-line-like { height: 30px; line-height: 30px; } -.code_error img { - width: 40px; - height: 40px; - margin-top: 5px; - margin-right: 10px; -} -.code_yes img { - width: 40px; - height: 40px; - margin-top: 5px; - margin-right: 10px; -} -.code_yes { +.result-right { background-color: rgba(43, 40, 22, 1); } -.code_error { +.result-wrong { background-color: rgba(43, 22, 22, 1); - color: red; + color: #f00; } -.code_error, -.code_yes { - display: flex; - bottom: 10px; +.result-wrong, +.result-right { position: absolute; left: 20px; right: 20px; + display: flex; + bottom: 10px; padding: 0 10px; - box-sizing: border-box; + img { + width: 40px; + height: 40px; + margin-top: 5px; + margin-right: 10px; + } } .code-right { width: 500px; @@ -467,7 +460,7 @@ export default { margin: 10px; position: absolute; width: calc(100% - 14px); - height: calc(100vh - 230px); + height: calc(100vh - 247px); overflow: auto; } } diff --git a/src/store/index.js b/src/store/index.js index 9425cae..8ddd250 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -2,22 +2,7 @@ import Vue from 'vue'; import Vuex from 'vuex'; Vue.use(Vuex); const store = new Vuex.Store({ - state: { - projectId: '', - codeid: '', - code: '', - judgmentPointsId: '', - workbench: [] - }, - mutations: { - projectData(state, payload){ - state.projectId = payload.projectId - state.codeid = payload.codeid - state.code = payload.code - state.judgmentPointsId = payload.judgmentPointsId - state.workbench = payload.workbench - } - - } + state: {}, + mutations: {} }); export default store; \ No newline at end of file diff --git a/src/styles/common.scss b/src/styles/common.scss index dde2f04..92bbeb5 100644 --- a/src/styles/common.scss +++ b/src/styles/common.scss @@ -20,4 +20,13 @@ box-shadow: inset 0 0 5px #dddddd; border-radius: 0; background: #dddddd; +} +input::-webkit-input-placeholder { + color: #333; +} +input::-moz-input-placeholder { + color: #333; +} +input::-ms-input-placeholder { + color: #333; } \ No newline at end of file diff --git a/src/styles/theme/theme1.scss b/src/styles/theme/theme1.scss index 49777ac..37a8132 100644 --- a/src/styles/theme/theme1.scss +++ b/src/styles/theme/theme1.scss @@ -28,8 +28,13 @@ $--font-path: '~element-ui/lib/theme-chalk/fonts'; .el-icon-s-ticket:before { color: $--color-primary; } -.el-table th { - background-color: #202020 !important; +.el-table { + th { + background-color: #202020 !important; + } + .el-table__row--striped td { + background-color: #fff9e6 !important; + } } .total-score { color: #fff; diff --git a/src/views/Home.vue b/src/views/Home.vue index de9447d..beb043b 100644 --- a/src/views/Home.vue +++ b/src/views/Home.vue @@ -35,7 +35,7 @@