+
-
-
-
-
-
-
-
验收合格
-
验收不合格
-
{{it.checkingDate}}
-
-
- 项目:
- {{it.projectName}}
-
-
-
区域:
-
{{it.checkWorkingPosition}}
+
-
- 验收描述:{{it.intro}}
-
-
-
+
+
@@ -169,31 +167,57 @@ import '../components/background_video'
import '../components/staff-survey-chart'
import '../components/classify-bar'
import '../components/amplify/shipinguanli/amplify-spjk'
+import '../components/project-overview-chart'
+import '../components/rank-chart'
import debounce from 'lodash.debounce'
export default {
data() {
return {
active:3,
- scrollLeft:'',
- nav:0,
- alertorId:0,
- videoList:[],
- scaleData:[],
- majorVideoList:[],
- alertorTypeList:[],
- warningList:[],
- distributeData:{},
- ptz: false,
- autoPlay:true,
- popupUrl:'',
- popupShow:false
-
+ scrollLeft:'',
+ nav:0,
+ alertorId:0,
+ videoList:[],
+ scaleData:[],
+ majorVideoList:[],
+ alertorTypeList:[],
+ warningList:[],
+ distributeData:{},
+ ptz: false,
+ autoPlay:true,
+ popupUrl:'',
+ popupShow:false,
+ majorVideoSize:0,
+ //预警概况
+ overview: 0,
+ overviewInterval: '',
+ overviewTotal: 100,
+ legendOpt1: {
+ icon: "rect",
+ textStyle: {
+ fontSize: 14,
+ rich: {
+ name: {
+ color: "#c3dbfd",
+ padding: [10, 5, 20, 5],
+ },
+ percent: {
+ color: "#4676FD",
+ padding: [10, 5, 20, 5],
+ },
+ },
+ },
+ },
+ overviewText: '项目数量',
+ //原因类型分析
+ availabilityData: [],
+ projectCategoryWidth: 200,
}
},
mounted() {
this.$bus.$on("projectChange", debounce(res => {
this.projectInfo=res;
- this.initVideoMenu();
+ //this.initVideoMenu();
}));
this.$bus.$on("loadProjects", debounce(prjs => {
this.projectInfos = prjs;
@@ -309,18 +333,19 @@ export default {
},
methods: {
initMe(){
- this.projectInfo=this.$root.project||{};
- this.dept=this.$root.dept||{};
- this.projectInfos=this.$root.projects||[];
- this.initVideoMenu();
+ this.projectInfo=this.$root.project;
+ this.dept=this.$root.dept;
+ this.projectInfos=this.$root.projects;
+ //this.initVideoMenu();
},
init(){
this.getAlertorTypeList();
- this.getAiVideoInfoList();
- this.getAnalysisDetailList();
+ this.getAiVideoInfoList("","");
this.getMajorAiVideoInfoList();
- this.getAiVideoAlertorTypeCount();
- this.getAiVideoAlertorTypeWarningCount();
+ this.getAnalysisDetailList();
+ //
+ // this.getAiVideoAlertorTypeCount();
+ // this.getAiVideoAlertorTypeWarningCount();
},
@@ -361,54 +386,100 @@ export default {
// })
this.$api.dict('aibox_alarm_type').then(d => {
this.alertorTypeList = d || [];
+ if(this.alertorTypeList && this.alertorTypeList[0].dictValue!=""){
+ this.alertorTypeList.unshift({dictLabel:"全部",dictValue:""});
+ }
})
},
- getAiVideoInfoList(){
- axios.post(Host + "/api/video/getAiVideoInfoList", {
- projectId:JSON.parse(localStorage.getItem("data")).aqzg,
- alertorId: this.alertorId
- }).then(res => {
- var data = res.data;
- if(data.length < 6){
- var len = 6 - data.length
- for (let i = 0; i < len ; i++) {
- data.push({})
+ getVideoUrl(it){
+ if(it.state){
+ return "http://111.21.209.230:7086/live/cameraid/"+it.videoDvrNumber+"$"+it.passageValue+"/substream/2.m3u8";
+ }else{
+ return null;
+ }
+ },
+ getAiVideoInfoList(passageType,importance){
+ // axios.post(Host + "/api/video/getAiVideoInfoList", {
+ // projectId:JSON.parse(localStorage.getItem("data")).aqzg,
+ // alertorId: this.alertorId
+ // }).then(res => {
+ // var data = res.data;
+ // if(data.length < 6){
+ // var len = 6 - data.length
+ // for (let i = 0; i < len ; i++) {
+ // data.push({})
+ // }
+ // }
+ // this.videoList = data;
+ // }).catch(err => {
+ // })
+ this.$api.aiBoxVideo.getVideoPassage(this.dept?.id||0,this.projectInfo?.projectId||0,passageType,importance).then((response) => {
+ let list = [];
+ if(response.data){
+ response.data.forEach((it) =>{
+ it.surProjectVideoPassageList.forEach(v =>{
+ list.push({videoName:it.videoName,passageName:v.passageName,videoDvrNumber:v.videoDvrNumber,passageValue:v.passageValue,state:true})
+ });
+ });
+ //补全
+ let len = 6 - list.length
+ for(let i=0;i
{
- })
+ });
+
},
getMajorAiVideoInfoList(){
- axios.post(Host + "/api/video/getAiVideoInfoList", {
- projectId: JSON.parse(localStorage.getItem("data")).aqzg,
- majorState: "1",
- alertorId: this.alertorId
- }).then(res => {
- var data = res.data;
- /*if(data.length < 4){
- var len = 4 - data.length
- for (let i = 0; i < len ; i++) {
- data.push({})
+ // axios.post(Host + "/api/video/getAiVideoInfoList", {
+ // projectId: JSON.parse(localStorage.getItem("data")).aqzg,
+ // majorState: "1",
+ // alertorId: this.alertorId
+ // }).then(res => {
+ // var data = res.data;
+ // /*if(data.length < 4){
+ // var len = 4 - data.length
+ // for (let i = 0; i < len ; i++) {
+ // data.push({})
+ // }
+ // }*/
+ // this.majorVideoList = data;
+ // }).catch(err => {
+ // })
+ this.$api.aiBoxVideo.getVideoPassage(this.dept?.id||0,this.projectInfo?.projectId||0,"","Y").then((response) => {
+ let list = [];
+ if(response.data){
+ response.data.forEach((it) =>{
+ it.surProjectVideoPassageList.forEach(v =>{
+ list.push({videoName:it.videoName,passageName:v.passageName,videoDvrNumber:v.videoDvrNumber,passageValue:v.passageValue,state:true})
+ });
+ });
+ this.majorVideoSize = list.length;
+ //补全
+ let len = 3 - list.length;
+ for(let i=0;i {
- })
+ this.majorVideoList = list;
+ }else{
+ this.majorVideoSize=0;
+ for(let i=0;i<6;i++){
+ list.push({state:false});
+ }
+ this.majorVideoList = list;
+ }
+ });
},
getAnalysisDetailList(){
- axios.post(Host + "/api/video/getAnalysisDetailList", {
- projectId: JSON.parse(localStorage.getItem("data")).aqzg,
- dataNum:50
- }).then(res => {
- var warningList = res.data;
- // for (let i = 0; i < 5; i++) {
- // warningList.push(warningList[i])
- // }
- this.warningList = warningList
- rolling("warningListMax","warningListMin")
- }).catch(err => {
- })
+ this.$api.aiBoxVideo.listView(this.dept?.id||0,this.projectInfo?.projectId).then((response) => {
+ this.warningList = response.data||[];
+ });
},
getAiVideoAlertorTypeCount(){
axios.post(Host + "/api/video/getAiVideoAlertorTypeCount", {
@@ -458,7 +529,10 @@ export default {
aiNav(n,id){
this.nav = n
this.alertorId = id;
- this.getAiVideoInfoList();
+ this.getAiVideoInfoList(alertorId,"");
+ },
+ getImageUrl(it){
+ return '/jhapi' + it.imageUrl + ".min.jpg";
},
//预警概况 Echart
warningChart(data,id){
@@ -559,8 +633,45 @@ export default {