From 0c1a6d462b3d8440b66fc15552b3e2b1064acb3a Mon Sep 17 00:00:00 2001
From: Administrator <admin>
Date: Mon, 22 Mar 2021 19:44:38 +0800
Subject: [PATCH] 包裹页面修改
---
src/views/healthcode/healthcode.vue | 34 ++++++++++++++++++++++++++++++++--
1 files changed, 32 insertions(+), 2 deletions(-)
diff --git a/src/views/healthcode/healthcode.vue b/src/views/healthcode/healthcode.vue
index 238d55a..500988a 100644
--- a/src/views/healthcode/healthcode.vue
+++ b/src/views/healthcode/healthcode.vue
@@ -202,6 +202,16 @@
return ids.join(",");
}
},
+ created() {
+ Recorder.getPermission().then(() => {});
+
+ this.recorder = new Recorder({
+ sampleBits: 16, // 采样位数,支持 8 或 16,默认是16
+ sampleRate: 8000, // 采样率,支持 11025、16000、22050、24000、44100、48000,根据浏览器默认值,我的chrome是48000
+ numChannels: 1, // 声道,支持 1 或 2, 默认是1
+ // compiling: false,(0.x版本中生效,1.x增加中) // 是否边录边转换,默认是false
+ });
+ },
methods: {
beforeOpen(done, type) {
},
@@ -242,7 +252,11 @@
this.onLoad(this.page, params);
},
onLoad(page, params = {}) {
- this.loading = true;
+ const { dateTime } = this.query;
+ let values = {
+ ...params,
+ };
+
if (this.$route.query.status && this.$route.query != undefined && this.$route.query != null && this.$route.query != "" ) {
if (this.$route.query.type != undefined && this.$route.query.type != null && this.$route.query.type == "" ) {
this.activeClass = this.$route.query.status;
@@ -265,7 +279,23 @@
}
}
- getList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => {
+ if (dateTime) {
+ values = {
+ ...params,
+ begTime: dateTime[0],
+ endTime: dateTime[1],
+ ...this.query,
+ };
+ values.dateTime = null;
+ } else {
+ values = {
+ ...params,
+ ...this.query,
+ };
+ }
+
+ this.loading = true;
+ getList(page.currentPage, page.pageSize,values).then(res => {
const data = res.data.data;
this.page.total = data.total;
this.data = data.records;
--
Gitblit v1.9.3