|
@@ -239,10 +239,8 @@ export default {
|
|
pagedData_bigcamaraData() { // 动态计算当前页的数据
|
|
pagedData_bigcamaraData() { // 动态计算当前页的数据
|
|
const start = (this.bigcamaraData.currentPage - 1) * this.bigcamaraData.pageSize
|
|
const start = (this.bigcamaraData.currentPage - 1) * this.bigcamaraData.pageSize
|
|
const end = start + this.bigcamaraData.pageSize
|
|
const end = start + this.bigcamaraData.pageSize
|
|
- if(this.bigcamaraData.data!=null){
|
|
|
|
- console.log("hhhh1: ",start+"---"+end )
|
|
|
|
- console.log("hhhh2: ",this.bigcamaraData.data )
|
|
|
|
- console.log("hhhh3: ",this.bigcamaraData.data.slice(start, end) )
|
|
|
|
|
|
+ // if(this.gridData.data!=null){
|
|
|
|
+ if(this.bigcamaraData.data.length!=0){
|
|
return this.bigcamaraData.data.slice(start, end)
|
|
return this.bigcamaraData.data.slice(start, end)
|
|
}else{
|
|
}else{
|
|
return null
|
|
return null
|
|
@@ -251,10 +249,8 @@ export default {
|
|
pagedData_bigcardData() { // 动态计算当前页的数据
|
|
pagedData_bigcardData() { // 动态计算当前页的数据
|
|
const start = (this.bigcardData.currentPage - 1) * this.bigcardData.pageSize
|
|
const start = (this.bigcardData.currentPage - 1) * this.bigcardData.pageSize
|
|
const end = start + this.bigcardData.pageSize
|
|
const end = start + this.bigcardData.pageSize
|
|
- if(this.bigcardData.data!=null){
|
|
|
|
- console.log("hhhh1: ",start+"---"+end )
|
|
|
|
- console.log("hhhh2: ",this.bigcardData.data )
|
|
|
|
- console.log("hhhh3: ",this.bigcardData.data.slice(start, end) )
|
|
|
|
|
|
+ // if(this.gridData.data!=null){
|
|
|
|
+ if(this.bigcardData.data.length!=0){
|
|
return this.bigcardData.data.slice(start, end)
|
|
return this.bigcardData.data.slice(start, end)
|
|
}else{
|
|
}else{
|
|
return null
|
|
return null
|
|
@@ -266,67 +262,40 @@ export default {
|
|
async handleChangeWindow(value) {
|
|
async handleChangeWindow(value) {
|
|
console.log("当前更新的窗口",value)
|
|
console.log("当前更新的窗口",value)
|
|
this.selectWindow=value
|
|
this.selectWindow=value
|
|
- console.log("this.selectWindow",this.selectWindow)
|
|
|
|
- },
|
|
|
|
-
|
|
|
|
- updateSelectedButton(button) {
|
|
|
|
- console.log("更新button",this.selectedScreen,button)
|
|
|
|
- this.selectedScreen = button;
|
|
|
|
-
|
|
|
|
},
|
|
},
|
|
|
|
|
|
- bofang1(){
|
|
|
|
- console.log("播放1",this.bigcardData)
|
|
|
|
- console.log("播放2",this.bigcamaraData)
|
|
|
|
- this.bigData=this.bigcardData
|
|
|
|
- // this.handleChange()
|
|
|
|
- },
|
|
|
|
- bofang2(){
|
|
|
|
- console.log("播放2",this.bigcamaraData)
|
|
|
|
- this.bigData=this.bigcamaraData
|
|
|
|
- },
|
|
|
|
checkWindow(){
|
|
checkWindow(){
|
|
let that = this
|
|
let that = this
|
|
- console.log("this.selectWindow1",this.selectWindow)
|
|
|
|
|
|
+ console.log("this.selectWindow",this.selectWindow)
|
|
let xuanzhongchuangkou = this.selectWindow
|
|
let xuanzhongchuangkou = this.selectWindow
|
|
//播放前先停止当前窗口播放其他视频
|
|
//播放前先停止当前窗口播放其他视频
|
|
this.bigcamaraData.data.forEach(function(obj,index) {
|
|
this.bigcamaraData.data.forEach(function(obj,index) {
|
|
- console.log(index);
|
|
|
|
- // console.log(obj);
|
|
|
|
- console.log(obj.windowList);
|
|
|
|
|
|
+ // console.log(index);
|
|
|
|
+ // console.log(obj.windowList);
|
|
if (obj.windowList.length != 0) {
|
|
if (obj.windowList.length != 0) {
|
|
obj.windowList.forEach(function (obj, index) {
|
|
obj.windowList.forEach(function (obj, index) {
|
|
- console.log("camaraData序号,数值",index,obj);
|
|
|
|
|
|
+ // console.log("camaraData序号,数值",index,obj);
|
|
if (parseInt(obj) == xuanzhongchuangkou) {//该窗口已播放视频
|
|
if (parseInt(obj) == xuanzhongchuangkou) {//该窗口已播放视频
|
|
- console.log("cardData该窗口已播放视频",this,that);
|
|
|
|
|
|
+ // console.log("cardData该窗口已播放视频",this,that);
|
|
that.$refs.hkbigCamara.stopPlayVideo()
|
|
that.$refs.hkbigCamara.stopPlayVideo()
|
|
//删除窗口显示
|
|
//删除窗口显示
|
|
that.bigcamaraData.data[index].windowList = that.bigcamaraData.data[index].windowList.filter((element) => element !== that.selectWindow.toString());
|
|
that.bigcamaraData.data[index].windowList = that.bigcamaraData.data[index].windowList.filter((element) => element !== that.selectWindow.toString());
|
|
- // if(that.$refs.hkbigCamara.stopPlayVideo()){
|
|
|
|
- // that.bigcamaraData.data[index].windowList = that.bigcamaraData.data[index].windowList.filter((element) => element !== that.selectWindow.toString());
|
|
|
|
- // }
|
|
|
|
-
|
|
|
|
-
|
|
|
|
}
|
|
}
|
|
})
|
|
})
|
|
}
|
|
}
|
|
}),
|
|
}),
|
|
|
|
|
|
this.bigcardData.data.forEach(function(obj,index) {
|
|
this.bigcardData.data.forEach(function(obj,index) {
|
|
- console.log(index);
|
|
|
|
- // console.log(obj);
|
|
|
|
- console.log(obj.windowList);
|
|
|
|
|
|
+ // console.log(index);
|
|
|
|
+ // console.log(obj.windowList);
|
|
if(obj.windowList.length!=0){
|
|
if(obj.windowList.length!=0){
|
|
obj.windowList.forEach(function(obj,index) {
|
|
obj.windowList.forEach(function(obj,index) {
|
|
- console.log("cardData序号,数值",index,obj);
|
|
|
|
|
|
+ // console.log("cardData序号,数值",index,obj);
|
|
if(parseInt(obj)==xuanzhongchuangkou){//该窗口已播放视频
|
|
if(parseInt(obj)==xuanzhongchuangkou){//该窗口已播放视频
|
|
- console.log("cardData该窗口已播放视频",this,that);
|
|
|
|
|
|
+ // console.log("cardData该窗口已播放视频",this,that);
|
|
that.$refs.hkbigCamara.stopPlayVideo() //暂停播放该视频
|
|
that.$refs.hkbigCamara.stopPlayVideo() //暂停播放该视频
|
|
//删除窗口显示
|
|
//删除窗口显示
|
|
that.bigcardData.data[index].windowList = that.bigcardData.data[index].windowList.filter((element) => element !== that.selectWindow.toString());
|
|
that.bigcardData.data[index].windowList = that.bigcardData.data[index].windowList.filter((element) => element !== that.selectWindow.toString());
|
|
- // if(that.$refs.hkbigCamara.stopPlayVideo()){
|
|
|
|
- // that.bigcardData.data[index].windowList = that.bigcardData.data[index].windowList.filter((element) => element !== that.selectWindow.toString());
|
|
|
|
- // }
|
|
|
|
}
|
|
}
|
|
})
|
|
})
|
|
}
|
|
}
|
|
@@ -373,11 +342,7 @@ export default {
|
|
// }
|
|
// }
|
|
// });
|
|
// });
|
|
this.checkWindow()
|
|
this.checkWindow()
|
|
-
|
|
|
|
- console.log("a", a)
|
|
|
|
- console.log("a.index", a.$index)
|
|
|
|
- console.log(" this.bigcamaraData", this.bigcamaraData)
|
|
|
|
-
|
|
|
|
|
|
+ // console.log("a", a)
|
|
this.bofangyuan.Password = a.row.Password
|
|
this.bofangyuan.Password = a.row.Password
|
|
this.bofangyuan.Port = a.row.Port
|
|
this.bofangyuan.Port = a.row.Port
|
|
this.bofangyuan.Username = a.row.Username
|
|
this.bofangyuan.Username = a.row.Username
|
|
@@ -389,8 +354,7 @@ export default {
|
|
this.bofangyuan.isbofang = 1
|
|
this.bofangyuan.isbofang = 1
|
|
this.issbofang = 1
|
|
this.issbofang = 1
|
|
|
|
|
|
- console.log("this.bigcamaraData.data[a.$index]", this.bigcamaraData.data[a.$index])
|
|
|
|
- console.log("this.bofangyuan", this.bofangyuan)
|
|
|
|
|
|
+ // console.log("this.bofangyuan", this.bofangyuan)
|
|
// 定义一个空数组对象
|
|
// 定义一个空数组对象
|
|
let myArray = [];
|
|
let myArray = [];
|
|
// 将对象添加到数组中
|
|
// 将对象添加到数组中
|
|
@@ -413,7 +377,7 @@ export default {
|
|
this.bigcamaraData.data[a.$index].windowList = this.bigcamaraData.data[a.$index].windowList.filter((element) => element !== this.selectWindow.toString());
|
|
this.bigcamaraData.data[a.$index].windowList = this.bigcamaraData.data[a.$index].windowList.filter((element) => element !== this.selectWindow.toString());
|
|
},
|
|
},
|
|
stopall_bigcamaraData(a){
|
|
stopall_bigcamaraData(a){
|
|
- console.log("windowList",this.bigcamaraData.data[a.$index].windowList)
|
|
|
|
|
|
+ // console.log("windowList",this.bigcamaraData.data[a.$index].windowList)
|
|
this.$refs.hkbigCamara.stopallPlayVideo(this.bigcamaraData.data[a.$index].windowList)
|
|
this.$refs.hkbigCamara.stopallPlayVideo(this.bigcamaraData.data[a.$index].windowList)
|
|
this.bigcamaraData.data[a.$index].windowList.splice(0, this.bigcamaraData.data[a.$index].windowList.length)
|
|
this.bigcamaraData.data[a.$index].windowList.splice(0, this.bigcamaraData.data[a.$index].windowList.length)
|
|
},
|
|
},
|
|
@@ -422,7 +386,7 @@ export default {
|
|
this.bigcardData.data[a.$index].windowList = this.bigcardData.data[a.$index].windowList.filter((element) => element !== this.selectWindow.toString());
|
|
this.bigcardData.data[a.$index].windowList = this.bigcardData.data[a.$index].windowList.filter((element) => element !== this.selectWindow.toString());
|
|
},
|
|
},
|
|
stopall_bigcardData(a){
|
|
stopall_bigcardData(a){
|
|
- console.log("windowList",this.bigcardData.data[a.$index].windowList)
|
|
|
|
|
|
+ // console.log("windowList",this.bigcardData.data[a.$index].windowList)
|
|
this.$refs.hkbigCamara.stopallPlayVideo(this.bigcardData.data[a.$index].windowList)
|
|
this.$refs.hkbigCamara.stopallPlayVideo(this.bigcardData.data[a.$index].windowList)
|
|
this.bigcardData.data[a.$index].windowList.splice(0, this.bigcardData.data[a.$index].windowList.length)
|
|
this.bigcardData.data[a.$index].windowList.splice(0, this.bigcardData.data[a.$index].windowList.length)
|
|
},
|
|
},
|
|
@@ -465,11 +429,7 @@ export default {
|
|
// }
|
|
// }
|
|
// });
|
|
// });
|
|
this.checkWindow()
|
|
this.checkWindow()
|
|
-
|
|
|
|
- console.log("a",a)
|
|
|
|
- console.log("a.index",a.$index)
|
|
|
|
- console.log(" this.bigcardData", this.bigcardData)
|
|
|
|
-
|
|
|
|
|
|
+ // console.log("a",a)
|
|
this.bofangyuan.Password= a.row.Password
|
|
this.bofangyuan.Password= a.row.Password
|
|
this.bofangyuan.Port=a.row.Port
|
|
this.bofangyuan.Port=a.row.Port
|
|
this.bofangyuan.Username=a.row.Username
|
|
this.bofangyuan.Username=a.row.Username
|
|
@@ -480,9 +440,6 @@ export default {
|
|
this.bofangyuan.isbofang=1
|
|
this.bofangyuan.isbofang=1
|
|
this.issbofang=1
|
|
this.issbofang=1
|
|
|
|
|
|
- console.log("this.bigcardData.data[a.$index]",this.bigcardData.data[a.$index])
|
|
|
|
- console.log("this.bofangyuan",this.bofangyuan)
|
|
|
|
-
|
|
|
|
// 定义一个空数组对象
|
|
// 定义一个空数组对象
|
|
let myArray = [];
|
|
let myArray = [];
|
|
// 将对象添加到数组中
|
|
// 将对象添加到数组中
|
|
@@ -501,7 +458,7 @@ export default {
|
|
* @param {String} order 正序还是倒序
|
|
* @param {String} order 正序还是倒序
|
|
*/
|
|
*/
|
|
onSortChange ({ prop, order }) {
|
|
onSortChange ({ prop, order }) {
|
|
- console.log("h3:",prop,order)
|
|
|
|
|
|
+ // console.log("h3:",prop,order)
|
|
this.orderInfo.fieldName = prop;
|
|
this.orderInfo.fieldName = prop;
|
|
this.orderInfo.asc = (order === 'ascending');
|
|
this.orderInfo.asc = (order === 'ascending');
|
|
this.refreshTable();
|
|
this.refreshTable();
|
|
@@ -510,9 +467,6 @@ export default {
|
|
const start = (this.bigcamaraData.currentPage - 1) * this.bigcamaraData.pageSize
|
|
const start = (this.bigcamaraData.currentPage - 1) * this.bigcamaraData.pageSize
|
|
const end = start + this.bigcamaraData.pageSize
|
|
const end = start + this.bigcamaraData.pageSize
|
|
if(this.bigcamaraData.data!=null){
|
|
if(this.bigcamaraData.data!=null){
|
|
- console.log("hhhh1: ",start+"---"+end )
|
|
|
|
- console.log("hhhh2: ",this.bigcamaraData.data )
|
|
|
|
- console.log("hhhh3: ",this.bigcamaraData.data.slice(start, end) )
|
|
|
|
return this.bigcamaraData.data.slice(start, end)
|
|
return this.bigcamaraData.data.slice(start, end)
|
|
}else{
|
|
}else{
|
|
return null
|
|
return null
|
|
@@ -540,26 +494,13 @@ export default {
|
|
*/
|
|
*/
|
|
getTableIndex_bigcamaraData (index) {
|
|
getTableIndex_bigcamaraData (index) {
|
|
let a
|
|
let a
|
|
- console.log("参数20: "+this.bigcamaraData.data,this.bigcardData.data,this.bigData.data)
|
|
|
|
- console.log("参数: "+this.bigcamaraData.paged+" "+this.bigcamaraData.pageSize+" "+index)
|
|
|
|
a=((this.bigcamaraData.currentPage - 1) * this.bigcamaraData.pageSize + (index + 1))
|
|
a=((this.bigcamaraData.currentPage - 1) * this.bigcamaraData.pageSize + (index + 1))
|
|
- console.log(".....a "+a)
|
|
|
|
return a;
|
|
return a;
|
|
},
|
|
},
|
|
onCurrentPageChange_bigcamaraData (newCurrentPage) {
|
|
onCurrentPageChange_bigcamaraData (newCurrentPage) {
|
|
-
|
|
|
|
- console.log("1: ",newCurrentPage )
|
|
|
|
- console.log("2: ",this.bigcamaraData.pageSize )
|
|
|
|
- console.log("3: ",this.oldPage)
|
|
|
|
-
|
|
|
|
this.loadTableDataImpl_bigcamaraData(newCurrentPage, this.bigcamaraData.pageSize).then(() => {//数据加载成功
|
|
this.loadTableDataImpl_bigcamaraData(newCurrentPage, this.bigcamaraData.pageSize).then(() => {//数据加载成功
|
|
-
|
|
|
|
this.bigcamaraData.currentPage = newCurrentPage;
|
|
this.bigcamaraData.currentPage = newCurrentPage;
|
|
this.oldPage = this.bigcamaraData.currentPage-1
|
|
this.oldPage = this.bigcamaraData.currentPage-1
|
|
- console.log("4: ",newCurrentPage)
|
|
|
|
- console.log("5: ",this.bigcamaraData.currentPage)
|
|
|
|
- console.log("6: ",this.oldPage)
|
|
|
|
-
|
|
|
|
if(this.bigcamaraData.data.length <= newCurrentPage*this.bigcamaraData.pageSize ){
|
|
if(this.bigcamaraData.data.length <= newCurrentPage*this.bigcamaraData.pageSize ){
|
|
this.bigcamaraData.paged=true
|
|
this.bigcamaraData.paged=true
|
|
}else{
|
|
}else{
|
|
@@ -568,9 +509,6 @@ export default {
|
|
|
|
|
|
}).catch(() => {//数据加载失败
|
|
}).catch(() => {//数据加载失败
|
|
this.bigcamaraData.currentPage = this.oldPage;
|
|
this.bigcamaraData.currentPage = this.oldPage;
|
|
- console.log("7: ",this.oldPage)
|
|
|
|
- console.log("8: ",this.bigcamaraData.currentPage)
|
|
|
|
-
|
|
|
|
});
|
|
});
|
|
},
|
|
},
|
|
/**
|
|
/**
|
|
@@ -578,7 +516,6 @@ export default {
|
|
* @param {Integer} newPageSize 变化后的每页显示数量
|
|
* @param {Integer} newPageSize 变化后的每页显示数量
|
|
*/
|
|
*/
|
|
onPageSizeChange_bigcamaraData (newPageSize) {
|
|
onPageSizeChange_bigcamaraData (newPageSize) {
|
|
- console.log("hhhh2: ",newPageSize )
|
|
|
|
this.bigcamaraData.pageSize = newPageSize;
|
|
this.bigcamaraData.pageSize = newPageSize;
|
|
this.bigcamaraData.currentPage = 1
|
|
this.bigcamaraData.currentPage = 1
|
|
this.loadTableDataImpl_bigcamaraData(1, newPageSize).then(() => {
|
|
this.loadTableDataImpl_bigcamaraData(1, newPageSize).then(() => {
|
|
@@ -596,8 +533,10 @@ export default {
|
|
* @param {Boolean} reload 是否重新获取数据
|
|
* @param {Boolean} reload 是否重新获取数据
|
|
*/
|
|
*/
|
|
loadTableDataImpl_bigcamaraData (pageNum, pageSize, reload = false) {
|
|
loadTableDataImpl_bigcamaraData (pageNum, pageSize, reload = false) {
|
|
- console.log("11: ",pageNum+"---"+pageSize+"---"+reload)
|
|
|
|
// 判断是否需要重新加载数据
|
|
// 判断是否需要重新加载数据
|
|
|
|
+ if (this.bigcamaraData.data.length == 0 || this.bigcamaraData.length == 0) {
|
|
|
|
+ return Promise.resolve([])
|
|
|
|
+ }
|
|
if (reload || !this.bigcamaraData.data || this.bigcamaraData.data.length === 0) {
|
|
if (reload || !this.bigcamaraData.data || this.bigcamaraData.data.length === 0) {
|
|
// 调用后端接口或其他数据来源获取数据
|
|
// 调用后端接口或其他数据来源获取数据
|
|
// 这里省略具体实现
|
|
// 这里省略具体实现
|
|
@@ -623,54 +562,30 @@ export default {
|
|
return this.bigcamaraData.data.slice((pageNum - 1) * pageSize, pageNum * pageSize);
|
|
return this.bigcamaraData.data.slice((pageNum - 1) * pageSize, pageNum * pageSize);
|
|
});
|
|
});
|
|
} else {// 直接返回已有的任务列表数据
|
|
} else {// 直接返回已有的任务列表数据
|
|
- console.log("112:")
|
|
|
|
- console.log("112_1:",pageNum ,pageSize)
|
|
|
|
- console.log("112_2:",this.bigcamaraData.data.slice((pageNum - 1) * pageSize,pageNum * pageSize))
|
|
|
|
- console.log("112_2:",Promise.resolve(this.bigcamaraData.data.slice((pageNum - 1) * pageSize,pageNum * pageSize)))
|
|
|
|
return Promise.resolve(this.bigcamaraData.data.slice((pageNum - 1) * pageSize, pageNum * pageSize));
|
|
return Promise.resolve(this.bigcamaraData.data.slice((pageNum - 1) * pageSize, pageNum * pageSize));
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
/**
|
|
/**
|
|
* 获取每一行的index信息
|
|
* 获取每一行的index信息
|
|
* @param {Integer} index 表格在本页位置
|
|
* @param {Integer} index 表格在本页位置
|
|
*/
|
|
*/
|
|
getTableIndex_bigcardData (index) {
|
|
getTableIndex_bigcardData (index) {
|
|
let a
|
|
let a
|
|
- console.log("参数10: "+this.bigcamaraData.data,this.bigcardData.data,this.bigData.data)
|
|
|
|
- console.log("参数: "+this.bigcardData.paged+" "+this.bigcardData.pageSize+" "+index)
|
|
|
|
a=((this.bigcardData.currentPage - 1) * this.bigcardData.pageSize + (index + 1))
|
|
a=((this.bigcardData.currentPage - 1) * this.bigcardData.pageSize + (index + 1))
|
|
- console.log(".....a "+a)
|
|
|
|
return a;
|
|
return a;
|
|
},
|
|
},
|
|
onCurrentPageChange_bigcardData (newCurrentPage) {
|
|
onCurrentPageChange_bigcardData (newCurrentPage) {
|
|
-
|
|
|
|
- console.log("1: ",newCurrentPage )
|
|
|
|
- console.log("2: ",this.bigcardData.pageSize )
|
|
|
|
- console.log("3: ",this.oldPage)
|
|
|
|
-
|
|
|
|
this.loadTableDataImpl_bigcardData(newCurrentPage, this.bigcardData.pageSize).then(() => {//数据加载成功
|
|
this.loadTableDataImpl_bigcardData(newCurrentPage, this.bigcardData.pageSize).then(() => {//数据加载成功
|
|
-
|
|
|
|
this.bigcardData.currentPage = newCurrentPage;
|
|
this.bigcardData.currentPage = newCurrentPage;
|
|
this.oldPage = this.bigcardData.currentPage-1
|
|
this.oldPage = this.bigcardData.currentPage-1
|
|
- console.log("4: ",newCurrentPage)
|
|
|
|
- console.log("5: ",this.bigcardData.currentPage)
|
|
|
|
- console.log("6: ",this.oldPage)
|
|
|
|
-
|
|
|
|
if(this.bigcardData.data.length <= newCurrentPage*this.bigcardData.pageSize ){
|
|
if(this.bigcardData.data.length <= newCurrentPage*this.bigcardData.pageSize ){
|
|
this.bigcardData.paged=true
|
|
this.bigcardData.paged=true
|
|
}else{
|
|
}else{
|
|
this.bigcardData.paged=false
|
|
this.bigcardData.paged=false
|
|
}
|
|
}
|
|
-
|
|
|
|
}).catch(() => {//数据加载失败
|
|
}).catch(() => {//数据加载失败
|
|
this.bigcardData.currentPage = this.oldPage;
|
|
this.bigcardData.currentPage = this.oldPage;
|
|
- console.log("7: ",this.oldPage)
|
|
|
|
- console.log("8: ",this.bigcardData.currentPage)
|
|
|
|
-
|
|
|
|
});
|
|
});
|
|
},
|
|
},
|
|
/**
|
|
/**
|
|
@@ -678,7 +593,6 @@ export default {
|
|
* @param {Integer} newPageSize 变化后的每页显示数量
|
|
* @param {Integer} newPageSize 变化后的每页显示数量
|
|
*/
|
|
*/
|
|
onPageSizeChange_bigcardData (newPageSize) {
|
|
onPageSizeChange_bigcardData (newPageSize) {
|
|
- console.log("hhhh2: ",newPageSize )
|
|
|
|
this.bigcardData.pageSize = newPageSize;
|
|
this.bigcardData.pageSize = newPageSize;
|
|
this.bigcardData.currentPage = 1
|
|
this.bigcardData.currentPage = 1
|
|
this.loadTableDataImpl_bigcardData(1, newPageSize).then(() => {
|
|
this.loadTableDataImpl_bigcardData(1, newPageSize).then(() => {
|
|
@@ -696,8 +610,10 @@ export default {
|
|
* @param {Boolean} reload 是否重新获取数据
|
|
* @param {Boolean} reload 是否重新获取数据
|
|
*/
|
|
*/
|
|
loadTableDataImpl_bigcardData (pageNum, pageSize, reload = false) {
|
|
loadTableDataImpl_bigcardData (pageNum, pageSize, reload = false) {
|
|
- console.log("11: ",pageNum+"---"+pageSize+"---"+reload)
|
|
|
|
// 判断是否需要重新加载数据
|
|
// 判断是否需要重新加载数据
|
|
|
|
+ if (this.bigcardData.data.length == 0 || this.bigcardData.length == 0) {
|
|
|
|
+ return Promise.resolve([])
|
|
|
|
+ }
|
|
if (reload || !this.bigcardData.data || this.bigcardData.data.length === 0) {
|
|
if (reload || !this.bigcardData.data || this.bigcardData.data.length === 0) {
|
|
// 调用后端接口或其他数据来源获取数据
|
|
// 调用后端接口或其他数据来源获取数据
|
|
// 这里省略具体实现
|
|
// 这里省略具体实现
|
|
@@ -733,12 +649,7 @@ export default {
|
|
this.subjectName=this.$route.query.subjectInfo1
|
|
this.subjectName=this.$route.query.subjectInfo1
|
|
this.taskId=this.$route.query.subjectInfo2
|
|
this.taskId=this.$route.query.subjectInfo2
|
|
// this.init('步坦协同课目')
|
|
// this.init('步坦协同课目')
|
|
- console.log("0",this.subjectName,this.taskId)
|
|
|
|
- console.log("1",this.$route.query)
|
|
|
|
this.initUrl()
|
|
this.initUrl()
|
|
- // console.log(this.bigcamaraData)
|
|
|
|
- // console.log("...")
|
|
|
|
- // console.log(this.bigcardData)
|
|
|
|
},
|
|
},
|
|
async initUrl() {
|
|
async initUrl() {
|
|
this.bigData.data=[];
|
|
this.bigData.data=[];
|
|
@@ -754,14 +665,8 @@ export default {
|
|
this.SubjectInfo2=params.taskId
|
|
this.SubjectInfo2=params.taskId
|
|
this.SubjectInfo3=res.data.data
|
|
this.SubjectInfo3=res.data.data
|
|
|
|
|
|
-
|
|
|
|
- console.log("cansgu1",params.subjectName,params.taskId)
|
|
|
|
- console.log("res1",res.data.data)
|
|
|
|
-
|
|
|
|
-
|
|
|
|
this.bigcamaraSrc = ["", "", "", "", ""];
|
|
this.bigcamaraSrc = ["", "", "", "", ""];
|
|
- this.bigcamaraName = ["监控名称", "监控名称", "监控名称", "监控名称", "监控名称"];
|
|
|
|
- // console.log()
|
|
|
|
|
|
+ this.bigcamaraNam
|
|
for (let item in res.data.data) {
|
|
for (let item in res.data.data) {
|
|
// this.camaraSrc[index] = res.data.data[item].url;
|
|
// this.camaraSrc[index] = res.data.data[item].url;
|
|
// this.camaraName[index++] = res.data.data[item].name;
|
|
// this.camaraName[index++] = res.data.data[item].name;
|
|
@@ -777,10 +682,8 @@ export default {
|
|
this.bigcamaraData.data.push(data);
|
|
this.bigcamaraData.data.push(data);
|
|
this.bigData.data.push(data);
|
|
this.bigData.data.push(data);
|
|
}
|
|
}
|
|
- console.log('bigcamaraData :>> ', this.bigcamaraData.data);
|
|
|
|
this.bigcamaraData.length=this.bigcamaraData.data.length
|
|
this.bigcamaraData.length=this.bigcamaraData.data.length
|
|
|
|
|
|
-
|
|
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
this.HKbigCamaraShow = true;
|
|
this.HKbigCamaraShow = true;
|
|
}, 800);
|
|
}, 800);
|
|
@@ -793,8 +696,6 @@ export default {
|
|
this.bigcardData.data = [];
|
|
this.bigcardData.data = [];
|
|
const res1 = await request("/dt_screen/rest/v2/video/videos/getSubjectCardUrls", "post", params1, false);
|
|
const res1 = await request("/dt_screen/rest/v2/video/videos/getSubjectCardUrls", "post", params1, false);
|
|
|
|
|
|
- console.log("cansgu2",params.subjectName,params.taskId)
|
|
|
|
- console.log("res1",res1.data.data)
|
|
|
|
let index1 = 0;
|
|
let index1 = 0;
|
|
this.bigcardSrc = ["", "", "", "", ""];
|
|
this.bigcardSrc = ["", "", "", "", ""];
|
|
this.bigcardName = ["监控名称", "监控名称", "监控名称", "监控名称", "监控名称"];
|
|
this.bigcardName = ["监控名称", "监控名称", "监控名称", "监控名称", "监控名称"];
|
|
@@ -813,12 +714,7 @@ export default {
|
|
this.bigcardData.data.push(data);
|
|
this.bigcardData.data.push(data);
|
|
this.bigData.data.push(data);
|
|
this.bigData.data.push(data);
|
|
}
|
|
}
|
|
- console.log('bigcardData :>> ', this.bigcardData.data);
|
|
|
|
- console.log('bigData :>> ', this.bigData.data);
|
|
|
|
-
|
|
|
|
-
|
|
|
|
this.bigcardData.length=this.bigcardData.data.length
|
|
this.bigcardData.length=this.bigcardData.data.length
|
|
-
|
|
|
|
},
|
|
},
|
|
HKbigCamaraInit(){
|
|
HKbigCamaraInit(){
|
|
this.HKbigCamaraShow = true;
|
|
this.HKbigCamaraShow = true;
|
|
@@ -827,10 +723,7 @@ export default {
|
|
|
|
|
|
selectChange(val){
|
|
selectChange(val){
|
|
// 此时 val 为当前对象
|
|
// 此时 val 为当前对象
|
|
- console.log("isInteger1",isInteger(val))
|
|
|
|
- console.log("isInteger2",isInteger(parseInt(val)))
|
|
|
|
this.selectedScreen =parseInt(val)
|
|
this.selectedScreen =parseInt(val)
|
|
-
|
|
|
|
// this.selectedScreen =val
|
|
// this.selectedScreen =val
|
|
console.log(val)
|
|
console.log(val)
|
|
// this.num=this.selectedScreen
|
|
// this.num=this.selectedScreen
|