diff --git a/src/utils/api/reportApi.js b/src/utils/api/reportApi.js index 2053da6..fd10ed7 100644 --- a/src/utils/api/reportApi.js +++ b/src/utils/api/reportApi.js @@ -59,3 +59,13 @@ export function getActivityApi(data) { params: data, }); } + +//图片统计结果 + +export function getPhotoStatApi(data) { + return request({ + url: "/xymanager/getPhotoStat", + method: "post", + data, + }); +} diff --git a/src/views/realTimeMonitor/components/ptzDevice/ptzDraw.vue b/src/views/realTimeMonitor/components/ptzDevice/ptzDraw.vue index 272512e..919a81d 100644 --- a/src/views/realTimeMonitor/components/ptzDevice/ptzDraw.vue +++ b/src/views/realTimeMonitor/components/ptzDevice/ptzDraw.vue @@ -321,7 +321,7 @@ export default { takePicShow: false, takepicform: { selectChannelValue: 1, - presetVal: 0, + presetVal: 1, }, deviceTimer: null, //装置循环获取 deviceNum: 1, //循环次数 @@ -718,8 +718,12 @@ export default { const filteredChannelList = res.data.list.filter( (channel) => channel.type === 1 ); + console.log(this.channelListOption); this.channelListOption = filteredChannelList; this.ytChannel = filteredChannelList[0].channelid; + + this.takepicform.selectChannelValue = + filteredChannelList[0].channelid; //this.channelListOption = res.data.list; }) .catch((err) => { diff --git a/src/views/reportData/index.vue b/src/views/reportData/index.vue index 85e79e3..b2742b4 100644 --- a/src/views/reportData/index.vue +++ b/src/views/reportData/index.vue @@ -29,6 +29,19 @@ :statusFlag="statusFlag" > + @@ -37,16 +50,19 @@ import {} from "@/utils/api/index"; import photostatis from "./photostatis/index"; import equipmentStatus from "./equipmentStatus/index"; +import photoTotal from "./photoTotal/index"; export default { name: "reportData", components: { photostatis, equipmentStatus, + photoTotal, }, data() { return { picSearchFlag: true, statusFlag: false, + pictotalFlag: false, }; }, created() {}, @@ -60,6 +76,7 @@ export default { if (tabName === "照片统计") { this.picSearchFlag = true; this.statusFlag = false; + this.pictotalFlag = false; // 调用照片统计组件的方法 if (this.$refs.photoStatisRef) { this.$refs.photoStatisRef.onSubmit(); // 假设someMethod是你要调用的方法 @@ -67,11 +84,20 @@ export default { } else if (tabName === "设备状态列表") { this.picSearchFlag = false; this.statusFlag = true; + this.pictotalFlag = false; // 调用设备状态列表组件的方法 if (this.$refs.equipmentStatusRef) { this.$refs.equipmentStatusRef.initfn(); // 假设someOtherMethod是你要调用的方法 //this.$refs.equipmentStatusRef.onSubmit(); // 假设someOtherMethod是你要调用的方法 } + } else if (tabName === "图片数量统计") { + this.picSearchFlag = false; + this.statusFlag = false; + this.pictotalFlag = true; + if (this.$refs.photoTotalRef) { + this.$refs.photoTotalRef.initfn(); // 假设someOtherMethod是你要调用的方法 + //this.$refs.equipmentStatusRef.onSubmit(); // 假设someOtherMethod是你要调用的方法 + } } // 可以继续添加其他标签页的逻辑 }, @@ -83,6 +109,10 @@ export default { console.log("bbbbbb"); this.$refs.equipmentStatusRef.showSearch(); }, + handlepicTotal() { + console.log("ccc"); + this.$refs.photoTotalRef.showSearch(); + }, }, }; diff --git a/src/views/reportData/photoTotal/components/ipDialog.vue b/src/views/reportData/photoTotal/components/ipDialog.vue new file mode 100644 index 0000000..c8ac2d7 --- /dev/null +++ b/src/views/reportData/photoTotal/components/ipDialog.vue @@ -0,0 +1,184 @@ + + + diff --git a/src/views/reportData/photoTotal/components/photoList.vue b/src/views/reportData/photoTotal/components/photoList.vue new file mode 100644 index 0000000..b64bf56 --- /dev/null +++ b/src/views/reportData/photoTotal/components/photoList.vue @@ -0,0 +1,235 @@ + + + diff --git a/src/views/reportData/photoTotal/components/photoTimeList.vue b/src/views/reportData/photoTotal/components/photoTimeList.vue new file mode 100644 index 0000000..1d60397 --- /dev/null +++ b/src/views/reportData/photoTotal/components/photoTimeList.vue @@ -0,0 +1,193 @@ + + + + + diff --git a/src/views/reportData/photoTotal/index.vue b/src/views/reportData/photoTotal/index.vue new file mode 100644 index 0000000..b33ccd0 --- /dev/null +++ b/src/views/reportData/photoTotal/index.vue @@ -0,0 +1,526 @@ + + + diff --git a/src/views/reportData/photostatis/components/photoTimeList.vue b/src/views/reportData/photostatis/components/photoTimeList.vue index 077d204..1d60397 100644 --- a/src/views/reportData/photostatis/components/photoTimeList.vue +++ b/src/views/reportData/photostatis/components/photoTimeList.vue @@ -31,7 +31,7 @@