tplink项目删除无用console
This commit is contained in:
parent
668e346e5e
commit
ba6f263ff9
|
@ -350,7 +350,6 @@ import {
|
|||
"deviceIndex": deviceIndex,
|
||||
"type": "switch"
|
||||
}).then(res=>{
|
||||
// console.log(res);
|
||||
formData.flip_type = res.flip_type; //画面镜像翻转
|
||||
formData.night_vision_mode = res.night_vision_mode; //照明模式
|
||||
});
|
||||
|
|
|
@ -111,7 +111,6 @@ function restartNow(record){
|
|||
});
|
||||
},
|
||||
onCancel() {
|
||||
// console.log('Cancel');
|
||||
},
|
||||
class: 'test',
|
||||
});
|
||||
|
|
|
@ -78,10 +78,8 @@ import {ref, reactive, createVNode, h, onMounted, watch, unref} from 'vue';
|
|||
watch(
|
||||
() => props.data,
|
||||
async () => {
|
||||
console.log(props.data);
|
||||
queryParam.projectId = props.data.projectId;
|
||||
queryParam.regionId = props.data.regionId;
|
||||
console.log(queryParam);
|
||||
let record = unref(props.data);
|
||||
if (typeof record !== 'object') {
|
||||
record = {};
|
||||
|
@ -160,7 +158,6 @@ import {ref, reactive, createVNode, h, onMounted, watch, unref} from 'vue';
|
|||
* 左侧树选择后触发
|
||||
*/
|
||||
function onTreeSelect(data) {
|
||||
console.log('onTreeSelect: ', data);
|
||||
// departData.value = data;
|
||||
}
|
||||
|
||||
|
@ -168,7 +165,6 @@ import {ref, reactive, createVNode, h, onMounted, watch, unref} from 'vue';
|
|||
* 左侧树rootTreeData触发
|
||||
*/
|
||||
function onRootTreeData(data) {
|
||||
console.log('onRootTreeData: ', data);
|
||||
// rootTreeData.value = data;
|
||||
}
|
||||
|
||||
|
|
|
@ -152,7 +152,6 @@
|
|||
* 设置当前选中的行
|
||||
*/
|
||||
function setSelectedKey(key: string, data?: object) {
|
||||
console.log('setSelectedKey: ', key);
|
||||
selectedKeys.value = [key];
|
||||
if (data) {
|
||||
currentRegion.value = data;
|
||||
|
@ -164,7 +163,6 @@
|
|||
* 树选择事件
|
||||
*/
|
||||
function onSelect(selKeys, event) {
|
||||
console.log('onSelect: ', selKeys, event);
|
||||
if (selKeys.length > 0 && selectedKeys.value[0] !== selKeys[0]) {
|
||||
setSelectedKey(selKeys[0], event.selectedNodes[0]);
|
||||
} else {
|
||||
|
|
|
@ -365,23 +365,6 @@
|
|||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
// console.log('星期一', mondayArr.value);
|
||||
// console.log('星期二', tuesdayArr.value);
|
||||
// console.log('星期三', wednesdayArr.value);
|
||||
// console.log('星期四', thursdayArr.value);
|
||||
// console.log('星期五', fridayArr.value);
|
||||
// console.log('星期六', saturdayArr.value);
|
||||
// console.log('星期七', sundayArr.value);
|
||||
|
||||
// console.log('星期一', mondayMergeArr.value);
|
||||
// console.log('星期二', tuesdayMergeArr.value);
|
||||
// console.log('星期三', wednesdayMergeArr.value);
|
||||
// console.log('星期四', thursdayMergeArr.value);
|
||||
// console.log('星期五', fridayMergeArr.value);
|
||||
// console.log('星期六', saturdayMergeArr.value);
|
||||
// console.log('星期七', sundayMergeArr.value);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -540,7 +523,6 @@
|
|||
* 鼠标按下
|
||||
*/
|
||||
function handleMouseDown(){
|
||||
// console.log('鼠标按下', event);
|
||||
planVisible.value = true;
|
||||
}
|
||||
|
||||
|
@ -548,7 +530,6 @@
|
|||
* 鼠标抬起
|
||||
*/
|
||||
function handleMouseUp(){
|
||||
// console.log('鼠标抬起', event);
|
||||
planVisible.value = false;
|
||||
}
|
||||
|
||||
|
|
|
@ -148,7 +148,6 @@
|
|||
* 销毁
|
||||
*/
|
||||
function destroy(){
|
||||
console.log("destroy");
|
||||
if (player.value){
|
||||
player.value.destroy().then(() => { }); // 回放销毁时自动调用接口,跨域导致失败
|
||||
initContainerMultitrans.value = false
|
||||
|
|
|
@ -110,7 +110,6 @@
|
|||
"endTime":formData.endTime,
|
||||
}).then(res=>{
|
||||
confirmLoading.value=false;
|
||||
// console.log(res);
|
||||
const error = res.error;
|
||||
if(error==null||error==''){
|
||||
formData.sessionId = '';
|
||||
|
@ -119,15 +118,6 @@
|
|||
formData.sessionId += item.sessionId+","
|
||||
let startTime = item.startTime*1000;
|
||||
let endTime = item.endTime*1000;
|
||||
// console.log("url:"+item.url);
|
||||
// console.log("socket:"+item.wssUrl);
|
||||
// console.log("queryAddress:"+item.queryAddress);
|
||||
// console.log("videoSessionId:"+item.sessionId);
|
||||
// console.log("videoDevId:"+item.videoDevId);
|
||||
// console.log("storageDevId:"+item.storageDevId);
|
||||
// console.log("startTime:"+startTime);
|
||||
// console.log("endTime:"+endTime);
|
||||
// console.log("scale:"+item.scale);
|
||||
player.value = new TumsPlayer('video-container-playback', {
|
||||
"autoplay": true,
|
||||
"resolution": "HD",
|
||||
|
@ -165,13 +155,11 @@
|
|||
* 销毁
|
||||
*/
|
||||
async function destroy(){
|
||||
console.log("destroy");
|
||||
if (player.value){
|
||||
deletePlaybackChn({
|
||||
"deviceIndex":formData.videoDevId,
|
||||
"sessionId":formData.sessionId
|
||||
}).then(res=>{
|
||||
console.log(res)
|
||||
});
|
||||
// player.value.destroy().then(() => { }); // 回放销毁时自动调用接口,跨域导致失败
|
||||
initContainerPlayback.value = false
|
||||
|
|
|
@ -151,10 +151,6 @@
|
|||
|
||||
createPreview();
|
||||
getSwitch();
|
||||
|
||||
/* await getIpcCapability({"deviceIndex":formData.deviceIndex}).then(res=>{
|
||||
console.log(res);
|
||||
});*/
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -286,7 +282,6 @@
|
|||
izRecording.value = true;
|
||||
player.value.startRecording({micStream:true}).then((res) => {
|
||||
// 设置成功,返回resolve
|
||||
console.log(res);
|
||||
}).catch((errData) => {
|
||||
// 设置失败,包括网络错误以及接口调用报错
|
||||
// 具体错误见errData.error_code
|
||||
|
@ -302,7 +297,6 @@
|
|||
let fileName = formData.deviceIndex+'-'+(new Date().getTime());
|
||||
player.value.stopRecording(fileName, true).then((res) => {
|
||||
// 设置成功,返回resolve
|
||||
console.log(res);
|
||||
}).catch((errData) => {
|
||||
// 设置失败,包括网络错误以及接口调用报错
|
||||
// 具体错误见errData.error_code
|
||||
|
@ -317,7 +311,6 @@
|
|||
getMultitransUrl({
|
||||
"videoDevId":formData.deviceIndex
|
||||
}).then(res=>{
|
||||
console.log(res);
|
||||
player.value.startVoiceIntercom({
|
||||
"url": res.url, // 该url为一次性 需要通过接口实时获取
|
||||
"wssUrl": res.wssUrl,
|
||||
|
@ -339,7 +332,6 @@
|
|||
* 销毁
|
||||
*/
|
||||
function destroy(){
|
||||
console.log("destroy");
|
||||
if (player){
|
||||
player.value.destroy().then(() => {
|
||||
}); // 销毁
|
||||
|
|
|
@ -365,23 +365,6 @@
|
|||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
// console.log('星期一', mondayArr.value);
|
||||
// console.log('星期二', tuesdayArr.value);
|
||||
// console.log('星期三', wednesdayArr.value);
|
||||
// console.log('星期四', thursdayArr.value);
|
||||
// console.log('星期五', fridayArr.value);
|
||||
// console.log('星期六', saturdayArr.value);
|
||||
// console.log('星期七', sundayArr.value);
|
||||
|
||||
// console.log('星期一', mondayMergeArr.value);
|
||||
// console.log('星期二', tuesdayMergeArr.value);
|
||||
// console.log('星期三', wednesdayMergeArr.value);
|
||||
// console.log('星期四', thursdayMergeArr.value);
|
||||
// console.log('星期五', fridayMergeArr.value);
|
||||
// console.log('星期六', saturdayMergeArr.value);
|
||||
// console.log('星期七', sundayMergeArr.value);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -540,7 +523,6 @@
|
|||
* 鼠标按下
|
||||
*/
|
||||
function handleMouseDown(){
|
||||
// console.log('鼠标按下', event);
|
||||
planVisible.value = true;
|
||||
}
|
||||
|
||||
|
@ -548,7 +530,6 @@
|
|||
* 鼠标抬起
|
||||
*/
|
||||
function handleMouseUp(){
|
||||
// console.log('鼠标抬起', event);
|
||||
planVisible.value = false;
|
||||
}
|
||||
|
||||
|
|
|
@ -196,7 +196,6 @@ import {
|
|||
formData.regionId = props.data.regionId;
|
||||
formData.multitrans = props.data.multitrans;
|
||||
formData.scale = props.data.scale;
|
||||
console.log(formData);
|
||||
},
|
||||
{ deep: true, immediate: true }
|
||||
);
|
||||
|
|
|
@ -28,7 +28,6 @@
|
|||
const rootTreeData = ref<any[]>([]);
|
||||
// 左侧树选择后触发
|
||||
function onTreeSelect(data) {
|
||||
console.log('onTreeSelect: ', data);
|
||||
cameraData.value = data;
|
||||
}
|
||||
// 左侧树rootTreeData触发
|
||||
|
|
|
@ -109,7 +109,6 @@
|
|||
deletePrject(record, reload);
|
||||
},
|
||||
onCancel() {
|
||||
// console.log('Cancel');
|
||||
},
|
||||
class: 'test',
|
||||
});
|
||||
|
|
|
@ -107,7 +107,6 @@
|
|||
}else{
|
||||
formData["regionName"] = option.label;
|
||||
}
|
||||
console.log(formData);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -103,7 +103,6 @@ async function handleChange(value,option:Option,formData){
|
|||
}else{
|
||||
formData["regionName"] = option.label;
|
||||
}
|
||||
console.log(formData);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -187,7 +187,6 @@ import {
|
|||
* 设置当前选中的行
|
||||
*/
|
||||
function setSelectedKey(key: string, data?: object) {
|
||||
console.log('setSelectedKey: ', key);
|
||||
selectedKeys.value = [key];
|
||||
if (data) {
|
||||
currentRegion.value = data;
|
||||
|
@ -199,7 +198,6 @@ import {
|
|||
* 树选择事件
|
||||
*/
|
||||
function onSelect(selKeys, event) {
|
||||
console.log('onSelect: ', selKeys, event);
|
||||
if (selKeys.length > 0 && selectedKeys.value[0] !== selKeys[0]) {
|
||||
setSelectedKey(selKeys[0], event.selectedNodes[0]);
|
||||
} else {
|
||||
|
@ -260,7 +258,6 @@ import {
|
|||
createMessage.warning('请先选择一个节点');
|
||||
return;
|
||||
}
|
||||
console.log(data);
|
||||
let record = {
|
||||
projectId: data.projectId,
|
||||
projectName: data.projectName,
|
||||
|
@ -272,7 +269,6 @@ import {
|
|||
}else{
|
||||
record["institutionId"] = data.institutionId;
|
||||
}
|
||||
console.log(record);
|
||||
openRegionDrawer(true, {
|
||||
record,
|
||||
isUpdate: false,
|
||||
|
@ -289,7 +285,6 @@ import {
|
|||
createMessage.warning('请先选择一个节点');
|
||||
return;
|
||||
}
|
||||
console.log(data);
|
||||
let record = {
|
||||
projectId: data.projectId,
|
||||
projectName: data.projectName,
|
||||
|
@ -301,7 +296,6 @@ import {
|
|||
}else{
|
||||
record["institutionId"] = data.institutionId;
|
||||
}
|
||||
console.log(record);
|
||||
openRegionDrawer(true, {
|
||||
record,
|
||||
isUpdate: false,
|
||||
|
@ -339,7 +333,6 @@ import {
|
|||
deletePrject(record, handleSuccess);
|
||||
},
|
||||
onCancel() {
|
||||
// console.log('Cancel');
|
||||
},
|
||||
class: 'test',
|
||||
});
|
||||
|
@ -359,7 +352,6 @@ import {
|
|||
deleteRegion(record, handleSuccess);
|
||||
},
|
||||
onCancel() {
|
||||
// console.log('Cancel');
|
||||
},
|
||||
class: 'test',
|
||||
});
|
||||
|
|
|
@ -37,12 +37,10 @@
|
|||
const rootTreeData = ref<any[]>([]);
|
||||
// 左侧树选择后触发
|
||||
function onTreeSelect(data) {
|
||||
console.log('onTreeSelect: ', data);
|
||||
nodeData.value = data;
|
||||
}
|
||||
// 左侧树rootTreeData触发
|
||||
function onRootTreeData(data) {
|
||||
console.log(data);
|
||||
rootTreeData.value = data;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue