南昌市物联网技防平台-前端
zengh
2021-03-24 33c4e059eeb71de6f186bc4ee22e05bfd3bd5aeb
src/views/healthcode/healthcode.vue
@@ -181,7 +181,9 @@
            }
          ]
        },
        data: []
        data: [],
        isActive: false,
        recorder: null,
      };
    },
    computed: {
@@ -201,16 +203,6 @@
        });
        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) {
@@ -258,7 +250,7 @@
        };
        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 == "" ) {
            if (this.$route.query.type != undefined && this.$route.query.type != null && this.$route.query.type != "" ) {
              this.activeClass = this.$route.query.status;
              this.page.currentPage = 1;
              params = {
@@ -272,6 +264,12 @@
                type:this.$route.query.status
              };
            }
        }else if(this.$route.query.type != undefined && this.$route.query.type != null && this.$route.query.type != "" ){
          params = {
            type: this.$route.query.type,
            beginTime: this.$route.query.startTime,
            endTime: this.$route.query.endTime
          }
        }else{
            params = {
                status:this.$route.query.status,