Browse Source

首页图片

hurixing 2 months ago
parent
commit
83caa39572

BIN
src/assets/images/shouye.png


BIN
src/assets/images/shouye02.jpg


+ 24 - 12
src/views/index.vue

@@ -5,16 +5,16 @@
 
     <el-row style="background:#fff;padding:16px 16px 0;margin-bottom:32px;">
       <line-chart :chart-data="lineChartData" />
-    </el-row> -->
+    </el-row>
 
-    <!-- <el-row :gutter="32">
+    <el-row :gutter="32">
       <el-col :xs="24" :sm="24" :lg="24">
         <div class="chart-wrapper">
           <bar-chart />
         </div> 
       </el-col>
     </el-row> -->
-
+    
 
   </div>
 </template>
@@ -68,16 +68,28 @@ export default {
 </script>
 
 <style lang="scss" scoped>
-.dashboard-editor-container {
-  padding: 32px;
-  background-color: rgb(240, 242, 245);
-  position: relative;
+// .dashboard-editor-container {
+//   padding: 32px;
+//   background-color: rgb(240, 242, 245);
+//   position: relative;
 
-  .chart-wrapper {
-    background: #fff;
-    padding: 16px 16px 0;
-    margin-bottom: 32px;
-  }
+//   .chart-wrapper {
+//     background: #fff;
+//     padding: 16px 16px 0;
+//     margin-bottom: 32px;
+//   }
+// }
+
+.dashboard-editor-container {
+  /* 背景设置 */
+  background-image: url('~@/assets/images/shouye.png');
+  background-size: cover;       /* 覆盖整个容器 */
+  background-position: center;  /* 居中显示 */
+  background-repeat: no-repeat; /* 不重复 */
+  
+  /* 容器基础样式 */
+  min-height: 91vh;            /* 最小高度充满视口 */
+  position: relative;           /* 为子元素绝对定位提供参考 */
 }
 
 @media (max-width:1024px) {

+ 2 - 2
src/views/patient/list/print/mmsePrint.vue

@@ -246,10 +246,10 @@ export default {
                 patientStatus = this.reviewPrint.totalPoints <= 20 ? 1 : 0;
                 break;
               case 'B':
-                patientStatus = this.reviewPrint.totalPoints <= 22 ? 1 : 0;
+                patientStatus = this.reviewPrint.totalPoints <= 24 ? 1 : 0;
                 break;
               case 'C':
-                patientStatus = this.reviewPrint.totalPoints <= 23 ? 1 : 0;
+                patientStatus = this.reviewPrint.totalPoints <= 24 ? 1 : 0;
                 break;
               default:
                 // 可以处理未知类别的情况,或者保持status为0

+ 30 - 0
src/views/patient/list/trainDetatil.vue

@@ -92,8 +92,38 @@ export default {
   },
   mounted() {
 
+  },
+  watch: {
+    // 监听 defaultVal.today 的变化
+    "defaultVal.today"(newVal, oldVal) {
+      if(newVal){
+        this.handleDateChange(newVal);
+      }
+    }
   },
   methods: {
+    formatDate(dateStr) {
+      const date = new Date(dateStr);
+      const year = date.getFullYear();
+      const month = String(date.getMonth() + 1).padStart(2, '0'); // 月份从 0 开始,需要 +1
+      return `${year}-${month}`;
+    },
+    handleDateChange(newVal) {
+      const formattedDate = this.formatDate(newVal);
+      console.log(formattedDate)
+      
+      queryMonthRecord({ time: formattedDate, id: this.defaultVal.id }).then(res => {
+        this.defaultVal.oktrain = []
+        this.defaultVal.notrain = []
+        res.data.map((item) => {
+          if (item.status == '1') {
+            this.defaultVal.oktrain.push(item.time)
+          } else if (item.status == '2') {
+            this.defaultVal.notrain.push(item.time)
+          }
+        })
+      })
+    },
     open(e) {
       this.drawer = true
       this.defaultVal = e