(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3d6e8f3e"],{2769:function(t,e,i){"use strict";i.r(e);var o=function(){var t=this,e=t._self._c;return e("div",{staticClass:"problem"},[e("div",{staticClass:"header"},[t._v("问题列表")]),e("div",{staticClass:"content",staticStyle:{overflow:"hidden"}},[e("van-tabs",{attrs:{swipeable:!0,color:"rgb(47, 143, 251)","title-active-color":"rgb(47, 143, 251)","line-width":".4rem","line-height":".04rem"},on:{click:t.tabTob},model:{value:t.active,callback:function(e){t.active=e},expression:"active"}},[e("van-tab",{attrs:{title:"打卡式巡检",name:"1",dot:!!t.bubble.clockSumNumber}},[e("div",{staticClass:"tab"},[e("p",{class:0===t.tabsNum?"active":"actives"},[e("span",{on:{click:t.tabs}},[t._v("未处理")]),e("i",{directives:[{name:"show",rawName:"v-show",value:t.bubble.clockUntreated,expression:"bubble.clockUntreated"}]},[t._v(t._s(t.bubble.clockUntreated))])]),e("p",{class:2===t.tabsNum?"active":"actives"},[e("span",{on:{click:t.tabs}},[t._v("已临时整改")]),e("i",{directives:[{name:"show",rawName:"v-show",value:t.bubble.clockTemporary,expression:"bubble.clockTemporary"}]},[t._v(t._s(t.bubble.clockTemporary))])]),e("p",{class:3===t.tabsNum?"active":"actives"},[e("span",{on:{click:t.tabs}},[t._v("检查")]),e("i",{directives:[{name:"show",rawName:"v-show",value:t.bubble.clockCheck,expression:"bubble.clockCheck"}]},[t._v(t._s(t.bubble.clockCheck))])])]),e("div",{staticClass:"tabContent"},[e("van-pull-refresh",{on:{refresh:t.onRefresh},model:{value:t.isLoading,callback:function(e){t.isLoading=e},expression:"isLoading"}},[e("ul",t._l(t.list,(function(i,o){return e("li",{key:o,on:{click:function(e){return t.itemAbnormal(i)}}},[e("p",[e("van-icon",{staticStyle:{"margin-right":".1rem"},attrs:{name:"comment-o",color:"rgb(0, 122, 251)"}}),e("span",[t._v(t._s(i.titleStr))])],1),e("div",[e("van-icon",{staticStyle:{"margin-right":".1rem"},attrs:{name:"clock-o",color:"rgb(0, 122, 251)"}}),e("span",[t._v("提报时间:"+t._s(i.reportingTime))])],1)])})),0)])],1)]),e("van-tab",{attrs:{title:"视频巡检",name:"2",dot:!!t.bubble.videoSumNumber}},[e("div",{staticClass:"tab"},[e("p",{class:0===t.tabsNum?"active":"actives"},[e("span",{on:{click:t.tabs}},[t._v("未处理")]),e("i",{directives:[{name:"show",rawName:"v-show",value:t.bubble.videoUntreated,expression:"bubble.videoUntreated"}]},[t._v(t._s(t.bubble.videoUntreated))])]),e("p",{class:2===t.tabsNum?"active":"actives"},[e("span",{on:{click:t.tabs}},[t._v("已临时整改")]),e("i",{directives:[{name:"show",rawName:"v-show",value:t.bubble.videoTemporary,expression:"bubble.videoTemporary"}]},[t._v(t._s(t.bubble.videoTemporary))])]),e("p",{class:3===t.tabsNum?"active":"actives"},[e("span",{on:{click:t.tabs}},[t._v("检查")]),e("i",{directives:[{name:"show",rawName:"v-show",value:t.bubble.videoCheck,expression:"bubble.videoCheck"}]},[t._v(t._s(t.bubble.videoCheck))])])]),e("div",{staticClass:"tabContent"},[e("van-pull-refresh",{on:{refresh:t.onRefresh},model:{value:t.isLoading,callback:function(e){t.isLoading=e},expression:"isLoading"}},[e("ul",t._l(t.list,(function(i,o){return e("li",{key:o,on:{click:function(e){return t.itemAbnormal(i)}}},[e("p",[e("van-icon",{staticStyle:{"margin-right":".1rem"},attrs:{name:"comment-o",color:"rgb(0, 122, 251)"}}),e("span",[t._v(t._s(i.titleStr))])],1),e("div",[e("van-icon",{staticStyle:{"margin-right":".1rem"},attrs:{name:"clock-o",color:"rgb(0, 122, 251)"}}),e("span",[t._v("提报时间:"+t._s(i.reportingTime))])],1)])})),0)])],1)]),e("van-tab",{attrs:{title:"HSE检查",name:"3"}},[t._v("等待开发")])],1)],1),e("van-overlay",{attrs:{show:t.loading}},[e("div",{staticClass:"wrapper",on:{click:function(t){t.stopPropagation()}}},[e("van-loading",{attrs:{size:"24px",color:"#0094ff",vertical:""}},[t._v("加载中...")])],1)]),t.isParticulars?e("Particulars",{attrs:{id:t.id},on:{cloneAlert:t.cloneAlert}}):t._e()],1)},s=[],a=(i("e7e5"),i("d399")),n=i("c761"),r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"particulars"},[e("div",{staticClass:"header"},[e("van-icon",{attrs:{name:"arrow-left",color:"#fff"},on:{click:t.back}}),t._v("消息详情 ")],1),e("div",{staticClass:"textContent"},[e("h3",{staticClass:"topTitle"},[t._v("异常问题详情:")]),e("div",{staticClass:"abnormity"},[e("p",[t._v("提报异常区域:"+t._s(t.list.locationName))]),e("p",[t._v("提报人:"+t._s(t.list.reportedBy))]),e("p",[t._v("提报时间:"+t._s(t.list.reportingTime))]),e("p",[t._v("异常描述:"+t._s(t.list.alarmContent))])]),t._l(t.videoLists,(function(o,s){return e("div",{key:s,staticClass:"audio"},[e("img",{attrs:{src:i("4b7f"),alt:""},on:{click:function(e){return t.play(s)}}}),e("div",{directives:[{name:"show",rawName:"v-show",value:o.player,expression:"item.player"}],staticClass:"anima"}),e("p",{directives:[{name:"show",rawName:"v-show",value:o.audioNum,expression:"item.audioNum"}]},[t._v(t._s(o.audioNum)+'"')]),e("b",{directives:[{name:"show",rawName:"v-show",value:o.isRed,expression:"item.isRed"}]}),e("audio",{ref:"audios1"+s,refInFor:!0,staticStyle:{opacity:"0",width:"1px",height:"1px"},attrs:{controls:"",id:"linkAudio",preload:"metadata"}},[e("source",{attrs:{src:o.videoCode,type:"audio/ogg"}})])])})),e("ul",{staticClass:"img"},t._l(t.imgList,(function(t,i){return e("li",{key:i},[e("img",{attrs:{src:t,alt:""}})])})),0),2===t.list.state?e("div",{staticStyle:{"border-top":".01rem solid #ccc","border-bottom":".01rem solid #ccc","margin-top":".1rem"}},[e("h3",{staticClass:"topTitle"},[t._v("临时整改详情:")]),e("div",{staticClass:"abnormity"},[e("p",[t._v("未整改问题隐患临时防范/应急措施:"+t._s(t.list.tempMeasures))]),e("p",[t._v("提报人:"+t._s(t.list.tempProcessor))]),e("p",[t._v("提报时间:"+t._s(t.list.tempDate))])]),t.isAudio?e("div",{staticClass:"audio"},[e("img",{attrs:{src:i("4b7f"),alt:""},on:{click:t.play}}),e("div",{directives:[{name:"show",rawName:"v-show",value:t.player,expression:"player"}],staticClass:"anima"}),t.audioNum?e("p",[t._v(t._s(t.audioNum)+'"')]):e("p",[e("van-loading",{attrs:{type:"spinner",size:".2rem"}})],1),e("b",{directives:[{name:"show",rawName:"v-show",value:t.isRed,expression:"isRed"}]})]):t._e(),e("audio",{ref:"audio",staticStyle:{opacity:"0",width:"1px",height:"1px"},attrs:{controls:"",id:"linkAudio",preload:"metadata"}},[e("source",{attrs:{src:t.list.videoCode,type:"audio/ogg"}})]),e("ul",{staticClass:"img"},t._l(t.imgList,(function(t,i){return e("li",{key:i},[e("img",{attrs:{src:t,alt:""}})])})),0)]):t._e(),1===t.list.state?e("div",{staticStyle:{"border-top":".01rem solid #ccc","margin-top":".1rem"}},[e("h3",{staticClass:"topTitle"},[t._v("整改详情:")]),e("div",{staticClass:"abnormity"},[e("p",[t._v("整改方案/措施:"+t._s(t.list.measures))]),e("p",[t._v("整改处理人:"+t._s(t.list.handleBy))]),e("p",[t._v("整改处理时间:"+t._s(t.list.handleDate))])]),t._l(t.videoLists,(function(o,s){return e("div",{key:s,staticClass:"audio"},[e("img",{attrs:{src:i("4b7f"),alt:""},on:{click:function(e){return t.play(s)}}}),e("div",{directives:[{name:"show",rawName:"v-show",value:o.player,expression:"item.player"}],staticClass:"anima"}),e("p",{directives:[{name:"show",rawName:"v-show",value:o.audioNum,expression:"item.audioNum"}]},[t._v(t._s(o.audioNum)+'"')]),e("b",{directives:[{name:"show",rawName:"v-show",value:o.isRed,expression:"item.isRed"}]}),e("audio",{ref:"audios1"+s,refInFor:!0,staticStyle:{opacity:"0",width:"1px",height:"1px"},attrs:{controls:"",id:"linkAudio",preload:"metadata"}},[e("source",{attrs:{src:o.videoCode,type:"audio/ogg"}})])])})),e("ul",{staticClass:"img"},t._l(t.imgList,(function(t,i){return e("li",{key:i},[e("img",{attrs:{src:t,alt:""}})])})),0)],2):t._e(),2===t.list.state?e("Record",{ref:"child",on:{recordItem:t.recordItem}}):t._e(),2===t.list.state?e("div",{staticClass:"reason"},[e("van-field",{staticStyle:{border:".01rem solid gray","border-radius":".07rem",width:"96%","margin-left":"2%"},attrs:{rows:"4",autosize:"",type:"textarea",maxlength:"500",placeholder:"请输入整改方案/措施","show-word-limit":""},model:{value:t.message,callback:function(e){t.message=e},expression:"message"}})],1):t._e()],2),e("div",{staticClass:"foots"},[t.list.state?t._e():e("van-button",{attrs:{type:"info"},on:{click:function(e){t.isOverlay=!0,t.radio=""}}},[t._v("处理")]),t.list.state?t._e():e("van-button",{attrs:{type:"info"},on:{click:t.redeploy}},[t._v("转/派")]),2===t.list.state?e("van-button",{staticStyle:{width:"96%"},attrs:{type:"info"}},[t._v("提交")]):t._e(),1===t.list.state?e("van-button",{staticStyle:{width:"50%","border-radius":"0"},attrs:{type:"default"}},[t._v("驳回")]):t._e(),1===t.list.state?e("van-button",{staticStyle:{width:"50%","border-radius":"0"},attrs:{type:"info"}},[t._v("通过")]):t._e()],1),e("van-overlay",{attrs:{show:t.isOverlay}},[e("div",{staticClass:"wrapper",on:{click:function(t){t.stopPropagation()}}},[e("van-radio-group",{staticClass:"block",attrs:{direction:"horizontal"},on:{change:t.overlay},model:{value:t.radio,callback:function(e){t.radio=e},expression:"radio"}},[e("van-radio",{attrs:{name:"0"}},[t._v("临时整改")]),e("van-radio",{attrs:{name:"1"}},[t._v("整改")]),e("van-icon",{staticClass:"close",attrs:{name:"cross"},on:{click:t.cloneOver}})],1)],1)]),e("van-overlay",{attrs:{show:t.isTurn},on:{click:function(e){t.isTurn=!1}}},[e("div",{staticClass:"wrapper",on:{click:function(t){t.stopPropagation()}}},[e("div",{staticClass:"turns"},[e("van-icon",{staticClass:"close",attrs:{name:"cross"},on:{click:t.cloneTurn}}),e("h5",[t._v("请选择转/派的人员")]),e("van-dropdown-menu",{staticStyle:{"margin-top":".2rem"},attrs:{overlay:!1}},[e("van-dropdown-item",{attrs:{options:t.option1},on:{change:t.changeValue},model:{value:t.value1,callback:function(e){t.value1=e},expression:"value1"}}),e("van-dropdown-item",{attrs:{options:t.option2},model:{value:t.value2,callback:function(e){t.value2=e},expression:"value2"}})],1),e("div",{staticClass:"btn"},[e("van-button",{attrs:{type:"info"},on:{click:t.confirmRedeploy}},[t._v("确定")])],1)],1)])]),t.isDispose?e("dispose",{attrs:{list:t.list,type:t.type},on:{closeDispose:t.closeDisposes}}):t._e()],1)},l=[],c=(i("14d9"),function(){var t=this,e=t._self._c;return e("div",{staticClass:"dispose"},[e("div",{staticClass:"header"},[e("van-icon",{attrs:{name:"arrow-left",color:"#fff"},on:{click:t.closeDispose}}),t._v("处理详情 ")],1),e("div",{staticClass:"textContent",staticStyle:{padding:".1rem"}},[e("div",{staticClass:"photo"},[e("van-uploader",{attrs:{multiple:"","after-read":t.fileImage,"preview-size":"27vw","preview-full-image":!1},on:{"click-preview":t.preview},model:{value:t.fileList,callback:function(e){t.fileList=e},expression:"fileList"}})],1),0==this.type?e("div",{staticClass:"date"},[e("p",[t._v("计划完成整改时间:")]),e("van-cell",{staticStyle:{width:"60%"},attrs:{title:"请选择",value:t.date},on:{click:function(e){t.show=!0}}}),e("van-calendar",{attrs:{"min-date":t.minDate},on:{confirm:t.onConfirm},model:{value:t.show,callback:function(e){t.show=e},expression:"show"}})],1):t._e(),e("div",{staticClass:"record"},[e("div",{staticClass:"play",on:{click:t.transmit}},[e("p",{directives:[{name:"show",rawName:"v-show",value:t.player,expression:"player"}]}),e("img",{attrs:{src:i("619a"),alt:""}}),e("span",[t._v(t._s(t.duration)+'"')])]),e("button",{on:{touchstart:t.touchstart,touchend:t.touchend,touchmove:t.touchmove}},[t._v(" "+t._s(t.btRecoding?"松开结束":"按住说话")+" ")]),e("van-overlay",{attrs:{show:t.btRecoding},on:{click:function(e){t.show=!1}}},[e("div",{staticClass:"wrappers",on:{click:function(t){t.stopPropagation()}}},[t.btRecoding?e("div",{staticClass:"shade",attrs:{catchtouchmove:"ture"}},[t.blackBoxSpeak?e("div",{staticClass:"blackBoxSpeak"},[e("div",[e("img",{attrs:{src:i("c1c5")}})]),e("div",{staticClass:"bounce"},[e("ul",[e("li"),e("li"),e("li"),e("li")])]),e("div",{staticClass:"blackBoxSpeakConent"},[t._v("手指上划,取消录制")])]):e("div",{staticClass:"blackBoxPause"},[e("img",{staticStyle:{"background-color":"rgb(238, 238, 238)"},attrs:{src:i("81e5")}}),e("div",{staticClass:"blackBoxSpeakConent",staticStyle:{background:"red"}},[t._v(" 松开手指,取消录制 ")])])]):t._e()])])],1),e("h4",{staticStyle:{"text-align":"left",margin:".3rem 0 .1rem 0"}},[t._v(" "+t._s(0==this.type?" 未整改问题隐患临时防范/应急措施":"未整改问题隐患防范/应急措施")+" ")]),e("van-field",{staticStyle:{border:".01rem solid gray","border-radius":".07rem"},attrs:{rows:"4",autosize:"",type:"textarea",maxlength:"500",placeholder:0==this.type?"请输入临时整改措施":"请输入整改措施","show-word-limit":""},model:{value:t.message,callback:function(e){t.message=e},expression:"message"}})],1),t.list.state?t._e():e("div",{staticClass:"foots"},[e("van-button",{staticStyle:{width:"96%","border-radius":".05rem",margin:".1rem 0","font-size":".2rem"},attrs:{type:"info"},on:{click:t.add}},[t._v("提交")])],1),e("div",{directives:[{name:"show",rawName:"v-show",value:t.isEditor,expression:"isEditor"}],staticClass:"drawing-container"},[e("div",{attrs:{id:"tui-image-editor"}}),e("van-button",{staticClass:"closes",attrs:{plain:"",type:"info"},on:{click:t.close}},[t._v("取消")]),e("van-button",{staticClass:"save",attrs:{type:"info"},on:{click:t.save}},[t._v("保存")])],1),e("van-overlay",{attrs:{show:t.loading}},[e("div",{staticClass:"wrapper",on:{click:function(t){t.stopPropagation()}}},[e("van-loading",{attrs:{size:"24px",color:"#0094ff",vertical:""}},[t._v("上传中,请稍等...")])],1)])],1)}),d=[],u=(i("907a"),i("986a"),i("1d02"),i("3c5d"),i("6ce5"),i("2834"),i("4ea1"),i("669d"),i("109c"),i("b2c1"),i("b7ef"),i("da43")),h=i.n(u),p=(i("741a"),i("5ff5"),i("abe2")),m=i.n(p);const f={ZoomIn:"放大",ZoomOut:"缩小",Hand:"手掌",History:"历史",Resize:"调整宽高",Crop:"裁剪",DeleteAll:"全部删除",Delete:"删除",Undo:"撤销",Redo:"反撤销",Reset:"重置",Flip:"镜像",Rotate:"旋转",Draw:"画",Shape:"形状标注",Icon:"图标标注",Text:"文字标注",Mask:"遮罩",Filter:"滤镜",Bold:"加粗",Italic:"斜体",Underline:"下划线",Left:"左对齐",Center:"居中",Right:"右对齐",Color:"颜色","Text size":"字体大小",Custom:"自定义",Square:"正方形",Apply:"应用",Cancel:"取消","Flip X":"X 轴","Flip Y":"Y 轴",Range:"区间",Stroke:"描边",Fill:"填充",Circle:"圆",Triangle:"三角",Rectangle:"矩形",Free:"曲线",Straight:"直线",Arrow:"箭头","Arrow-2":"箭头2","Arrow-3":"箭头3","Star-1":"星星1","Star-2":"星星2",Polygon:"多边形",Location:"定位",Heart:"心形",Bubble:"气泡","Custom icon":"自定义图标","Load Mask Image":"加载蒙层图片",Grayscale:"灰度",Blur:"模糊",Sharpen:"锐化",Emboss:"浮雕","Remove White":"除去白色",Distance:"距离",Brightness:"亮度",Noise:"噪音","Color Filter":"彩色滤镜",Sepia:"棕色",Sepia2:"棕色2",Invert:"负片",Pixelate:"像素化",Threshold:"阈值",Tint:"色调",Multiply:"正片叠底",Blend:"混合色",Width:"宽度",Height:"高度","Lock Aspect Ratio":"锁定宽高比例"},v={"common.bi.image":"","common.bisize.width":"0px","common.bisize.height":"0px","common.backgroundImage":"none","common.backgroundColor":"#f3f4f6","common.border":"1px solid #333","header.backgroundImage":"none","header.backgroundColor":"#fff","header.border":"0px","loadButton.backgroundColor":"#fff","loadButton.border":"1px solid #ddd","loadButton.color":"#222","loadButton.fontFamily":"NotoSans, sans-serif","loadButton.fontSize":"12px","loadButton.display":"none","downloadButton.backgroundColor":"#fdba3b","downloadButton.border":"1px solid #fdba3b","downloadButton.color":"#fff","downloadButton.fontFamily":"NotoSans, sans-serif","downloadButton.fontSize":"12px","downloadButton.display":"none","menu.normalIcon.color":"#8a8a8a","menu.activeIcon.color":"#555555","menu.disabledIcon.color":"#ccc","menu.hoverIcon.color":"#e9e9e9","submenu.normalIcon.color":"#8a8a8a","submenu.activeIcon.color":"#e9e9e9","menu.iconSize.width":"24px","menu.iconSize.height":"24px","submenu.iconSize.width":"32px","submenu.iconSize.height":"32px","submenu.backgroundColor":"#1e1e1e","submenu.partition.color":"#858585","submenu.normalLabel.color":"#858585","submenu.normalLabel.fontWeight":"lighter","submenu.activeLabel.color":"#fff","submenu.activeLabel.fontWeight":"lighter","checkbox.border":"1px solid #ccc","checkbox.backgroundColor":"#fff","range.pointer.color":"#fff","range.bar.color":"#666","range.subbar.color":"#d1d1d1","range.disabledPointer.color":"#414141","range.disabledBar.color":"#282828","range.disabledSubbar.color":"#414141","range.value.color":"#fff","range.value.fontWeight":"lighter","range.value.fontSize":"11px","range.value.border":"1px solid #353535","range.value.backgroundColor":"#151515","range.title.color":"#fff","range.title.fontWeight":"lighter","colorpicker.button.border":"1px solid #1e1e1e","colorpicker.title.color":"#fff"};var g={props:["list","type"],name:"VueCli4VantDispose",data(){return{message:"",date:"",minDate:new Date((new Date).getTime()+864e5),show:!1,recorder:new h.a,btRecoding:!1,blackBoxSpeak:!1,voiceUrl:"",chartUrl:"",isEditor:!1,index:null,player:!1,duration:"",fileList:[],loading:!1}},watch:{list(t,e){t&&(this.list=t)},type(t,e){console.log(t,e),t&&(this.type=t)}},mounted(){},methods:{preview(t,e){console.log(t,e),this.index=e.index,this.init(t.content),this.isEditor=!0},add(){if(this.message)if(this.date)if(this.fileList.length){this.loading=!0,this.chartUrl="";const t=[];this.fileList.forEach((e,i)=>{const o=new window.File([this.dataURLtoBlob(e.content)],"异常上报.mp3",{type:"mp3"});console.log(o);var s=new FormData;s.append("file",o),s.append("moduleName","emergency"),t.push(Object(n["y"])(s))}),Promise.all(t).then(t=>{console.log(t),t.forEach((t,e)=>{this.chartUrl+=e?","+t.data.msg:t.data.msg}),Object(n["saveTemporary"])({assetCode:this.list.assetCode,id:this.list.id,pictureUrl:this.chartUrl,planDate:this.date.replace(/\//g,"-")+" 08:00:00",tempMeasures:this.message,tempProcessor:"lixl53",tempVoiceUrl:this.voiceUrl}).then(({data:t})=>{this.loading=!1}).catch(t=>{this.loading=!1})})}else this.$notify({type:"danger",message:"请上传照片!"});else this.$notify({type:"danger",message:"请选择临时整改日期!"});else this.$notify({type:"danger",message:"整改方案不能为空!"})},fileImage(){console.log(this.fileList)},init(t){this.instance=new m.a(document.querySelector("#tui-image-editor"),{includeUI:{loadImage:{path:t,name:"image"},menu:["resize","crop","rotate","draw","shape","icon","text"],initMenu:"draw",menuBarPosition:"bottom",locale:f,theme:v},cssMaxWidth:350,cssMaxHeight:700}),document.getElementsByClassName("tui-image-editor-main")[0].style.top="45px",document.getElementsByClassName("tie-btn-reset tui-image-editor-item help")[0].style.display="none"},save(){const t=this.instance.toDataURL();this.fileList[this.index].content=t,this.isEditor=!1,this.$notify({type:"success",message:"编辑成功!"})},closeDispose(){this.$emit("closeDispose",!1)},close(){this.isEditor=!1},onConfirm(t){this.show=!1,this.date=new Date(t).toLocaleDateString()},touchstart(t){this.recorder=new h.a,this.btRecoding=!0,this.blackBoxSpeak=!0,this.startY=t.changedTouches[0].clientY,h.a.getPermission().then(()=>{console.log("开始录音"),this.recorder.start()},t=>{this.$message({message:"请先允许该网页使用麦克风",type:"info"}),console.log(`${t.name} : ${t.message}`)})},dataURLtoBlob(t){var e=t.split(",");const i=e[0].match(/:(.*?);/)[1],o=window.atob(e[1]);let s=o.length;const a=new Uint8Array(s);while(s--)a[s]=o.charCodeAt(s);return new Blob([a],{type:i})},touchend(){this.btRecoding=!1,this.blackBoxSpeak&&(this.recorder.stopPlay(),this.$nextTick(()=>{this.duration=Math.ceil(this.recorder.duration);const t=this.recorder.getWAVBlob(),e=new window.File([t],"异常上报.mp3",{type:"mp3"});console.log(e);var i=new FormData;i.append("file",e),Object(n["y"])(i).then(({data:t})=>{console.log(t),this.voiceUrl=t.msg})}))},transmit(){this.recorder.play(),this.player=!0;const t=1*this.duration,e=setInterval(()=>{this.duration=1*this.duration-1},1e3);setTimeout(()=>{clearInterval(e),this.duration=t,this.player=!1},1e3*t)},touchmove(t){console.log(t.changedTouches[0].clientY);const e=t.changedTouches[0].clientY;this.startY{0===t.code?(this.$notify({type:"success",message:"操作成功!"}),this.$emit("cloneAlert",!1)):this.$notify({type:"danger",message:t.msg})})},changeValue(t){console.log(t),this.option2=this.staffList.filter(e=>e.major===t)[0].data,this.value2=this.option2[0].value},redeploy(){this.isTurn=!0,Object(n["getSysUserToMajor"])({userName:"lixl53"}).then(({data:t})=>{this.option1=[],this.option2=[],console.log(t),this.staffList=t.data.map((t,e)=>{this.option1.push({text:t.major,value:t.major});const i=[],o={};return t.data.forEach(t=>{o[t.postDesc]||(i.push({text:t.postDesc,value:t.postDesc}),o[t.postDesc]=!0)}),{major:t.major,data:i}}),console.log(this.option1),console.log(this.staffList),this.option2=this.staffList[0].data,this.value1=this.option1[0].value,this.value2=this.option2[0].value})},cloneOver(){this.isOverlay=!1,this.radio=""},cloneTurn(){this.isTurn=!1},overlay(t){t&&(console.log(t),this.type=t,this.isDispose=!0,this.isOverlay=!1)},closeDisposes(t){this.isDispose=t},back(){this.$emit("cloneAlert",!1)},getProblemInfoById(){Object(n["getProblemInfoById"])({problemInfoId:this.id}).then(({data:t})=>{if(console.log(t.data),this.list=t.data,t.data.videoCode){this.isAudio=!0;const e=t.data.videoCode.split(","),i=[];this.videoLists=[],e.forEach(t=>{i.push(Object(n["getImageOfMinio"])(t))}),Promise.all(i).then(t=>{console.log(t),t.forEach((t,e)=>{this.videoLists.push({videoCode:t.data.msg,player:!1,audioNum:null,isRed:!1}),this.$refs["audioss"+(this.videoLists.length-1)][0].load(),this.countAudioTime(e)})})}if(this.imgList=[],t.data.problemInfoDetailsList&&t.data.problemInfoDetailsList.length){const e=[];t.data.problemInfoDetailsList.forEach(t=>{e.push(Object(n["getImageOfMinio"])(t.pictureUrl))}),Promise.all(e).then(t=>{t.forEach(t=>{this.imgList.push(t.data.data)})})}})},play(t){const e=1*this.videoLists[t].audioNum;this.videoLists[t].player?(this.videoLists[t].player=!1,this.videoLists[t].audioNum=e,clearInterval(this.time)):(this.$refs["audios"+t][0].play(),this.videoLists[t].player=!0,this.videoLists[t].audioNum-=1,this.time=setInterval(()=>{this.videoLists[t].audioNum-=1},1e3),this.videoLists[t].isRed=!1,this.videoLists[t].player=!0,setTimeout(()=>{this.videoLists[t].player=!1,this.videoLists[t].audioNum=e,clearInterval(time)},1e3*this.videoLists[t].audioNum))},async countAudioTime(t){const e=this.$refs["audios1"+t][0];while(isNaN(e.duration)||e.duration===1/0)await new Promise(t=>setTimeout(t,200)),e.currentTime=1e7*Math.random();console.log("音频的总时长:",e.duration),this.videoLists[t].audioNum=Math.ceil(e.duration)}}},x=R,k=(i("be76"),Object(y["a"])(x,r,l,!1,null,"7bbbf189",null)),I=k.exports,P={name:"VueCli4VantProblem",data(){return{active:"1",tabsNum:0,list:[],isLoading:!1,loading:!1,bubble:{},isParticulars:!1,id:""}},components:{Particulars:I},mounted(){this.getProblemInformationList(),this.getProblemInfoCheckCount()},methods:{cloneAlert(t){this.isParticulars=t},getProblemInfoCheckCount(){Object(n["getProblemInfoCheckCount"])({userName:"lixl53"}).then(({data:t})=>{this.bubble=t})},itemAbnormal(t){this.id=t.id,this.isParticulars=!0},onRefresh(){3===this.tabsNum?Object(n["getProblemInfoCheckList"])({type:this.active,userName:"lixl53"}).then(({data:t})=>{console.log(t.data),0===t.code?(this.list=t.data,this.isLoading=!1,Object(a["a"])("刷新成功")):this.$notify({type:"danger",message:t.msg})}).catch(()=>{this.$notify({type:"danger",message:"出错了,请稍后重试"})}):Object(n["getProblemInformationList"])({state:this.tabsNum,type:this.active,userName:"lixl53"}).then(({data:t})=>{console.log(t.data),0===t.code?(this.list=t.data,this.isLoading=!1,Object(a["a"])("刷新成功")):(this.isLoading=!1,Object(a["a"])(""+t.msg))})},tabs(t){console.log(t.target.innerHTML),"未处理"===t.target.innerHTML?(this.tabsNum=0,this.getProblemInformationList()):"已临时整改"===t.target.innerHTML?(this.tabsNum=2,this.getProblemInformationList()):(this.tabsNum=3,this.getProblemInfoCheckList())},getProblemInformationList(){const t=setTimeout(()=>{this.loading=!0},500);Object(n["getProblemInformationList"])({state:this.tabsNum,type:this.active,userName:"lixl53"}).then(({data:e})=>{console.log(e.data),clearTimeout(t),0===e.code?(this.list=e.data,this.loading=!1):this.$notify({type:"danger",message:e.msg})}).catch(()=>{this.loading=!1,clearTimeout(t),this.$notify({type:"danger",message:"出错了,请稍后重试"})})},getProblemInfoCheckList(){const t=setTimeout(()=>{this.loading=!0},500);Object(n["getProblemInfoCheckList"])({type:this.active,userName:"lixl53"}).then(({data:e})=>{console.log(e.data),0===e.code?(this.list=e.data,clearTimeout(t),this.loading=!1):this.$notify({type:"danger",message:e.msg})}).catch(()=>{this.loading=!1,clearTimeout(t),this.$notify({type:"danger",message:"出错了,请稍后重试"})})},tabTob(t){this.active=t,0===this.tabsNum||2===this.tabsNum?this.getProblemInformationList():this.getProblemInfoCheckList()}}},S=P,L=(i("8707f"),Object(y["a"])(S,o,s,!1,null,"49ae331c",null));e["default"]=L.exports},"4b7f":function(t,e,i){t.exports=i.p+"assets/img/3.1.f977e76c.jpg"},"5a7e":function(t,e,i){},"610d":function(t,e,i){"use strict";i("f6e7")},"81e5":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIUAAACQCAIAAACpoz9DAAAACXBIWXMAAC4jAAAuIwF4pT92AAAGb2lUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6e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w1lNxLNakc2REo2SZtNzAI9ibXz89Xg6te7YLlBjzefHk3vv/MG7YG18aCURIeXsQwxx72OBlZJaybbZ+NDSA9niCBHAh645tW7/7qYz+vNDZ7c426sQNtjPcjzcSSu5/0aV3677cdjsic4zjpLYjGXnOJbMdgcZSuxau9sgQEnsGuvMkee334LN7kcr9XiS18EvPn50Ftbozw/dDidK7cxmPgAEADhrzh0NPq7fWf5XKInOmtaZ2521diAbx7uS+HhqJGKI6UbtiTX68dzKDxcZI9vXvwDQOE3U9FtHiZTYWNM6MyXde6fcpD1UUj6cWsR+2ygZI+MDyxC3208fQDhrHk88hDj4tVGilXRWN/YjR8bIDW9PK/l4bltn1p/GpZUcTyHcpGAls8fjtr7KYl4y17uS9YfXLWAPHytHCQACEPb/dhDnnbM39vhXXvTm41tr9Kdzd+39splEidi11hm9/9DPGQ3n9tL7KbM7AHBqrVqdTLu5D6OV0UoIEVJinld3AYC1+qFrDhn6WaOsUcycJizDsEafu2Z9cnOn/I+z+jN01z70Pkx8CyKcWtfYg8fhzbSDhZXETfp+O/nQSmolc6YpPl5TL8acO6fkwen0t/jeh13zoxPbZCll11hntJx2cuRHYlcfElFJzO8dKSgRusZ+sImmiexaNTfOfHro3g3/d4V9YHaNj7EVIaI8/v3sS5cS96yvS+OAO2+skYjPl+HH7C/A2KfShzfjR3GAD6WkUjIREVH+LkqURGv0qdlgVHW/HNa1b5359NB9/9V3rXs4HTP0K4fDbl5J6YzS+tWHUtJqZbRanwK6a+Dp6enoMlT+zx9dORRI9VEW1UdZVB9lUX2URfVRFtVHWVQfZVF9lEX1URbVR1lUH2XxPyDi8Z1vqkrBAAAAAElFTkSuQmCC"},"8707f":function(t,e,i){"use strict";i("5a7e")},ad9a:function(t,e,i){ /*! * * js-audio-recorder - js audio recorder plugin * * @version v1.0.7 * @homepage https://github.com/2fps/recorder * @author 2fps (https://www.zhuyuntao.cn) * @license MIT * */ !function(e,i){t.exports=i()}(0,(function(){return function(t){var e={};function i(o){if(e[o])return e[o].exports;var s=e[o]={i:o,l:!1,exports:{}};return t[o].call(s.exports,s,s.exports,i),s.l=!0,s.exports}return i.m=t,i.c=e,i.d=function(t,e,o){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(i.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var s in t)i.d(o,s,function(e){return t[e]}.bind(null,s));return o},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=1)}([function(t,e,i){"use strict";function o(t,e,i){for(var o=0;oe?e:i,l=a,c=new ArrayBuffer(44+t.byteLength),d=new DataView(c),u=s,h=0;o(d,h,"RIFF"),h+=4,d.setUint32(h,36+t.byteLength,n),o(d,h+=4,"WAVE"),o(d,h+=4,"fmt "),h+=4,d.setUint32(h,16,n),h+=4,d.setUint16(h,1,n),h+=2,d.setUint16(h,u,n),h+=2,d.setUint32(h,r,n),h+=4,d.setUint32(h,u*r*(l/8),n),h+=4,d.setUint16(h,u*(l/8),n),h+=2,d.setUint16(h,l,n),o(d,h+=2,"data"),h+=4,d.setUint32(h,t.byteLength,n),h+=4;for(var p=0;p44&&r.default.play(t.buffer)},e.prototype.getPlayTime=function(){return r.default.getPlayTime()},e.prototype.pausePlay=function(){!this.isrecording&&this.isplaying&&(this.isplaying=!1,this.onpauseplay&&this.onpauseplay(),r.default.pausePlay())},e.prototype.resumePlay=function(){this.isrecording||this.isplaying||(this.isplaying=!0,this.onresumeplay&&this.onresumeplay(),r.default.resumePlay())},e.prototype.stopPlay=function(){this.isrecording||(this.isplaying=!1,this.onstopplay&&this.onstopplay(),r.default.stopPlay())},e.prototype.destroy=function(){return r.default.destroyPlay(),this.destroyRecord()},e.prototype.getRecordAnalyseData=function(){return this.getAnalyseData()},e.prototype.getPlayAnalyseData=function(){return r.default.getAnalyseData()},e.prototype.getPCM=function(){this.stop();var t=this.getData();return t=n.compress(t,this.inputSampleRate,this.outputSampleRate),n.encodePCM(t,this.oututSampleBits,this.littleEdian)},e.prototype.getPCMBlob=function(){return new Blob([this.getPCM()])},e.prototype.downloadPCM=function(t){void 0===t&&(t="recorder");var e=this.getPCMBlob();a.downloadPCM(e,t)},e.prototype.getWAV=function(){var t=this.getPCM();return n.encodeWAV(t,this.inputSampleRate,this.outputSampleRate,this.config.numChannels,this.oututSampleBits,this.littleEdian)},e.prototype.getWAVBlob=function(){return new Blob([this.getWAV()],{type:"audio/wav"})},e.prototype.downloadWAV=function(t){void 0===t&&(t="recorder");var e=this.getWAVBlob();a.downloadWAV(e,t)},e.prototype.download=function(t,e,i){a.download(t,e,i)},e.prototype.getChannelData=function(){var t=this.getPCM(),e=t.byteLength,i=this.littleEdian,o={left:null,right:null};if(2===this.config.numChannels){var s=new DataView(new ArrayBuffer(e/2)),a=new DataView(new ArrayBuffer(e/2));if(16===this.config.sampleBits)for(var n=0;n