| | |
| | | </el-col> |
| | | <el-col :span="9" :offset="1"> |
| | | <el-form-item label="坐标" style="width:100%;"> |
| | | <label slot="label"> 坐标</label> |
| | | <label slot="label">坐标</label> |
| | | <el-col :span="11"> |
| | | <el-input |
| | | v-model="form.latitude" |
| | |
| | | </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> |
| | |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="9" :offset="1" style="padding-left: 11px;"> |
| | | <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> |
| | |
| | | <el-button size="small" type="primary" @click="cameraConnet" :disabled="conDisabled">连接测试</el-button> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row style="padding-top: 15px"> |
| | | <el-row style="padding: 15px 0"> |
| | | <el-col :span="12"> |
| | | <camera-player |
| | | :cameraName="videoItem.name" |
| | |
| | | :isRunning="false" |
| | | v-if="videoItem !== '' && videoItem !== undefined && videoItem !== null && visibilityState" |
| | | ></camera-player> |
| | | <video v-else poster="../../../assets/baseimg_cameara.png" preload="none"></video> |
| | | <video v-else poster="/images/cameraAccess/video-poster.png" preload="none"></video> |
| | | </el-col> |
| | | |
| | | <!-- 系统运行信息 --> |
| | |
| | | cameraType: 0, |
| | | resolution: "", |
| | | voiceId: "", |
| | | voiceEnable: true |
| | | voiceEnable: false |
| | | }, |
| | | // 记录添加状态 |
| | | isAdd: false, |
| | |
| | | } |
| | | }, |
| | | selectCamera(node) { |
| | | debugger |
| | | this.isAdd = false; |
| | | this.videoItem = null; |
| | | this.$refs.addForm.resetFields(); |
| | |
| | | password: "", |
| | | resolution: "", |
| | | voiceId: "", |
| | | voiceEnable: true |
| | | voiceEnable: false |
| | | }; |
| | | }, |
| | | // 添加设备 |
| | |
| | | <style lang="scss"> |
| | | .camera-info { |
| | | width: 100%; |
| | | height: 100%; |
| | | margin-left: 20px; |
| | | overflow: auto; |
| | | |
| | | margin: 20px 0 20px 20px; |
| | | |
| | | .ai-select { |
| | | text-align: left; |
| | | } |