Преглед на файлове

bug-6945 与临床沟通调整

tianxinyu преди 4 месеца
родител
ревизия
70b6767cdd
променени са 2 файла, в които са добавени 24 реда и са изтрити 8 реда
  1. 16 7
      src/views/component/statistics/clinical.vue
  2. 8 1
      src/views/component/statistics/consult.vue

+ 16 - 7
src/views/component/statistics/clinical.vue

@@ -5,7 +5,8 @@
       <div class="date-wrap">
         <div class="date-label">沟通时间:</div>
         <el-date-picker v-model="monthValues" type="daterange" start-placeholder="开始日期" end-placeholder="结束日期"
-          align="left" @change="changeDate" :picker-options="pickerOptions" value-format="yyyy-MM-dd" />
+          align="left" :picker-options="pickerOptions" value-format="yyyy-MM-dd" />
+          <el-button type="primary" @click="searchData" style="margin-left: 20px;">查询</el-button>
       </div>
 
 
@@ -95,6 +96,13 @@ export default {
   },
   methods: {
 
+    searchData() {
+      this.formatData3()
+      this.getFangshi()
+      this.getKeshi()
+      this.$message.success('查询成功')
+    },
+
     // 格式化日期为 YYYY-MM-DD
     formatDate(date) {
       const year = date.getFullYear();
@@ -103,12 +111,12 @@ export default {
       return `${year}-${month}-${day}`;
     },
 
-    changeDate(value) {
-      console.log('riqi ', value)
-      this.formatData3()
-      this.getFangshi()
-      this.getKeshi()
-    },
+    // changeDate(value) {
+      // console.log('riqi ', value)
+      // this.formatData3()
+      // this.getFangshi()
+      // this.getKeshi()
+    // },
     // 关闭当前窗口
     closeDialog(needRefresh) {
       this.$emit('update:dialogVisible', false, needRefresh)
@@ -277,6 +285,7 @@ export default {
           type: 'category',
           axisLabel: {
             interval: 0, // 强制显示所有标签
+            rotate: 30
           },
           data: xAxis
         },

+ 8 - 1
src/views/component/statistics/consult.vue

@@ -5,7 +5,8 @@
       <div class="date-wrap">
         <div class="date-label">编制时间:</div>
         <el-date-picker v-model="monthValues" type="daterange" start-placeholder="开始日期" end-placeholder="结束日期"
-          align="left" @change="changeDate" :picker-options="pickerOptions" value-format="yyyy-MM-dd" />
+          align="left" :picker-options="pickerOptions" value-format="yyyy-MM-dd" />
+          <el-button type="primary" @click="searchData" style="margin-left: 20px;">查询</el-button>
       </div>
 
 
@@ -90,6 +91,11 @@ export default {
     })
   },
   methods: {
+    searchData() {
+      this.formatData3()
+      this.getFangshi()
+      this.$message.success('查询成功')
+    },
 
     // 格式化日期为 YYYY-MM-DD
     formatDate(date) {
@@ -227,6 +233,7 @@ export default {
           type: 'category',
           axisLabel: {
             interval: 0, // 强制显示所有标签
+            rotate: 30
           },
           data: xAxis
         },