|  |  |  | 
|---|
|  |  |  | <span v-show="!scope.row.edit">{{ scope.row.location }}</span> | 
|---|
|  |  |  | </template> | 
|---|
|  |  |  | </el-table-column> | 
|---|
|  |  |  | <el-table-column prop="PTZType" label="云台类型" min-width="100"> | 
|---|
|  |  |  | <el-table-column prop="ptzType" label="云台类型" min-width="100"> | 
|---|
|  |  |  | <template v-slot:default="scope"> | 
|---|
|  |  |  | <el-select v-show="scope.row.edit" v-model="scope.row.PTZType" | 
|---|
|  |  |  | <el-select v-show="scope.row.edit" v-model="scope.row.ptzType" | 
|---|
|  |  |  | placeholder="云台类型" filterable> | 
|---|
|  |  |  | <el-option | 
|---|
|  |  |  | v-for="(value, key) in ptzTypes" | 
|---|
|  |  |  | 
|---|
|  |  |  | :value="key" | 
|---|
|  |  |  | /> | 
|---|
|  |  |  | </el-select> | 
|---|
|  |  |  | <div v-show="!scope.row.edit">{{ scope.row.PTZTypeText }}</div> | 
|---|
|  |  |  | <div v-show="!scope.row.edit">{{ scope.row.ptzTypeText }}</div> | 
|---|
|  |  |  | </template> | 
|---|
|  |  |  | </el-table-column> | 
|---|
|  |  |  | <el-table-column label="开启音频" min-width="100"> | 
|---|
|  |  |  | 
|---|
|  |  |  | @click="changeSubchannel(scope.row)">查看 | 
|---|
|  |  |  | </el-button> | 
|---|
|  |  |  | <el-divider v-if="scope.row.subCount > 0 || scope.row.parental === 1" direction="vertical"></el-divider> | 
|---|
|  |  |  | <el-button size="medium" v-bind:disabled="device == null || device.online === 0" | 
|---|
|  |  |  | icon="el-icon-video-camera" | 
|---|
|  |  |  | type="text" @click="queryRecords(scope.row)">设备录像 | 
|---|
|  |  |  | </el-button> | 
|---|
|  |  |  | <el-button size="medium" v-bind:disabled="device == null || device.online === 0" icon="el-icon-cloudy" | 
|---|
|  |  |  | type="text" @click="queryCloudRecords(scope.row)">云端录像 | 
|---|
|  |  |  | </el-button> | 
|---|
|  |  |  | <!--              <el-button size="medium" v-bind:disabled="device == null || device.online === 0"--> | 
|---|
|  |  |  | <!--                         icon="el-icon-video-camera"--> | 
|---|
|  |  |  | <!--                         type="text" @click="queryRecords(scope.row)">设备录像--> | 
|---|
|  |  |  | <!--              </el-button>--> | 
|---|
|  |  |  | <!--              <el-button size="medium" v-bind:disabled="device == null || device.online === 0" icon="el-icon-cloudy"--> | 
|---|
|  |  |  | <!--                         type="text" @click="queryCloudRecords(scope.row)">云端录像--> | 
|---|
|  |  |  | <!--              </el-button>--> | 
|---|
|  |  |  | <el-dropdown @command="(command)=>{moreClick(command, scope.row)}"> | 
|---|
|  |  |  | <el-button size="medium" type="text" > | 
|---|
|  |  |  | 更多功能<i class="el-icon-arrow-down el-icon--right"></i> | 
|---|
|  |  |  | </el-button> | 
|---|
|  |  |  | <el-dropdown-menu slot="dropdown"> | 
|---|
|  |  |  | <el-dropdown-item command="records" v-bind:disabled="device == null || device.online === 0"> | 
|---|
|  |  |  | 设备录像</el-dropdown-item> | 
|---|
|  |  |  | <el-dropdown-item command="cloudRecords" v-bind:disabled="device == null || device.online === 0" > | 
|---|
|  |  |  | 云端录像</el-dropdown-item> | 
|---|
|  |  |  | </el-dropdown-menu> | 
|---|
|  |  |  | </el-dropdown> | 
|---|
|  |  |  | </template> | 
|---|
|  |  |  | </el-table-column> | 
|---|
|  |  |  | </el-table> | 
|---|
|  |  |  | 
|---|
|  |  |  | that.total = res.data.data.total; | 
|---|
|  |  |  | that.deviceChannelList = res.data.data.list; | 
|---|
|  |  |  | that.deviceChannelList.forEach(e => { | 
|---|
|  |  |  | e.PTZType = e.PTZType + ""; | 
|---|
|  |  |  | e.ptzType = e.ptzType + ""; | 
|---|
|  |  |  | that.$set(e, "edit", false); | 
|---|
|  |  |  | that.$set(e, "location", ""); | 
|---|
|  |  |  | if (e.longitude && e.latitude) { | 
|---|
|  |  |  | 
|---|
|  |  |  | that.isLoging = false; | 
|---|
|  |  |  | // that.$message.error("请求超时"); | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | moreClick: function (command, itemData) { | 
|---|
|  |  |  | if (command === "records") { | 
|---|
|  |  |  | this.queryRecords(itemData) | 
|---|
|  |  |  | }else if (command === "cloudRecords") { | 
|---|
|  |  |  | this.queryCloudRecords(itemData) | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | queryRecords: function (itemData) { | 
|---|
|  |  |  | let deviceId = this.deviceId; | 
|---|
|  |  |  | 
|---|
|  |  |  | this.total = res.data.data.total; | 
|---|
|  |  |  | this.deviceChannelList = res.data.data.list; | 
|---|
|  |  |  | this.deviceChannelList.forEach(e => { | 
|---|
|  |  |  | e.PTZType = e.PTZType + ""; | 
|---|
|  |  |  | e.ptzType = e.ptzType + ""; | 
|---|
|  |  |  | this.$set(e, "edit", false); | 
|---|
|  |  |  | this.$set(e, "location", ""); | 
|---|
|  |  |  | if (e.longitude && e.latitude) { | 
|---|