(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-753f5dce"],{"5fd0":function(e,t,a){"use strict";a("b7ea")},"88f6":function(e,t,a){"use strict";a("ede6")},b7ea:function(e,t,a){},c342:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e._self._c;return t("div",[t("div",{staticClass:"div-Back",on:{click:e.handleBack}},[t("a-icon",{attrs:{type:"left"}}),t("span",[e._v(" 返回 ")])],1),t("div",{staticClass:"d-flex flex-column column-wrap",staticStyle:{height:"100%",background:"#fff"}},[t("div",{staticClass:"content-wrap pa-3"},[e.answerLists.length>0?t("div",{staticClass:"lighten-5",staticStyle:{height:"100%"}},[t("div",{staticClass:"d-flex flex-nowrap",staticStyle:{height:"100%","text-align":"center",overflow:"scroll"}},[[e.parameters&&e.parameters.parameters&&e.showDetailData?t("div",{staticClass:"mr-3 d-flex flex-column shadow"}):e._e(),e.parameters&&e.parameters.parameters&&e.showActionSelection?t("div",{staticClass:"mr-3 d-flex flex-column shadow"},[t("canvas-detail-data-one",{ref:"child11",staticClass:"flex-1 overflow-y-auto",staticStyle:{"min-height":"300px"},on:{handleShowStrokes:e.handleShowStrokes,onCheck:e.onCheckPath}})],1):e._e(),e.parameters&&e.parameters.parameters&&e.showStrokes?t("div",{staticClass:"mr-3 d-flex flex-column shadow"},[t("strokes-contrast",{staticClass:"flex-1 overflow-y-auto",staticStyle:{"min-height":"300px"},attrs:{value:e.value},on:{closeStokes:e.closeStokes}})],1):e._e(),t("div",{staticClass:"d-flex flex-1 flex-column column-wrap",staticStyle:{position:"relative"}},[t("div",{staticClass:"d-flex flex-column remark"},[t("div",{staticClass:"d-flex flex-nowrap"},e._l(e.remarks,(function(a,s){return t("div",{key:s,staticClass:"mr-3"},[t("span",{staticClass:"remarkColor mr-3",style:"background: "+a.color}),t("span",{style:"color: "+a.color},[e._v(e._s(a.value))])])})),0)]),3!==e.currentOperateType&&6!==e.currentOperateType?t("div",[e.showOtherValue?t("reduce-canvas",{ref:"reduce-canvas",attrs:{"is-report":e.isReport,reserve:3!==e.currentOperateType&&6!==e.currentOperateType}}):e._e()],1):e._e(),3===e.currentOperateType||6===e.currentOperateType?t("div",[e.showOtherValue?t("reduce-canvas-vertical",{ref:"reduce-canvas",attrs:{"is-report":e.isReport,reserve:!1,"txt-upside-down":!0}}):e._e()],1):e._e()])]],2)]):e._e()])])])},o=[],r=a("2f62"),c=a("ef05"),i=a("57d9"),l=a("fe7b"),n=a("9a67"),h=a("0931"),d=a("62a0"),u=a("e635");let{apiUrl:p}=a("d2b8");var f={name:"AnswerDetailReduceCanvas",components:{ReduceCanvas:c["a"],ReduceCanvasVertical:i["a"],CanvasDetailData:l["a"],CanvasDetailDataOne:n["a"],StrokesContrast:h["a"],Layer:d["a"]},data(){return{showDetailData:!0,showActionSelection:!1,showStrokes:!1,remarks:[{color:"#FF4D4D",value:"画板中心"},{color:"#E68A00",value:"图形中心"},{color:"#FFCC00",value:"图形重心"},{color:"#80BF40",value:"图形最顶点"},{color:"#40BFBF",value:"图形最底点"},{color:"#47596B",value:"图形最左点"},{color:"#CC00CC",value:"图形最右点"}],isReport:!0,value:144}},computed:{...Object(r["e"])("ht",["answerLists","parameters","pointsData","reportDetailId","reportQuestionId","currentOperateType","showOtherValue","canvasTools","checkedPaths","createId"]),...Object(r["e"])("user",["userInfo"]),...Object(r["c"])("ht",["canvasRawData"])},watch:{canvasRawData:{handler(e){if(e){let t=[];e.forEach((e,a)=>{t[a]=!1}),this.setCheckedPaths(t)}},immediate:!0}},beforeRouteLeave(e,t,a){this.setShowOtherValue(!1),this.setQuestionId(""),this.setCanvasTools({type:"multiple",flag:!1}),a()},methods:{...Object(r["d"])("ht",["setShowOtherValue","setQuestionId","setCanvasTools","setCheckedPaths"]),handleBack(){this.$router.go(-1)},async lineAnalysis(){try{console.log("this.userInfo",this.userInfo.hospitalId);let e={patientReportId:this.$route.query.evaluationId,questionId:this.reportQuestionId,deptId:this.userInfo.hospitalId};const t=await Object(u["x"])(e),{code:a,msg:s,data:o}=t;200===a?this.$download(p+o):this.$message.error(s)}catch(e){console.log("导出线条分析",e)}},showDetail(){this.showActionSelection=!1,this.showStrokes=!1,this.showDetailData=!this.showDetailData},showAction(){this.showDetailData=!1,this.showStrokes=!1,this.showActionSelection=!this.showActionSelection},handleShowStrokes(e){this.showActionSelection=!1,this.showStrokes=!0,this.value=e},closeStokes(){this.showStrokes=!1,this.showActionSelection=!0},handleRefresh(){const e=this.$refs["reduce-canvas"];e.getData()},onCheckPath(e){const{checkedPaths:t}=this;t[e]=!t[e],this.setCheckedPaths(t)}}},v=f,w=(a("c72d"),a("88f6"),a("5fd0"),a("2877")),m=Object(w["a"])(v,s,o,!1,null,"cc0bdc12",null);t["default"]=m.exports},c72d:function(e,t,a){"use strict";a("cf0c")},cf0c:function(e,t,a){},ede6:function(e,t,a){}}]);