Browse Source

完善分析页面内容

181250114 3 years ago
parent
commit
acbd4efcce

+ 2 - 1
src/api/analysis/const.js

@@ -2,7 +2,8 @@
 export const REQUEST_BASE_URL_PROD = "https://smart-server.seec.seecoder.cn/";
 // 开发url (mock的地址
 // export const REQUEST_BASE_URL_DEV = "http://localhost:8080/api";
-export const REQUEST_BASE_URL_DEV = "/api";
+// export const REQUEST_BASE_URL_DEV = "/api";
+export const REQUEST_BASE_URL_DEV = "https://smart-server.seec.seecoder.cn/";
 export const ROLE = {
   STUDENT: "STUDENT", //学生身份
   TEACHER: "TEACHER", //教师身份

+ 59 - 0
src/components/Analysis/AnalysisGroupCard.vue

@@ -531,5 +531,64 @@ export default {
 </script>
 
 <style scoped>
+    .score-box {
+        width: 20px;
+        height: 10px;
+        background-color: #98e7ff;
+    }
+    .nui-scroll {
+        margin-top: 5px;
+        width: 99%;
+        height: 300px;
+        overflow: auto;
+    }
 
+    .nui-scroll::-webkit-scrollbar {
+        width: 8px;
+        height: 8px;
+    }
+    /*正常情况下滑块的样式*/
+
+    .nui-scroll::-webkit-scrollbar-thumb {
+        background-color: rgba(0, 0, 0, .05);
+        border-radius: 10px;
+        -webkit-box-shadow: inset 1px 1px 0 rgba(0, 0, 0, .1);
+    }
+    /*鼠标悬浮在该类指向的控件上时滑块的样式*/
+
+    .nui-scroll:hover::-webkit-scrollbar-thumb {
+        background-color: rgba(0, 0, 0, .2);
+        border-radius: 10px;
+        -webkit-box-shadow: inset 1px 1px 0 rgba(0, 0, 0, .1);
+    }
+    /*鼠标悬浮在滑块上时滑块的样式*/
+
+    .nui-scroll::-webkit-scrollbar-thumb:hover {
+        background-color: rgba(0, 0, 0, .4);
+        -webkit-box-shadow: inset 1px 1px 0 rgba(0, 0, 0, .1);
+    }
+    /*正常时候的主干部分*/
+
+    .nui-scroll::-webkit-scrollbar-track {
+        border-radius: 10px;
+        -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0);
+        background-color: white;
+    }
+    /*鼠标悬浮在滚动条上的主干部分*/
+
+    .nui-scroll::-webkit-scrollbar-track:hover {
+        -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, .4);
+        background-color: rgba(0, 0, 0, .01);
+    }
+
+    .box-innercard {
+        /*background-color: #1f00f5;*/
+    }
+    .pie {
+        width: 200px;
+        height: 150px;
+    }
+    /* .main{
+      display: flex;
+    } */
 </style>

+ 2 - 2
src/views/ProjectPage/ProjectPage.vue

@@ -95,11 +95,11 @@
         </div>
 
         <div v-if="this.activeIndex === '3'">
-            <AnalysisStudentCard :num="1757"/>
+            <AnalysisStudentCard :num="userId"/>
         </div>
 
         <div v-if="this.activeIndex === '4'">
-          <AnalysisGroupCard :num="1626"/>
+          <AnalysisGroupCard :num="userId"/>
         </div>
 
       </el-card>