zhangzengfei
2020-09-03 b4772b5ee3a2e6ffd9fd5d960506072c35225431
默认关闭摄像机声音
2个文件已修改
20 ■■■■■ 已修改文件
src/pages/cameraAccess/components/CameraInfo.vue 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
vue.config.js 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/cameraAccess/components/CameraInfo.vue
@@ -37,7 +37,7 @@
        </el-col>
        <el-col :span="9" :offset="1">
          <el-form-item label="设备地址" style="width:100%" prop="addr">
            <el-input v-model="form.addr" placeholder="请输入地址描述" :disabled="!form.rtsp" size="small"></el-input>
            <el-input v-model="form.addr" placeholder="请输入地址描述" :disabled="isDisabled" size="small"></el-input>
          </el-form-item>
        </el-col>
      </el-row>
@@ -59,7 +59,7 @@
            </el-select>
          </el-form-item>
        </el-col>
        <el-col :span="9" :offset="1" >
        <el-col :span="9" :offset="1">
          <el-form-item label="事件声音">
            <div class="flex-wrap" style="margin-left:-10px">
              <el-switch v-model="form.voiceEnable" active-color="#409eff" :width="50"></el-switch>
@@ -225,7 +225,7 @@
        cameraType: 0,
        resolution: "",
        voiceId: "",
        voiceEnable: true
        voiceEnable: false
      },
      // 记录添加状态
      isAdd: false,
@@ -500,7 +500,7 @@
        password: "",
        resolution: "",
        voiceId: "",
        voiceEnable: true
        voiceEnable: false
      };
    },
    // 添加设备
@@ -606,9 +606,9 @@
<style lang="scss">
.camera-info {
  width: 100%;
  margin: 20px 0 20px 20px;
  .ai-select {
    text-align: left;
  }
vue.config.js
@@ -7,7 +7,7 @@
  pages[chunk] = {
    entry: path,
    template: 'public/index.html',
    title: chunk=='desktop/index'?'SmartAI':chunk,
    title: chunk == 'desktop/index' ? 'SmartAI' : chunk,
    chunks: ['chunk-vendors', 'chunk-common', chunk]
  }
  if (chunk != 'index') {
@@ -47,13 +47,11 @@
        target: 'http://192.168.20.10:7003',
        // ws: true,
        changeOrigin: true,
      },
      },
      "/api-v": {
        //target: 'http://192.168.20.145:8000',
        //target: 'http://192.168.5.22:30102',
        target: 'http://192.168.20.10:8000',
        changeOrigin: true
      },
      },
      "/api-f": {
        //target: "http://bsic.asuscomm.com:7003", // 外网映射地址
        // target: "http://222.128.87.51:8000", // 目标代理接口地址