2 lines
85 KiB
JavaScript
2 lines
85 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-faf0d758"],{"01e1":function(t,e,a){"use strict";var n=a("e9c0"),o=a.n(n);o.a},"0697":function(t,e,a){"use strict";var n=a("d7f5"),o=a.n(n);o.a},"1e4b":function(t,e,a){"use strict";a.r(e);var n,o,i,l=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"content-box"},[a("div",[a("el-tabs",{attrs:{type:"border-card"},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:t.titName,name:"first"}},[a("div",{staticClass:"mapModuleApp"},[a("iframe",{staticStyle:{width:"100%",height:"100%"},attrs:{id:"mapModule",src:"./VideoWeb/index.html",frameborder:"0",scrolling:"no"}})])]),a("el-tab-pane",{attrs:{label:"数据看板",name:"second"}},[a("dataBoard",{attrs:{activeName:t.activeName}})],1),a("el-tab-pane",{attrs:{label:"分析配置",name:"third"}},[a("analysisConfiguration",{attrs:{analysisConfigurationdata:t.analysisConfigurationdata}})],1),a("el-tab-pane",{attrs:{label:"分析状态",name:"fourth"}},[a("editModal")],1),a("el-tab-pane",{attrs:{label:"存储",name:"five"}},[t._v("存储")])],1)],1),a("el-drawer",{directives:[{name:"alterELDialogMarginTop",rawName:"v-alterELDialogMarginTop",value:{marginTop:"0vh"},expression:"{marginTop:'0vh'}"}],ref:"drawer",staticClass:"new-dialog",attrs:{visible:t.dialogFormVisible,direction:"btt","custom-class":"demo-drawer",modal:!1,"close-on-click-modal":!1,width:"100%",wrapperClosable:!1,"with-header":!1,size:"100%"},on:{"update:visible":function(e){t.dialogFormVisible=e}}},[a("div",{staticClass:"formBox"},[a("el-form",{ref:"form",attrs:{model:t.form,"label-width":"80px",inline:!0}},[a("el-form-item",{attrs:{label:"组件名称"}},[a("el-input",{model:{value:t.form.name,callback:function(e){t.$set(t.form,"name",e)},expression:"form.name"}})],1),"断面"==t.form.type?a("el-form-item",{attrs:{label:"断面方向"}},[a("el-select",{attrs:{placeholder:"请选择类型"},model:{value:t.form.Direction,callback:function(e){t.$set(t.form,"Direction",e)},expression:"form.Direction"}},[a("el-option",{attrs:{label:"正向",value:"正向"}}),a("el-option",{attrs:{label:"反向",value:"反向"}}),a("el-option",{attrs:{label:"双向",value:"双向"}})],1)],1):t._e(),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.onSubmit(t.form)}}},[t._v("确认")]),a("el-button",{on:{click:function(e){return t.closeFigure(t.form)}}},[t._v("取消")])],1)],1)],1)]),a("el-dialog",{attrs:{title:t.componentTitle+"指标组件",width:"40%",visible:t.component},on:{"update:visible":function(e){t.component=e}}},[a("el-form",{ref:"form",attrs:{model:t.componentForm,"label-width":"150px"},on:{close:function(e){return t.closeComponentForm()}}},[a("el-form-item",{attrs:{label:"名称:"}},[a("el-input",{model:{value:t.componentForm.componentName,callback:function(e){t.$set(t.componentForm,"componentName",e)},expression:"componentForm.componentName"}})],1),"类型"==t.componentForm.componentType?a("el-form-item",{attrs:{label:"类型筛选:"}},[a("el-checkbox-group",{on:{change:t.handleTypeData},model:{value:t.componentForm.type,callback:function(e){t.$set(t.componentForm,"type",e)},expression:"componentForm.type"}},t._l(t.typeData,(function(e){return a("el-checkbox",{key:e,attrs:{label:e}},[t._v(t._s(e))])})),1)],1):t._e(),"OD"!=t.componentForm.componentType?a("el-form-item",{attrs:{label:"数值筛选:"}},[a("el-input-number",{model:{value:t.componentForm.startValue,callback:function(e){t.$set(t.componentForm,"startValue",e)},expression:"componentForm.startValue"}}),a("el-input-number",{staticStyle:{"margin-left":"5%"},model:{value:t.componentForm.endValue,callback:function(e){t.$set(t.componentForm,"endValue",e)},expression:"componentForm.endValue"}})],1):t._e(),a("el-form-item",{attrs:{label:"时间模式:"}},[a("el-select",{attrs:{placeholder:"请选择时间模式"},model:{value:t.componentForm.timeMode,callback:function(e){t.$set(t.componentForm,"timeMode",e)},expression:"componentForm.timeMode"}},[a("el-option",{attrs:{label:"触发",value:"touch"}}),"排队数"!=t.componentForm.componentType&&"检测数"!=t.componentForm.componentType&&"延误"!=t.componentForm.componentType&&"拥堵"!=t.componentForm.componentType?a("el-option",{attrs:{label:"周期时刻",value:"timeing"}}):t._e(),"OD"!=t.componentForm.componentType?a("el-option",{attrs:{label:"周期统计",value:"date"}}):t._e()],1)],1),a("el-form-item",{attrs:{label:"周期间隔:"}},[a("el-slider",{model:{value:t.componentForm.cycleInterval,callback:function(e){t.$set(t.componentForm,"cycleInterval",e)},expression:"componentForm.cycleInterval"}}),a("el-select",{attrs:{placeholder:"请选择单位"},model:{value:t.componentForm.company,callback:function(e){t.$set(t.componentForm,"company",e)},expression:"componentForm.company"}},t._l(t.timeSelect,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1),"OD"==t.componentForm.componentType?a("el-form-item",{attrs:{label:"起点:"}},[a("el-checkbox-group",{on:{change:t.handleCheckedStartSection},model:{value:t.componentForm.startSection,callback:function(e){t.$set(t.componentForm,"startSection",e)},expression:"componentForm.startSection"}},t._l(t.sectionals,(function(e){return a("el-checkbox",{key:e.graphicId,attrs:{label:e.graphicName}},[t._v(t._s(e.graphicName))])})),1)],1):t._e(),"OD"==t.componentForm.componentType?a("el-form-item",{attrs:{label:"终点:"}},[a("el-checkbox-group",{on:{change:t.handleCheckedendSection},model:{value:t.componentForm.endSection,callback:function(e){t.$set(t.componentForm,"endSection",e)},expression:"componentForm.endSection"}},t._l(t.sectionals,(function(e){return a("el-checkbox",{key:e.graphicId,attrs:{label:e.graphicName}},[t._v(t._s(e.graphicName))])})),1)],1):t._e(),"OD"!=t.componentForm.componentType?a("el-form-item",{attrs:{label:"展现形式:"}},[a("el-checkbox-group",{on:{change:t.handlePresentation},model:{value:t.componentForm.presentation,callback:function(e){t.$set(t.componentForm,"presentation",e)},expression:"componentForm.presentation"}},[a("el-checkbox",{attrs:{label:"数值",name:"presentation"}}),"拥堵"!=t.componentForm.componentType?a("el-checkbox",{attrs:{label:"表格",name:"presentation"}}):t._e(),a("el-checkbox",{attrs:{label:"时间曲线图",name:"type"}}),"类型"==t.componentForm.componentType?a("el-checkbox",{attrs:{label:"直方图",name:"presentation"}}):t._e(),"类型"==t.componentForm.componentType?a("el-checkbox",{attrs:{label:"饼状图",name:"presentation"}}):t._e(),"拥堵"!=t.componentForm.componentType?a("el-checkbox",{attrs:{label:"均值图",name:"presentation"}}):t._e()],1)],1):t._e(),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.onSubmitComponent(t.componentForm)}}},[t._v("确认")]),a("el-button",{on:{click:function(e){return t.closeComponent(t.componentForm)}}},[t._v("取消")])],1)],1)],1)],1)},s=[],r=(a("ac6a"),a("28a5"),a("34ef"),a("7f7f"),a("8cce")),c=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"analysis"},[a("div",{staticClass:"top",staticStyle:{"margin-top":"10px"}},[a("div",{staticClass:"section"},[t._e(),a("el-form",{ref:"form",staticStyle:{"margin-top":"15px"},attrs:{model:t.sizeForm,"label-width":"fit-content"}},[t._e(),t._e(),a("div",{staticClass:"warning",staticStyle:{"margin-top":"15px"},on:{click:function(e){return t.handleContent("postion")}}},[a("i",{class:0==t.contentShow.postion?"el-icon-arrow-right":"el-icon-arrow-down",staticStyle:{"font-weight":"600","font-size":"18px","margin-right":"5px"}}),a("p",{staticClass:"board-title"},[t._v("相机位置")]),a("i",{staticClass:"el-icon-warning",staticStyle:{color:"#409eff",margin:"0 3px 0 10px"}}),t._v(" 在 WGS84 坐标系中输入相机位置\n ")]),t.contentShow.postion?a("el-form-item",{attrs:{label:"相机位置:"}},[a("el-input",{staticStyle:{width:"150px"},attrs:{size:"small",placeholder:"经度"},model:{value:t.sizeForm.longitude,callback:function(e){t.$set(t.sizeForm,"longitude",e)},expression:"sizeForm.longitude"}}),a("el-input",{staticStyle:{width:"150px","margin-left":"20px"},attrs:{size:"small",placeholder:"纬度"},model:{value:t.sizeForm.latitude,callback:function(e){t.$set(t.sizeForm,"latitude",e)},expression:"sizeForm.latitude"}})],1):t._e()],1),t.contentShow.postion?a("div",{staticStyle:{"margin-top":"15px"}},[a("el-button",{staticStyle:{width:"150px"},attrs:{type:"primary",size:"small"},on:{click:function(e){return t.handSaveitude()}}},[t._v("保存")])],1):t._e()],1)]),a("div",{staticClass:"dataBoard"},[a("div",{staticClass:"section"},[a("div",{staticClass:"warning",on:{click:function(e){return t.handleContent("coordinate")}}},[a("i",{class:0==t.contentShow.coordinate?"el-icon-arrow-right":"el-icon-arrow-down",staticStyle:{"font-weight":"600","font-size":"18px","margin-right":"5px"}}),a("p",{staticClass:"board-title"},[t._v("坐标转换")]),a("i",{staticClass:"el-icon-warning",staticStyle:{color:"#409eff",margin:"0 3px 0 10px"}}),t._v("通过将图像坐标系转换为物理坐标系,地理参考使您能够将像素测量转换为真实速度和距离。\n ")]),t.contentShow.coordinate?a("el-form",{ref:"form",attrs:{model:t.coordinateForm,"label-width":"fit-content"}},[a("el-form-item",{staticClass:"otherThings",attrs:{label:"UTM区:"}},[a("el-input-number",{attrs:{"controls-position":"right",precision:0,size:"small",min:1,max:60},model:{value:t.coordinateForm.num,callback:function(e){t.$set(t.coordinateForm,"num",e)},expression:"coordinateForm.num"}}),a("div",{staticClass:"warning",staticStyle:{margin:"0px"}},[a("i",{staticClass:"el-icon-warning",staticStyle:{color:"#409eff",margin:"0 3px 0 10px"}}),t._v("地理参照允许测量物理速度和静态图像源的距离,值范围1-60。\n ")])],1),a("el-form-item",{attrs:{label:"半球:"}},[a("el-select",{attrs:{size:"small",placeholder:"请选择"},model:{value:t.coordinateForm.value,callback:function(e){t.$set(t.coordinateForm,"value",e)},expression:"coordinateForm.value"}},t._l(t.options,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1),a("el-form-item",{attrs:{label:"坐标转换:"}},[a("el-radio-group",{model:{value:t.coordinateForm.coordinateTransformation,callback:function(e){t.$set(t.coordinateForm,"coordinateTransformation",e)},expression:"coordinateForm.coordinateTransformation"}},[a("el-radio",{attrs:{label:"WGS-84坐标系"}}),a("el-radio",{attrs:{label:"其他"}})],1)],1),a("div",{staticStyle:{width:"100%",height:"702px","margin-bottom":"10px"}},[a("iframe",{ref:"analysisWeb",staticStyle:{width:"100%",height:"100%"},attrs:{src:"./analysisWeb/index.html",frameborder:"0"}})]),a("div",{staticClass:"warning"},[a("el-button",{staticStyle:{color:"#fffff"},attrs:{size:"mini",type:"primary"},on:{click:function(e){t.dialogVisible=!0}}},[t._v("新增点\n ")]),a("i",{staticClass:"el-icon-warning",staticStyle:{color:"#409eff",margin:"0 3px 0 10px"}}),t._v("请至少配置4个点,不满足4个点会没有数据。\n ")],1),a("el-table",{attrs:{border:"",data:t.coordinateTableData}},[a("template",{slot:"empty"},[a("el-empty",{attrs:{"image-size":100,description:"暂无数据"}})],1),a("el-table-column",{attrs:{prop:"pointName",label:"点名称",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-input",{attrs:{disabled:"1"==e.row.btnShow,maxlength:"30",placeholder:"请输入"},model:{value:e.row.pointName,callback:function(a){t.$set(e.row,"pointName",a)},expression:"scope.row.pointName"}})]}}],null,!1,1287560117)}),a("el-table-column",{attrs:{prop:"longitude",label:"经度",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-input",{attrs:{disabled:"1"==e.row.btnShow,maxlength:"20",placeholder:"请输入"},model:{value:e.row.longitude,callback:function(a){t.$set(e.row,"longitude",a)},expression:"scope.row.longitude"}})]}}],null,!1,2855063516)}),a("el-table-column",{attrs:{prop:"latitude",label:"纬度",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-input",{attrs:{disabled:"1"==e.row.btnShow,maxlength:"20",placeholder:"请输入"},model:{value:e.row.latitude,callback:function(a){t.$set(e.row,"latitude",a)},expression:"scope.row.latitude"}})]}}],null,!1,4154330543)}),a("el-table-column",{attrs:{label:"操作",align:"center","class-name":"small-padding fixed-width"},scopedSlots:t._u([{key:"default",fn:function(e){return["1"==e.row.btnShow?a("el-button",{staticStyle:{color:"#2090c1"},attrs:{size:"mini",type:"text"},on:{click:function(a){return t.handleExit(e.row,e.$index)}}},[t._v("编辑\n ")]):a("el-button",{staticStyle:{color:"#2090c1"},attrs:{size:"mini",type:"text"},on:{click:function(a){return t.handleconfirm(e.row,e.$index)}}},[t._v("确认编辑\n ")]),a("el-button",{staticStyle:{color:"#f56c6c"},attrs:{size:"mini",type:"text"},on:{click:function(a){return t.handleDeleteDian(e.row)}}},[t._v("删除\n ")])]}}],null,!1,337464026)})],2),a("div",{staticStyle:{"margin-top":"15px"}},[a("el-button",{staticStyle:{width:"150px"},attrs:{type:"primary",disabled:t.coordinateTableData.length<4,size:"small"},on:{click:function(e){return t.handlePos()}}},[t._v("保存")])],1)],1):t._e()],1)]),t._e(),t._e(),t._e(),a("div",{staticClass:"dataBoard"},[a("div",{staticClass:"section"},[a("div",{staticClass:"warning",on:{click:function(e){return t.handleContent("plate")}}},[a("i",{class:0==t.contentShow.plate?"el-icon-arrow-right":"el-icon-arrow-down",staticStyle:{"font-weight":"600","font-size":"18px","margin-right":"5px"}}),a("p",{staticClass:"board-title"},[t._v("车牌识别")]),a("i",{staticClass:"el-icon-warning",staticStyle:{color:"#409eff",margin:"0 3px 0 10px"}}),t._v("车牌识别开关。牌照信息表示与目标属性。(断面号牌,与断面设置关联)\n ")]),t.contentShow.plate?a("el-form",{ref:"form",attrs:{model:t.licensePlateform,"label-width":"fit-content"}},[a("el-form-item",{attrs:{label:"车牌识别开关:"}},[a("el-switch",{attrs:{"active-value":"1","inactive-value":"0"},on:{change:function(e){return t.changeChepai(e)}},model:{value:t.licensePlateform.licensePlateClose,callback:function(e){t.$set(t.licensePlateform,"licensePlateClose",e)},expression:"licensePlateform.licensePlateClose"}})],1),t._e(),t._e(),t._e()],1):t._e()],1)]),a("div",{staticClass:"dataBoard"},[a("div",{staticClass:"section"},[a("div",{staticClass:"warning",on:{click:function(e){return t.handleContent("parking")}}},[a("i",{class:0==t.contentShow.parking?"el-icon-arrow-right":"el-icon-arrow-down",staticStyle:{"font-weight":"600","font-size":"18px","margin-right":"5px"}}),a("p",{staticClass:"board-title"},[t._v("停车状态")]),a("i",{staticClass:"el-icon-warning",staticStyle:{color:"#409eff",margin:"0 3px 0 10px"}}),t._v("位移、速度,例如位移<δ,速度<v,则判断车辆停车\n ")]),t.contentShow.parking?a("el-form",{staticClass:"demo-form-inline",attrs:{inline:!0,model:t.stopStateform,"label-width":"fit-content"}},[a("el-form-item",{staticStyle:{"margin-right":"10px"},attrs:{label:"位移:"}},[a("el-input-number",{attrs:{min:0,max:3e3,label:"位移"},on:{change:t.handleChange},model:{value:t.stopStateform.displacement,callback:function(e){t.$set(t.stopStateform,"displacement",e)},expression:"stopStateform.displacement"}})],1),a("el-form-item",{staticStyle:{"margin-right":"10px"},attrs:{label:"速度:"}},[a("el-input-number",{attrs:{min:0,max:3e3,label:"速度"},on:{change:t.handleChange},model:{value:t.stopStateform.speed,callback:function(e){t.$set(t.stopStateform,"speed",e)},expression:"stopStateform.speed"}})],1),t._e()],1):t._e(),t.contentShow.parking?a("div",{staticStyle:{"margin-top":"15px"}},[a("el-button",{staticStyle:{width:"150px"},attrs:{type:"primary",size:"small"},on:{click:function(e){return t.handleParking()}}},[t._v("保存")])],1):t._e()],1)]),t._e(),a("el-dialog",{attrs:{title:"新增点",visible:t.dialogVisible,width:"30%"},on:{"update:visible":function(e){t.dialogVisible=e}}},[a("el-form",{ref:"addform",attrs:{rules:t.formRules,model:t.addDianForm,"label-position":"left","label-width":"85px"}},[a("el-form-item",{staticStyle:{"margin-bottom":"15px"},attrs:{label:"点名称:",prop:"pointName"}},[a("el-col",{attrs:{span:16}},[a("el-input",{attrs:{placeholder:"请输入点名称"},on:{blur:function(e){return t.phoneChange(e)}},model:{value:t.addDianForm.pointName,callback:function(e){t.$set(t.addDianForm,"pointName",e)},expression:"addDianForm.pointName"}})],1)],1),a("el-form-item",{staticStyle:{"margin-bottom":"15px"},attrs:{label:"经度:",prop:"longitude"}},[a("el-col",{attrs:{span:16}},[a("el-input",{attrs:{oninput:"value=value.replace(/[^0-9.]/g,'')",placeholder:"请输入经度"},model:{value:t.addDianForm.longitude,callback:function(e){t.$set(t.addDianForm,"longitude",e)},expression:"addDianForm.longitude"}})],1)],1),a("el-form-item",{attrs:{label:"纬度:",prop:"latitude"}},[a("el-col",{attrs:{span:16}},[a("el-input",{attrs:{oninput:"value=value.replace(/[^0-9.]/g,'')",placeholder:"请输入纬度"},model:{value:t.addDianForm.latitude,callback:function(e){t.$set(t.addDianForm,"latitude",e)},expression:"addDianForm.latitude"}})],1)],1)],1),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){t.dialogVisible=!1}}},[t._v("取 消")]),a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.handleDian("addform")}}},[t._v("确 定")])],1)],1)],1)},d=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"warning"},[a("p",{staticClass:"board-title"},[t._v("车道识别配置")]),a("i",{staticClass:"el-icon-warning",staticStyle:{color:"#409eff",margin:"0 3px 0 10px"}}),t._v("在视频/动图上设置进口出口道\n ")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"warning"},[a("p",{staticClass:"board-title"},[t._v("识别区域")]),a("i",{staticClass:"el-icon-warning",staticStyle:{color:"#409eff",margin:"0 3px 0 10px"}}),t._v("您可以自定义进行视频分析的区域,区域之外的部分将被忽略。此功能可以帮助您检测和跟踪高分辨率视频特定部分的较小对象,实现检测器的数字变焦功能。\n ")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"warning"},[a("p",{staticClass:"board-title"},[t._v("轨迹平滑")]),a("i",{staticClass:"el-icon-warning",staticStyle:{color:"#409eff",margin:"0 3px 0 10px"}}),t._v("为轨迹预测滤波算法定义细化轨迹的时间窗口。数值越小,延迟越小,适用于实时性要求高的场景;数值越大,轨迹的连续性越好,目标即使越过一些障碍也不容易丢失。\n ")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"warning"},[a("p",{staticClass:"board-title"},[t._v("通信设置")]),a("i",{staticClass:"el-icon-warning",staticStyle:{color:"#409eff",margin:"0 3px 0 10px"}}),t._v("更新频率可以根据链路带宽进行设置。\n ")])}],p=a("ade3"),m=(a("6b54"),a("e7fc")),u=a.n(m),g=a("365c"),h={props:{analysisConfigurationdata:{default:function(){return!1},type:Object,required:!0}},data:function(){return{unityDone:!1,oldName:"",formRules:{pointName:[{required:!0,message:"请输入点名称",trigger:"blur"}],longitude:[{required:!0,message:"请输入经度",trigger:"blur"}],latitude:[{required:!0,message:"请输入纬度",trigger:"blur"}]},addDianForm:{pointName:"",longitude:"",latitude:""},dialogVisible:!1,coordinateTransformationId:"",AnalysisSettingId:"",contentShow:{postion:!0,coordinate:!1,plate:!0,parking:!0},sizeForm:{name:"",region:"",date1:"",date2:"",delivery:!1,type:[],resource:"",desc:"",longitude:"",latitude:""},formInline:{user:"",region:""},topForm:{},coordinateForm:{coordinateClose:!1,model:"Georeferencing",coordinateTransformation:"84坐标系",value:"0",num:1},options:[{value:"南",label:"南"},{value:"北",label:"北"}],coordinateTableData:[{name:"11",longitude:"111",inIp:"01",latitude:""},{name:"22",longitude:"222",inIp:"02",latitude:""},{name:"33",longitude:"333",inIp:"03",latitude:""}],laneform:{laneClose:!1,areaDetector:!1,sectionDetector:!1},identificationAreaform:{identificationAreaClose:!1},trajectorySmoothingform:{trajectorySmoothingClose:!1,time:""},licensePlateform:{licensePlateClose:0},licensePlateTableData:[{thresholdValue:"11",sectionPlate:"111",inIp:"01",setAssociation:""},{thresholdValue:"22",sectionPlate:"222",inIp:"02",setAssociation:""},{thresholdValue:"33",sectionPlate:"333",inIp:"03",setAssociation:""}],stopStateform:{displacement:"2000",speed:"2000",acceleration:"2000"},communicationform:{type:"快速-用于高带宽连接",renewalFrequency:""},form:{name:"",region:"",date1:"",date2:"",delivery:!1,type:[],resource:"",desc:""},tableData:[{name:"11",inPort:"111",inIp:"01"},{name:"22",inPort:"222",inIp:"02"},{name:"33",inPort:"333",inIp:"03"}],internalIpList:[],fileList:[]}},watch:{analysisConfigurationdata:{handler:function(t,e){console.log("old",t),console.log("newV",e),null!=e&&1==this.unityDone&&(console.log(e,"yyy"),this.$refs.analysisWeb.contentWindow.getDestination(e))}}},created:function(){var t=this;Object(g["d"])({VideoId:this.$route.query.id}).then((function(e){t.sizeForm.longitude=e.data.data.cameraPositionLongitude,t.sizeForm.latitude=e.data.data.cameraPositionLatitude,t.coordinateForm.num="-1"==e.data.data.utmArea?"":e.data.data.utmArea,t.coordinateForm.value=e.data.data.hemisphere,t.coordinateForm.coordinateTransformation=e.data.data.coordinateTransformation,t.coordinateTableData=null!=e.data.data.pointData?e.data.data.pointData:[],t.licensePlateform.licensePlateClose=e.data.data.licensePlateRecognitionSwitch,t.stopStateform.displacement=e.data.data.parkingDisplacement,t.stopStateform.speed=e.data.data.parkingSpeed,t.AnalysisSettingId=e.data.data.analysisSettingId,t.coordinateTransformationId=e.data.data.coordinateTransformationId,t.coordinateTableData.forEach((function(t){t.btnShow="1"}))}))},mounted:function(){window.OnSceneload=this.OnSceneload,window.saveCoordinate=this.saveCoordinate},methods:(n={saveCoordinate:function(t){console.log(t),this.coordinateTableData.forEach((function(e){e.pointName==t.pointName&&(e.imageXCoordinate=t.imageXCoordinate,e.imageYCoordinate=t.imageYCoordinate)}))},handleExit:function(t,e){var a=this;this.oldName=t.pointName,this.$refs.analysisWeb.contentWindow.exitPoint(t.pointName),this.coordinateTableData.forEach((function(e,n){t.pointName==e.pointName&&(e.btnShow="2",a.$set(a.coordinateTableData,n,e))}))},handleconfirm:function(t,e){var a=this,n=this.oldName+","+t.pointName;this.$refs.analysisWeb.contentWindow.saveDian(n),this.coordinateTableData.forEach((function(e,n){t.pointName==e.pointName&&(e.btnShow="1",a.$set(a.coordinateTableData,n,e))}))},OnSceneload:function(t){this.$refs.analysisWeb.contentWindow.getDianwei(this.$route.query.id),this.unityDone=!0},handleDeleteDian:function(t){var e=this;this.$confirm("此操作将删除该点位, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){e.coordinateTableData=e.coordinateTableData.filter((function(e){return e.pointName!=t.pointName})),e.$refs.analysisWeb.contentWindow.deletePoint(t.pointName),e.$message({type:"success",message:"删除成功!"})})).catch((function(){e.$message({type:"info",message:"已取消删除"})}))},handleDian:function(t){var e=this;this.$refs[t].validate((function(t){if(!t)return!1;console.log(e.addDianForm,"addDianForm,,,"),e.addDianForm.btnShow="2",e.oldName=e.addDianForm.pointName,e.coordinateTableData.unshift(e.addDianForm),e.dialogVisible=!1,e.$refs.analysisWeb.contentWindow.setPOS(e.addDianForm.pointName),e.addDianForm={}}))},phoneChange:function(t){console.log("e",t.currentTarget.value)},handleClose:function(t){this.$confirm("确认关闭?").then((function(e){t()})).catch((function(t){}))},handlePos:function(){var t=this,e={CoordinateTransformationId:this.coordinateTransformationId,UTMArea:""==this.coordinateForm.num?"-1":this.coordinateForm.num,Hemisphere:this.coordinateForm.value,CoordinateTransformation:this.coordinateForm.coordinateTransformation,PointData:this.coordinateTableData};console.log("params",JSON.stringify(e)),Object(g["j"])(e).then((function(e){t.$message({type:"success",message:e.data.msg})}))},handleParking:function(){var t=this,e=new URLSearchParams;e.append("AnalysisSettingId",this.AnalysisSettingId),e.append("ParkingDisplacement",this.stopStateform.displacement),e.append("ParkingSpeed",this.stopStateform.speed),Object(g["l"])(e).then((function(e){t.$message({type:"success",message:e.data.msg})}))},changeChepai:function(t){var e=this;console.log(t,"val111");var a=new URLSearchParams;a.append("AnalysisSettingId",this.AnalysisSettingId),a.append("LicensePlateRecognitionSwitch",t),Object(g["k"])(a).then((function(t){e.$message({type:"success",message:t.data.msg})}))},handSaveitude:function(){var t=this,e=new URLSearchParams;e.append("AnalysisSettingId",this.AnalysisSettingId),e.append("CameraPositionLongitude",this.sizeForm.longitude),e.append("CameraPositionLatitude",this.sizeForm.latitude),Object(g["i"])(e).then((function(e){t.$message({type:"success",message:e.data.msg})}))},handleContent:function(t){"postion"==t&&(this.contentShow.postion=!this.contentShow.postion),"coordinate"==t&&(this.contentShow.coordinate=!this.contentShow.coordinate),"plate"==t&&(this.contentShow.plate=!this.contentShow.plate),"parking"==t&&(this.contentShow.parking=!this.contentShow.parking)},handleChange:function(t){console.log(t)},load:function(){var t=this;console.log("1111");var e=document.getElementById("mapModuleTop");console.log("iframe",e),e.onload=function(){t.testMqtt()}},testMqtt:function(){console.log("222"),this.getDataByMqtt()}},Object(p["a"])(n,"handleChange",(function(){})),Object(p["a"])(n,"handleagain",(function(){var t=this;this.$confirm("此操作将重新启动系统, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){})).catch((function(){t.$message({type:"info",message:"已取消"})}))})),Object(p["a"])(n,"handleReset",(function(){var t=this;this.$confirm("此操作将重置默认值, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){})).catch((function(){t.$message({type:"info",message:"已取消重置"})}))})),Object(p["a"])(n,"handleRemove",(function(t,e){console.log(t,e)})),Object(p["a"])(n,"handlePreview",(function(t){console.log(t)})),Object(p["a"])(n,"handleExceed",(function(t,e){this.$message.warning("当前限制选择 3 个文件,本次选择了 ".concat(t.length," 个文件,共选择了 ").concat(t.length+e.length," 个文件"))})),Object(p["a"])(n,"beforeRemove",(function(t,e){return this.$confirm("确定移除 ".concat(t.name,"?"))})),Object(p["a"])(n,"getReverseShellList",(function(){this.tableData.unshift({name:"",inIp:"",inPort:null,outPort:null,enabled:null,isEdit:!0})})),Object(p["a"])(n,"handleAdd",(function(t){for(var e in t)if(""===t[e]||null===t[e]||"undefined"===typeof t[e])return void this.msgError("Please complete the information");t.name,t.inIp;this.getReverseShellList()})),Object(p["a"])(n,"handleUpdate",(function(t){if(t.isEdit){for(var e in t)if(""===t[e]||null===t[e]||"undefined"===typeof t[e])return void this.msgError("Please complete the information");t.name,t.inIp,parseInt(t.inPort),parseInt(t.outPort),t.enabled}else t.isEdit=!0})),Object(p["a"])(n,"handleDelete",(function(t){t.isEdit?this.getReverseShellList():this.$confirm("Are you sure to delete reverse shell?","warning",{confirmButtonText:"Sure",cancelButtonText:"Cancel",type:"warning"}).then((function(){})).catch((function(){}))})),Object(p["a"])(n,"getDataByMqtt",(function(t,e,a){var n=this,o="test_id_"+String((new Date).getTime()),i="ws://172.16.1.168:10087/",l={keepalive:60,username:"admin",password:"123456",clientId:o,protocolId:"MQTT",protocolVersion:4,clean:!0,reconnectPeriod:2e3,connectTimeout:3e4,will:{topic:"img1",payload:"[MQTT-TEST] 遗嘱消息:连接异常断开!",qos:0,retain:!1}};void 0==this.mqttClient&&(this.mqttClient=u.a.connect(i,l),this.mqttClient.on("error",(function(t){console.log("[MQTT-TEST] 连接错误:",t),n.mqttClient.end()})),this.mqttClient.on("reconnect",(function(t){})),this.mqttClient.on("connect",(function(t){n.mqttClient.subscribe("img0",{qos:0}),n.mqttClient.subscribe("img1",{qos:0}),n.mqttClient.subscribe("img2",{qos:0}),n.mqttClient.subscribe("img3",{qos:0}),n.mqttClient.subscribe("img4",{qos:0}),n.mqttClient.subscribe("img5",{qos:0}),n.mqttClient.subscribe("stream0",{qos:0}),n.mqttClient.subscribe("stream1",{qos:0}),n.mqttClient.subscribe("stream2",{qos:0}),n.mqttClient.subscribe("stream3",{qos:0}),n.mqttClient.subscribe("stream4",{qos:0}),n.mqttClient.subscribe("stream5",{qos:0})})),this.mqttClient.on("message",(function(t,e,a){if(-1!=t.indexOf("img0")){var o=new TextDecoder,i=new Uint8Array(e),l=o.decode(i);JSON.parse(l)}else if(-1!=t.indexOf("img1"))try{var s=new TextDecoder,r=new Uint8Array(e),c=s.decode(r),d=JSON.parse(c);console.log("msg",d),n.imgUrl1="data:image/png;base64,"+d.pic,console.log("imageUrl",imageUrl)}catch(q){var p="arraybuffer",m=new Blob([e],{type:p}),u=(window.URL||window.webkitURL).createObjectURL(m);console.log("imageUrl",u)}else if(-1!=t.indexOf("img2"))try{var g=new TextDecoder,h=new Uint8Array(e),f=g.decode(h),b=JSON.parse(f);console.log("msg",b),n.imgUrl2="data:image/png;base64,"+b.pic,console.log("imageUrl",imageUrl)}catch(W){var y="arraybuffer",v=new Blob([e],{type:y}),w=(window.URL||window.webkitURL).createObjectURL(v);console.log("imageUrl",w)}else if(-1!=t.indexOf("img3"))try{var S=new TextDecoder,C=new Uint8Array(e),x=S.decode(C),_=JSON.parse(x);console.log("msg",_),n.imgUrl3="data:image/png;base64,"+_.pic,console.log("imageUrl",imageUrl)}catch(B){var T="arraybuffer",F=new Blob([e],{type:T}),k=(window.URL||window.webkitURL).createObjectURL(F);console.log("imageUrl",k)}else if(-1!=t.indexOf("img4"))try{var I=new TextDecoder,D=new Uint8Array(e),N=I.decode(D),$=JSON.parse(N);console.log("msg",$),n.imgUrl4="data:image/png;base64,"+$.pic,console.log("imageUrl",imageUrl)}catch(G){var O="arraybuffer",E=new Blob([e],{type:O}),A=(window.URL||window.webkitURL).createObjectURL(E);console.log("imageUrl",A)}else if(-1!=t.indexOf("img5"))try{var V=new TextDecoder,L=new Uint8Array(e),z=V.decode(L),j=JSON.parse(z);console.log("msg",j),n.imgUrl5="data:image/png;base64,"+j.pic,console.log("imageUrl",imageUrl)}catch(R){var M="arraybuffer",P=new Blob([e],{type:M}),U=(window.URL||window.webkitURL).createObjectURL(P);console.log("imageUrl",U)}else-1!=t.indexOf("stream0")||-1!=t.indexOf("stream0")||(-1!=t.indexOf("stream1")||-1!=t.indexOf("stream2")||-1!=t.indexOf("stream3")||-1!=t.indexOf("stream4")||-1!=t.indexOf("stream5"))&&console.log('[MQTT-TEST] 从主题 "'.concat(t,'" 收到的内容: ').concat(e.toString()),new Date,(new Date).getMilliseconds())})))})),n)},f=h,b=(a("ae10"),a("2877")),y=Object(b["a"])(f,c,d,!1,null,"48bb4a32",null),v=y.exports,w=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{ref:"box",staticClass:"box",staticStyle:{height:"100vh"}},["second"==t.activeName?a("div",{staticClass:"dataBoard"},[a("div",{staticClass:"plate1"},[a("div",{ref:"section",staticClass:"section"},[a("div",{ref:"sectionContent"},[a("div",[a("p",{staticClass:"board-title"},[a("span",[t._v(t._s(t.title1))])]),a("span",{staticClass:"downPull",class:1==t.count2?"upActive":"active",on:{click:function(e){return t.sectionHandle()}}})]),a("headWayChart",{attrs:{pageType:"断面",triggerType:"触发",data:t.tableData}}),a("typeChart",{attrs:{pageType:"断面",triggerType:"触发",data:t.tableData}}),a("speedChart",{attrs:{pageType:"断面",triggerType:"触发",data:t.tableData}}),a("flowChart",{attrs:{pageType:"断面",triggerType:"周期统计",data:t.sectionList}})],1)])]),a("div",{staticClass:"plate2"},[a("div",{ref:"region",staticClass:"region"},[a("div",{ref:"regionContent"},[a("div",[a("p",{staticClass:"board-title"},[a("span",[t._v(t._s(t.title2))])]),a("span",{staticClass:"downPull",class:1==t.count1?"upActive":"active",on:{click:function(e){return t.regionHandle()}}})]),a("OD",{attrs:{pageType:"区域",triggerType:"触发",data:t.tableData}}),a("speedChart",{attrs:{pageType:"区域",triggerType:"触发",data:t.tableData}}),a("flowChart",{attrs:{pageType:"区域",triggerType:"周期统计",data:t.regionList2}}),a("lineUpChart",{attrs:{pageType:"区域",triggerType:"触发",data:t.tableData}}),a("checkChart",{attrs:{pageType:"区域",triggerType:"周期时刻",data:t.regionList1}}),a("delayChart",{attrs:{pageType:"区域",triggerType:"周期统计",data:t.regionList2}}),a("congestionChart",{attrs:{pageType:"区域",triggerType:"周期统计",data:t.regionList2}}),a("headWayChart",{attrs:{pageType:"区域",triggerType:"周期统计",data:t.regionList2}})],1)])])]):t._e()])},S=[],C=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"setion"},[a("p",{staticClass:"chartTitle"},[a("span",{staticClass:"titleIcon"}),t._v(" "+t._s(t.title))]),a("div",{staticClass:"typeContent"},[a("el-card",{staticStyle:{width:"150px","margin-bottom":"20px","text-align":"center"}},[a("div",{staticStyle:{"font-size":"30px","font-weight":"bold"}},[t._v("99")]),a("div",{staticStyle:{padding:"14px"}},[a("span",[t._v("数值")]),a("div",{staticClass:"bottom clearfix"},[a("time",{staticClass:"time"},[t._v("17:49")]),a("el-button",{staticClass:"button",attrs:{type:"text"}},[t._v("操作按钮")])],1)])]),"断面"==t.pageType?a("div",{staticStyle:{"margin-bottom":"20px",border:"1px solid #e4e7ed"}},[a("tableShow",{attrs:{msg:t.data,type:t.triggerType}})],1):t._e(),"区域"==t.pageType?a("div",[a("regionTable",{attrs:{msg:t.data,type:t.triggerType}})],1):t._e(),a("div",{staticClass:"border"},[a("detailDialog"),a("lineChart",{attrs:{pageType:t.pageType,list:t.data,title:t.title,status:t.triggerType}})],1),a("div",{staticClass:"border"},[a("detailDialog"),a("avgChart",{attrs:{pageType:t.pageType,list:t.data,title:t.title,status:t.triggerType}})],1)],1)])},x=[],_=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"down"},[a("el-dropdown",{attrs:{trigger:"click"},on:{command:t.handleCommand}},[a("span",{staticClass:"moreIcon"}),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{command:"show"}},[t._v("查看详情")])],1)],1)],1),a("el-dialog",{attrs:{title:"编辑",visible:t.dialogVisible,width:"40%","before-close":t.handleClose},on:{"update:visible":function(e){t.dialogVisible=e}}},[a("el-form",{attrs:{"label-width":"80px"}},[a("el-form-item",{attrs:{label:"val1"}},[a("el-time-select",{attrs:{placeholder:"起始时间","picker-options":{start:"08:30",step:"00:15",end:"18:30"}},model:{value:t.startTime,callback:function(e){t.startTime=e},expression:"startTime"}}),a("el-time-select",{attrs:{placeholder:"结束时间","picker-options":{start:"08:30",step:"00:15",end:"18:30",minTime:t.startTime}},model:{value:t.endTime,callback:function(e){t.endTime=e},expression:"endTime"}})],1),a("el-form-item",{attrs:{label:"val2"}},[a("el-select",{attrs:{placeholder:"请选择"},model:{value:t.value,callback:function(e){t.value=e},expression:"value"}},t._l(t.options,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1),a("el-form-item",{attrs:{label:"val3"}},[a("el-input")],1),a("el-form-item",{attrs:{label:"val4"}},[a("el-checkbox-group",{model:{value:t.checkList,callback:function(e){t.checkList=e},expression:"checkList"}},[a("el-checkbox",{attrs:{label:"数值"}}),a("el-checkbox",{attrs:{label:"表格"}}),a("el-checkbox",{attrs:{label:"时间曲线图"}}),a("el-checkbox",{attrs:{label:"均值图"}})],1)],1),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:t.onSubmit}},[t._v("确认")]),a("el-button",{on:{click:function(e){t.dialogVisible=!1}}},[t._v("取消")])],1)],1)],1)],1)},T=[],F={name:"detailDialog",props:{},data:function(){return{dialogVisible:!1,startTime:"",endTime:"",checkList:["复选框 A"],options:[{value:"选项1",label:"黄金糕"},{value:"选项2",label:"双皮奶"},{value:"选项3",label:"蚵仔煎"},{value:"选项4",label:"龙须面"},{value:"选项5",label:"北京烤鸭"}],value:""}},methods:{onSubmit:function(){},handleCommand:function(t){"show"==t&&(this.dialogVisible=!0)},handleClose:function(t){this.$confirm("确认关闭?").then((function(e){t()})).catch((function(t){}))}},mounted:function(){}},k=F,I=(a("810a"),Object(b["a"])(k,_,T,!1,null,"08a214e9",null)),D=I.exports,N=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{ref:"lineChart",staticStyle:{width:"100%",height:"300px"},attrs:{id:"lineChart"}})},$=[],O={name:"lineChart",props:{list:{type:Array,default:function(){return[]}},pageType:{type:String},title:{type:String},status:{type:String}},data:function(){return{xData:[],yData:[]}},created:function(){if(this.xData=this.yData=this.list.map((function(t){return t.timestamp})),this.yData=this.yData=this.list.map((function(t){return t.speed})),"断面"==this.pageType&&"触发"==this.status)if("速度组件"==this.title)this.yData=this.list.map((function(t){return t.speed}));else{if("流量组件"==this.title)return val.speed;"车头时距组件"==this.title?this.yData=this.list.map((function(t){return t.headWay})):this.title}if("断面"==this.pageType&&"周期统计"==this.status)if("速度组件"==this.title)this.yData=this.list.map((function(t){return t.speed}));else if("流量组件"==this.title)this.yData=this.list.map((function(t){return t.flow}));else if("车头时距组件"==this.title)this.yData=this.list.map((function(t){return t.headWay}));else if("类型组件"==this.title)return val.speed;"区域"==this.pageType&&("类型组件"==this.title||("速度组件"==this.title?this.yData=this.list.map((function(t){return t.speed})):"流量组件"==this.title||"车头时距组件"==this.title?this.yData=this.list.map((function(t){return t.ave_speed})):"排队数组件"==this.title||"监测数组件"==this.title||("延误组件"==this.title?this.yData=this.list.map((function(t){return t.ave_delay})):"拥堵组件"==this.title&&(this.yData=this.list.map((function(t){return t.ave_speed}))))))},methods:{drawLine:function(){var t=this.$echarts.init(this.$refs.lineChart),e={grid:{left:"2%",right:"4%",bottom:"10%",top:"20%",containLabel:!0},tooltip:{show:!0},xAxis:[{type:"category",axisLine:{show:!0,lineStyle:{color:"#eeebeb",type:"dashed"}},axisTick:{show:!1},axisLabel:{color:"#6c6c6c"},splitLine:{show:!1},boundaryGap:["5%","5%"],data:this.xData}],yAxis:[{type:"value",axisLabel:{color:"#6c6c6c"},splitLine:{lineStyle:{color:"#eeebeb",type:"dashed"}},axisLine:{show:!1}}],series:[{name:this.title,type:"line",stack:"总量",symbolSize:6,smooth:!0,itemStyle:{color:"#fb864b",borderColor:"#fb864b",borderWidth:2},data:this.yData}]};t.setOption(e),window.addEventListener("resize",(function(){t.resize()}))}},mounted:function(){this.drawLine(),console.log(this.pageType,this.title,this.status)}},E=O,A=Object(b["a"])(E,N,$,!1,null,"2232e83c",null),V=A.exports,L=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{ref:"barChart",staticStyle:{width:"100%",height:"300px"},attrs:{id:"barChart"}})},z=[],j={name:"barChart",props:{list:Array,default:function(){return[]}},data:function(){return{}},methods:{drawBar:function(){var t=this.$echarts.init(this.$refs.barChart),e={color:["#7262FD","#FC5A5A"],tooltip:{confine:!0},grid:{left:"2%",right:"4%",bottom:"10%",top:"20%",containLabel:!0},xAxis:{type:"category",data:this.list.map((function(t){return t.type})),axisLine:{lineStyle:{color:"#000"}},axisLabel:{fontSize:12,color:"#000"},axisTick:{show:!1}},yAxis:[{type:"value",min:0,minInterval:1,splitArea:{show:!1},axisLine:{show:!0},axisTick:{show:!1},splitLine:{lineStyle:{color:"#eeebeb",type:"dashed"}},axisLabel:{fontSize:12,color:"#000",fontFamily:"Bebas"}}],series:[{type:"bar",barWidth:20,itemStyle:{barBorderRadius:[5,5,0,0]},name:"时间",data:this.list.map((function(t){return t.speed}))}]};t.setOption(e),window.addEventListener("resize",(function(){t.resize()}))}},mounted:function(){this.drawBar()}},M=j,P=Object(b["a"])(M,L,z,!1,null,null,null),U=P.exports,q=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"tableContent"},[a("div",{staticClass:"down"},[a("el-dropdown",{attrs:{trigger:"click"},on:{command:t.handleCommand}},[a("span",{staticClass:"moreIcon"}),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{command:"show"}},[t._v("查看详情")])],1)],1)],1),"触发"==t.type?a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.msg}},[a("el-table-column",{attrs:{align:"center",prop:"steam_id",label:"视频路"}}),a("el-table-column",{attrs:{align:"center",prop:"timestamp",label:"时间戳"}}),a("el-table-column",{attrs:{align:"center",prop:"obj_id",label:"目标编号"}}),a("el-table-column",{attrs:{align:"center",prop:"type",label:"目标类型"}}),a("el-table-column",{attrs:{align:"center",prop:"plate",label:"车牌"}}),a("el-table-column",{attrs:{align:"center",prop:"speed",label:"速度"}}),a("el-table-column",{attrs:{align:"center",prop:"event",label:"监测触发事件"}}),a("el-table-column",{attrs:{align:"center",prop:"lane",label:"车道"}}),a("el-table-column",{attrs:{align:"center",prop:"headWay",label:"车头时距"}})],1):t._e(),"周期统计"==t.type?a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.msg}},[a("el-table-column",{attrs:{align:"center",prop:"gate_id",label:"断面编号"}}),a("el-table-column",{attrs:{align:"center",prop:"name",label:"断面名称"}}),a("el-table-column",{attrs:{align:"center",prop:"timestamp",label:"时间戳"}}),a("el-table-column",{attrs:{align:"center",prop:"interval",label:"时间序号"}}),a("el-table-column",{attrs:{align:"center",prop:"type",label:"目标类型"}}),a("el-table-column",{attrs:{align:"center",prop:"in_flow",label:"入流流量"}}),a("el-table-column",{attrs:{align:"center",prop:"out_flow",label:"出流流量"}}),a("el-table-column",{attrs:{align:"center",prop:"flow",label:"断面流量"}}),a("el-table-column",{attrs:{align:"center",prop:"in_spd",label:"入流平均速度"}}),a("el-table-column",{attrs:{align:"center",prop:"out_spd",label:"出流平均速度"}}),a("el-table-column",{attrs:{align:"center",prop:"speed",label:"断面的平均速度"}})],1):t._e(),a("el-dialog",{attrs:{title:"编辑",visible:t.dialogVisible,width:"40%"},on:{"update:visible":function(e){t.dialogVisible=e}}},[a("el-form",{attrs:{model:t.msg,"label-width":"80px"}},[a("el-form-item",{attrs:{label:"val1"}},[a("el-time-select",{attrs:{placeholder:"起始时间","picker-options":{start:"08:30",step:"00:15",end:"18:30"}},model:{value:t.startTime,callback:function(e){t.startTime=e},expression:"startTime"}}),a("el-time-select",{attrs:{placeholder:"结束时间","picker-options":{start:"08:30",step:"00:15",end:"18:30",minTime:t.startTime}},model:{value:t.endTime,callback:function(e){t.endTime=e},expression:"endTime"}})],1),a("el-form-item",{attrs:{label:"val2"}},[a("el-select",{attrs:{placeholder:"请选择"},model:{value:t.value,callback:function(e){t.value=e},expression:"value"}},t._l(t.options,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1),a("el-form-item",{attrs:{label:"val3"}},[a("el-input",{model:{value:t.msg[0].val3,callback:function(e){t.$set(t.msg[0],"val3",e)},expression:"msg[0].val3"}})],1),a("el-form-item",{attrs:{label:"val4"}},[a("el-checkbox-group",{model:{value:t.checkList,callback:function(e){t.checkList=e},expression:"checkList"}},[a("el-checkbox",{attrs:{label:"数值"}}),a("el-checkbox",{attrs:{label:"表格"}}),a("el-checkbox",{attrs:{label:"时间曲线图"}}),a("el-checkbox",{attrs:{label:"均值图"}})],1)],1),a("el-form-item",[a("el-button",{attrs:{type:"primary"}},[t._v("确认")]),a("el-button",{on:{click:function(e){t.dialogVisible=!1}}},[t._v("取消")])],1)],1)],1)],1)},W=[],B={name:"tableShow",props:{msg:{type:Array,default:function(){return[]}},type:{type:String}},data:function(){return{dialogVisible:!1,startTime:"",endTime:"",checkList:["复选框 A"],options:[{value:"选项1",label:"黄金糕"},{value:"选项2",label:"双皮奶"},{value:"选项3",label:"蚵仔煎"},{value:"选项4",label:"龙须面"},{value:"选项5",label:"北京烤鸭"}],value:""}},methods:{handleCommand:function(t){"show"==t&&(this.dialogVisible=!0)},onSubmit:function(){},handleClose:function(){}},mounted:function(){}},G=B,R=(a("20bd"),Object(b["a"])(G,q,W,!1,null,"1325ecda",null)),J=R.exports,H=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{ref:"thermalChart",staticStyle:{width:"100%",height:"300px"},attrs:{id:"thermalChart"}})},Z=[],Q={name:"thermalChart",data:function(){return{}},methods:{drawThermalChart:function(){var t=this.$echarts.init(this.$refs.thermalChart),e={grid:{left:"2%",right:"4%",bottom:"10%",top:"20%",containLabel:!0},textStyle:{color:"#666",fontSize:13},tooltip:{},xAxis:{nameTextStyle:{color:"#666",padding:[0,0,-10,0],fontSize:13},axisLabel:{interval:0,textStyle:{fontSize:13}},axisTick:{lineStyle:{color:"#c8c8c8",width:1},show:!0},splitLine:{show:!1},axisLine:{lineStyle:{color:"#c8c8c8",width:1},show:!0},type:"category",data:["GATE1","GATE2","GATE3","GATE4"],splitArea:{show:!0,areaStyle:{color:["rgba(200,200,200,0.3)","rgba(200,200,200,0.2)"]}}},yAxis:{nameTextStyle:{color:"#666",padding:[0,0,-10,0],fontSize:13},axisLabel:{interval:0,textStyle:{fontSize:13}},axisTick:{lineStyle:{color:"#c8c8c8",width:1},show:!0},splitLine:{show:!1},axisLine:{lineStyle:{color:"#c8c8c8",width:1},show:!0},type:"category",data:["GATE1","GATE2","GATE3","GATE4"]},visualMap:[{min:100,max:400,calculable:!1,orient:"horizontal",left:"center",top:20,color:["#C7021D","#79E73C"],text:["高","低"],textStyle:{color:"#666",fontSize:13}}],series:[{type:"heatmap",pointSize:10,blurSize:10,data:[[0,0,100],[0,1,100],[0,2,100],[0,3,100],[1,0,120],[1,1,120],[1,2,125],[1,3,120],[2,0,120],[2,1,140],[2,2,140],[2,3,140],[3,0,200],[3,1,200],[3,2,200],[3,3,200]],label:{show:!0,color:"#fff"},itemStyle:{borderColor:"rgba(255, 255, 255, 0.5)",emphasis:{shadowBlur:0,shadowColor:"rgba(255, 255, 255, 0.5)"}}}]};t.setOption(e),window.onresize=function(){t.resize()}}},mounted:function(){this.drawThermalChart()}},X=Q,Y=Object(b["a"])(X,H,Z,!1,null,"70ac3a62",null),K=Y.exports,tt=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"tableContent"},[a("div",{staticClass:"down"},[a("el-dropdown",{attrs:{trigger:"click"},on:{command:t.handleCommand}},[a("span",{staticClass:"moreIcon"}),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{command:"show"}},[t._v("查看详情")])],1)],1)],1),"触发"==t.type?a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.msg}},[a("el-table-column",{attrs:{align:"center",prop:"steam_id",label:"视频路"}}),a("el-table-column",{attrs:{align:"center",prop:"timestamp",label:"时间戳"}}),a("el-table-column",{attrs:{align:"center",prop:"obj_id",label:"目标编号"}}),a("el-table-column",{attrs:{align:"center",prop:"type",label:"目标类型"}}),a("el-table-column",{attrs:{align:"center",prop:"plate",label:"车牌"}}),a("el-table-column",{attrs:{align:"center",prop:"speed",label:"速度"}}),a("el-table-column",{attrs:{align:"center",prop:"event",label:"监测触发事件"}}),a("el-table-column",{attrs:{align:"center",prop:"lane",label:"车道"}}),a("el-table-column",{attrs:{align:"center",prop:"headWay",label:"车头时距"}})],1):t._e(),"周期时刻"==t.type?a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.msg}},[a("el-table-column",{attrs:{align:"center",prop:"zone_id",label:"区域编号"}}),a("el-table-column",{attrs:{align:"center",prop:"name",label:"区域名称"}}),a("el-table-column",{attrs:{align:"center",prop:"timestamp",label:"时间戳"}}),a("el-table-column",{attrs:{align:"center",prop:"type",label:"目标类型"}}),a("el-table-column",{attrs:{align:"center",prop:"n_stay",label:"存车数"}}),a("el-table-column",{attrs:{align:"center",prop:"n_queue",label:"排队数"}}),a("el-table-column",{attrs:{align:"center",prop:"occ",label:"占用状态"}}),a("el-table-column",{attrs:{align:"center",prop:"speed",label:"空间平均速度"}})],1):t._e(),"周期统计"==t.type?a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.msg}},[a("el-table-column",{attrs:{align:"center",prop:"zone_id",label:"区域编号"}}),a("el-table-column",{attrs:{align:"center",prop:"name",label:"区域名称"}}),a("el-table-column",{attrs:{align:"center",prop:"timestamp",label:"时间戳"}}),a("el-table-column",{attrs:{align:"center",prop:"type",label:"目标类型"}}),a("el-table-column",{attrs:{align:"center",prop:"enter_flow",label:"驶入流量"}}),a("el-table-column",{attrs:{align:"center",prop:"leave_flow",label:"驶离流量"}}),a("el-table-column",{attrs:{align:"center",prop:"ave_stay",label:"平均存车数"}}),a("el-table-column",{attrs:{align:"center",prop:"ave_queue",label:"平均排队数"}}),a("el-table-column",{attrs:{align:"center",prop:"ave_occ",label:"平均占有率"}}),a("el-table-column",{attrs:{align:"center",prop:"ave_delay",label:"平均延误"}}),a("el-table-column",{attrs:{align:"center",prop:"ave_speed",label:"平均速度"}})],1):t._e(),a("el-dialog",{attrs:{title:"编辑",visible:t.dialogVisible,width:"40%"},on:{"update:visible":function(e){t.dialogVisible=e}}},[a("el-form",{attrs:{model:t.msg,"label-width":"80px"}},[a("el-form-item",{attrs:{label:"val1"}},[a("el-time-select",{attrs:{placeholder:"起始时间","picker-options":{start:"08:30",step:"00:15",end:"18:30"}},model:{value:t.startTime,callback:function(e){t.startTime=e},expression:"startTime"}}),a("el-time-select",{attrs:{placeholder:"结束时间","picker-options":{start:"08:30",step:"00:15",end:"18:30",minTime:t.startTime}},model:{value:t.endTime,callback:function(e){t.endTime=e},expression:"endTime"}})],1),a("el-form-item",{attrs:{label:"val2"}},[a("el-select",[a("el-option")],1)],1),a("el-form-item",{attrs:{label:"val3"}},[a("el-input",{model:{value:t.msg[0].val3,callback:function(e){t.$set(t.msg[0],"val3",e)},expression:"msg[0].val3"}})],1),a("el-form-item",{attrs:{label:"val4"}},[a("el-checkbox-group",{model:{value:t.checkList,callback:function(e){t.checkList=e},expression:"checkList"}},[a("el-checkbox",{attrs:{label:"数值"}}),a("el-checkbox",{attrs:{label:"表格"}}),a("el-checkbox",{attrs:{label:"时间曲线图"}}),a("el-checkbox",{attrs:{label:"均值图"}})],1)],1),a("el-form-item",[a("el-button",{attrs:{type:"primary"}},[t._v("确认")]),a("el-button",{on:{click:function(e){t.dialogVisible=!1}}},[t._v("取消")])],1)],1)],1)],1)},et=[],at={name:"tableShow",props:{msg:{type:Array,default:function(){return[]}},type:{type:String}},data:function(){return{dialogVisible:!1,startTime:"",endTime:"",checkList:["复选框 A"]}},methods:{handleCommand:function(t){"show"==t&&(this.dialogVisible=!0)}},mounted:function(){}},nt=at,ot=(a("e526"),Object(b["a"])(nt,tt,et,!1,null,"241ecd80",null)),it=ot.exports,lt=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{ref:"barChart",staticStyle:{width:"100%",height:"300px"},attrs:{id:"barChart"}})},st=[],rt={name:"barChart",props:{list:Array,default:function(){return[]}},data:function(){return{}},methods:{drawBar:function(){var t=this.$echarts.init(this.$refs.barChart),e=[{stage:"值",number:40}],a={color:["#0EECE4"],tooltip:{confine:!0},grid:{left:"0%",right:"0%",bottom:"10%",top:"15%",z:22},xAxis:[{type:"category",gridIndex:0,data:e.map((function(t){return t.stage})),axisLine:{show:!1},axisLabel:{show:!1}}],yAxis:{type:"value",splitArea:{show:!1},gridIndex:0,min:0,splitNumber:12,splitLine:{show:!1},axisLine:{show:!1},axisTick:{show:!1},axisLabel:{show:!1},max:200},series:[{name:"平均值",type:"bar",stack:"val",barWidth:150,xAxisIndex:0,yAxisIndex:0,label:{show:!0,position:"right",distance:15,color:"#000",fontSize:17,formatter:"{c}[avg]"},itemStyle:{color:"#DF8414"},data:[40],zlevel:11},{name:"中间值",type:"bar",barWidth:150,stack:"val",label:{show:!0,position:"left",distance:15,color:"#000",fontSize:17,formatter:"{c}[med]",rich:{}},itemStyle:{color:"#0E76AF"},data:[60],zlevel:11},{name:"最小值",type:"bar",barWidth:150,barGap:"-100%",data:[0],label:{show:!0,position:"bottom",distance:10,color:"#000",fontSize:17,formatter:"{c}[min]"},tooltip:{backgroundColor:"transparent",formatter:" "},itemStyle:{color:"#ABA7A7"},zlevel:9},{name:"最大值",type:"bar",barWidth:150,barGap:"-100%",data:[200],label:{show:!0,position:"top",distance:15,color:"#000",fontSize:17,formatter:"{c}[max]"},tooltip:{backgroundColor:"transparent",formatter:" "},itemStyle:{color:"#ABA7A7"},zlevel:9}]};t.setOption(a),window.addEventListener("resize",(function(){t.resize()}))}},mounted:function(){this.drawBar()}},ct=rt,dt=Object(b["a"])(ct,lt,st,!1,null,null,null),pt=dt.exports,mt={name:"delayChart",props:["pageType","triggerType","data"],components:{lineChart:V,barChart:U,tableShow:J,detailDialog:D,thermalChart:K,regionTable:it,avgChart:pt},data:function(){return{title:"延误组件"}},methods:{},mounted:function(){},watch:{}},ut=mt,gt=(a("50d6"),Object(b["a"])(ut,C,x,!1,null,"5da260f6",null)),ht=gt.exports,ft=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"setion"},[a("p",{staticClass:"chartTitle"},[a("span",{staticClass:"titleIcon"}),t._v(" "+t._s(t.title))]),a("div",{staticClass:"typeContent"},[a("el-card",{staticStyle:{width:"150px","margin-bottom":"20px","text-align":"center"}},[a("div",{staticStyle:{"font-size":"30px","font-weight":"bold"}},[t._v("99")]),a("div",{staticStyle:{padding:"14px"}},[a("span",[t._v("数值")]),a("div",{staticClass:"bottom clearfix"},[a("time",{staticClass:"time"},[t._v("17:49")]),a("el-button",{staticClass:"button",attrs:{type:"text"}},[t._v("操作按钮")])],1)])]),"断面"==t.pageType?a("div",{staticStyle:{"margin-bottom":"20px",border:"1px solid #e4e7ed"}},[a("tableShow",{attrs:{msg:t.data,type:t.triggerType}})],1):t._e(),"区域"==t.pageType?a("div",[a("regionTable",{attrs:{msg:t.data,type:t.triggerType}})],1):t._e(),a("div",{staticClass:"border"},[a("detailDialog"),a("lineChart",{attrs:{title:t.title,pageType:t.pageType,list:t.data,status:t.triggerType}})],1),a("div",{staticClass:"border"},[a("detailDialog"),a("avgChart",{attrs:{pageType:t.pageType,list:t.data,status:t.triggerType,title:t.title}})],1)],1)])},bt=[],yt={name:"speedChart",props:["pageType","triggerType","data"],components:{lineChart:V,barChart:U,tableShow:J,detailDialog:D,regionTable:it,thermalChart:K,avgChart:pt},data:function(){return{title:"速度组件",tableData:[{steam_id:0,timestamp:"2022-10-01 09:15:10.156",obj_id:125,type:"car",plate:"苏A0131M",speed:35.2,event:"in",lane:0,headWay:6.5},{steam_id:0,timestamp:"2022-10-01 09:15:10.156",obj_id:125,type:"car",plate:"苏A0131M",speed:70.2,event:"in",lane:0,headWay:6.5},{steam_id:0,timestamp:"2022-10-01 09:15:10.156",obj_id:125,type:"car",plate:"苏A0131M",speed:60.2,event:"in",lane:0,headWay:6.5},{steam_id:0,timestamp:"2022-10-01 09:15:10.156",obj_id:125,type:"car",plate:"苏A0131M",speed:60.2,event:"in",lane:0,headWay:6.5},{steam_id:0,timestamp:"2022-10-01 09:15:10.156",obj_id:125,type:"car",plate:"苏A0131M",speed:60.2,event:"in",lane:0,headWay:6.5}]}},created:function(){},methods:{},mounted:function(){}},vt=yt,wt=(a("0697"),Object(b["a"])(vt,ft,bt,!1,null,"9fbc5ddc",null)),St=wt.exports,Ct=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"setion"},[a("p",{staticClass:"chartTitle"},[a("span",{staticClass:"titleIcon"}),t._v(" "+t._s(t.title))]),a("div",{staticClass:"typeContent"},[a("el-card",{staticStyle:{width:"150px","margin-bottom":"20px","text-align":"center"}},[a("div",{staticStyle:{"font-size":"30px","font-weight":"bold"}},[t._v("99")]),a("div",{staticStyle:{padding:"14px"}},[a("span",[t._v("数值")]),a("div",{staticClass:"bottom clearfix"},[a("time",{staticClass:"time"},[t._v("17:49")]),a("el-button",{staticClass:"button",attrs:{type:"text"}},[t._v("操作按钮")])],1)])]),"断面"==t.pageType?a("div",{staticStyle:{"margin-bottom":"20px",border:"1px solid #e4e7ed"}},[a("tableShow",{attrs:{msg:t.data,type:t.triggerType}})],1):t._e(),"区域"==t.pageType?a("div",[a("regionTable",{attrs:{msg:t.data,type:t.triggerType}})],1):t._e(),a("div",{staticClass:"border"},[a("detailDialog"),a("lineChart",{attrs:{pageType:t.pageType,list:t.data,title:t.title,status:t.triggerType}})],1)],1)])},xt=[],_t={name:"flowChart",props:["pageType","triggerType","data"],components:{lineChart:V,tableShow:J,detailDialog:D,thermalChart:K,regionTable:it},data:function(){return{title:"流量组件"}},methods:{},mounted:function(){}},Tt=_t,Ft=(a("e17e"),Object(b["a"])(Tt,Ct,xt,!1,null,"02a96588",null)),kt=Ft.exports,It=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"setion"},[a("p",{staticClass:"chartTitle"},[a("span",{staticClass:"titleIcon"}),t._v(" "+t._s(t.title))]),a("div",{staticClass:"typeContent"},[a("el-card",{staticStyle:{width:"150px","margin-bottom":"20px","text-align":"center"}},[a("div",{staticStyle:{"font-size":"30px","font-weight":"bold"}},[t._v("99")]),a("div",{staticStyle:{padding:"14px"}},[a("span",[t._v("数值")]),a("div",{staticClass:"bottom clearfix"},[a("time",{staticClass:"time"},[t._v("17:49")]),a("el-button",{staticClass:"button",attrs:{type:"text"}},[t._v("操作按钮")])],1)])]),"断面"==t.pageType?a("div",{staticStyle:{"margin-bottom":"20px",border:"1px solid #e4e7ed"}},[a("tableShow",{attrs:{msg:t.data,type:t.triggerType}})],1):t._e(),"区域"==t.pageType?a("div",[a("regionTable",{attrs:{msg:t.data,type:t.triggerType}})],1):t._e(),a("div",{staticClass:"border"},[a("detailDialog"),a("lineChart",{attrs:{pageType:t.pageType,list:t.data,status:t.triggerType,title:t.title}})],1),a("div",{staticClass:"border"},[a("detailDialog"),a("avgChart",{attrs:{pageType:t.pageType,list:t.data,status:t.triggerType,title:t.title}})],1)],1)])},Dt=[],Nt={name:"headWayChart",props:["pageType","triggerType","data"],components:{lineChart:V,barChart:U,tableShow:J,detailDialog:D,thermalChart:K,regionTable:it,avgChart:pt},created:function(){},data:function(){return{title:"车头时距组件"}},methods:{},mounted:function(){}},$t=Nt,Ot=(a("ebd1"),Object(b["a"])($t,It,Dt,!1,null,"fd04f6a6",null)),Et=Ot.exports,At=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"setion"},[a("p",{staticClass:"chartTitle"},[a("span",{staticClass:"titleIcon"}),t._v(t._s(t.title))]),a("div",{staticClass:"typeContent"},[a("el-card",{staticStyle:{width:"150px","margin-bottom":"20px","text-align":"center"}},[a("div",{staticStyle:{"font-size":"30px","font-weight":"bold"}},[t._v("99")]),a("div",{staticStyle:{padding:"14px"}},[a("span",[t._v("数值")]),a("div",{staticClass:"bottom clearfix"},[a("time",{staticClass:"time"},[t._v("17:49")]),a("el-button",{staticClass:"button",attrs:{type:"text"}},[t._v("操作按钮")])],1)])]),"断面"==t.pageType?a("div",{staticStyle:{"margin-bottom":"20px",border:"1px solid #e4e7ed"}},[a("tableShow",{attrs:{msg:t.data,type:t.triggerType}})],1):t._e(),"区域"==t.pageType?a("div",[a("regionTable",{attrs:{msg:t.data,type:t.triggerType}})],1):t._e(),a("div",{staticClass:"border"},[a("detailDialog"),a("lineChart",{attrs:{pageType:t.pageType,list:t.data,status:t.triggerType,title:t.title}})],1),a("div",{staticClass:"border"},[a("detailDialog"),a("avgChart",{attrs:{pageType:t.pageType,list:t.data,status:t.triggerType,title:t.title}})],1)],1)])},Vt=[],Lt={name:"checkChart",props:["pageType","triggerType","data"],components:{lineChart:V,barChart:U,tableShow:J,detailDialog:D,thermalChart:K,regionTable:it,avgChart:pt},data:function(){return{title:"监测数组件"}},methods:{},mounted:function(){}},zt=Lt,jt=(a("29f6"),Object(b["a"])(zt,At,Vt,!1,null,"63223f59",null)),Mt=jt.exports,Pt=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"setion"},[a("p",{staticClass:"chartTitle"},[a("span",{staticClass:"titleIcon"}),t._v(" "+t._s(t.title))]),a("div",{staticClass:"typeContent"},[a("el-card",{staticStyle:{width:"150px","margin-bottom":"20px","text-align":"center"}},[a("div",{staticStyle:{"font-size":"30px","font-weight":"bold"}},[t._v("99")]),a("div",{staticStyle:{padding:"14px"}},[a("span",[t._v("数值")]),a("div",{staticClass:"bottom clearfix"},[a("time",{staticClass:"time"},[t._v("17:49")]),a("el-button",{staticClass:"button",attrs:{type:"text"}},[t._v("操作按钮")])],1)])]),"断面"==t.pageType?a("div",{staticStyle:{"margin-bottom":"20px",border:"1px solid #e4e7ed"}},[a("tableShow",{attrs:{msg:t.data,type:t.triggerType}})],1):t._e(),"区域"==t.pageType?a("div",[a("regionTable",{attrs:{msg:t.data,type:t.triggerType}})],1):t._e(),a("div",{staticClass:"border"},[a("detailDialog"),a("lineChart",{attrs:{pageType:t.pageType,list:t.data,status:t.triggerType,title:t.title}}),a("div",{staticClass:"border"},[a("detailDialog"),a("avgChart",{attrs:{pageType:t.pageType,list:t.data,status:t.triggerType,title:t.title}})],1)],1)],1)])},Ut=[],qt={name:"lineUpChart",components:{lineChart:V,barChart:U,tableShow:J,detailDialog:D,thermalChart:K,regionTable:it,avgChart:pt},props:["pageType","triggerType","data"],data:function(){return{title:"排队数组件"}},methods:{},mounted:function(){}},Wt=qt,Bt=(a("db28"),Object(b["a"])(Wt,Pt,Ut,!1,null,"01aa42a2",null)),Gt=Bt.exports,Rt=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"setion"},[a("p",{staticClass:"chartTitle"},[a("span",{staticClass:"titleIcon"}),t._v(" "+t._s(t.title))]),a("div",{staticClass:"typeContent"},[a("el-card",{staticStyle:{width:"150px","margin-bottom":"20px","text-align":"center"}},[a("div",{staticStyle:{"font-size":"30px","font-weight":"bold"}},[t._v("99")]),a("div",{staticStyle:{padding:"14px"}},[a("span",[t._v("数值")]),a("div",{staticClass:"bottom clearfix"},[a("time",{staticClass:"time"},[t._v("17:49")]),a("el-button",{staticClass:"button",attrs:{type:"text"}},[t._v("操作按钮")])],1)])]),"断面"==t.pageType?a("div",{staticStyle:{"margin-bottom":"20px",border:"1px solid #e4e7ed"}},[a("tableShow",{attrs:{msg:t.data,type:t.triggerType}})],1):t._e(),"区域"==t.pageType?a("div",[a("regionTable",{attrs:{msg:t.data,type:t.triggerType}})],1):t._e(),a("div",{staticClass:"border"},[a("detailDialog"),a("lineChart",{attrs:{pageType:t.pageType,list:t.data,status:t.triggerType,title:t.title}})],1)],1),a("div")])},Jt=[],Ht={name:"congestionChart",props:["pageType","triggerType","data"],components:{lineChart:V,tableShow:J,detailDialog:D,thermalChart:K,regionTable:it},data:function(){return{title:"拥堵组件"}},methods:{},mounted:function(){},watch:{}},Zt=Ht,Qt=(a("e9ac"),Object(b["a"])(Zt,Rt,Jt,!1,null,"57a7b2be",null)),Xt=Qt.exports,Yt=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"setion"},[a("p",{staticClass:"chartTitle"},[a("span",{staticClass:"titleIcon"}),t._v(" "+t._s(t.title))]),a("div",{staticClass:"typeContent"},[a("el-card",{staticStyle:{width:"150px","margin-bottom":"20px","text-align":"center"}},[a("div",{staticStyle:{"font-size":"30px","font-weight":"bold"}},[t._v("99")]),a("div",{staticStyle:{padding:"14px"}},[a("span",[t._v("数值")]),a("div",{staticClass:"bottom clearfix"},[a("time",{staticClass:"time"},[t._v("17:49")]),a("el-button",{staticClass:"button",attrs:{type:"text"}},[t._v("操作按钮")])],1)])]),"断面"==t.pageType?a("div",{staticStyle:{"margin-bottom":"20px",border:"1px solid #e4e7ed"}},[a("tableShow",{attrs:{msg:t.data,type:t.triggerType}})],1):t._e(),"区域"==t.pageType?a("div",[a("regionTable",{attrs:{msg:t.data,type:t.triggerType}})],1):t._e(),a("div",{staticClass:"border"},[a("detailDialog"),a("lineChart",{attrs:{pageType:t.pageType,list:t.data,status:t.triggerType,title:t.title}})],1),a("div",{staticClass:"border"},[a("detailDialog"),a("barChart",{attrs:{pageType:t.pageType,list:t.data,status:t.triggerType,title:t.title}})],1),a("div",{staticClass:"border"},[a("detailDialog"),a("pieChart",{attrs:{pageType:t.pageType,list:t.data,status:t.triggerType,title:t.title}})],1)],1)])},Kt=[],te=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{ref:"pieChart",staticStyle:{width:"100%",height:"300px"},attrs:{id:"pieChart"}})},ee=[],ae={name:"pieChart",props:{list:{type:Array,default:function(){return[]}}},data:function(){return{}},methods:{drawPie:function(){var t,e=this.$echarts.init(this.$refs.pieChart),a=["#0CD2E6","#3751E6","#FFC722"],n=["货车","汽车","卡车"],o=[{name:"货车",value:30},{name:"汽车",value:10},{name:"卡车",value:15}],i={color:a,legend:{top:20,right:"center",textStyle:{},data:n},series:[(t={name:"需求类型占比",type:"pie",center:["50%","55%"],radius:"80%",label:{normal:{show:!1}},labelLine:{show:!1,length:0,length2:0}},Object(p["a"])(t,"label",{normal:{show:!0,position:"inside",formatter:"{value|{c}}",rich:{value:{fontSize:20,color:"#ffffff"}}}}),Object(p["a"])(t,"data",o),t)]};e.setOption(i),window.addEventListener("resize",(function(){e.resize()}))}},mounted:function(){this.drawPie()}},ne=ae,oe=Object(b["a"])(ne,te,ee,!1,null,"7838cfb6",null),ie=oe.exports,le={name:"typeChart",props:["pageType","triggerType","data"],components:{lineChart:V,barChart:U,tableShow:J,detailDialog:D,regionTable:it,pieChart:ie},data:function(){return{title:"类型组件"}},methods:{},mounted:function(){}},se=le,re=(a("4301"),Object(b["a"])(se,Yt,Kt,!1,null,"054d0dfb",null)),ce=re.exports,de=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"setion"},[a("p",{staticClass:"chartTitle"},[a("span",{staticClass:"titleIcon"}),t._v(" "+t._s(t.title))]),a("div",{staticClass:"border"},[a("detailDialog"),a("thermalChart",{attrs:{pageType:t.pageType,list:t.data,status:t.triggerType,title:t.title}})],1)])},pe=[],me={name:"lineUpChart",components:{lineChart:V,barChart:U,tableShow:J,detailDialog:D,thermalChart:K,regionTable:it},props:["pageType","triggerType","data"],data:function(){return{title:"OD组件"}},methods:{},mounted:function(){}},ue=me,ge=(a("e577"),Object(b["a"])(ue,de,pe,!1,null,"32554e0e",null)),he=ge.exports,fe={components:{delayChart:ht,speedChart:St,flowChart:kt,headWayChart:Et,checkChart:Mt,lineUpChart:Gt,congestionChart:Xt,typeChart:ce,OD:he},props:{activeName:{type:String}},data:function(){return{title1:"01断面",title2:"01区域",dialogVisible:!1,tableData:[{steam_id:0,timestamp:"2022-10-01 09:15:10.156",obj_id:125,type:"car",plate:"苏A0131M",speed:35.2,event:"in",lane:0,headWay:19},{steam_id:0,timestamp:"2022-10-01 09:15:10.156",obj_id:125,type:"car",plate:"苏A0131M",speed:70.2,event:"in",lane:0,headWay:6.5},{steam_id:0,timestamp:"2022-10-01 09:15:10.156",obj_id:125,type:"car",plate:"苏A0131M",speed:60.2,event:"in",lane:0,headWay:10.5},{steam_id:0,timestamp:"2022-10-01 09:15:10.156",obj_id:125,type:"car",plate:"苏A0131M",speed:60.2,event:"in",lane:0,headWay:2.5},{steam_id:0,timestamp:"2022-10-01 09:15:10.156",obj_id:125,type:"car",plate:"苏A0131M",speed:60.2,event:"in",lane:0,headWay:11.5}],sectionList:[{steam_id:"0",gate_id:"Gate_1",name:"西进口",timestamp:"2022-10-1",interval:"53",type:"truck",in_flow:90,out_flow:120,flow:147,in_spd:20.1,out_spd:30.6,speed:30},{steam_id:"0",gate_id:"Gate_1",name:"西进口",timestamp:"2022-10-1",interval:"53",type:"truck",in_flow:90,out_flow:120,flow:123,in_spd:20.1,out_spd:30.6,speed:40},{steam_id:"0",gate_id:"Gate_1",name:"西进口",timestamp:"2022-10-1",interval:"53",type:"truck",in_flow:90,out_flow:80,flow:210,in_spd:20.1,out_spd:30.6,speed:50},{steam_id:"0",gate_id:"Gate_1",name:"西进口",timestamp:"2022-10-1",interval:"53",type:"truck",in_flow:90,out_flow:120,flow:210,in_spd:20.1,out_spd:30.6,speed:77}],regionList1:[{zone_id:"0",gate_id:"Zone_1",name:"西进口左1",timestamp:"2022-10-1",frame:1e3,type:"car",n_stay:3,n_queue:2,occ:1,speed:5.6},{zone_id:"0",gate_id:"Zone_1",name:"西进口左1",timestamp:"2022-10-1",frame:1e3,type:"car",n_stay:3,n_queue:2,occ:1,speed:12.6},{zone_id:"0",gate_id:"Zone_1",name:"西进口左1",timestamp:"2022-10-1",frame:1e3,type:"car",n_stay:3,n_queue:2,occ:1,speed:10},{zone_id:"0",gate_id:"Zone_1",name:"西进口左1",timestamp:"2022-10-1",frame:1e3,type:"car",n_stay:3,n_queue:2,occ:1,speed:6}],regionList2:[{zone_id:"0",gate_id:"Zone_1",name:"西进口左1",timestamp:"2022-10-1",type:"car",enter_flow:1,leave_flow:3,ave_stay:3.2,ave_queue:2.9,ave_occ:.56,ave_delay:8,ave_speed:12},{zone_id:"0",gate_id:"Zone_1",name:"西进口左1",timestamp:"2022-10-1",type:"car",enter_flow:1,leave_flow:3,ave_stay:3.2,ave_queue:2.9,ave_occ:.56,ave_delay:7,ave_speed:22},{zone_id:"0",gate_id:"Zone_1",name:"西进口左1",timestamp:"2022-10-1",type:"car",enter_flow:1,leave_flow:3,ave_stay:3.2,ave_queue:2.9,ave_occ:.56,ave_delay:17,ave_speed:12}],count1:!1,count2:!1}},created:function(){},methods:{regionHandle:function(){this.count1=!this.count1,0==this.count1?(this.$refs.region.style.height="50vh",this.$refs.box.style.height="100vh"):1==this.count1&&(this.$refs.region.style.height=this.$refs.regionContent.offsetHeight+30+"px",this.$refs.box.style.height="auto")},sectionHandle:function(){this.count2=!this.count2,0==this.count2?(this.$refs.section.style.height="50vh",this.$refs.box.style.height="100vh"):1==this.count2&&(this.$refs.section.style.height=this.$refs.sectionContent.offsetHeight+30+"px",this.$refs.box.style.height="auto")}},mounted:function(){}},be=fe,ye=(a("63d7"),Object(b["a"])(be,w,S,!1,null,"6c7ef4a0",null)),ve=ye.exports,we=a("2707"),Se=a("bc3a"),Ce=a.n(Se),xe=a("38df"),_e={data:function(){return{receiveNews:"",topicSends:["img0","stream0","trajectory0","detection0"],trajectory:!1,hideBoxShow:!0,closeStatus:null,modelOthers:!1,componentShow:"",isShowBtn:!0,isShowBtn1:!1,inputVal:"",dialogFormVisible:!1,areaComponent:!1,indexModule:!1,numberNew:1,speed:!1,component:!1,sectionals:[],activeName:"first",VideoId:"",title:"断面",componentTitle:"速度",form:{name:"",type:"",id:"",coordinate:"",Direction:"正向",StoppingSpeed:"5"},startFigureName:"",areaComponentform:{name:"",region:"",date1:"",date2:"",delivery:!1,type:[],resource:"实时(触发)",desc:""},timeSelect:[{label:"秒",value:"秒"},{label:"分钟",value:"分钟"},{label:"小时",value:"小时"},{label:"天",value:"天"}],titName:"",componentForm:{company:"秒",componentName:"",componentParameterId:"01888e05fac246b29e3a19a27c3d2ab0",cycleInterval:"",startSectionIds:"",startSectionNames:"",endSectionIds:"",endSectionNames:"",endValue:"",presentationForm:"",presentation:[],startValue:"",timeMode:"触发",type:[],startSection:[],endSection:[],componentType:"",typeFiltering:"",typeData:[]},typeData:["小汽车","公交车","卡车","非机动车","行人"],presentation:["数值","表格","时间曲线图","均值图"],trackForm:{name:""},nowTime:"",ins:0,imgUrl:"",imgUrl1:"",imgUrl2:"",imgUrl3:"",imgUrl4:"",imgUrl5:"",btnPic:[],Data:[{title:"xx路口",url:""},{title:"数据看板",url:""},{title:"分析配置",url:""},{title:"分析配置",url:""}],messageInfo:[],orderList:[],enterList:[],stockInfo:[],perCent:0,perCent1:0,perCent2:0,facToal:"",wbContent:"",inContent:"",outContent:"",containerDetails:"",locdesc:"",weatherItem:{},loadingShow1:!0,number:"",componentId:"",analysisConfigurationdata:{}}},destroyed:function(){console.log("离开当前页"),i.end()},created:function(){window.getFigure=this.getFigureD,window.getModifyTheName=this.getModifyTheNameN,window.getSingleComponentId=this.getSingleComponentIdN,window.getSimulationAreaEdit=this.getSimulationAreaEdit,window.OnScene=this.OnSceneN,this.getAllSectionalData(this.$route.query.id),this.VideoId=this.$route.query.id,this.number=this.$route.query.num,this.titName=this.$route.query.name},mounted:function(){this.componentForm.company=this.timeSelect[0].value,this.createMqtt()},methods:{createMqtt:function(){var t=this;this.topicSends=["img"+this.number,"stream"+this.number,"trajectory"+this.number,"detection"+this.number],o=new xe["a"](this.topicSends),i=o.createConnect(),i.subscribe(["img"+this.number,"stream"+this.number,"trajectory"+this.number,"detection"+this.number],{qos:0},(function(e){e?console.log("消息订阅失败!"):(console.log("订阅成功"),i.publish("msg_stream",JSON.stringify({msg_flag:parseInt(t.number)})))})),i.on("message",(function(e,a){try{t.realInfo(e,a)}catch(n){}}))},disConnect:function(){null!=i&&(i.unsubscribe(this.topicSends),i=null)},realInfo:function(t,e){switch(t){case"img0":case"img1":case"img2":try{var a=new TextDecoder,n=new Uint8Array(e),o=a.decode(n),i=JSON.parse(o);document.getElementById("mapModule").contentWindow.getDestination(JSON.stringify(i)),"high"==i.rate?document.getElementById("mapModule").contentWindow.getDestination(JSON.stringify(i)):this.analysisConfigurationdata=i}catch(w){}break;case"stream0":case"stream1":case"stream2":try{var l=new TextDecoder,s=new Uint8Array(e),r=l.decode(s),c=JSON.parse(r);document.getElementById("mapModule").contentWindow.getData(JSON.stringify(c))}catch(w){}break;case"trajectory0":case"trajectory1":case"trajectory2":case"trajectory3":try{var d=new TextDecoder,p=new Uint8Array(e),m=d.decode(p),u=JSON.parse(m);document.getElementById("mapModule").contentWindow.getGuiJi(JSON.stringify(u))}catch(w){}break;case"detection0":case"detection1":case"detection2":try{var g=new TextDecoder,h=new Uint8Array(e),f=g.decode(h),b=[],y=JSON.parse(f);if(0!=f.length){for(var v=0;v<y.length;v++)b.push(y[v].det_id);document.getElementById("mapModule").contentWindow.getChuFa(JSON.stringify(b))}}catch(w){}break}this.receiveNews=""},OnSceneN:function(){document.getElementById("mapModule").contentWindow.postVideoId(JSON.stringify(this.$route.query.id))},getSingleComponentIdN:function(t,e,a){var n=this;console.log("id",t),console.log("type",e),console.log("name",a),this.componentId=t,this.componentForm.componentType=e,this.componentTitle=e,Object(g["b"])({AnalogAreaComponentId:t}).then((function(t){if(console.log("res",t),200==t.data.code){if(console.log("res",t.data.data),n.component=!0,""!=t.data.data.company&&(n.componentForm.company=t.data.data.company),""!=t.data.data.timeMode&&(n.componentForm.timeMode=t.data.data.timeMode),n.componentForm.componentName=t.data.data.componentName,n.componentForm.componentParameterId=t.data.data.componentParameterId,n.componentForm.cycleInterval=t.data.data.cycleInterval,n.componentForm.startSectionIds=t.data.data.startSectionIds,n.componentForm.startSectionNames=t.data.data.startSectionNames,n.componentForm.endSectionIds=t.data.data.endSectionIds,n.componentForm.endSectionNames=t.data.data.endSectionNames,n.componentForm.endValue=t.data.data.endValue,n.componentForm.startValue=t.data.data.startValue,n.componentForm.presentationForm=t.data.data.presentationForm,""!=t.data.data.startSectionIds){console.log("startSectionIds",t.data.data.startSectionIds);var e=[],a=[];e=t.data.data.startSectionIds.split(","),console.log("this.sectionals",n.sectionals),console.log("startSectionIdArr",e),e.forEach((function(t){n.sectionals.forEach((function(e){t==e.graphicId&&(a.push(e.graphicName),n.componentForm.startSection=a)}))}))}if(""!=t.data.data.endSectionIds){console.log("endSectionIds",t.data.data.endSectionIds);var o=[],i=[];o=t.data.data.endSectionIds.split(","),console.log("this.sectionals",n.sectionals),console.log("endSectionIdArr",o),o.forEach((function(t){n.sectionals.forEach((function(e){t==e.graphicId&&(i.push(e.graphicName),n.componentForm.endSection=i)}))}))}if(""!=n.componentForm.presentationForm){var l=[];l=n.componentForm.presentationForm.split(","),n.componentForm.presentation=l}else""==n.componentForm.presentationForm&&(n.componentForm.presentation=[]);if(""!=t.data.data.type){l=[];l=t.data.data.type.split(","),n.componentForm.type=l}else n.componentForm.type=[];console.log("this.componentForm",n.componentForm)}}))},getSimulationAreaEdit:function(t,e,a,n,o){var i=this;console.log("number",o),this.numberNew=o,"图形"==e?(this.form.id=t,this.form.name=n,this.form.type=a,this.startFigureName=n,("轨迹"==this.form.type||"区域"==this.form.type||"断面"==this.form.type)&&(this.dialogFormVisible=!0)):"组件"==e&&(this.componentId=t,this.componentForm.componentType=a,this.componentTitle=a,Object(g["b"])({AnalogAreaComponentId:t}).then((function(t){if(console.log("res",t),200==t.data.code){if(console.log("res",t.data.data),i.component=!0,""!=t.data.data.company&&(i.componentForm.company=t.data.data.company),""!=t.data.data.timeMode&&(i.componentForm.timeMode=t.data.data.timeMode),i.componentForm.componentName=t.data.data.componentName,i.componentForm.componentParameterId=t.data.data.componentParameterId,i.componentForm.cycleInterval=t.data.data.cycleInterval,i.componentForm.startSectionIds=t.data.data.startSectionIds,i.componentForm.startSectionNames=t.data.data.startSectionNames,i.componentForm.endSectionIds=t.data.data.endSectionIds,i.componentForm.endSectionNames=t.data.data.endSectionNames,i.componentForm.endValue=t.data.data.endValue,i.componentForm.startValue=t.data.data.startValue,i.componentForm.presentationForm=t.data.data.presentationForm,""!=t.data.data.startSectionIds){console.log("startSectionIds",t.data.data.startSectionIds);var e=[],a=[];e=t.data.data.startSectionIds.split(","),console.log("this.sectionals",i.sectionals),console.log("startSectionIdArr",e),e.forEach((function(t){i.sectionals.forEach((function(e){t==e.graphicId&&(a.push(e.graphicName),i.componentForm.startSection=a)}))}))}if(""!=t.data.data.endSectionIds){console.log("endSectionIds",t.data.data.endSectionIds);var n=[],o=[];n=t.data.data.endSectionIds.split(","),console.log("this.sectionals",i.sectionals),console.log("endSectionIdArr",n),n.forEach((function(t){i.sectionals.forEach((function(e){t==e.graphicId&&(o.push(e.graphicName),i.componentForm.endSection=o)}))}))}if(""!=i.componentForm.presentationForm){var l=[];l=i.componentForm.presentationForm.split(","),i.componentForm.presentation=l}else""==i.componentForm.presentationForm&&(i.componentForm.presentation=[]);if(""!=t.data.data.type){l=[];l=t.data.data.type.split(","),i.componentForm.type=l}else i.componentForm.type=[]}})))},getAllSectionalData:function(t){var e=this;Object(g["g"])({VideoId:t}).then((function(t){console.log("res",t),200==t.data.code&&(e.sectionals=t.data.data)}))},figureType:function(t){return"Move"==t?t="轨迹":"Poly"==t?t="区域":"Line"==t&&(t="断面"),t},getFigureD:function(t,e,a){console.log("图形类型",t),console.log("初始图形名称",e),this.startFigureName=e,console.log("图形位置",a),this.dialogFormVisible=!0,this.form.name=e,this.form.type=this.figureType(t),this.form.coordinate=a,this.form.id="",this.title=this.figureType(t)},getModifyTheNameN:function(t,e){console.log("data",t),console.log("number",e),this.numberNew=e;var a=[];a=t.split(","),console.log("arr",a),this.form.id=a[0],this.form.name=a[1],this.form.type=a[2],this.startFigureName=a[1],("轨迹"==this.form.type||"区域"==this.form.type||"断面"==this.form.type)&&(this.dialogFormVisible=!0)},onSubmit:function(t){var e=this;if(console.log("form",t),""==t.id){var a=new FormData;"断面"==t.type?(a.append("GraphicName",t.name),a.append("GraphicType",t.type),a.append("Coordinate",t.coordinate),a.append("VideoId",this.VideoId),a.append("Direction",t.Direction)):(t.type,a.append("GraphicName",t.name),a.append("GraphicType",t.type),a.append("Coordinate",t.coordinate),a.append("VideoId",this.VideoId)),Ce()({method:"post",url:we["a"].addFigure,data:a}).then((function(a){console.log("res",a),200==a.data.code?(e.$message({message:a.data.msg,type:"success"}),document.getElementById("mapModule").contentWindow.postFigureId(JSON.stringify(a.data.data)),document.getElementById("mapModule").contentWindow.postFigureName(JSON.stringify(a.data.data+","+t.name+","+e.startFigureName+","+e.numberNew)),e.dialogFormVisible=!1):e.$message({message:a.data.msg,type:"warning"})}))}else{var n=new FormData;"断面"==t.type?(n.append("GraphicName",t.name),n.append("GraphicType",t.type),n.append("Direction",t.Direction),n.append("GraphicId",t.id),n.append("VideoId",this.VideoId)):"区域"==t.type?(n.append("GraphicName",t.name),n.append("GraphicType",t.type),n.append("Direction",t.Direction),n.append("GraphicId",t.id),n.append("VideoId",this.VideoId),n.append("StoppingSpeed",t.StoppingSpeed)):(n.append("GraphicName",t.name),n.append("GraphicType",t.type),n.append("GraphicId",t.id),n.append("VideoId",this.VideoId)),Ce()({method:"post",url:we["a"].editFigure,data:n}).then((function(a){console.log("res",a),200==a.data.code?(e.$message({message:a.data.msg,type:"success"}),console.log("startFigureName",e.startFigureName),console.log("this.numberNew",e.numberNew),document.getElementById("mapModule").contentWindow.postFigureName(JSON.stringify(t.id+","+t.name+","+e.startFigureName+","+e.numberNew)),e.dialogFormVisible=!1):e.$message({message:a.data.msg,type:"warning"})}))}},onSubmitComponent:function(t){var e=this;this.component=!1;var a=new FormData;"OD"==t.componentType?(a.append("componentName",t.componentName),a.append("company",t.company),a.append("componentParameterId",t.componentParameterId),a.append("cycleInterval",t.cycleInterval),a.append("startSectionIds",t.startSectionIds),a.append("startSectionNames",t.startSectionNames),a.append("endSectionIds",t.endSectionIds),a.append("endSectionNames",t.endSectionNames),a.append("endValue",t.endValue),a.append("startValue",t.startValue),a.append("timeMode",t.timeMode),a.append("presentationForm","矩阵图")):"类型"==t.componentType?(a.append("componentName",t.componentName),a.append("company",t.company),a.append("componentParameterId",t.componentParameterId),a.append("cycleInterval",t.cycleInterval),a.append("endValue",t.endValue),a.append("startValue",t.startValue),a.append("timeMode",t.timeMode),a.append("presentationForm",t.presentationForm),a.append("type",t.type)):(a.append("componentName",t.componentName),a.append("company",t.company),a.append("componentParameterId",t.componentParameterId),a.append("cycleInterval",t.cycleInterval),a.append("endValue",t.endValue),a.append("startValue",t.startValue),a.append("timeMode",t.timeMode),a.append("presentationForm",t.presentationForm)),Ce()({method:"post",url:we["a"].editComponent,data:a}).then((function(a){console.log("res",a),200==a.data.code?(e.$message({message:a.data.msg,type:"success"}),document.getElementById("mapModule").contentWindow.postFigureId(JSON.stringify(a.data.data)),document.getElementById("mapModule").contentWindow.editComponent(e.componentId+","+t.componentName),e.dialogFormVisible=!1):e.$message({message:a.data.msg,type:"warning"})}))},closeComponent:function(t){this.component=!1,this.componentForm={company:"秒",componentName:"",componentParameterId:"01888e05fac246b29e3a19a27c3d2ab0",cycleInterval:"",startSectionIds:"",startSectionNames:"",endSectionIds:"",endSectionNames:"",endValue:"",presentationForm:"",presentation:[],startValue:"",timeMode:"触发",type:[],startSection:[],endSection:[],componentType:"",typeFiltering:"",typeData:[]}},closeFigure:function(t){console.log("form",t),""!=t.id?(this.dialogFormVisible=!1,document.getElementById("mapModule").contentWindow.closeEdit(JSON.stringify(t.type+","+t.id))):(this.dialogFormVisible=!1,document.getElementById("mapModule").contentWindow.delFigure())},closeComponentForm:function(){this.component=!1},closeForm:function(t){""!=this.form.id?(this.dialogFormVisible=!1,document.getElementById("mapModule").contentWindow.closeEdit(JSON.stringify(t.type+","+t.id))):(this.dialogFormVisible=!1,document.getElementById("mapModule").contentWindow.delFigure())},handleCheckedStartSection:function(t){var e=this;console.log("改变起点",t);var a=[],n=[];t.forEach((function(t){e.sectionals.forEach((function(o){if(t==o.graphicName){a.push(o.graphicId),n.push(o.graphicName);var i=a.join(","),l=n.join(",");e.componentForm.startSectionIds=i,e.componentForm.startSectionNames=l}}))}))},handleCheckedendSection:function(t){var e=this;console.log("改变终点",t);var a=[],n=[];t.forEach((function(t){e.sectionals.forEach((function(o){if(t==o.graphicName){a.push(o.graphicId),n.push(o.graphicName);var i=a.join(","),l=n.join(",");console.log("newendSectionId",i),console.log("newEndSectionName",l),e.componentForm.endSectionIds=i,e.componentForm.endSectionNames=l}}))}))},handlePresentation:function(t){console.log("展现形式",t);var e=t.join(",");this.componentForm.presentationForm=e,console.log("this.componentForm.presentationForm",this.componentForm.presentationForm)},handleTypeData:function(t){console.log("类型数据",t);var e=t.join(",");this.componentForm.typeData=e},loadingShow:function(t){this.loadingShow1=t},handleSearch:function(){this.modelOthers=!0,this.$refs.htModels.finbBox(this.inputVal),console.log(this.$refs.htModels,"asdasdasd"),this.inputVal=""},handleRow:function(t){this.modelOthers=!0,this.$refs.htModels.finbBox(t)},handleWather:function(){var t=this;Ce()({url:"https://restapi.amap.com/v3/weather/weatherInfo?key=bc2b906032fdd8a63cbd0790d656b1d7&city=620100",methods:""}).then((function(e){t.weatherItem=e.data.lives[0],console.log(t.weatherItem,"asdsads")}))}},components:{editModal:r["a"],analysisConfiguration:v,dataBoard:ve}},Te=_e,Fe=(a("01e1"),Object(b["a"])(Te,l,s,!1,null,"4b963784",null));e["default"]=Fe.exports},"20bd":function(t,e,a){"use strict";var n=a("dc6a"),o=a.n(n);o.a},"29f6":function(t,e,a){"use strict";var n=a("af2b"),o=a.n(n);o.a},"2ed0":function(t,e,a){},4301:function(t,e,a){"use strict";var n=a("2ed0"),o=a.n(n);o.a},4437:function(t,e,a){},"4c6f":function(t,e,a){},"50d6":function(t,e,a){"use strict";var n=a("6ade"),o=a.n(n);o.a},5219:function(t,e,a){},"57cf":function(t,e,a){},"63d7":function(t,e,a){"use strict";var n=a("8ea2"),o=a.n(n);o.a},"6ade":function(t,e,a){},"77ff":function(t,e,a){},"810a":function(t,e,a){"use strict";var n=a("77ff"),o=a.n(n);o.a},"8ea2":function(t,e,a){},a2f1:function(t,e,a){},ac2b:function(t,e,a){},ae10:function(t,e,a){"use strict";var n=a("57cf"),o=a.n(n);o.a},af2b:function(t,e,a){},d7f5:function(t,e,a){},db28:function(t,e,a){"use strict";var n=a("4c6f"),o=a.n(n);o.a},dc6a:function(t,e,a){},e17e:function(t,e,a){"use strict";var n=a("a2f1"),o=a.n(n);o.a},e38e:function(t,e,a){},e526:function(t,e,a){"use strict";var n=a("ac2b"),o=a.n(n);o.a},e577:function(t,e,a){"use strict";var n=a("4437"),o=a.n(n);o.a},e9ac:function(t,e,a){"use strict";var n=a("5219"),o=a.n(n);o.a},e9c0:function(t,e,a){},ebd1:function(t,e,a){"use strict";var n=a("e38e"),o=a.n(n);o.a}}]);
|
||
//# sourceMappingURL=chunk-faf0d758.a4da36b9.js.map
|