Browse Source

增加按挂号按接诊选择

hsh 2 years ago
parent
commit
9fcacdc9d3
1 changed files with 10 additions and 1 deletions
  1. 10 1
      src/views/operate-monitoring/WorkloadStatistics.vue

+ 10 - 1
src/views/operate-monitoring/WorkloadStatistics.vue

@@ -3,6 +3,10 @@
         <template #header height="45px;">
             <el-date-picker v-model="dateRange" type="daterange" range-separator="至" start-placeholder="开始日期"
                 end-placeholder="结束日期" :shortcuts="shortcuts"> </el-date-picker>
+            <el-select v-model="mzFlag" style="width: 100px">
+                <el-option label="按挂号" value="0"></el-option>
+                <el-option label="按接诊" value="1"></el-option>
+            </el-select>
             <el-button type="primary" icon="Search" @click="query" style="margin-left: 5px">查询</el-button>
             <el-button type="primary" icon="Download" @click="exportData" style="margin-left: 5px">导出</el-button>
         </template>
@@ -66,12 +70,15 @@ let s1 = nowDay.getFullYear() + "-" + yf + "-" + inday
 const start = formatDate(s1);
 const end = formatDate(s1);
 const dateRange = ref([]);
+const mzFlag = ref('0');
+
 const queryTerm = reactive({
     startTime: "",
     endTime: "",
     reportId: "all_gzltj",
     menuId: "168",
     type: "1",
+    mzFlag: "0",
 });
 
 onMounted(() => {
@@ -103,9 +110,11 @@ const query = async () => {
             showClose: true,
         });
     }
+
+    queryTerm.mzFlag = mzFlag.value
+
     await selectWorkloadStatistics(queryTerm)
         .then((res) => {
-            console.log(res);
             returnData.value = res.resultData
             totalData.value = res.totalMap
         });